 qemu/qemu-kvm.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index 3fc32f7..d07af9f 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -516,10 +516,11 @@ static int pre_kvm_run(void *opaque, int vcpu)
 	    usleep(1000);
 	pthread_mutex_lock(&qemu_mutex);
     }
-
-    kvm_set_cr8(kvm_context, vcpu, cpu_get_apic_tpr(env));
-    if (env->interrupt_request & CPU_INTERRUPT_EXIT)
-	return 1;
+    if (!kvm_irqchip) {
+	kvm_set_cr8(kvm_context, vcpu, cpu_get_apic_tpr(env));
+	if (env->interrupt_request & CPU_INTERRUPT_EXIT)
+	    return 1;
+    }
     pthread_mutex_unlock(&qemu_mutex);
     return 0;
 }
