X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Flnx_virtio_symmod.c;h=53a717133fa722899c53cc25b56633ab6713bdbd;hb=4cc3e8965ada59e7f5a9e55e8ccbc9563d997b93;hp=b1e4a28489f32cbd42bb7d572aab63f5e887020c;hpb=4a7e284362662dd76319c4d5843deb28fba82ba0;p=palacios.git diff --git a/palacios/src/devices/lnx_virtio_symmod.c b/palacios/src/devices/lnx_virtio_symmod.c index b1e4a28..53a7171 100644 --- a/palacios/src/devices/lnx_virtio_symmod.c +++ b/palacios/src/devices/lnx_virtio_symmod.c @@ -148,6 +148,8 @@ static int handle_xfer_kick(struct guest_info * core, struct virtio_sym_state * } memcpy(buf, module->data + offset, buf_desc->length); + PrintDebug("Copying module to virtio buffers: SRC=%p, DST=%p, len=%d\n", + (void *)(module->data + offset), (void *)buf, buf_desc->length); if (tmp_status != 0) { PrintError("Error loading module segment\n"); @@ -170,6 +172,7 @@ static int handle_xfer_kick(struct guest_info * core, struct virtio_sym_state * xfer_len += status_desc->length; *status_ptr = status; + PrintDebug("Transferred %d bytes (xfer_len)\n", xfer_len); q->used->ring[q->used->index % QUEUE_SIZE].id = q->avail->ring[q->cur_avail_idx % QUEUE_SIZE]; q->used->ring[q->used->index % QUEUE_SIZE].length = xfer_len; // set to total inbound xfer length