From: Magnus Kulke <magnuskulke@linux.microsoft.com>
To: Cornelia Huck <cohuck@redhat.com>
Cc: qemu-devel@nongnu.org, "Cameron Esfahani" <dirty@apple.com>,
"Phil Dennis-Jordan" <phil@philjordan.eu>,
"Roman Bolshakov" <rbolshakov@ddn.com>,
"Thomas Huth" <thuth@redhat.com>,
"Zhao Liu" <zhao1.liu@intel.com>, "Wei Liu" <wei.liu@kernel.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Wei Liu" <liuwe@microsoft.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Markus Armbruster" <armbru@redhat.com>,
"Magnus Kulke" <magnuskulke@microsoft.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH v2 05/27] include/hw/hyperv: Add MSHV ABI header definitions
Date: Wed, 2 Jul 2025 12:11:39 +0200 [thread overview]
Message-ID: <aGUF28/7HAMwZEpU@example.com> (raw)
In-Reply-To: <8734bfq7n6.fsf@redhat.com>
On Wed, Jul 02, 2025 at 11:11:41AM +0200, Cornelia Huck wrote:
> On Tue, Jul 01 2025, Magnus Kulke <magnuskulke@linux.microsoft.com> wrote:
>
> > Introduce headers for the Microsoft Hypervisor (MSHV) userspace ABI,
> > including IOCTLs and structures used to interface with the hypervisor.
> >
> > These definitions are based on the upstream Linux MSHV interface and
> > will be used by the MSHV accelerator backend in later patches.
> >
> > Note that for the time being the header `linux-mshv.h` is also being
> > included to allow building on machines that do not ship the header yet.
> > The header will be available in kernel 6.15 (at the time of writing
> > we're at -rc6) we will probably drop it in later revisions of the
> > patch set.
>
> The right way to handle header updates is to split the linux-header
> updates into a "dummy" update (that just adds the header) and replace
> that patch with a proper header update once the changes hit Linux
> mainline.
>
Ah, that's right, the commit message is not accurate any more, I'll change
it in the next revision. The driver has been released as part of 6.15.
I was following Paolo's advice to include the headers in
`linux-headers/linux` and add an entry to
`scripts/update-linux-headers.sh`
https://lists.gnu.org/archive/html/qemu-devel/2025-05/msg04791.html
I might not have completely understood the process though, do you
suggest to run `update-linux-headers.sh` on a current kernel (the other
headers seem to be updated from 6.16-rc*, so I assume the latest rc?)
and include the resulting changes in a seperate commit?
> I have not looked at the contents of the series otherwise -- but if this
> is a system header (and not something that defines the kernel<->vmm
> interface), how do you make sure that your system has that installed?
> Maybe I'm misunderstanding.
>
The kernel header does define the ioctls and ABI for the driver, albeit not
completely, some hyperv-specific types and defines are shipped as seperate
`include/hw/hyperv` header files.
next prev parent reply other threads:[~2025-07-02 10:13 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-01 17:28 [PATCH v2 00/27] Implementing a MSHV (Microsoft Hypervisor) accelerator Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 01/27] accel: Add Meson and config support for MSHV accelerator Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 02/27] target/i386/emulate: Allow instruction decoding from stream Magnus Kulke
2025-07-02 4:41 ` Wei Liu
2025-07-01 17:28 ` [PATCH v2 03/27] target/i386/mshv: Add x86 decoder/emu implementation Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 04/27] hw/intc: Generalize APIC helper names from kvm_* to accel_* Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 05/27] include/hw/hyperv: Add MSHV ABI header definitions Magnus Kulke
2025-07-02 9:11 ` Cornelia Huck
2025-07-02 10:11 ` Magnus Kulke [this message]
2025-07-02 10:32 ` Cornelia Huck
2025-07-02 13:48 ` Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 06/27] accel/mshv: Add accelerator skeleton Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 07/27] accel/mshv: Register memory region listeners Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 08/27] accel/mshv: Initialize VM partition Magnus Kulke
2025-07-02 4:45 ` Wei Liu
2025-07-01 17:28 ` [PATCH v2 09/27] accel/mshv: Register guest memory regions with hypervisor Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 10/27] accel/mshv: Add ioeventfd support Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 11/27] accel/mshv: Add basic interrupt injection support Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 12/27] accel/mshv: Add vCPU creation and execution loop Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 13/27] accel/mshv: Add vCPU signal handling Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 14/27] target/i386/mshv: Add CPU create and remove logic Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 15/27] target/i386/mshv: Implement mshv_store_regs() Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 16/27] target/i386/mshv: Implement mshv_get_standard_regs() Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 17/27] target/i386/mshv: Implement mshv_get_special_regs() Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 18/27] target/i386/mshv: Implement mshv_arch_put_registers() Magnus Kulke
2025-07-02 4:46 ` Wei Liu
2025-07-01 17:28 ` [PATCH v2 19/27] target/i386/mshv: Set local interrupt controller state Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 20/27] target/i386/mshv: Register CPUID entries with MSHV Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 21/27] target/i386/mshv: Register MSRs " Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 22/27] target/i386/mshv: Integrate x86 instruction decoder/emulator Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 23/27] target/i386/mshv: Write MSRs to the hypervisor Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 24/27] target/i386/mshv: Implement mshv_vcpu_run() Magnus Kulke
2025-07-02 5:30 ` Wei Liu
2025-07-01 17:28 ` [PATCH v2 25/27] target/i386/mshv: Handle HVMSG_X64_HALT vm exit Magnus Kulke
2025-07-01 17:39 ` Magnus Kulke
2025-07-01 17:28 ` [PATCH v2 26/27] accel/mshv: Workaround for overlappig mem mappings Magnus Kulke
2025-07-01 18:22 ` Philippe Mathieu-Daudé
2025-07-01 17:28 ` [PATCH v2 27/27] docs: Add mshv to documentation Magnus Kulke
2025-07-02 5:35 ` [PATCH v2 00/27] Implementing a MSHV (Microsoft Hypervisor) accelerator 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=aGUF28/7HAMwZEpU@example.com \
--to=magnuskulke@linux.microsoft.com \
--cc=alex.bennee@linaro.org \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=cohuck@redhat.com \
--cc=dirty@apple.com \
--cc=liuwe@microsoft.com \
--cc=magnuskulke@microsoft.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=phil@philjordan.eu \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rbolshakov@ddn.com \
--cc=richard.henderson@linaro.org \
--cc=thuth@redhat.com \
--cc=wei.liu@kernel.org \
--cc=zhao1.liu@intel.com \
/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;
as well as URLs for NNTP newsgroup(s).