All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][lapic5] kvm: qemu: prevent set wrong cr8 when using irqchip
@ 2007-08-16 14:13 Yang, Sheng
       [not found] ` <DB3BD37E3533EE46BED2FBA80995557F6C5078-wq7ZOvIWXbM/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Yang, Sheng @ 2007-08-16 14:13 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 734 bytes --]

this allows running 64-bit Windows.

Signed-off-by: Sheng Yang <sheng.yang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 qemu/qemu-kvm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index 3fc32f7..af7b1d8 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -516,8 +516,8 @@ 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 (!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);
-- 
1.5.2


[-- Attachment #2: kvm-qemu-prevent-set-wrong-cr8-when-using-irqchip.patch --]
[-- Type: application/octet-stream, Size: 898 bytes --]

From 6069de2206f60e9fee4356e1ba929b02a757514a Mon Sep 17 00:00:00 2001
From: Sheng Yang <sheng.yang@intel.com>
Date: Thu, 16 Aug 2007 22:02:59 +0800
Subject: [PATCH] kvm: qemu: prevent set wrong cr8 when using irqchip

this allows running 64-bit Windows.

Signed-off-by: Sheng Yang <sheng.yang@intel.com>
---
 qemu/qemu-kvm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/qemu/qemu-kvm.c b/qemu/qemu-kvm.c
index 3fc32f7..af7b1d8 100644
--- a/qemu/qemu-kvm.c
+++ b/qemu/qemu-kvm.c
@@ -516,8 +516,8 @@ 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 (!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);
-- 
1.5.2


[-- Attachment #3: Type: text/plain, Size: 315 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-08-17 12:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-16 14:13 [PATCH][lapic5] kvm: qemu: prevent set wrong cr8 when using irqchip Yang, Sheng
     [not found] ` <DB3BD37E3533EE46BED2FBA80995557F6C5078-wq7ZOvIWXbM/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-08-17  6:49   ` [PATCH][lapic5] kvm: qemu: prevent set wrong cr8 whenusing irqchip He, Qing
     [not found]     ` <37E52D09333DE2469A03574C88DBF40FA9C1D4-wq7ZOvIWXbM/UvCtAeCM4rfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-08-17 12:52       ` Avi Kivity
2007-08-17 12:39   ` [PATCH][lapic5] kvm: qemu: prevent set wrong cr8 when using irqchip Avi Kivity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.