]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mshv: Add SMT_ENABLED_GUEST partition creation flag
authorAnatol Belski <anbelski@linux.microsoft.com>
Wed, 18 Feb 2026 14:48:02 +0000 (14:48 +0000)
committerWei Liu <wei.liu@kernel.org>
Wed, 18 Feb 2026 23:54:37 +0000 (23:54 +0000)
commit8927a108a7662eb83eb667bc0c5a0633397122b1
tree27a9929b2f51114737e34b6bfc5903ce3d46b720
parenta284dbc96a47891a7a595a1c81b1e2da4d309cf6
mshv: Add SMT_ENABLED_GUEST partition creation flag

Add support for HV_PARTITION_CREATION_FLAG_SMT_ENABLED_GUEST
to allow userspace VMMs to enable SMT for guest partitions.

Expose this via new MSHV_PT_BIT_SMT_ENABLED_GUEST flag in the UAPI.

Without this flag, the hypervisor schedules guest VPs incorrectly,
causing SMT unusable.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/mshv_root_main.c
include/hyperv/hvhdk.h
include/uapi/linux/mshv.h