From: Peter Maydell <peter.maydell@linaro.org>
To: Magnus Kulke <magnuskulke@linux.microsoft.com>
Cc: qemu-devel@nongnu.org, Anirudh Rayabharam <anirudh@anirudhrb.com>,
Wei Liu <wei.liu@kernel.org>,
Aastha Rawat <aastharawat@linux.microsoft.com>
Subject: Re: [PATCH] include/hw/hyperv: add QEMU_PACKED to uapi structs
Date: Mon, 23 Mar 2026 12:39:30 +0000 [thread overview]
Message-ID: <CAFEAcA-EfRkCXWu061c1uZsW4BC4qKut_uju6U4NyiNuYbf5EQ@mail.gmail.com> (raw)
In-Reply-To: <20260323120613.355019-1-magnuskulke@linux.microsoft.com>
On Mon, 23 Mar 2026 at 12:06, Magnus Kulke
<magnuskulke@linux.microsoft.com> wrote:
>
> The uapi definitions are marked with __packed hints in the kernel
> headers, since we want to keep the contract of the Microsoft Hypervisor
> ABI explicit, we should also added them in our vendored files, with a
> few notable exceptions where the attribute is a noop.
>
> Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com>
> ---
> include/hw/hyperv/hvgdk_mini.h | 37 ++++++++++++++++++++++------------
> include/hw/hyperv/hvhdk.h | 14 +++++++------
> 2 files changed, 32 insertions(+), 19 deletions(-)
>
> diff --git a/include/hw/hyperv/hvgdk_mini.h b/include/hw/hyperv/hvgdk_mini.h
> index cb52cc9de2..7d7b2e9b36 100644
> --- a/include/hw/hyperv/hvgdk_mini.h
> +++ b/include/hw/hyperv/hvgdk_mini.h
> @@ -7,6 +7,8 @@
> #ifndef HW_HYPERV_HVGDK_MINI_H
> #define HW_HYPERV_HVGDK_MINI_H
>
> +#include "qemu/compiler.h"
osdep.h includes compiler.h, so it is always present for all C
files; you don't need to explicitly include it.
thanks
-- PMM
next prev parent reply other threads:[~2026-03-23 12:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 12:06 [PATCH] include/hw/hyperv: add QEMU_PACKED to uapi structs Magnus Kulke
2026-03-23 12:32 ` Philippe Mathieu-Daudé
2026-03-23 12:39 ` Peter Maydell [this message]
2026-03-23 14:11 ` Philippe Mathieu-Daudé
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=CAFEAcA-EfRkCXWu061c1uZsW4BC4qKut_uju6U4NyiNuYbf5EQ@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=aastharawat@linux.microsoft.com \
--cc=anirudh@anirudhrb.com \
--cc=magnuskulke@linux.microsoft.com \
--cc=qemu-devel@nongnu.org \
--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