From: Gleb Natapov <gleb@redhat.com> To: Anthony Liguori <aliguori@us.ibm.com> Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org Subject: [PATCH 1/1] kvmvapic: add ioport read accessor Date: Mon, 6 May 2013 15:44:43 +0300 [thread overview] Message-ID: <0c1cd0ae2a4faabeb948b9a07ea1696e853de174.1367844188.git.gleb@redhat.com> (raw) In-Reply-To: <cover.1367844188.git.gleb@redhat.com> From: Marcelo Tosatti <mtosatti@redhat.com> Necessary since memory region accessor assumes read and write methods are registered. Otherwise reading I/O port 0x7e segfaults. https://bugzilla.redhat.com/show_bug.cgi?id=954306 Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Gleb Natapov <gleb@redhat.com> --- hw/i386/kvmvapic.c | 6 ++++++ 1 file changed, 6 insertions(+) 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, }; -- 1.7.10.4
WARNING: multiple messages have this Message-ID (diff)
From: Gleb Natapov <gleb@redhat.com> To: Anthony Liguori <aliguori@us.ibm.com> Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org Subject: [Qemu-devel] [PATCH 1/1] kvmvapic: add ioport read accessor Date: Mon, 6 May 2013 15:44:43 +0300 [thread overview] Message-ID: <0c1cd0ae2a4faabeb948b9a07ea1696e853de174.1367844188.git.gleb@redhat.com> (raw) In-Reply-To: <cover.1367844188.git.gleb@redhat.com> From: Marcelo Tosatti <mtosatti@redhat.com> Necessary since memory region accessor assumes read and write methods are registered. Otherwise reading I/O port 0x7e segfaults. https://bugzilla.redhat.com/show_bug.cgi?id=954306 Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Gleb Natapov <gleb@redhat.com> --- hw/i386/kvmvapic.c | 6 ++++++ 1 file changed, 6 insertions(+) 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, }; -- 1.7.10.4
next prev parent reply other threads:[~2013-05-06 12:45 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-05-06 12:44 [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue Gleb Natapov 2013-05-06 12:44 ` [Qemu-devel] " Gleb Natapov 2013-05-06 12:44 ` Gleb Natapov [this message] 2013-05-06 12:44 ` [Qemu-devel] [PATCH 1/1] kvmvapic: add ioport read accessor Gleb Natapov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=0c1cd0ae2a4faabeb948b9a07ea1696e853de174.1367844188.git.gleb@redhat.com \ --to=gleb@redhat.com \ --cc=aliguori@us.ibm.com \ --cc=kvm@vger.kernel.org \ --cc=qemu-devel@nongnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.