函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:arch\x86\kernel\cpu\bugs.c Create Date:2022-07-27 08:56:23
首页 Copyright©Brick

264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
static int __init mds_cmdline(char *str)
{
    if (!boot_cpu_has_bug(X86_BUG_MDS))
        return 0;
 
    if (!str)
        return -EINVAL;
 
    if (!strcmp(str, "off"))
        mds_mitigation = MDS_MITIGATION_OFF;
    else if (!strcmp(str, "full"))
        mds_mitigation = MDS_MITIGATION_FULL;
    else if (!strcmp(str, "full,nosmt")) {
        mds_mitigation = MDS_MITIGATION_FULL;
        mds_nosmt = true;
    }
 
    return 0;
}