diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-30 10:25:57 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-29 17:55:58 -0500 |
commit | 498af14783935af487d17dbee4ac451783cbc2b7 (patch) | |
tree | db7a61d88f8eee05e65ac832f571440640299869 /include/linux/virtio_pci.h | |
parent | 5f0d1d7f2286c8a02dab69f5f0bd51681fab161e (diff) |
virtio: Don't use PAGE_SIZE for vring alignment in virtio_pci.
That doesn't work for non-4k guests which are now appearing.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/virtio_pci.h')
-rw-r--r-- | include/linux/virtio_pci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/virtio_pci.h b/include/linux/virtio_pci.h index e13d7ebcf576..cd0fd5d181a6 100644 --- a/include/linux/virtio_pci.h +++ b/include/linux/virtio_pci.h | |||
@@ -57,4 +57,8 @@ | |||
57 | /* How many bits to shift physical queue address written to QUEUE_PFN. | 57 | /* How many bits to shift physical queue address written to QUEUE_PFN. |
58 | * 12 is historical, and due to x86 page size. */ | 58 | * 12 is historical, and due to x86 page size. */ |
59 | #define VIRTIO_PCI_QUEUE_ADDR_SHIFT 12 | 59 | #define VIRTIO_PCI_QUEUE_ADDR_SHIFT 12 |
60 | |||
61 | /* The alignment to use between consumer and producer parts of vring. | ||
62 | * x86 pagesize again. */ | ||
63 | #define VIRTIO_PCI_VRING_ALIGN 4096 | ||
60 | #endif | 64 | #endif |