Re: [PATCH 6/6] x86/hvm: Support PKS

2023-01-09 Thread Andrew Cooper
On 21/12/2021 12:18 pm, Jan Beulich wrote: > On 16.12.2021 10:54, Andrew Cooper wrote: >> With all infrastructure in place, advertise the PKS CPUID bit to guests, and >> let them set CR4.PKS. >> >> Experiment with a tweak to the layout of hvm_cr4_guest_valid_bits() so future >> additions will be

Re: [PATCH 6/6] x86/hvm: Support PKS

2021-12-21 Thread Jan Beulich
On 16.12.2021 10:54, Andrew Cooper wrote: > With all infrastructure in place, advertise the PKS CPUID bit to guests, and > let them set CR4.PKS. > > Experiment with a tweak to the layout of hvm_cr4_guest_valid_bits() so future > additions will be just a single added line. > > The current context

[PATCH 6/6] x86/hvm: Support PKS

2021-12-16 Thread Andrew Cooper
With all infrastructure in place, advertise the PKS CPUID bit to guests, and let them set CR4.PKS. Experiment with a tweak to the layout of hvm_cr4_guest_valid_bits() so future additions will be just a single added line. The current context switching behaviour is tied to how VT-x works, so leave