From: Magnus Kulke <magnuskulke@linux.microsoft.com>
To: Michael Kelley <mhklinux@outlook.com>
Cc: "linux-hyperv@vger.kernel.org" <linux-hyperv@vger.kernel.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Souradeep Chakrabarti <schakrabarti@microsoft.com>,
Wei Liu <liuwe@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Dexuan Cui <decui@microsoft.com>,
Magnus Kulke <magnuskulke@microsoft.com>,
"linux-arch@vger.kernel.org" <linux-arch@vger.kernel.org>,
"K. Y. Srinivasan" <kys@microsoft.com>,
Anirudh Rayabharam <Anirudh.Rayabharam@microsoft.com>,
Arnd Bergmann <arnd@arndb.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Wei Liu <wei.liu@kernel.org>
Subject: Re: [PATCH v3] drivers/hv: remove deposited pages from direct map
Date: Mon, 5 Oct 2026 12:49:49 +0200 [thread overview]
Message-ID: <asOAzTuyT3XxeRK4@example.com> (raw)
In-Reply-To: <SN6PR02MB41576BE36A94FC74D3C4687ED48A2@SN6PR02MB4157.namprd02.prod.outlook.com>
On Thu, Oct 01, 2026 at 05:10:14AM +0000, Michael Kelley wrote:
> From: Magnus Kulke <magnuskulke@linux.microsoft.com> Sent: Wednesday, September 30, 2026 4:33 AM
>
> I went back and refreshed my memory on the discussion from July
> 2023. At least on x86, the faulting address is used only as a sanity
> check in ex_handler_zeropad(). The #GP exception handler already
> calls fixup_exception(), but it calls with fault_addr set to zero, so
> ex_handler_zeropad() always returns false (i.e., it says it can't do the
> fixup). From looking at the code, it appears the deposited pages case
> would "just work" if the sanity test against fault_addr was removed in
> ex_handler_zeropad(). There was a past discussion about removing
> the sanity test [1], but at the time there wasn't a strong reason for
> or against, so it was left in (having been added relatively recently in
> c4e34dd99f2e). An option for the deposited pages problem would
> be to make the case now for removing the sanity test.
>
> I haven't looked at the situation on arm64.
>
> It's your call on how to proceed -- I just wanted to make sure the
> full context is available to you.
>
> Michael
>
Thanks for the context, that's indeed helpful. I'll discuss this with
the mshv team. I'm still leaning towards disabling deposited pages from
the direct map because this seems semantically the right thing, but
Linus' statement gives some confidence that we can make the fixup work
for #GPs.
best,
magnus
> [1] https://lore.kernel.org/lkml/CAHk-=wipev18s9sErt+iNO_rzgyvGTce38fr1CYO0U_hGVGy2Q@mail.gmail.com/
prev parent reply other threads:[~2026-10-05 10:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 20:10 Magnus Kulke
2026-09-18 0:23 ` Mukesh R
2026-09-18 10:48 ` Magnus Kulke
2026-09-19 23:16 ` Wei Liu
2026-09-25 0:30 ` Mukesh R
2026-09-25 12:01 ` Magnus Kulke
2026-09-19 23:30 ` Wei Liu
2026-09-24 13:51 ` Anirudh Rayabharam
2026-09-25 11:57 ` Magnus Kulke
2026-09-28 12:44 ` Anirudh Rayabharam
2026-09-25 16:23 ` Michael Kelley
2026-09-30 11:33 ` Magnus Kulke
2026-10-01 5:10 ` Michael Kelley
2026-10-05 10:49 ` Magnus Kulke [this message]
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=asOAzTuyT3XxeRK4@example.com \
--to=magnuskulke@linux.microsoft.com \
--cc=Anirudh.Rayabharam@microsoft.com \
--cc=arnd@arndb.de \
--cc=decui@microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liuwe@microsoft.com \
--cc=magnuskulke@microsoft.com \
--cc=mhklinux@outlook.com \
--cc=pbonzini@redhat.com \
--cc=schakrabarti@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
all inboxes | Powered by JetHome®