projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d5bf69
)
vfio-pci: Add dummy PCI ROM write accessor
author
Alex Williamson
<alex.williamson@redhat.com>
Fri, 4 Oct 2013 14:51:36 +0000
(08:51 -0600)
committer
Alex Williamson
<alex.williamson@redhat.com>
Fri, 4 Oct 2013 14:51:36 +0000
(08:51 -0600)
Just to be sure we don't jump off any NULL pointer cliffs.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
hw/misc/vfio.c
patch
|
blob
|
history
diff --git
a/hw/misc/vfio.c
b/hw/misc/vfio.c
index 68e25bd8c3d9bbb95be47f8f35821aab1105e2d0..1fbc40b96051917eb95311f6c29aaf44cb93d2ba 100644
(file)
--- a/
hw/misc/vfio.c
+++ b/
hw/misc/vfio.c
@@
-1128,8
+1128,14
@@
static uint64_t vfio_rom_read(void *opaque, hwaddr addr, unsigned size)
return val;
}
+static void vfio_rom_write(void *opaque, hwaddr addr,
+ uint64_t data, unsigned size)
+{
+}
+
static const MemoryRegionOps vfio_rom_ops = {
.read = vfio_rom_read,
+ .write = vfio_rom_write,
.endianness = DEVICE_LITTLE_ENDIAN,
};