]> xenbits.xensource.com Git - xen.git/commit
x86/spec: fix reporting of BHB clearing usage from guest entry points
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 29 Apr 2024 07:37:04 +0000 (09:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 29 Apr 2024 07:37:04 +0000 (09:37 +0200)
commit0b0c7dca70d64c35c86e5d503f67366ebe2b9138
treeccb8a7083feea408387eb51e4281950e347274d9
parenteb7059767c82d833ebecdf8106e96482b04f3c40
x86/spec: fix reporting of BHB clearing usage from guest entry points

Reporting whether the BHB clearing on entry is done for the different domains
types based on cpu_has_bhb_seq is unhelpful, as that variable signals whether
there's a BHB clearing sequence selected, but that alone doesn't imply that
such sequence is used from the PV and/or HVM entry points.

Instead use opt_bhb_entry_{pv,hvm} which do signal whether BHB clearing is
performed on entry from PV/HVM.

Fixes: 689ad48ce9cf ('x86/spec-ctrl: Wire up the Native-BHI software sequences')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 049ab0b2c9f1f5edb54b505fef0bc575787dafe9
master date: 2024-04-25 16:35:56 +0200
xen/arch/x86/spec_ctrl.c