Skip to contentSkip to conversation

mshv: expose hv_call_scrub_partition

PATCH Applied Magnus Kulke 2 participants 2 messages Feb 18

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mshv: expose hv_call_scrub_partition

This hv call needs to be exposed for VMMs to be able to soft-reboot guests. It will reset APIC and state of para-virtualized devices like SynIC.

---
 drivers/hv/mshv_root_main.c | 1 +
 include/hyperv/hvgdk_mini.h | 1 +
 2 files changed, 2 insertions(+)
drivers/hv/mshv_root_main.c +1 -0
index cb2729f99e2c5..7c13d5f36437c 100644
@@ -143,6 +143,7 @@ static u16 mshv_passthru_hvcalls[] = {
 	HVCALL_READ_GPA,
 	HVCALL_WRITE_GPA,
 	HVCALL_CLEAR_VIRTUAL_INTERRUPT,
+	HVCALL_SCRUB_PARTITION,
 	HVCALL_REGISTER_INTERCEPT_RESULT,
 	HVCALL_ASSERT_VIRTUAL_INTERRUPT,
 	HVCALL_GET_GPA_PAGES_ACCESS_STATES,
include/hyperv/hvgdk_mini.h +1 -0
index f98eb41342d40..9120fcf0161a4 100644
@@ -501,6 +501,7 @@ union hv_vp_assist_msr_contents {	 /* HV_REGISTER_VP_ASSIST_PAGE */
 #define HVCALL_ENTER_SLEEP_STATE			0x0084
 #define HVCALL_NOTIFY_PARTITION_EVENT			0x0087
 #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
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 5 lines · Magnus Kulke

This hv call needs to be exposed for VMMs to be able to soft-reboot guests. It will reset APIC and state of para-virtualized devices like SynIC.

Applied to hyperv-next. Thanks.