RE: [PATCH v10 36/38] x86/fred: Add fred_syscall_init()

2023-09-20 Thread H. Peter Anvin
On September 20, 2023 1:18:14 AM PDT, Thomas Gleixner wrote: >On Wed, Sep 20 2023 at 04:33, Li, Xin3 wrote: >>> > +static inline void fred_syscall_init(void) { >>> > + /* >>> > + * Per FRED spec 5.0, FRED uses the ring 3 FRED entrypoint for SYSCALL >>> > + * and SYSENTER, and ERETU is the only

RE: [PATCH v10 36/38] x86/fred: Add fred_syscall_init()

2023-09-20 Thread Thomas Gleixner
On Wed, Sep 20 2023 at 04:33, Li, Xin3 wrote: >> > +static inline void fred_syscall_init(void) { >> > + /* >> > + * Per FRED spec 5.0, FRED uses the ring 3 FRED entrypoint for SYSCALL >> > + * and SYSENTER, and ERETU is the only legit instruction to return to >> > + * ring 3, as a result the

RE: [PATCH v10 36/38] x86/fred: Add fred_syscall_init()

2023-09-19 Thread Li, Xin3
> > +static inline void fred_syscall_init(void) { > > + /* > > +* Per FRED spec 5.0, FRED uses the ring 3 FRED entrypoint for SYSCALL > > +* and SYSENTER, and ERETU is the only legit instruction to return to > > +* ring 3, as a result there is _no_ need to setup the SYSCALL and > > +

Re: [PATCH v10 36/38] x86/fred: Add fred_syscall_init()

2023-09-19 Thread Thomas Gleixner
On Wed, Sep 13 2023 at 21:48, Xin Li wrote: > +static inline void fred_syscall_init(void) > +{ > + /* > + * Per FRED spec 5.0, FRED uses the ring 3 FRED entrypoint for SYSCALL > + * and SYSENTER, and ERETU is the only legit instruction to return to > + * ring 3, as a result there

[PATCH v10 36/38] x86/fred: Add fred_syscall_init()

2023-09-13 Thread Xin Li
From: "H. Peter Anvin (Intel)" Add a syscall initialization function fred_syscall_init() for FRED, and this is really just to skip setting up SYSCALL/SYSENTER related MSRs, e.g., MSR_LSTAR and invalidate SYSENTER configurations, because FRED uses the ring 3 FRED entrypoint for SYSCALL and SYSENTE