yeahuh / rpms / qemu-kvm

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