]> xenbits.xensource.com Git - xen.git/commitdiff
x86/spec-ctrl: Honour spec-ctrl=0 for unpriv-mmio sub-option
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 12 Jul 2022 09:14:34 +0000 (11:14 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Jul 2022 09:14:34 +0000 (11:14 +0200)
This was an oversight from when unpriv-mmio was introduced.

Fixes: 8c24b70fedcb ("x86/spec-ctrl: Add spec-ctrl=unpriv-mmio")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 4cdb519d797c19ebb8fadc5938cdb47479d5a21b
master date: 2022-07-11 15:21:35 +0100

xen/arch/x86/spec_ctrl.c

index dfdd45c358c443d55ee6264cb09b6609d77b42ef..ae74943c1053377189825256ed16e20c01953d32 100644 (file)
@@ -122,6 +122,7 @@ static int __init parse_spec_ctrl(const char *s)
             opt_l1d_flush = 0;
             opt_branch_harden = false;
             opt_srb_lock = 0;
+            opt_unpriv_mmio = false;
         }
         else if ( val > 0 )
             rc = -EINVAL;