public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: "Nadav Har'El" <nyh@math.technion.ac.il>
Cc: kvm@vger.kernel.org, Julian Stecklina <js@alien8.de>,
	Alexander Graf <agraf@suse.de>,
	"Roedel, Joerg" <Joerg.Roedel@amd.com>
Subject: Re: PATCH: nVMX: Better MSR_IA32_FEATURE_CONTROL handling
Date: Thu, 15 Mar 2012 20:08:56 +0200	[thread overview]
Message-ID: <4F623038.2080201@redhat.com> (raw)
In-Reply-To: <20120315174014.GA21487@fermat.math.technion.ac.il>

On 03/15/2012 07:40 PM, Nadav Har'El wrote:
> On Wed, Mar 07, 2012, Avi Kivity wrote about "Re: PATCH: nVMX: Better MSR_IA32_FEATURE_CONTROL handling":
> > >  	struct page *apic_access_page;
> > > +	u64 msr_ia32_feature_control;
> > >  };
> >...
> > (msrs_to_save).  The variable itself should live in vcpu->arch, even if
> > some bits are vendor specific.
>
> Does this MSR exist in AMD? I was under the impression that it is an
> Intel-only MSR, and that AMD has something different, the VM_CR MSR,
> so it didn't make sense to put this in vcpu->arch. Is my impression
> wrong?

vmx.c is not about guest-side Intel features, it's about vmx specific
implementation of x86 features.  Whenever possible we put things in
x86.c so if the other vendor picks up the feature, it will just work.

Nested vmx is of course impossible to put in x86.c.  This MSR is
somewhat on the borderline, there's nothing vendor specific about the
_implementation_, but it all the features it controls are very vendor
specific.  So I guess it can stay in vmx.c, if you can make it available
for save/restore.

> I seems, by the way, that svm.c has vm_cr_msr in svm->nested, basically the
> same what I did, not in vcpu->arch. Why is this bad?

The same reasoning applies.

> Also, it seems that VM_CR is also not on the list on msrs_to_save.
> A bug?

Yes.

-- 
error compiling committee.c: too many arguments to function


  reply	other threads:[~2012-03-15 18:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-07 15:58 PATCH: nVMX: Better MSR_IA32_FEATURE_CONTROL handling Nadav Har'El
2012-03-07 16:18 ` Avi Kivity
2012-03-15 17:40   ` Nadav Har'El
2012-03-15 18:08     ` Avi Kivity [this message]
2012-03-19 16:53   ` Nadav Har'El
2012-03-19 17:03     ` Nadav Har'El
2012-03-21 13:09     ` 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=4F623038.2080201@redhat.com \
    --to=avi@redhat.com \
    --cc=Joerg.Roedel@amd.com \
    --cc=agraf@suse.de \
    --cc=js@alien8.de \
    --cc=kvm@vger.kernel.org \
    --cc=nyh@math.technion.ac.il \
    /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