public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Sheng Yang <sheng@linux.intel.com>
To: kvm@vger.kernel.org
Cc: Kurt Kiefer <kekiefer@gmail.com>
Subject: Re: Question about guest MSR loading/saving (Intel)
Date: Tue, 2 Feb 2010 10:53:23 +0800	[thread overview]
Message-ID: <201002021053.23730.sheng@linux.intel.com> (raw)
In-Reply-To: <0910BB5A-E4FA-4085-978E-D6374A1376B7@gmail.com>

On Tuesday 02 February 2010 09:57:08 Kurt Kiefer wrote:
> Hi all,
> 
> This is a vague/general question. For some background: I have a reason
> (control of IA32_PERF_GLOBAL_CTRL) for loading/saving MSRs on VM-entry/
> exit. To get this to work correctly, I made changes to use the
> conventional VMX MSR load areas of the VMCS for this particular MSR.
> Works great.
> 
> Is there a particular reason why MSRs are currently loaded/saved
> through KVM's unconventional facilities (vmx.c:save_msrs(),
> vmx.c:load_msrs()), rather than through VM entry/exit MSR load regions
> in the VMCS? I see that only long mode guests on x86_64 are effected
> by this.
> 
> Any insight could be useful. Do you think MSR loading via VMCS would
> be faster? Are there downsides to doing it one way or the other?
> 

Because not all MSRs are supported for automatically save/load when VMX 
transition happened. You used IA32_PERF_GLOBAL_CTRL is supported. But not the 
ones saved in save_msrs().

-- 
regards
Yang, Sheng 

  reply	other threads:[~2010-02-02  2:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-02  1:57 Question about guest MSR loading/saving (Intel) Kurt Kiefer
2010-02-02  2:53 ` Sheng Yang [this message]
2010-02-04 19:12 ` Avi Kivity

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=201002021053.23730.sheng@linux.intel.com \
    --to=sheng@linux.intel.com \
    --cc=kekiefer@gmail.com \
    --cc=kvm@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox