Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


added module directory tree and build configuration
[palacios.git] / palacios / src / devices / lnx_virtio_symmod.c
index b1e4a28..53a7171 100644 (file)
@@ -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