All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: "Xu, Dongxiao" <dongxiao.xu@intel.com>, xen-devel@lists.xensource.com
Cc: Keir Fraser <keir.fraser@eu.citrix.com>
Subject: RE: [PATCH 01/02] pvrdtscp: move the place of write_rdtscp_aux()
Date: Fri, 11 Dec 2009 08:14:21 -0800 (PST)	[thread overview]
Message-ID: <5d279b8a-e744-4677-9ca9-167aad52ab5b@default> (raw)
In-Reply-To: <EADF0A36011179459010BDF5142A457501D13FE81F@pdsmsx502.ccr.corp.intel.com>

I am OK with this patch [01/02] now (see other thread),
though still would like the discussion to continue
about the other patch [02/02].

Thanks,
Dan

> -----Original Message-----
> From: Xu, Dongxiao [mailto:dongxiao.xu@intel.com]
> Sent: Friday, December 11, 2009 8:31 AM
> To: Dan Magenheimer; xen-devel@lists.xensource.com
> Cc: Keir Fraser
> Subject: RE: [Xen-devel][PATCH 01/02] pvrdtscp: move the place of
> write_rdtscp_aux()
> 
> 
> Dan Magenheimer wrote:
> > This patch is wrong for TSC_MODE_PVRDTSCP.  The original
> > code should be left in __update_vcpu_system_time and
> > the context switch code should write to TSC_AUX only
> > if tsc_mode is *NOT* TSC_MODE_PVRDTSCP because the
> > implementation of full rdtscp functionality and
> > TSC_MODE_PVRDTSCP mode are incompatible.
> 
> Could you detail the wrong place? Appreciate for this!
> In my patch, I have done save/restore for guest/host 
> TSC_AUX MSR, so it will not break PVRDTSC logic. 
>  
> > 
> > But I continue to question if this should be done at all.
> > See other thread.
> > 
> >> -----Original Message-----
> >> From: Xu, Dongxiao [mailto:dongxiao.xu@intel.com]
> >> Sent: Friday, December 11, 2009 4:54 AM
> >> To: xen-devel@lists.xensource.com
> >> Cc: Keir Fraser
> >> Subject: [Xen-devel][PATCH 01/02] pvrdtscp: move the place of
> >> write_rdtscp_aux() 
> >> 
> >> 
> >>  Pvrdtscp: move write_rdtscp_aux() to paravirt_ctxt_switch_to()
> >>  - Currently write_rdtscp_aux() is placed in
> >> update_vcpu_system_time(), which
> >> is called by schedule() before context_switch(). This will
> >> break the HVM guest
> >> TSC_AUX state because at this point, MSR hasn't beed saved
> >> for HVM guests.So
> >> put the function in the point when a PV vcpu is really 
> scheduled in.
> >> 
> >> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>

      reply	other threads:[~2009-12-11 16:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-11 11:53 [PATCH 01/02] pvrdtscp: move the place of write_rdtscp_aux() Xu, Dongxiao
2009-12-11 14:51 ` Dan Magenheimer
2009-12-11 15:31   ` Xu, Dongxiao
2009-12-11 16:14     ` Dan Magenheimer [this message]

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=5d279b8a-e744-4677-9ca9-167aad52ab5b@default \
    --to=dan.magenheimer@oracle.com \
    --cc=dongxiao.xu@intel.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.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.