On 5/20/25 13:29, Magnus Kulke 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.

We do ship headers copied from Linux in QEMU; please modify scripts/update-linux-headers.sh to include linux/mshv.h as linux-headers/linux/mshv.h.

The other three can remain in include/hw/hyperv, since the Linux versions are not intended for consumption outside the kernel (they're not in include/uapi/). But when you copy them...

+#ifndef HW_HYPERV_HVHDK_H
+#define HW_HYPERV_HVHDK_H
+
+#define HV_PARTITION_SYNTHETIC_PROCESSOR_FEATURES_BANKS 1
+
+struct hv_input_set_partition_property {
+    __u64 partition_id;
+    __u32 property_code; /* enum hv_partition_property_code */
+    __u32 padding;
+    __u64 property_value;

... please change the types to uintNN_t and drop <linux/types.h>.

Thanks,

Paolo


Reply via email to