Re: [PATCH 2/4] x86/spec-ctrl: Synthesize RSBA/RRSBA bits with older microcode

2023-05-30 Thread Jan Beulich
On 30.05.2023 12:00, Andrew Cooper wrote: > On 30/05/2023 10:18 am, Jan Beulich wrote: >> On 26.05.2023 13:06, Andrew Cooper wrote: >>> @@ -687,6 +697,32 @@ static bool __init retpoline_calculations(void) >>> if ( safe ) >>> return true; >>> >>> +/* >>> + * The meaning of th

Re: [PATCH 2/4] x86/spec-ctrl: Synthesize RSBA/RRSBA bits with older microcode

2023-05-30 Thread Andrew Cooper
On 30/05/2023 10:18 am, Jan Beulich wrote: > On 26.05.2023 13:06, Andrew Cooper wrote: >> @@ -687,6 +697,32 @@ static bool __init retpoline_calculations(void) >> if ( safe ) >> return true; >> >> +/* >> + * The meaning of the RSBA and RRSBA bits have evolved over time. The

Re: [PATCH 2/4] x86/spec-ctrl: Synthesize RSBA/RRSBA bits with older microcode

2023-05-30 Thread Jan Beulich
On 26.05.2023 13:06, Andrew Cooper wrote: > @@ -687,6 +697,32 @@ static bool __init retpoline_calculations(void) > if ( safe ) > return true; > > +/* > + * The meaning of the RSBA and RRSBA bits have evolved over time. The > + * agreed upon meaning at the time of writin

[PATCH 2/4] x86/spec-ctrl: Synthesize RSBA/RRSBA bits with older microcode

2023-05-26 Thread Andrew Cooper
In order to level a VM safely for migration, the toolstack needs to know the RSBA/RRSBA properties of the CPU, whether or not they happen to be enumerated. Synthesize the bits when missing. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Roger Pau Monné CC: Wei Liu --- xen/arch/x86/incl