]> 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:39:28 +0000 (09:39 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 29 Apr 2024 07:39:28 +0000 (09:39 +0200)
commita2d9cdbb2dc6a2252e9492580ec80dda3c60ef4f
treeb0860235de80ded1b5bd62f7a9a1e70df392a488
parentcb28fa605289968ecd7654718a8d5c2886a6a639
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