[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] x86/sm{e, a}p: do not enable SMEP/SMAP in PV shim by default on AMD
On Thu, 2023-10-12 at 10:13 +0800, andrew.cooper3@xxxxxxxxxx wrote: > On 11/10/2023 7:34 pm, David Woodhouse wrote: > > But why does the shim even need to turn it off when switching to the > > guest context? Its guest isn't running in supervisor mode so surely it > > doesn't *matter* whether SMEP is enabled or not? Why not just leave it > > on at all times? > > 32bit PV kernels run in Ring1. Which is supervisor and not user. Ah, thanks. > Some older PV kernels do execute on user pages, and don't like getting > SMEP faults when they didn't turn it on to begin with. PV guests never actually had the option to turn SMEP on, did they? (Otherwise I may have to rethink the approach of just putting 'smep=off' onto the shim command line when running under KVM...) Attachment:
smime.p7s
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |