Re: [PATCH] x86/cpu-policy: Hide x2APIC from PV guests

2024-03-04 Thread Andrew Cooper
On 04/03/2024 8:33 am, Jan Beulich wrote: > On 29.02.2024 23:14, Andrew Cooper wrote: >> PV guests can't write to MSR_APIC_BASE (in order to set EXTD), nor can they >> access any of the x2APIC MSR range. Therefore they mustn't see the x2APIC >> CPUID bit saying that they can. > This argumentation

Re: [PATCH] x86/cpu-policy: Hide x2APIC from PV guests

2024-03-04 Thread Jan Beulich
On 29.02.2024 23:14, Andrew Cooper wrote: > PV guests can't write to MSR_APIC_BASE (in order to set EXTD), nor can they > access any of the x2APIC MSR range. Therefore they mustn't see the x2APIC > CPUID bit saying that they can. This argumentation could then be used equally for the APIC bit.

Re: [PATCH] x86/cpu-policy: Hide x2APIC from PV guests

2024-03-01 Thread Andrew Cooper
On 01/03/2024 12:11 pm, Roger Pau Monné wrote: > On Thu, Feb 29, 2024 at 10:14:48PM +, Andrew Cooper wrote: >> PV guests can't write to MSR_APIC_BASE (in order to set EXTD), nor can they >> access any of the x2APIC MSR range. Therefore they mustn't see the x2APIC >> CPUID bit saying that they

Re: [PATCH] x86/cpu-policy: Hide x2APIC from PV guests

2024-03-01 Thread Roger Pau Monné
On Thu, Feb 29, 2024 at 10:14:48PM +, Andrew Cooper wrote: > PV guests can't write to MSR_APIC_BASE (in order to set EXTD), nor can they > access any of the x2APIC MSR range. Therefore they mustn't see the x2APIC > CPUID bit saying that they can. > > Right now, the host x2APIC flag filters

[PATCH] x86/cpu-policy: Hide x2APIC from PV guests

2024-02-29 Thread Andrew Cooper
PV guests can't write to MSR_APIC_BASE (in order to set EXTD), nor can they access any of the x2APIC MSR range. Therefore they mustn't see the x2APIC CPUID bit saying that they can. Right now, the host x2APIC flag filters into PV guests, meaning that PV guests generally see x2APIC except on