summaryrefslogtreecommitdiff
path: root/target-ia64
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-03-01 18:17:23 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 14:30:13 -0300
commitdbb8952aa23df12ff52f5b7dff5700c0ce8cea82 (patch)
treec7ccc699faefad1443f418ce5dacfbb0ab3a8605 /target-ia64
parent6e02997e45e70f035b5526586cf7cfca2dd3a967 (diff)
qemu-kvm: Clean up mpstate synchronization
Push mpstate reading/writing into kvm_arch_load/save_regs and, on x86, properly synchronize with halted in the accessor functions. At this chance, drop the special reset of interrupt_request and halted in kvm_arch_cpu_reset. The former is done via memset in cpu_reset, the latter in apic_init_reset anyway. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'target-ia64')
-rw-r--r--target-ia64/machine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-ia64/machine.c b/target-ia64/machine.c
index fdbeeefa9..8cf5bdd2d 100644
--- a/target-ia64/machine.c
+++ b/target-ia64/machine.c
@@ -4,6 +4,9 @@
#include "exec-all.h"
#include "qemu-kvm.h"
+void kvm_arch_save_mpstate(CPUState *env);
+void kvm_arch_load_mpstate(CPUState *env);
+
void cpu_save(QEMUFile *f, void *opaque)
{
CPUState *env = opaque;