summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-kvm-x86.c')
-rw-r--r--qemu-kvm-x86.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index 1f0d37a75..7b7bc0f43 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -1401,6 +1401,9 @@ int kvm_arch_halt(CPUState *env)
int kvm_arch_pre_run(CPUState *env, struct kvm_run *run)
{
+ if (env->update_vapic) {
+ kvm_tpr_enable_vapic(env);
+ }
if (!kvm_irqchip_in_kernel())
kvm_set_cr8(env, cpu_get_apic_tpr(env));
return 0;