|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [Patch] Disallow SMEP for PV guest
On 01/06/2011 16:17, "Li, Xin" <xin.li@xxxxxxxxx> wrote:
>> On Wed, Jun 01, 2011 at 10:31:12PM +0800, Yang, Wei Y wrote:
>>> This patch disallows SMEP for PV guest.
>>
>> What are the reasons for it? What do we gain from it?
>
> X86_64 pv guests runs in ring3, which SMEP doesn't apply to.
>
> Kernel supports SMEP will set it thru writing to CR4, probably we can silently
> ignore such writes from PV guests, but better to not let guest see it.
Well, maybe. But if you hide the feature from the guest in CPUID then you
should also hide it in CR4, which will involve some messing with
real_cr4_to_pv_guest_cr4() and pv_guest_cr4_to_real_cr4(), in a fairly
obvious manner. And you should hide it in dom0's CPUID too.
-- Keir
> Thanks!
> -Xin
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|