From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
xen-devel <xen-devel@lists.xen.org>
Subject: Re: MSR_SPEC_CTRL intercept
Date: Wed, 23 May 2018 18:27:33 -0400 [thread overview]
Message-ID: <32a39d93-613e-e4ed-8709-3ba2188c6d29@oracle.com> (raw)
In-Reply-To: <6a4a2b9d-270a-26df-077b-b3409042d46a@citrix.com>
On 05/23/2018 06:09 PM, Andrew Cooper wrote:
> On 23/05/2018 22:59, Boris Ostrovsky wrote:
>> On 05/23/2018 05:49 PM, Andrew Cooper wrote:
>>> On 23/05/2018 22:40, Boris Ostrovsky wrote:
>>>> Looking at vmx_cpuid_policy_changed():
>>>>
>>>>
>>>> if ( cp->feat.ibrsb )
>>>> vmx_clear_msr_intercept(v, MSR_SPEC_CTRL, VMX_MSR_RW);
>>>> else
>>>> vmx_set_msr_intercept(v, MSR_SPEC_CTRL, VMX_MSR_RW);
>>>>
>>>>
>>>> Is there a reason why we are not checking cp->feat.ssbd as well?
>>> Yes. Read the final hunk of
>>> http://xenbits.xen.org/gitweb/?p=xen.git;a=commitdiff;h=9df52a25e0e95a0b9971aa2fc26c5c6a5cbdf4ef
>> SSBD implies IBRS --- yes, that's true. But not the other way around, no?
> That's not the way the dependency logic works. That hunk says "if you
> haven't got IBRSB, then you don't have STIBP or SSBD either".
I guess my actual question is --- If you have IBRSB but not SSBD (which
is what we have today), do we want to intercept the access and screen
for the guest writing the SSBD bit?
-boris
>
> It is, as documented, not completely strictly true (according to the
> latest revision of the spec), but is there deliberately to simply so we
> don't give the guest implausible configurations. There is not a
> processor with STIBP but without IBRSB, nor is there one with SSBD
> without STIBP or IBRSB, and it is unlikely that future processors would
> change this arrangement.
>
> A side effect of prohibiting the implausible configurations is that the
> logic in Xen is much more simple.
>
> ~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-05-23 22:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-23 21:40 MSR_SPEC_CTRL intercept Boris Ostrovsky
2018-05-23 21:49 ` Andrew Cooper
2018-05-23 21:59 ` Boris Ostrovsky
2018-05-23 22:09 ` Andrew Cooper
2018-05-23 22:27 ` Boris Ostrovsky [this message]
2018-05-23 22:34 ` Andrew Cooper
2018-05-23 22:53 ` Boris Ostrovsky
2018-05-23 22:56 ` Andrew Cooper
2018-05-24 8:13 ` Jan Beulich
2018-05-24 10:13 ` Andrew Cooper
2018-05-24 10:23 ` Jan Beulich
2018-05-25 15:25 ` Andrew Cooper
2018-05-25 15:42 ` Jan Beulich
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=32a39d93-613e-e4ed-8709-3ba2188c6d29@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=andrew.cooper3@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.