From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>, Shuai Ruan <shuai.ruan@linux.intel.com>
Cc: kevin.tian@intel.com, wei.liu2@citrix.com,
Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com,
eddie.dong@intel.com, ian.jackson@eu.citrix.com,
xen-devel@lists.xen.org, jun.nakajima@intel.com, keir@xen.org
Subject: Re: [V7 3/4] x86/xsaves: enable xsaves/xrstors for hvm guest
Date: Thu, 22 Oct 2015 15:26:02 +0100 [thread overview]
Message-ID: <5628F1FA.1020909@citrix.com> (raw)
In-Reply-To: <56290CB002000078000AD933@prv-mh.provo.novell.com>
On 22/10/15 15:20, Jan Beulich wrote:
>>>> On 20.10.15 at 10:21, <shuai.ruan@linux.intel.com> wrote:
>> @@ -4784,6 +4804,13 @@ int hvm_msr_write_intercept(unsigned int msr, uint64_t msr_content,
>> return X86EMUL_EXCEPTION;
>> break;
>>
>> + case MSR_IA32_XSS:
>> + /* No XSS features currently supported for guests. */
>> + if ( !cpu_has_xsaves || msr_content != 0 )
>> + goto gp_fault;
>> + v->arch.hvm_vcpu.msr_xss = msr_content;
>> + break;
> Considering you add this write (and the msr_xss field in the first place)
> despite it always being zero, I'd really like you to also add code
> supporting save/restore of this new MSR. Or did I overlook something?
I suppose that does mean that we don't strictly need
interception/management of MSR_IA32_XSS yet, but it is ground work for
the future work to enable Processor Trace for HVM guests.
~Andrew
next prev parent reply other threads:[~2015-10-22 14:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 8:21 [V7 0/4] add xsaves/xrstors support Shuai Ruan
2015-10-20 8:21 ` [V7 1/4] x86/xsaves: add basic definitions/helpers to support xsaves Shuai Ruan
2015-10-20 13:26 ` Andrew Cooper
2015-10-22 4:20 ` Shuai Ruan
2015-10-20 8:21 ` [V7 2/4] x86/xsaves: enable xsaves/xrstors/xsavec in xen Shuai Ruan
2015-10-22 12:13 ` Jan Beulich
2015-10-20 8:21 ` [V7 3/4] x86/xsaves: enable xsaves/xrstors for hvm guest Shuai Ruan
2015-10-22 14:20 ` Jan Beulich
2015-10-22 14:26 ` Andrew Cooper [this message]
2015-10-22 14:49 ` Jan Beulich
2015-10-20 8:21 ` [V7 4/4] libxc: expose xsaves/xgetbv1/xsavec to " Shuai Ruan
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=5628F1FA.1020909@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=eddie.dong@intel.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jun.nakajima@intel.com \
--cc=keir@xen.org \
--cc=kevin.tian@intel.com \
--cc=shuai.ruan@linux.intel.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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 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.