From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: [PATCH 1/2] vfio-pci: Add dummy PCI ROM write accessor Date: Fri, 04 Oct 2013 13:18:18 -0600 Message-ID: <20131004191818.3031.79900.stgit@bling.home> References: <20131004191645.3031.84854.stgit@bling.home> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: aik@ozlabs.ru, pbonzini@redhat.com, qemu-devel@nongnu.org, kvm@vger.kernel.org To: alex.williamson@redhat.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:27420 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754093Ab3JDTSV (ORCPT ); Fri, 4 Oct 2013 15:18:21 -0400 In-Reply-To: <20131004191645.3031.84854.stgit@bling.home> Sender: kvm-owner@vger.kernel.org List-ID: 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, };