Skip to contentSkip to conversation

Update registers after INIT/SIPI

PATCH Applied Gleb Natapov 2 participants 2 messages Jul 1, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update registers after INIT/SIPI

Load updated register into kernel after INIT/SIPI. Otherwise vcpu starts at the wrong address after SIPI.

qemu-kvm-x86.c +2 -0
index 1eb147e..5d3025a 100644
@@ -1578,8 +1578,10 @@ uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function,
 
 void kvm_arch_process_irqchip_events(CPUState *env)
 {
+    kvm_arch_save_regs(env);
     if (env->interrupt_request & CPU_INTERRUPT_INIT)
         do_cpu_init(env);
     if (env->interrupt_request & CPU_INTERRUPT_SIPI)
         do_cpu_sipi(env);
+    kvm_arch_load_regs(env);
 }

--
Gleb.

Applied
#1 lore raw
Quoted 3 lines · Gleb Natapov

Load updated register into kernel after INIT/SIPI. Otherwise vcpu starts at the wrong address after SIPI.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function