From: Andrew Cooper Date: Fri, 8 Jul 2022 15:11:40 +0000 (+0100) Subject: x86/spec-ctrl: Honour spec-ctrl=0 for unpriv-mmio sub-option X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~462 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4cdb519d797c19ebb8fadc5938cdb47479d5a21b;p=xen.git x86/spec-ctrl: Honour spec-ctrl=0 for unpriv-mmio sub-option 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 Reviewed-by: Jan Beulich --- diff --git a/xen/arch/x86/spec_ctrl.c b/xen/arch/x86/spec_ctrl.c index 7a4550db83..ba64a09048 100644 --- a/xen/arch/x86/spec_ctrl.c +++ b/xen/arch/x86/spec_ctrl.c @@ -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;