Re: [PATCH v3] Drivers: hv: ioctl for self targeted passthrough hvcalls
From: Wei Liu
Date: Thu Nov 20 2025 - 01:56:00 EST
On Wed, Nov 19, 2025 at 05:17:08PM +0000, Anirudh Rayabharam wrote:
> From: Anirudh Rayabharam (Microsoft) <anirudh@xxxxxxxxxxxxx>
>
> Allow MSHV_ROOT_HVCALL IOCTL on the /dev/mshv fd. This IOCTL would
> execute a passthrough hypercall targeting the root/parent partition
> i.e. HV_PARTITION_ID_SELF.
>
> This will be useful for the VMM to query things like supported
> synthetic processor features, supported VMM capabiliites etc.
>
> Since hypercalls targeting the host partition could potentially perform
> privileged operations, allow only a limited set of hypercalls. To begin
> with, allow only:
>
> HVCALL_GET_PARTITION_PROPERTY
> HVCALL_GET_PARTITION_PROPERTY_EX
>
> Signed-off-by: Anirudh Rayabharam (Microsoft) <anirudh@xxxxxxxxxxxxx>
Applied to hyperv-next.
I dropped one "inline" keyword that was not needed and modified the
subject prefix to be "mshv".
Wei