xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: "Zhang, Yang Z" <yang.z.zhang@intel.com>
Cc: "Dong, Eddie" <eddie.dong@intel.com>,
	Jacob Shin <jacob.shin@amd.com>,
	"suravee.suthikulpanit@amd.com" <suravee.suthikulpanit@amd.com>,
	Jan Beulich <JBeulich@suse.com>,
	xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] Nested VMX: CR emulation fix up
Date: Wed, 09 Oct 2013 08:54:27 -0400	[thread overview]
Message-ID: <52555203.1060001@oracle.com> (raw)
In-Reply-To: <A9667DDFB95DB7438FA9D7D576C3D87E0A93304B@SHSMSX104.ccr.corp.intel.com>

On 10/09/2013 03:28 AM, Zhang, Yang Z wrote:
> Boris Ostrovsky wrote on 2013-10-08:
>> On 10/08/2013 04:31 AM, Jan Beulich wrote:
>>
>>> Considering that this touches code common with nested SVM, I'd
>>> expect the SVM maintainers to have to approve of the change in any case.
>>>
>>> In particular I wonder whether this addition isn't obsoleting SVM's
>>> ns_cr0.
>>>
>> I am not sure whether ns_cr0 (replaced with nv_guest_cr[0]) would then
>> be updated in paths where it currently is not.
>>
>> For example in nsvm_vmcb_prepare4vmrun():
>>
>>       /* CR0 */ svm->ns_cr0 = v->arch.hvm_vcpu.guest_cr[0]; cr0 =
>>       nestedsvm_fpu_vmentry(svm->ns_cr0, ns_vmcb, n1vmcb, n2vmcb);
>>       v->arch.hvm_vcpu.guest_cr[0] = ns_vmcb->_cr0; rc =
>>       hvm_set_cr0(cr0);  <------ nv_guest_cr[0] will get set here.
> I am not familiar with SVM code. If you think this change may impact the nested SVM. Then I will move the change to VMX specific code.

No, it doesn't affect SVM code. I was responding to Jan's suggestion to 
replace
SVM's ns_cr0 with the new guest_cr[0].

-boris

  reply	other threads:[~2013-10-09 12:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-08  7:29 [PATCH] Nested VMX: CR emulation fix up Yang Zhang
2013-10-08  7:43 ` Dong, Eddie
2013-10-08  8:13   ` Zhang, Yang Z
2013-10-08  8:31 ` Jan Beulich
2013-10-08 15:46   ` Boris Ostrovsky
2013-10-09  7:18     ` Jan Beulich
2013-10-09  7:28     ` Zhang, Yang Z
2013-10-09 12:54       ` Boris Ostrovsky [this message]
2013-10-10  0:31         ` Zhang, Yang Z
2013-10-10 13:25           ` Boris Ostrovsky
2013-10-11  1:01             ` Zhang, Yang Z
2013-10-11  6:38               ` Jan Beulich
2013-10-09  7:22   ` Zhang, Yang Z

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=52555203.1060001@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=eddie.dong@intel.com \
    --cc=jacob.shin@amd.com \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=yang.z.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 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).