[MODERATED] Re: [PATCH v4 06/10] TAAv4 6
Pawan Gupta <[email protected]>
| Newsgroups | org.kernel.lore.historical-speck |
|---|---|
| Message-ID | <[email protected]> |
> > +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?
Yes, will change cmdline parameter to tsx_async_abort.
Thanks,
Pawan