From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VULEb-0003C2-9O for qemu-devel@nongnu.org; Thu, 10 Oct 2013 14:45:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VULER-0007nE-Ef for qemu-devel@nongnu.org; Thu, 10 Oct 2013 14:45:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VULEQ-0007lX-Mm for qemu-devel@nongnu.org; Thu, 10 Oct 2013 14:45:07 -0400 From: Alex Williamson Date: Thu, 10 Oct 2013 12:44:59 -0600 Message-ID: <20131010184445.31667.61094.stgit@bling.home> In-Reply-To: <20131010184122.31667.28382.stgit@bling.home> References: <20131010184122.31667.28382.stgit@bling.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PULL v2 7/8] vfio-pci: Add dummy PCI ROM write accessor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: Paolo Bonzini , qemu-devel@nongnu.org, kvm@vger.kernel.org Just to be sure we don't jump off any NULL pointer cliffs. Signed-off-by: Alex Williamson Reported-by: Paolo Bonzini --- hw/misc/vfio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 68e25bd..1fbc40b 100644 --- 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, };