Please try with attached patch.

-----Original Message-----
From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Tue 19/12/2006 13:15
To: Avi Kivity
Cc: kvm-devel@lists.sourceforge.net
Subject: Re: [kvm-devel] Windows XP internal Power error
 
Sorry, you can find it attacched here.
I use fedora core 6 distrib.
Really with the last patch, first tile I boot Windows Xp guest, the 
following is displayed in /var/log/messages:

<snipped>

Dec 19 12:10:10 timb194083 kernel: RIP: 0010:[<ffffffff8850a189>] 
[<ffffffff8850a189>] :kvm:load_msrs+0x13/0x22

<snipped>

Dec 19 12:10:10 timb194083 kernel: Call Trace:
Dec 19 12:10:10 timb194083 kernel:  [<ffffffff88521b37>]
:kvm_intel:vmx_vcpu_run+0x363/0x403

<snipped>
--- kernel/vmx.c	2006-12-19 14:35:47.000000000 +0200
+++ kernel/vmx.c.bad_msrs_fix	2006-12-19 14:34:58.000000000 +0200
@@ -1158,11 +1158,11 @@
 
 	nr_good_msrs = vcpu->nmsrs - NR_BAD_MSRS;
 	vmcs_writel(VM_ENTRY_MSR_LOAD_ADDR,
-		    virt_to_phys(vcpu->guest_msrs + NR_BAD_MSRS));
+		    virt_to_phys(vcpu->guest_msrs));
 	vmcs_writel(VM_EXIT_MSR_STORE_ADDR,
-		    virt_to_phys(vcpu->guest_msrs + NR_BAD_MSRS));
+		    virt_to_phys(vcpu->guest_msrs));
 	vmcs_writel(VM_EXIT_MSR_LOAD_ADDR,
-		    virt_to_phys(vcpu->host_msrs + NR_BAD_MSRS));
+		    virt_to_phys(vcpu->host_msrs));
 	vmcs_write32_fixedbits(MSR_IA32_VMX_EXIT_CTLS_MSR, VM_EXIT_CONTROLS,
 		     	       (HOST_IS_64 << 9));  /* 22.2,1, 20.7.1 */
 	vmcs_write32(VM_EXIT_MSR_STORE_COUNT, nr_good_msrs); /* 22.2.2 */
@@ -1720,8 +1720,8 @@
 	fx_save(vcpu->host_fx_image);
 	fx_restore(vcpu->guest_fx_image);
 
-	save_msrs(vcpu->host_msrs, vcpu->nmsrs);
-	load_msrs(vcpu->guest_msrs, NR_BAD_MSRS);
+	save_msrs(vcpu->host_msrs, vcpu->nmsrs - NR_BAD_MSRS);
+	load_msrs(vcpu->guest_msrs, vcpu->nmsrs - NR_BAD_MSRS);
 
 	asm (
 		/* Store host registers */
@@ -1844,8 +1844,8 @@
 
 	++kvm_stat.exits;
 
-	save_msrs(vcpu->guest_msrs, NR_BAD_MSRS);
-	load_msrs(vcpu->host_msrs, NR_BAD_MSRS);
+	save_msrs(vcpu->guest_msrs, vcpu->nmsrs - NR_BAD_MSRS);
+	load_msrs(vcpu->host_msrs, vcpu->nmsrs - NR_BAD_MSRS);
 
 	fx_save(vcpu->guest_fx_image);
 	fx_restore(vcpu->host_fx_image);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to