On 31.03.2022 11:27, Roger Pau Monne wrote: > Use the logic to set shadow SPEC_CTRL values in order to implement > support for VIRT_SPEC_CTRL (signaled by VIRT_SSBD CPUID flag) for HVM > guests. This includes using the spec_ctrl vCPU MSR variable to store > the guest set value of VIRT_SPEC_CTRL.SSBD, which will be OR'ed with > any SPEC_CTRL values being set by the guest. > > On hardware having SPEC_CTRL VIRT_SPEC_CTRL will not be offered by > default to guests. VIRT_SPEC_CTRL will only be part of the max CPUID > policy so it can be enabled for compatibility purposes. > > Some reasoning regarding why '!s' is used to annotate the feature: > * '!': the feature might be exposed to guests even when not present > on the host hardware.
As mentioned before I don't think ! is to be used for this particular purpose. But this needs input from Andrew. Hence ... > * 's': the feature won't be exposed by default. > > Suggested-by: Andrew Cooper <andrew.coop...@citrix.com> > Signed-off-by: Roger Pau Monné <roger....@citrix.com> ... only tentatively: Reviewed-by: Jan Beulich <jbeul...@suse.com> Jan