mshv: Get the vmm capabilities offered by the hypervisor
authorPurna Pavan Chandra Aekkaladevi <paekkaladevi@linux.microsoft.com>
Fri, 10 Oct 2025 21:55:49 +0000 (14:55 -0700)
committerWei Liu <wei.liu@kernel.org>
Sat, 15 Nov 2025 06:18:16 +0000 (06:18 +0000)
commitfd612d97a458f0c44d1395e2def4fa719ec2ea48
tree40aeeead5fce173764e5c7db874d5396fcc91aa3
parent59aeea195948fd507cef2e439a5a964b8432750e
mshv: Get the vmm capabilities offered by the hypervisor

Some hypervisor APIs are gated by feature bits in the
"vmm capabilities" partition property. Store the capabilities on
mshv_root module init, using HVCALL_GET_PARTITION_PROPERTY_EX.

This is not supported on all hypervisors. In that case, just set the
capabilities to 0 and proceed as normal.

Signed-off-by: Purna Pavan Chandra Aekkaladevi <paekkaladevi@linux.microsoft.com>
Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Reviewed-by: Easwar Hariharan <easwar.hariharan@linux.microsoft.com>
Reviewed-by: Tianyu Lan <tiala@microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/mshv_root.h
drivers/hv/mshv_root_main.c