|
|
9ae3a8 |
From 0d04efadb8289105d4ab7632c8b6d70b860a22c6 Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Alex Williamson <alex.williamson@redhat.com>
|
|
|
9ae3a8 |
Date: Tue, 5 Nov 2013 15:37:46 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 16/25] vfio-pci: Add dummy PCI ROM write accessor
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Alex Williamson <alex.williamson@redhat.com>
|
|
|
9ae3a8 |
Message-id: <20131105153746.16057.36730.stgit@bling.home>
|
|
|
9ae3a8 |
Patchwork-id: 55425
|
|
|
9ae3a8 |
O-Subject: [RHEL7 qemu-kvm PATCH 4/5] vfio-pci: Add dummy PCI ROM write accessor
|
|
|
9ae3a8 |
Bugzilla: 1026550
|
|
|
9ae3a8 |
RH-Acked-by: Bandan Das <bsd@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Bugzilla: 1026550
|
|
|
9ae3a8 |
Upstream commit: 64fa25a0efcadda6e8197e8ea578f6117d01bb4b
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Just to be sure we don't jump off any NULL pointer cliffs.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
|
|
|
9ae3a8 |
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/misc/vfio.c | 6 ++++++
|
|
|
9ae3a8 |
1 file changed, 6 insertions(+)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/misc/vfio.c | 6 ++++++
|
|
|
9ae3a8 |
1 files changed, 6 insertions(+), 0 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c
|
|
|
9ae3a8 |
index e336021..d327b40 100644
|
|
|
9ae3a8 |
--- a/hw/misc/vfio.c
|
|
|
9ae3a8 |
+++ b/hw/misc/vfio.c
|
|
|
9ae3a8 |
@@ -1127,8 +1127,14 @@ static uint64_t vfio_rom_read(void *opaque, hwaddr addr, unsigned size)
|
|
|
9ae3a8 |
return val;
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
+static void vfio_rom_write(void *opaque, hwaddr addr,
|
|
|
9ae3a8 |
+ uint64_t data, unsigned size)
|
|
|
9ae3a8 |
+{
|
|
|
9ae3a8 |
+}
|
|
|
9ae3a8 |
+
|
|
|
9ae3a8 |
static const MemoryRegionOps vfio_rom_ops = {
|
|
|
9ae3a8 |
.read = vfio_rom_read,
|
|
|
9ae3a8 |
+ .write = vfio_rom_write,
|
|
|
9ae3a8 |
.endianness = DEVICE_LITTLE_ENDIAN,
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|