mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Remove TARGET_PAGE_SIZE from virtio interface (Hollis Blanchard)
TARGET_PAGE_SIZE should only be used internal to qemu, not in guest/host interfaces. The virtio frontend code in Linux uses two constants (PFN shift and vring alignment) for the interface, so update qemu to match. I've tested this with PowerPC KVM and confirmed that it fixes virtio problems when using non-TARGET_PAGE_SIZE pages in the guest. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5871 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
6e02c38dad
commit
f46f15bca7
2 changed files with 19 additions and 3 deletions
|
@ -48,6 +48,12 @@
|
|||
|
||||
struct VirtQueue;
|
||||
|
||||
static inline target_phys_addr_t vring_align(target_phys_addr_t addr,
|
||||
unsigned long align)
|
||||
{
|
||||
return (addr + align - 1) & ~(align - 1);
|
||||
}
|
||||
|
||||
typedef struct VirtQueue VirtQueue;
|
||||
typedef struct VirtIODevice VirtIODevice;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue