* [PATCH] Update registers after INIT/SIPI
@ 2009-07-01 15:48 Gleb Natapov
2009-07-01 15:53 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Gleb Natapov @ 2009-07-01 15:48 UTC (permalink / raw)
To: avi; +Cc: kvm
Load updated register into kernel after INIT/SIPI. Otherwise
vcpu starts at the wrong address after SIPI.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index 1eb147e..5d3025a 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -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.
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Update registers after INIT/SIPI
2009-07-01 15:48 [PATCH] Update registers after INIT/SIPI Gleb Natapov
@ 2009-07-01 15:53 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-07-01 15:53 UTC (permalink / raw)
To: Gleb Natapov; +Cc: kvm
On 07/01/2009 06:48 PM, Gleb Natapov wrote:
> Load updated register into kernel after INIT/SIPI. Otherwise
> vcpu starts at the wrong address after SIPI.
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-01 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-01 15:48 [PATCH] Update registers after INIT/SIPI Gleb Natapov
2009-07-01 15:53 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox