From 5a1fc5e8529afb6041a3dfa406a94c187d2afc1d Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Tue, 29 Sep 2009 18:53:26 +0200 Subject: qemu: clean up target page usage in msix Since cpu_register_phys_memory does not require size to be a multiple of target page size, simply make msix page size 0x1000. Do this in msix, reverting part of 5e520a7d500ec2569d22d80f9ef4272a34cb3c80, as we no longer have to pass target page around. Signed-off-by: Michael S. Tsirkin Signed-off-by: Anthony Liguori --- hw/msix.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'hw/msix.h') diff --git a/hw/msix.h b/hw/msix.h index 9367ba38f..3427778dc 100644 --- a/hw/msix.h +++ b/hw/msix.h @@ -3,9 +3,8 @@ #include "qemu-common.h" -int msix_init(struct PCIDevice *dev, unsigned short nentries, - unsigned bar_nr, unsigned bar_size, - target_phys_addr_t page_size); +int msix_init(PCIDevice *pdev, unsigned short nentries, + unsigned bar_nr, unsigned bar_size); void msix_write_config(PCIDevice *pci_dev, uint32_t address, uint32_t val, int len); -- cgit v1.2.3