x86/spec-ctrl: Honour spec-ctrl=0 for unpriv-mmio sub-option

This was an oversight from when unpriv-mmio was introduced.

Fixes: 8c24b70fed ("x86/spec-ctrl: Add spec-ctrl=unpriv-mmio")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Andrew Cooper committed 2022-07-11 15:21:35 +01:00
1 parent 2ce11ce249
commit 4cdb519d79
1 file changed
+1
+1
View File
@@ -122,6 +122,7 @@ static int __init cf_check 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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.