summaryrefslogtreecommitdiff
path: root/kvm.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-03-01 18:17:24 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 14:30:14 -0300
commitd019e29a72d0724f46fe2304ea711a7dd75ca82f (patch)
tree3f4d7b35d462f09bf774d484b9ab1102c3c7b527 /kvm.h
parentdbb8952aa23df12ff52f5b7dff5700c0ce8cea82 (diff)
KVM: x86: Restrict writeback of VCPU state
Do not write nmi_pending, sipi_vector, and mpstate unless we at least go through a reset. And TSC as well as KVM wallclocks should only be written on full sync, otherwise we risk to drop some time on during state read-modify-write. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kvm.h')
-rw-r--r--kvm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm.h b/kvm.h
index 874506b3b..afc7ee023 100644
--- a/kvm.h
+++ b/kvm.h
@@ -44,7 +44,7 @@ int kvm_log_stop(target_phys_addr_t phys_addr, ram_addr_t size);
int kvm_has_sync_mmu(void);
int kvm_has_vcpu_events(void);
int kvm_has_robust_singlestep(void);
-int kvm_put_vcpu_events(CPUState *env);
+int kvm_put_vcpu_events(CPUState *env, int level);
int kvm_get_vcpu_events(CPUState *env);
void kvm_cpu_register_phys_memory_client(void);