]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mshv: Add support for a new parent partition configuration
authorNuno Das Neves <nunodasneves@linux.microsoft.com>
Tue, 2 Sep 2025 23:48:33 +0000 (16:48 -0700)
committerWei Liu <wei.liu@kernel.org>
Mon, 8 Sep 2025 22:10:51 +0000 (22:10 +0000)
commitf26c9306dff818bbf4ef545c5a5ee0eca7149922
tree95dfd921f7c67f09e5def2dcb4472869e334f8e4
parent47691ced158ab3a7ce2189b857b19c0c99a9aa80
mshv: Add support for a new parent partition configuration

Detect booting as an "L1VH" partition. This is a new scenario very
similar to root partition where the mshv_root driver can be used to
create and manage guest partitions.

It mostly works the same as root partition, but there are some
differences in how various features are handled. hv_l1vh_partition()
is introduced to handle these cases. Add hv_parent_partition()
which returns true for either case, replacing some hv_root_partition()
checks.

Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Acked-by: Wei Liu <wei.liu@kernel.org>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/hv_common.c
drivers/hv/mshv_root_main.c
include/asm-generic/mshyperv.h