]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mshv: expose the scrub partition hypercall
authorMagnus Kulke <magnuskulke@linux.microsoft.com>
Wed, 18 Feb 2026 23:32:17 +0000 (23:32 +0000)
committerWei Liu <wei.liu@kernel.org>
Wed, 18 Feb 2026 23:32:17 +0000 (23:32 +0000)
This hypercall needs to be exposed for VMMs to soft-reboot guests. It
will reset APIC and synthetic interrupt controller state, among others.

Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/mshv_root_main.c
include/hyperv/hvgdk_mini.h

index c6ec8888472837699e10ebe042c811ce554e7861..e5d94398528e89b6c423e06340ecbfc61dbd6a38 100644 (file)
@@ -120,6 +120,7 @@ static u16 mshv_passthru_hvcalls[] = {
        HVCALL_SET_VP_REGISTERS,
        HVCALL_TRANSLATE_VIRTUAL_ADDRESS,
        HVCALL_CLEAR_VIRTUAL_INTERRUPT,
+       HVCALL_SCRUB_PARTITION,
        HVCALL_REGISTER_INTERCEPT_RESULT,
        HVCALL_ASSERT_VIRTUAL_INTERRUPT,
        HVCALL_GET_GPA_PAGES_ACCESS_STATES,
index 30fbbde81c5c437321ffc62cf64e2c2c641b6ab8..d9aa5afb0a27ad9930bbafc984f020034df592c0 100644 (file)
@@ -474,6 +474,7 @@ union hv_vp_assist_msr_contents {    /* HV_REGISTER_VP_ASSIST_PAGE */
 #define HVCALL_NOTIFY_PARTITION_EVENT                   0x0087
 #define HVCALL_ENTER_SLEEP_STATE                       0x0084
 #define HVCALL_NOTIFY_PORT_RING_EMPTY                  0x008b
+#define HVCALL_SCRUB_PARTITION                         0x008d
 #define HVCALL_REGISTER_INTERCEPT_RESULT               0x0091
 #define HVCALL_ASSERT_VIRTUAL_INTERRUPT                        0x0094
 #define HVCALL_CREATE_PORT                             0x0095