From nobody Wed Dec 4 08:27:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=reject dis=none) header.from=cloud.com ARC-Seal: i=1; a=rsa-sha256; t=1731588636; cv=none; d=zohomail.com; s=zohoarc; b=XnqwRrvT7DaOYN64c0/Y8d8SA/glja2lxpbj3FBtyRP/ucwLsm2GKuhlTg2aFzerUR3zCAlASg5ioi6mDMRVSf2QKGho3WbdDdAlxNoBHgJWbfSSBjKq67FlnsUAkbT6jxWMYCJ8cwbnU373591O5GpUeWr4Q7TLL66NUfIujQM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1731588636; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2manZp1AIdPBh7iI0RBUSq4id6SrxSe85LAkzhSm0W8=; b=NhZ91yIWudbXjtAU39rsMHtcr/7xg4QrrvJQrRlouskFOO2qjcrrl29ygvRIw+KEW1TqwxeS8oTwjiRbIijxYaSYkwBWjygRFp7GtVXIo7OGeDRWA7SykyqsQ+cIA2U6xhCKH9+V/Hl1rxsdCaDjsWW2sRomnoC9LlCMYRIkiAU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 17315886361961005.7931600731742; Thu, 14 Nov 2024 04:50:36 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.836419.1252323 (Exim 4.92) (envelope-from ) id 1tBZIW-0002jP-WB; Thu, 14 Nov 2024 12:50:08 +0000 Received: by outflank-mailman (output) from mailman id 836419.1252323; Thu, 14 Nov 2024 12:50:08 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tBZIW-0002jI-Td; Thu, 14 Nov 2024 12:50:08 +0000 Received: by outflank-mailman (input) for mailman id 836419; Thu, 14 Nov 2024 12:50:07 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tBZIV-0002Aa-Gz for xen-devel@lists.xenproject.org; Thu, 14 Nov 2024 12:50:07 +0000 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [2a00:1450:4864:20::32c]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id f857c341-a286-11ef-a0c7-8be0dac302b0; Thu, 14 Nov 2024 13:50:04 +0100 (CET) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-432d9b8558aso4427795e9.0 for ; Thu, 14 Nov 2024 04:50:04 -0800 (PST) Received: from localhost.localdomain (99.149.115.87.dyn.plus.net. [87.115.149.99]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3821ae1685csm1416809f8f.83.2024.11.14.04.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 04:50:01 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: f857c341-a286-11ef-a0c7-8be0dac302b0 X-Custom-Connection: eyJyZW1vdGVpcCI6IjJhMDA6MTQ1MDo0ODY0OjIwOjozMmMiLCJoZWxvIjoibWFpbC13bTEteDMyYy5nb29nbGUuY29tIn0= X-Custom-Transaction: eyJpZCI6ImY4NTdjMzQxLWEyODYtMTFlZi1hMGM3LThiZTBkYWMzMDJiMCIsInRzIjoxNzMxNTg4NjA0Ljk0MDM0OSwic2VuZGVyIjoiZnJlZGlhbm8uemlnbGlvQGNsb3VkLmNvbSIsInJlY2lwaWVudCI6Inhlbi1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZyJ9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.com; s=cloud; t=1731588604; x=1732193404; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2manZp1AIdPBh7iI0RBUSq4id6SrxSe85LAkzhSm0W8=; b=PAY+pbIwGDlp9zrIjhP7DMuLmHLsbMb7wRmxUV96GugReJo79/r2AIJwPb06+6X5/Q aZlkxmFYWxUL3BxvCQX/LSStoeRhBOe2p1rdVJHzCPyxASlNvEn8Vh0PxtlVFG8fH3wy TcWYcPKm7rFmO5I9zwsxSDn9ZiSH9PoDPKafI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731588604; x=1732193404; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2manZp1AIdPBh7iI0RBUSq4id6SrxSe85LAkzhSm0W8=; b=ZlGqTIz4iH6XApw5/9bb0i5CmMtcdtWKOfL68icp/ryMc7kxkrZMRDmB7xSnfKJt3r 025RpYFfq5vyCESGKkH/XLqQapRnrqAZeHeiNyr/75l2K9sZaeIKndZ7S0D7ZUTP0ICU b2IQMNaZEMuvA+rxX3zegw4Ti+c6l37Arix7owfmDcVWqiYLtcUPsxka2PqUOrX0vZ+e QUla5HrUAKTLZQ+Z5a0VqVW4yKId2zOTiUDB63Hvej9OS3yItKa7fsP8C2kM/8MP3+V9 d/ynbmg88Z7Aew7JbUGGJrons5LgNf6zi+a6hGJx/NJ1K/Ke50l3p7jyXyjyfJftf8Lf rsbg== X-Gm-Message-State: AOJu0YzfvHkOh2bdEs8EzWFSAGli6r/9UVVjQg+E/ZW8u9YL8yl/dW/c 3i8Ck0zkyZWBO/WkAx/hR/HTxhtt9j87p5R4hkF69ads7dEiyM+rZIy7UG3PTEtwSII91DcT5yu NAPY= X-Google-Smtp-Source: AGHT+IHLGbOvOAaIXdjY4KfHj/39O0tKCjcFUmS9HRx7rBg1TvHHiskK2fLnljDucY2pR3fwLCE3Fw== X-Received: by 2002:a05:600c:4e47:b0:431:57cf:f13d with SMTP id 5b1f17b1804b1-432d973e2e1mr31221715e9.3.1731588604127; Thu, 14 Nov 2024 04:50:04 -0800 (PST) From: Frediano Ziglio To: xen-devel@lists.xenproject.org Cc: Frediano Ziglio , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH 2/4] x86/boot: Use header to allows inclusion of public xen.h header Date: Thu, 14 Nov 2024 12:49:48 +0000 Message-Id: <20241114124950.24808-3-frediano.ziglio@cloud.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241114124950.24808-1-frediano.ziglio@cloud.com> References: <20241114124950.24808-1-frediano.ziglio@cloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @cloud.com) X-ZM-MESSAGEID: 1731588636383116600 Content-Type: text/plain; charset="utf-8" This allows to include other headers and avoid duplicated declarations. Signed-off-by: Frediano Ziglio --- xen/arch/x86/include/boot/public/xen.h | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 xen/arch/x86/include/boot/public/xen.h diff --git a/xen/arch/x86/include/boot/public/xen.h b/xen/arch/x86/include/= boot/public/xen.h new file mode 100644 index 0000000000..399b86b5e5 --- /dev/null +++ b/xen/arch/x86/include/boot/public/xen.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/* This header allows the inclusion of public xen.h */ + +#ifndef BOOT__PUBLIC__XEN_H +#define BOOT__PUBLIC__XEN_H + +#if !defined(__XEN__) || defined(__XEN_TOOLS__) || __XEN__ !=3D 1 +#error Unexpected defines +#endif + +#include + +#ifdef __i386__ + +# define __XEN_TOOLS__ 1 +# undef __XEN__ +# include +# define __XEN__ 1 +# undef __XEN_TOOLS__ + +#else + +# include + +#endif + +#endif /* BOOT__PUBLIC__XEN_H */ --=20 2.34.1