mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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 5e520a7d50
, as we no
longer have to pass target page around.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8f2498f9f6
commit
5a1fc5e852
4 changed files with 27 additions and 36 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue