[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180213074738.nrohmtchyr6fddhm@gmail.com>
Date: Tue, 13 Feb 2018 08:47:38 +0100
From: Ingo Molnar <mingo@...nel.org>
To: David Woodhouse <dwmw@...zon.co.uk>
Cc: tglx@...utronix.de, x86@...nel.org, kvm@...r.kernel.org,
torvalds@...ux-foundation.org, pbonzini@...hat.com,
linux-kernel@...r.kernel.org, arjan.van.de.ven@...el.com,
dave.hansen@...el.com
Subject: Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future
CPUs
* David Woodhouse <dwmw@...zon.co.uk> wrote:
> +extern enum spectre_v2_mitigation spectre_v2_enabled;
This needs to be exported if the KVM module wants to use it.
> +static inline bool spectre_v2_ibrs_all(void)
> +{
> + return spectre_v2_enabled == SPECTRE_V2_IBRS_ALL;
> +}
> + if (vmx->spec_ctrl && !spectre_v2_ibrs_all())
> + if (!spectre_v2_ibrs_all) {
erm, that's a function, not a flag ...
Thanks,
Ingo
Powered by blists - more mailing lists