[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] KVM: Make vmport KVM-compatible
From: |
Marcelo Tosatti |
Subject: |
[Qemu-devel] [PATCH 4/6] KVM: Make vmport KVM-compatible |
Date: |
Wed, 3 Feb 2010 21:55:49 -0200 |
From: Jan Kiszka <address@hidden>
The vmport "device" accesses the VCPU registers, so it requires proper
cpu_synchronize_state. Add it to vmport_ioport_read, which also
synchronizes vmport_ioport_write.
Signed-off-by: Jan Kiszka <address@hidden>
---
hw/vmport.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hw/vmport.c b/hw/vmport.c
index 884af3f..6c9d7c9 100644
--- a/hw/vmport.c
+++ b/hw/vmport.c
@@ -25,6 +25,7 @@
#include "isa.h"
#include "pc.h"
#include "sysemu.h"
+#include "kvm.h"
//#define VMPORT_DEBUG
@@ -58,6 +59,8 @@ static uint32_t vmport_ioport_read(void *opaque, uint32_t
addr)
unsigned char command;
uint32_t eax;
+ cpu_synchronize_state(env);
+
eax = env->regs[R_EAX];
if (eax != VMPORT_MAGIC)
return eax;
--
1.6.6
- [Qemu-devel] [PATCH 0/6] [GIT PULL] qemu-kvm.git uq/master queue, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] [PATCH 2/6] KVM: Request setting of nmi_pending and sipi_vector, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] [PATCH 4/6] KVM: Make vmport KVM-compatible,
Marcelo Tosatti <=
- [Qemu-devel] [PATCH 5/6] KVM: Move and rename regs_modified, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] [PATCH 3/6] KVM: x86: Fix up misreported CPU features, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] [PATCH 6/6] Fix incoming migration with iothread, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] [PATCH 1/6] kvm: Flush coalesced MMIO buffer periodly, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] Re: [PATCH 0/6] [GIT PULL] qemu-kvm.git uq/master queue, Anthony Liguori, 2010/02/08