Message ID | 1435330185-23248-38-git-send-email-marcandre.lureau@gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/pci/msix.c b/hw/pci/msix.c index 7716bf3..e91b2cb 100644 --- a/hw/pci/msix.c +++ b/hw/pci/msix.c @@ -200,8 +200,14 @@ static uint64_t msix_pba_mmio_read(void *opaque, hwaddr addr, return pci_get_long(dev->msix_pba + addr); } +static void msix_pba_mmio_write(void *opaque, hwaddr addr, + uint64_t val, unsigned size) +{ +} + static const MemoryRegionOps msix_pba_mmio_ops = { .read = msix_pba_mmio_read, + .write = msix_pba_mmio_write, .endianness = DEVICE_LITTLE_ENDIAN, .valid = { .min_access_size = 4,
qpci_msix_pending() writes on pba region, causing qemu to SEGV: Implement an empty mmio write to avoid the crash. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> --- hw/pci/msix.c | 6 ++++++ 1 file changed, 6 insertions(+)