On 09.05.2023 12:05, Andrew Cooper wrote: > On 08/05/2023 2:18 pm, Jan Beulich wrote: >> On 05.05.2023 19:57, Alejandro Vallejo wrote: >>> This is in order to aid guests of AMD hardware that we have exposed >>> CPUID faulting to. If they try to modify the Intel MSR that enables >>> the feature, trigger levelling so AMD's version of it (CpuidUserDis) >>> is used instead. >>> >>> Signed-off-by: Alejandro Vallejo <alejandro.vall...@cloud.com> >>> --- >>> xen/arch/x86/msr.c | 9 ++++++++- >>> 1 file changed, 8 insertions(+), 1 deletion(-) >> Don't you also need to update cpu-policy.c:calculate_host_policy() >> for the guest to actually know it can use the functionality? Which >> in turn would appear to require some form of adjustment to >> lib/x86/policy.c:x86_cpu_policies_are_compatible(). > > I asked Alejandro to do it like this. > > Advertising this to guests requires plumbing another MSR into the > infrastructure which isn't quite set up properly let, and is in flux > from my work. > > For now, this just lets Xen enforce the policy over PV guests, which is > an improvement in and of itself.
But as per the title this patch is about HVM guests (aiui the PV aspect is taken care of already without the patch here). In any event - if the omissions are intentional (for the time being), then I think that wants mentioning in the description. Jan