[prev in list] [next in list] [prev in thread] [next in thread]
List: kvm-commits
Subject: [COMMIT master] Don't call kvm_cpu_synchronize_state() if there is no
From: Avi Kivity <avi () redhat ! com>
Date: 2009-09-27 10:49:28
Message-ID: 20090927104928.D4660A014B () cleopatra ! tlv ! redhat ! com
[Download RAW message or body]
From: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index 32561f0..acb1b91 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -1673,9 +1673,12 @@ uint32_t kvm_arch_get_supported_cpuid(CPUState *env, uint32_t function,
void kvm_arch_process_irqchip_events(CPUState *env)
{
- kvm_cpu_synchronize_state(env);
- if (env->interrupt_request & CPU_INTERRUPT_INIT)
+ if (env->interrupt_request & CPU_INTERRUPT_INIT) {
+ kvm_cpu_synchronize_state(env);
do_cpu_init(env);
- if (env->interrupt_request & CPU_INTERRUPT_SIPI)
+ }
+ if (env->interrupt_request & CPU_INTERRUPT_SIPI) {
+ kvm_cpu_synchronize_state(env);
do_cpu_sipi(env);
+ }
}
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic