kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org, mtosatti@redhat.com
Subject: Re: [PATCH] KVM: vmx: restore MSR_IA32_DEBUGCTLMSR after VMEXIT
Date: Sun, 12 Aug 2012 20:28:38 +0300	[thread overview]
Message-ID: <20120812172838.GA23287@redhat.com> (raw)
In-Reply-To: <5027B260.5060606@redhat.com>

On Sun, Aug 12, 2012 at 04:40:48PM +0300, Avi Kivity wrote:
> On 08/12/2012 04:25 PM, Gleb Natapov wrote:
> 
> >> How expensive is this?  We may want a follow-on patch to cache it in a
> >> per-cpu variable.
> >> 
> > I have patches ready. I couldn't measure any overhead of the
> > rdmsr(MSR_IA32_DEBUGCTLMSR).
> > 
> 
> Do you mean while running kvm?  How about just running it in a loop?
> 
No, I mean running it in a loop. Loop with or without
rdmsr(MSR_IA32_DEBUGCTLMSR) takes the same time as measured by rdtsc.


--
			Gleb.

  reply	other threads:[~2012-08-12 17:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-12 13:12 [PATCH] KVM: vmx: restore MSR_IA32_DEBUGCTLMSR after VMEXIT Gleb Natapov
2012-08-12 13:22 ` Avi Kivity
2012-08-12 13:25   ` Gleb Natapov
2012-08-12 13:40     ` Avi Kivity
2012-08-12 17:28       ` Gleb Natapov [this message]
2012-08-13  7:55         ` Avi Kivity
2012-08-13 22:07 ` 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=20120812172838.GA23287@redhat.com \
    --to=gleb@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).