[MODERATED] Re: [PATCH v4 06/10] TAAv4 6
Josh Poimboeuf <[email protected]>
| Newsgroups | org.kernel.lore.historical-speck |
|---|---|
| Message-ID | <20190925230619.c6v55foqztx64qvi@treble> |
On Tue, Sep 03, 2019 at 02:16:33PM -0700, speck for Pawan Gupta wrote:
> +static int __init taa_cmdline(char *str)
> +{
> + if (!boot_cpu_has_bug(X86_BUG_TAA))
> + return 0;
> +
> + if (!str)
> + return -EINVAL;
> +
> + if (!strcmp(str, "off")) {
> + taa_mitigation = TAA_MITIGATION_OFF;
> + } else if (!strcmp(str, "full")) {
> + taa_mitigation = TAA_MITIGATION_VERW;
> + } else if (!strcmp(str, "full,nosmt")) {
> + taa_mitigation = TAA_MITIGATION_VERW;
> + taa_nosmt = true;
> + }
> +
> + return 0;
> +}
> +early_param("taa", taa_cmdline);
Should the cmdline option be called "tsx_async_abort" for consistency
with the sysfs file name?
--
Josh