From: Avi Kivity <avi@redhat.com>
To: "Auld, Will" <will.auld@intel.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"Zhang, Xiantao" <xiantao.zhang@intel.com>
Subject: Re: [PATCH] Enabling IA32_TSC_ADJUST for guest VM
Date: Thu, 20 Sep 2012 14:15:36 +0300 [thread overview]
Message-ID: <505AFAD8.5000106@redhat.com> (raw)
In-Reply-To: <96EC5A4F3149B74492D2D9B9B1602C2728B61A0D@ORSMSX108.amr.corp.intel.com>
On 09/19/2012 08:44 PM, Auld, Will wrote:
> @@ -2241,6 +2244,13 @@ static int vmx_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data)
> }
> ret = kvm_set_msr_common(vcpu, msr_index, data);
> break;
> + case MSR_TSC_ADJUST:
> +#define DUMMY 1
> + vmx_adjust_tsc_offset(vcpu,
> + (s64)(data-vcpu->arch.tsc_adjust),
> + (bool)DUMMY);
> + vcpu->arch.tsc_adjust = (s64)data;
> + break;
> case MSR_TSC_AUX:
> if (!vmx->rdtscp_enabled)
> return 1;
Writes to MSR_IA32_TSC also need to adjust MSR_IA32_TSC_ADJUST.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2012-09-20 11:15 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-19 17:44 [PATCH] Enabling IA32_TSC_ADJUST for guest VM Auld, Will
2012-09-20 11:13 ` Avi Kivity
2012-09-20 11:15 ` Avi Kivity [this message]
2012-09-26 21:34 ` Marcelo Tosatti
2012-09-26 22:58 ` Auld, Will
2012-09-27 0:29 ` Marcelo Tosatti
2012-09-27 0:30 ` Marcelo Tosatti
2012-09-27 0:50 ` Auld, Will
2012-09-27 11:31 ` Marcelo Tosatti
2012-09-27 11:48 ` Marcelo Tosatti
2012-09-28 2:07 ` Auld, Will
2012-09-28 13:24 ` Marcelo Tosatti
2012-10-08 17:30 ` Marcelo Tosatti
2012-10-09 12:12 ` Avi Kivity
2012-10-09 14:24 ` Marcelo Tosatti
2012-10-09 14:26 ` Avi Kivity
2012-10-09 14:27 ` Marcelo Tosatti
2012-10-09 14:30 ` Avi Kivity
2012-10-09 15:52 ` Marcelo Tosatti
2012-10-09 16:10 ` Auld, Will
2012-10-10 12:52 ` Marcelo Tosatti
2012-10-11 0:47 ` Auld, Will
2012-10-11 8:56 ` Marcelo Tosatti
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=505AFAD8.5000106@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=will.auld@intel.com \
--cc=xiantao.zhang@intel.com \
/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.