From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Windows XP internal Power error Date: Mon, 18 Dec 2006 11:32:19 +0200 Message-ID: <45866023.6090508@qumranet.com> References: <64F9B87B6B770947A9F8391472E03216098CC58B@ehost011-8.exch011.intermedia.net> <20061214153047.6v3a82ev5c4k8004@webmail.provincia.torino.it> <45816BC9.2000905@qumranet.com> <20061214165724.5nf6l4zl13aoswk4@webmail.provincia.torino.it> <4582328B.3030501@qumranet.com> <20061215080629.ym6lnw1soydc044k@webmail.provincia.torino.it> <45839CD6.3080903@qumranet.com> <20061218083243.s7o07wy9mvwwgg4o@webmail.provincia.torino.it> <45864F9B.1070808@qumranet.com> <20061218093511.uycqxxmsbpoookoo@webmail.provincia.torino.it> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010002090405090304070300" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: To: ignazio.cassano-VeGButH3FaVpxaeRVNJOcDUZDU+1vuVT@public.gmane.org In-Reply-To: <20061218093511.uycqxxmsbpoookoo-2RFepEojUI1V4YG60fcVpWnFp5FU0k5wNRkNT7W+5VM@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------010002090405090304070300 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ignazio.cassano-VeGButH3FaVpxaeRVNJOcDUZDU+1vuVT@public.gmane.org wrote: > Hi, modified NR_BAD_MSRS, dmesg reports: > ok, please revert all patches an apply the attached. -- error compiling committee.c: too many arguments to function --------------010002090405090304070300 Content-Type: text/x-patch; name="dont-munge-efer.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dont-munge-efer.patch" Index: vmx.c =================================================================== --- vmx.c (revision 4120) +++ vmx.c (working copy) @@ -74,7 +74,7 @@ #ifdef CONFIG_X86_64 MSR_SYSCALL_MASK, MSR_LSTAR, MSR_CSTAR, MSR_KERNEL_GS_BASE, #endif - MSR_EFER, MSR_K6_STAR, + MSR_K6_STAR, }; #define NR_VMX_MSR (sizeof(vmx_msr_index) / sizeof(*vmx_msr_index)) @@ -754,7 +754,6 @@ vcpu->shadow_efer |= EFER_LMA; - find_msr_entry(vcpu, MSR_EFER)->data |= EFER_LMA | EFER_LME; vmcs_write32(VM_ENTRY_CONTROLS, vmcs_read32(VM_ENTRY_CONTROLS) | VM_ENTRY_CONTROLS_IA32E_MASK); @@ -824,22 +823,15 @@ static void vmx_set_efer(struct kvm_vcpu *vcpu, u64 efer) { - struct vmx_msr_entry *msr = find_msr_entry(vcpu, MSR_EFER); - vcpu->shadow_efer = efer; - if (efer & EFER_LMA) { + if (efer & EFER_LMA) vmcs_write32(VM_ENTRY_CONTROLS, vmcs_read32(VM_ENTRY_CONTROLS) | VM_ENTRY_CONTROLS_IA32E_MASK); - msr->data = efer; - - } else { + else vmcs_write32(VM_ENTRY_CONTROLS, vmcs_read32(VM_ENTRY_CONTROLS) & ~VM_ENTRY_CONTROLS_IA32E_MASK); - - msr->data = efer & ~EFER_LME; - } } #endif --------------010002090405090304070300 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --------------010002090405090304070300 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------010002090405090304070300--