search for: lguest_virtio

Displaying 2 results from an estimated 2 matches for "lguest_virtio".

2007 Aug 17
1
lguest virtio_descriptor structure on 64bit
...ture is not 64 bit safe. struct lguest_desc desc[NUM_DESCS] can be smaller than a page, as struct lguest_desc is 24 bytes on 64bit systems. Lets add a char padding to make the next page really page aligned. Btw. the new_io_desc.patch does not apply on current git. What base should I use? --- lguest_virtio.c.old 2007-08-17 10:15:05.000000000 +0200 +++ lguest_virtio.c 2007-08-17 10:16:00.000000000 +0200 @@ -31,15 +31,16 @@ struct desc_pages { /* Page of descriptors. */ struct lguest_desc desc[NUM_DESCS]; + char pad0[PAGE_SIZE - NUM_DESCS * sizeof(struct lguest_desc)]; /* Next page: how we...
2007 Aug 17
1
lguest virtio_descriptor structure on 64bit
...ture is not 64 bit safe. struct lguest_desc desc[NUM_DESCS] can be smaller than a page, as struct lguest_desc is 24 bytes on 64bit systems. Lets add a char padding to make the next page really page aligned. Btw. the new_io_desc.patch does not apply on current git. What base should I use? --- lguest_virtio.c.old 2007-08-17 10:15:05.000000000 +0200 +++ lguest_virtio.c 2007-08-17 10:16:00.000000000 +0200 @@ -31,15 +31,16 @@ struct desc_pages { /* Page of descriptors. */ struct lguest_desc desc[NUM_DESCS]; + char pad0[PAGE_SIZE - NUM_DESCS * sizeof(struct lguest_desc)]; /* Next page: how we...