[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [uq/master PATCH] kvmvapic: add ioport read accessor

From: Marcelo Tosatti
Subject: [Qemu-devel] [uq/master PATCH] kvmvapic: add ioport read accessor
Date: Sun, 5 May 2013 17:51:49 -0300
User-agent: Mutt/1.5.21 (2010-09-15)

Necessary since memory region accessor assumes read and write
methods are registered. Otherwise reading I/O port 0x7e segfaults.


Signed-off-by: Marcelo Tosatti <address@hidden>

diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c
index 5b558aa..655483b 100644
--- a/hw/i386/kvmvapic.c
+++ b/hw/i386/kvmvapic.c
@@ -687,8 +687,14 @@ static void vapic_write(void *opaque, hwaddr addr, 
uint64_t data,
+static uint64_t vapic_read(void *opaque, hwaddr addr, unsigned size)
+    return 0xffffffff;
 static const MemoryRegionOps vapic_ops = {
     .write = vapic_write,
+    .read = vapic_read,
     .endianness = DEVICE_NATIVE_ENDIAN,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]