]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mshv: add arm64 support for doorbell & intercept SINTs
authorAnirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com>
Wed, 25 Feb 2026 12:44:03 +0000 (12:44 +0000)
committerWei Liu <wei.liu@kernel.org>
Wed, 25 Feb 2026 19:09:49 +0000 (19:09 +0000)
commit622d68772ddf07573cf88e833afe8ba6c70ac748
tree33b639709e08f701bafea210ea7614cd8b5c9b39
parent5a674ef871fe9d4c7477127340941f2c4d9a2741
mshv: add arm64 support for doorbell & intercept SINTs

On x86, the HYPERVISOR_CALLBACK_VECTOR is used to receive synthetic
interrupts (SINTs) from the hypervisor for doorbells and intercepts.
There is no such vector reserved for arm64.

On arm64, the hypervisor exposes a synthetic register that can be read
to find the INTID that should be used for SINTs. This INTID is in the
PPI range.

To better unify the code paths, introduce mshv_sint_vector_init() that
either reads the synthetic register and obtains the INTID (arm64) or
just uses HYPERVISOR_CALLBACK_VECTOR as the interrupt vector (x86).

Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Signed-off-by: Anirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/mshv_synic.c
include/hyperv/hvgdk_mini.h