summaryrefslogtreecommitdiffstats
path: root/target-ia64
diff options
context:
space:
mode:
authorJan Kiszka <[email protected]>2010-02-19 19:22:20 +0100
committerAvi Kivity <[email protected]>2010-02-21 11:19:52 +0200
commit9aa832f1f449ddfe5a2a407373e7ea965fdb86f6 (patch)
treecb30df10318ea8792cee7aced5a45f87babb6762 /target-ia64
parent19e893df8765a6cc8c3a4b70fdeb70591ba628d2 (diff)
downloadqemu-kvm-9aa832f1f449ddfe5a2a407373e7ea965fdb86f6.tar.gz
qemu-kvm-9aa832f1f449ddfe5a2a407373e7ea965fdb86f6.tar.bz2
qemu-kvm-9aa832f1f449ddfe5a2a407373e7ea965fdb86f6.zip
Clean up register access API
qemu-kvm's functions for accessing the VCPU registers are kvm_arch_load/save_regs. Use them directly instead of going through various wrappers. Specifically, we do not need on_vcpu wrapping as all users either already run in the related thread or call while the vm is stopped. This is now also validated during runtime via asserts. Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
Diffstat (limited to 'target-ia64')
-rw-r--r--target-ia64/machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ia64/machine.c b/target-ia64/machine.c
index 70ef379dd..7d2957552 100644
--- a/target-ia64/machine.c
+++ b/target-ia64/machine.c
@@ -9,7 +9,7 @@ void cpu_save(QEMUFile *f, void *opaque)
CPUState *env = opaque;
if (kvm_enabled()) {
- kvm_save_registers(env);
+ kvm_arch_save_regs(env);
kvm_arch_save_mpstate(env);
}
}
@@ -19,7 +19,7 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id)
CPUState *env = opaque;
if (kvm_enabled()) {
- kvm_load_registers(env);
+ kvm_arch_load_regs(env);
kvm_arch_load_mpstate(env);
}
return 0;