From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Peter Zijlstra <peterz@infradead.org>,
Naman Jain <namjain@linux.microsoft.com>
Cc: Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Roman Kisel <romank@linux.microsoft.com>,
"K . Y . Srinivasan" <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H . Peter Anvin" <hpa@zytor.com>,
linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org,
mhklinux@outlook.com
Subject: Re: [PATCH] x86/hyperv: Export hv_hypercall_pg unconditionally
Date: Thu, 18 Sep 2025 10:21:12 -0400 [thread overview]
Message-ID: <ae2bdc6655d2b7ccb264546e5f36a20a65002a7b.camel@HansenPartnership.com> (raw)
In-Reply-To: <20250918064713.GW3419281@noisy.programming.kicks-ass.net>
On Thu, 2025-09-18 at 08:47 +0200, Peter Zijlstra wrote:
> On Thu, Sep 18, 2025 at 11:33:18AM +0530, Naman Jain wrote:
>
> > Thank you so much Sean and Paolo for your valuable inputs. I will
> > try out these things. Summarizing the suggestions here:
> > * Use noinstr (no instrumentation)
> > * Have separate .S file
> > * Don't use "register asm".
> > * Use static calls for solving IBT problems
> > * RAX:RCX is probably ok to be used, considering ABI. Whether we
> > would still need to use STACK_FRAME_NON_STANDARD, I am not sure,
> > but I will see based on how it goes.
> >
> > I hope this addresses the concerns Peter raised. If there's
> > anything I might have missed, I'm happy to make further adjustments
> > if needed.
>
> It would be a definite improvement. I'm just *really* sad people
> still create interfaces like this, even though we've known for years
> how bad they are.
Thanks for that. Our only defence at Microsoft is that the hypervisor
ABI for this is 10 years old and counting.
> At some point we've really have to push back and say enough is
> enough.
Although we can't really do anything about the old ABI since we have
tons of things that use it, there is interest in Microsoft for co-
designing a new ABI that we could add to hyper-v for Linux use and
which would also be a part of bringing up and using virtual secure mode
(VSM) in KVM via the planes API. I was thinking the best way of
discussing it as a community would be the PUCK call, but if there are
alternative forums, we could use that as well. This is going to be
pretty long term: besides designing and testing a new ABI, we were
counting on Amazon upstreaming their VSM implementation for KVM and
we're a bit under resourced here if it turns out we have to do
everything.
Regards,
James
next prev parent reply other threads:[~2025-09-18 14:21 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-25 5:52 Naman Jain
2025-08-25 9:23 ` Christoph Hellwig
2025-08-25 9:42 ` Peter Zijlstra
2025-08-26 11:30 ` Naman Jain
2025-08-26 12:07 ` Peter Zijlstra
2025-08-26 23:04 ` Roman Kisel
2025-09-16 12:48 ` Paolo Bonzini
2025-09-16 14:52 ` Sean Christopherson
2025-09-18 6:03 ` Naman Jain
2025-09-18 6:47 ` Peter Zijlstra
2025-09-18 14:21 ` James Bottomley [this message]
2025-10-06 10:50 ` Naman Jain
2025-10-06 11:10 ` Peter Zijlstra
2025-10-06 11:19 ` Paolo Bonzini
2025-10-06 14:27 ` Naman Jain
2025-09-15 21:46 ` Sean Christopherson
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=ae2bdc6655d2b7ccb264546e5f36a20a65002a7b.camel@HansenPartnership.com \
--to=james.bottomley@hansenpartnership.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=decui@microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=hpa@zytor.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mhklinux@outlook.com \
--cc=mingo@redhat.com \
--cc=namjain@linux.microsoft.com \
--cc=pbonzini@redhat.com \
--cc=peterz@infradead.org \
--cc=romank@linux.microsoft.com \
--cc=seanjc@google.com \
--cc=tglx@linutronix.de \
--cc=wei.liu@kernel.org \
--cc=x86@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®