From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: David Brown <dmlb2000-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Centrino Duo not working so hot
Date: Wed, 13 Jun 2007 11:04:55 +0300 [thread overview]
Message-ID: <466FA527.8090808@qumranet.com> (raw)
In-Reply-To: <9c21eeae0706121714t12ca79a0lfbfa6445e94d015e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 688 bytes --]
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
[-- Attachment #2: vmx-tsc-sync.patch --]
[-- Type: text/x-patch, Size: 990 bytes --]
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);
}
}
[-- Attachment #3: Type: text/plain, Size: 286 bytes --]
-------------------------------------------------------------------------
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/
[-- 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
next prev parent reply other threads:[~2007-06-13 8:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-08 16:23 Centrino Duo not working so hot David Brown
[not found] ` <9c21eeae0706080923y4a049ff7v4176aa0041e772f1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-10 7:59 ` Avi Kivity
[not found] ` <466BAF7D.1080700-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-12 0:37 ` David Brown
[not found] ` <9c21eeae0706111737r4103dbd8x10e9e340f7e686fd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-12 6:42 ` Avi Kivity
[not found] ` <466E4043.9070903-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-13 0:00 ` David Brown
[not found] ` <9c21eeae0706121700x259f5709v68cac6ef021dc3b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13 0:03 ` David Brown
[not found] ` <9c21eeae0706121703t1ce33b07l93cf3b75610368c2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13 0:14 ` David Brown
[not found] ` <9c21eeae0706121714t12ca79a0lfbfa6445e94d015e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-13 8:04 ` Avi Kivity [this message]
[not found] ` <466FA527.8090808-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-13 16:51 ` David Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=466FA527.8090808@qumranet.com \
--to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
--cc=dmlb2000-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.