]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arch/x86: mshyperv: Trap on access for some synthetic MSRs
authorRoman Kisel <romank@linux.microsoft.com>
Wed, 8 Oct 2025 23:34:07 +0000 (16:34 -0700)
committerWei Liu <wei.liu@kernel.org>
Sat, 15 Nov 2025 06:18:14 +0000 (06:18 +0000)
commita156ad8c508209ce22f3213d25c3c2ae1774a57d
tree98183cc7b9144bd6d844d43fef78084438295671
parente6eeb3c782739cd1613a8da856b878b99f741943
arch/x86: mshyperv: Trap on access for some synthetic MSRs

hv_set_non_nested_msr() has special handling for SINT MSRs
when a paravisor is present. In addition to updating the MSR on the
host, the mirror MSR in the paravisor is updated, including with the
proxy bit. But with Confidential VMBus, the proxy bit must not be
used, so add a special case to skip it.

Signed-off-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Tianyu Lan <tiala@microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/kernel/cpu/mshyperv.c
drivers/hv/hv_common.c
include/asm-generic/mshyperv.h