Re: [PATCH v5 3/9] x86/split_lock: Re-define the kernel param option for split_lock_detect

From: Thomas Gleixner
Date: Mon Mar 23 2020 - 13:11:03 EST


Xiaoyao Li <xiaoyao.li@xxxxxxxxx> writes:

> Change sld_off to sld_disable, which means disabling feature split lock
> detection and it cannot be used in kernel nor can kvm expose it guest.
> Of course, the X86_FEATURE_SPLIT_LOCK_DETECT is not set.
>
> Add a new optioin sld_kvm_only, which means kernel turns split lock
> detection off, but kvm can expose it to guest.

What's the point of this? If the host is not clean, then you better fix
the host first before trying to expose it to guests.

Thanks,

tglx