From: Magnus Kulke <magnuskulke@linux.microsoft.com>
To: wei.liu@kernel.org, haiyangz@microsoft.com, kys@microsoft.com,
decui@microsoft.com, linux-hyperv@vger.kernel.org
Cc: skinsburskii@linux.microsoft.com, magnuskulke@microsoft.com,
linux-kernel@vger.kernel.org,
Magnus Kulke <magnuskulke@linux.microsoft.com>
Subject: [PATCH] mshv: expose hv_call_scrub_partition
Date: Wed, 18 Feb 2026 15:19:11 +0100 [thread overview]
Message-ID: <20260218141911.555592-1-magnuskulke@linux.microsoft.com> (raw)
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.
Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com>
---
drivers/hv/mshv_root_main.c | 1 +
include/hyperv/hvgdk_mini.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/hv/mshv_root_main.c b/drivers/hv/mshv_root_main.c
index cb2729f99e2c5..7c13d5f36437c 100644
--- a/drivers/hv/mshv_root_main.c
+++ b/drivers/hv/mshv_root_main.c
@@ -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,
diff --git a/include/hyperv/hvgdk_mini.h b/include/hyperv/hvgdk_mini.h
index f98eb41342d40..9120fcf0161a4 100644
--- a/include/hyperv/hvgdk_mini.h
+++ b/include/hyperv/hvgdk_mini.h
@@ -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
--
2.34.1
next reply other threads:[~2026-02-18 14:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-18 14:19 Magnus Kulke [this message]
2026-02-18 23:35 ` [PATCH] mshv: expose hv_call_scrub_partition Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260218141911.555592-1-magnuskulke@linux.microsoft.com \
--to=magnuskulke@linux.microsoft.com \
--cc=decui@microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=magnuskulke@microsoft.com \
--cc=skinsburskii@linux.microsoft.com \
--cc=wei.liu@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox