[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 1/1] include/hw/xen/xen_native.h: downgrade include-order assertion to warning
- To: "Frager, Neal" <neal.frager@xxxxxxx>
- From: Peter Maydell <peter.maydell@xxxxxxxxxx>
- Date: Mon, 24 Aug 2026 14:26:00 +0100
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=WJOQloOIABkgH6V3JAdZSvG6I3xZcRSyyak3uFeJFGk=; fh=Q3MFvgmBVez3lAjgQPyQRycJzUFWQ5jTf8kh/WjsKT4=; b=hujInGLYA7LvUUOqJrRgqnd3N9n8oDMpvV+JZqvgmkbnen6SePgk+AIhsBb6apCiao 52vK6He3wYXGcOvBMpslxhH1WVW1nd45lzmUD4vqqoSLBr4R+E+tsK9USMj+9V5HtYP5 WMPYEFcVATUUp8o50NODEKtGJ1r2O+UThFklESWQm5l8hsfpK+56Uy0ODraZWIzc1CSf fLiDzZgl7h/h0dAQwy8VdozQ7iHhs25qefb/nzXFUemWkanP5vPOgD1c6kjYxjb2meR0 3+SQJcuC8t39+XQdQL4/ElFP2kXAacGpGQv+6Y68vZShZBiFUQjHdYS9xluPs01YwBrE 5Kbg==; darn=lists.xenproject.org
- Arc-seal: i=1; a=rsa-sha256; t=1787577976; cv=none; d=google.com; s=arc-20260327; b=LmHtVf5ZT84M3Y/rC6fYIaf3ImVMfmgA7GdDLf8Hz2XJhsa6+vizXWK+oZtQOhTuUM BsqHoiI9Fsmj5NKzMeSdIOKwuub0rTFWofZGeyXW53y7i5NxKKBtqoJ34KYZwJQagpMq j1jUfWZ81lAvcb15jmT+A5/YaXwNJ50DJyudGWVk7zrhHegfcDrlDEkAsroT/n9VpuOJ LTbYm4gNGO/dFCZ4eEnOU9dh4teGBhDdIFXbwRu3eXyh148NgMMfOqKFJMeFI+3Gjmo9 OTXU2P3uJI3ducJTpMJG2rms83NbSXsgCXTj12eXmZbC0Cdl0AEZY0k3NbOXSquEVFYc EMlw==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=linaro.org header.i="@linaro.org" header.h="Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References:MIME-Version"
- Cc: "Hildebrand, Stewart" <Stewart.Hildebrand@xxxxxxx>, "qemu-devel@xxxxxxxxxx" <qemu-devel@xxxxxxxxxx>, "sstabellini@xxxxxxxxxx" <sstabellini@xxxxxxxxxx>, "anthony@xxxxxxxxxxxxxx" <anthony@xxxxxxxxxxxxxx>, "edgar.iglesias@xxxxxxxxx" <edgar.iglesias@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Stabellini, Stefano" <stefano.stabellini@xxxxxxx>, "Saleab, Micheal" <Micheal.Saleab@xxxxxxx>, "john.ernberg@xxxxxxxx" <john.ernberg@xxxxxxxx>, "matthew.l.weber3@xxxxxxxxxx" <matthew.l.weber3@xxxxxxxxxx>, "vincent.stehle@xxxxxxx" <vincent.stehle@xxxxxxx>
- Delivery-date: Mon, 24 Aug 2026 13:26:25 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Mon, 24 Aug 2026 at 14:14, Frager, Neal <neal.frager@xxxxxxx> wrote:
>
> AMD General
>
> Hi Stewart,
>
> > The -I$(XEN_ROOT)/tools/include added to QEMU's extra-cflags causes
> > __XEN_INTERFACE_VERSION__ to be defined before xen_native.h is included,
> > triggering an include-order assertion. Downgrade to a warning since the
> > version is consistent in cross-compile.
> > Ref: https://github.com/qemu/qemu/commit/e2abfe5ec6
> > This is a buildroot issue, so I don't believe it's necessary to fix from the
> > qemu side.
>
> I am not sure I fully agree here. While this is a buildroot identified issue,
> there could be other use cases for __XEN_INTERFACE_VERSION__ to be defined
> before xen_native.h is included.
But what, though?
> And what we have found is that if
> __XEN_INTERFACE_VERSION__ to be defined before xen_native.h is included, it
> is not a hard error. For buildroot, the qemu works just fine in spite of
> this.
I think that just means you got lucky. Either there is a hard requirement
for one header to be included before the other (in which case it must
be a #error, and whatever is causing the mis-ordering to happen must be
fixed), or it's fine for the ordering to be either way (in which case it
doesn't even need to be a #warning).
thanks
-- PMM
|