From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Centrino Duo not working so hot Date: Wed, 13 Jun 2007 11:04:55 +0300 Message-ID: <466FA527.8090808@qumranet.com> References: <9c21eeae0706080923y4a049ff7v4176aa0041e772f1@mail.gmail.com> <466BAF7D.1080700@qumranet.com> <9c21eeae0706111737r4103dbd8x10e9e340f7e686fd@mail.gmail.com> <466E4043.9070903@qumranet.com> <9c21eeae0706121700x259f5709v68cac6ef021dc3b@mail.gmail.com> <9c21eeae0706121703t1ce33b07l93cf3b75610368c2@mail.gmail.com> <9c21eeae0706121714t12ca79a0lfbfa6445e94d015e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080309090309080802030407" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: David Brown Return-path: In-Reply-To: <9c21eeae0706121714t12ca79a0lfbfa6445e94d015e-JsoAwUIsXosN+BqQ9rBEUg@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. --------------080309090309080802030407 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit David Brown wrote: >> Yeah the upgrade to sid went okay so there must be something else >> wrong with my netboot setup. >> >> Thanks for the patch when will it make it into the default kernel? > > Uhm, crap... found some more stuff didn't seem to affect the guest OS > or the host for that matter... > > This is from dmesg... first line is from when the tap device hooks > into the bridge for the network the rest is when things start > loading... > > br0: port 2(tap1) entering learning state > vmwrite error: reg 2010 value 1f92 (err 8208) That patch is hopelessly broken; try this instead (revert the old one first). -- error compiling committee.c: too many arguments to function --------------080309090309080802030407 Content-Type: text/x-patch; name="vmx-tsc-sync.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vmx-tsc-sync.patch" diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index b909b54..08908c0 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c @@ -160,6 +160,7 @@ static void __vcpu_clear(void *arg) vmcs_clear(vcpu->vmcs); if (per_cpu(current_vmcs, cpu) == vcpu->vmcs) per_cpu(current_vmcs, cpu) = NULL; + rdtscll(vcpu->host_tsc); } static void vcpu_clear(struct kvm_vcpu *vcpu) @@ -376,6 +377,7 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu) { u64 phys_addr = __pa(vcpu->vmcs); int cpu; + u64 tsc_this, delta; cpu = get_cpu(); @@ -409,6 +411,13 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu) rdmsrl(MSR_IA32_SYSENTER_ESP, sysenter_esp); vmcs_writel(HOST_IA32_SYSENTER_ESP, sysenter_esp); /* 22.2.3 */ + + /* + * Make sure the time stamp counter is monotonous. + */ + rdtscll(tsc_this); + delta = vcpu->host_tsc - tsc_this; + vmcs_write64(TSC_OFFSET, vmcs_read64(TSC_OFFSET) + delta); } } --------------080309090309080802030407 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --------------080309090309080802030407 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 --------------080309090309080802030407--