From nobody Fri Nov 22 09:32:38 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=1727957998; cv=none; d=zohomail.com; s=zohoarc; b=ZpZufmATfi9qVjPdoDcQJb3jdNfd5spukuQElMI/LGLK3d/tJp7b/KS2FWetUPvjdJ/B2/mk15FsAVtgV/vxefTGrIHxBzUARFzoVmMAOAf37PV8F0ZezeVvMjNQ0olbG5wUYxXH8rGn/Rcln3nWwNCWkbUEpUi1ttFwyfCLVng= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727957998; 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=Wa3ZmXvbNT3cVq7/5R5qVXzdHrXKzTt2KbYl/Ig19/Y=; b=RFvNNqjHLESVfLmtGuu6bwiNcRhJBw5SHgdiIiUCpElm+XoZDDrHZ/+TuqZ3cyHULmtY/ujSkPpd3Eww0gqj8vhfE0u2knTFB9ioFXhdi9962DdXGQRm087H4l4C7XsKNhDNRxcJ2lPhwB2/Q14pZeKMr7C24LKS271ZBOmC6Fk= 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 17279579982191010.1993303938792; Thu, 3 Oct 2024 05:19:58 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.809334.1221658 (Exim 4.92) (envelope-from ) id 1swKnu-0006FI-OP; Thu, 03 Oct 2024 12:19:34 +0000 Received: by outflank-mailman (output) from mailman id 809334.1221658; Thu, 03 Oct 2024 12:19:34 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1swKnu-0006CF-CS; Thu, 03 Oct 2024 12:19:34 +0000 Received: by outflank-mailman (input) for mailman id 809334; Thu, 03 Oct 2024 12:19:32 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1swKnr-00043u-V8 for xen-devel@lists.xenproject.org; Thu, 03 Oct 2024 12:19:31 +0000 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [2a00:1450:4864:20::62d]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id bd96ea3c-8181-11ef-99a2-01e77a169b0f; Thu, 03 Oct 2024 14:19:30 +0200 (CEST) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a8d2b24b7a8so377482966b.1 for ; Thu, 03 Oct 2024 05:19:30 -0700 (PDT) Received: from fziglio-desktop.. ([185.25.67.249]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a991047319asm77328366b.184.2024.10.03.05.19.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 05:19:29 -0700 (PDT) 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: bd96ea3c-8181-11ef-99a2-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloud.com; s=cloud; t=1727957969; x=1728562769; 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=Wa3ZmXvbNT3cVq7/5R5qVXzdHrXKzTt2KbYl/Ig19/Y=; b=ibAOnk3TpoUQ22ju/SOFrF5JWNZVI9gKVcT38vF61Oz1eQ+th6GI7SbWDRGq01RFBP mTc4fCb3wuAYQ89XYQ4kei3u4OrxOnUT65oc25vhf+tfBvAMeYU192vnteLMNVnEgAxD Uy5KxtJ2RgcoeI2YUiBysrmpCMdrmOheDRxHw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727957969; x=1728562769; 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=Wa3ZmXvbNT3cVq7/5R5qVXzdHrXKzTt2KbYl/Ig19/Y=; b=OVPDUndjT1RrjfT+RFE1eo+dlPXAj6TaP87ZvWI1Lwl+MSifSeyYiLhkhcMsDW5WBM TCxlZ4qb0qA47Iq+jHJIXPvBZd6G4E2R9dt3Ik+PwB3dMNESU+GxOJcj9idcTOs9tlfN 4MIUPPm5s8F7/mAX+hss6wMflhpUdClIdgH2TR+9d21unjEE+6YVHS3Kx7rUtLx3mTMj e6iMDe606IAXF5T6WSPwgjHtsar7cLvQM282VlmELs6AS5yfdO6bozCf3ieGNJRGAdxw JYWQ4Ko+E4wNAy7iniJN7i+HkKVw5+tmaFpFlb9vCj+WseaKw/TPFsW4X0We7piQUB76 20Nw== X-Gm-Message-State: AOJu0YyXtchgTcDu9A0PVOr4kD8rf6qpXp0YLHbg88Otelq2/8Uc19AM xNNkzM+iMGflPmnYxEBUQUbohZaxPQjtYaSBhZjPNdl5CJh+oeYAPoBDY+WNDVGXNninm2lujhS D X-Google-Smtp-Source: AGHT+IHxd6K9/gY1cAXf5un8Kem0LoM1nlGfsPw9ixtyRrXSFf5pndqtU9j/TPY+Xo84FK4PMDOojw== X-Received: by 2002:a17:906:fe04:b0:a98:282:e676 with SMTP id a640c23a62f3a-a990a04b8abmr325134766b.10.1727957969471; Thu, 03 Oct 2024 05:19:29 -0700 (PDT) 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 10/20] xen: Update header guards - I/O MMU Date: Thu, 3 Oct 2024 13:18:58 +0100 Message-Id: <20241003121908.362888-11-frediano.ziglio@cloud.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241003121908.362888-1-frediano.ziglio@cloud.com> References: <20241003121908.362888-1-frediano.ziglio@cloud.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @cloud.com) X-ZM-MESSAGEID: 1727958000391116600 Content-Type: text/plain; charset="utf-8" Updated headers related to I/O MMU. Signed-off-by: Frediano Ziglio --- xen/drivers/passthrough/amd/iommu-defs.h | 6 +++--- xen/drivers/passthrough/amd/iommu.h | 6 +++--- xen/drivers/passthrough/ats.h | 6 +++--- xen/drivers/passthrough/vtd/dmar.h | 6 +++--- xen/drivers/passthrough/vtd/extern.h | 6 +++--- xen/drivers/passthrough/vtd/iommu.h | 4 ++-- xen/drivers/passthrough/vtd/vtd.h | 6 +++--- xen/include/xen/iommu.h | 6 +++--- 8 files changed, 23 insertions(+), 23 deletions(-) diff --git a/xen/drivers/passthrough/amd/iommu-defs.h b/xen/drivers/passthr= ough/amd/iommu-defs.h index c145248f9a..30b094f187 100644 --- a/xen/drivers/passthrough/amd/iommu-defs.h +++ b/xen/drivers/passthrough/amd/iommu-defs.h @@ -17,8 +17,8 @@ * along with this program; If not, see . */ =20 -#ifndef AMD_IOMMU_DEFS_H -#define AMD_IOMMU_DEFS_H +#ifndef DRIVERS__PASSTHROUGH__AMD__IOMMU_DEFS_H +#define DRIVERS__PASSTHROUGH__AMD__IOMMU_DEFS_H =20 /* IOMMU Event Log entries: in power of 2 increments, minimum of 256 */ #define IOMMU_EVENT_LOG_DEFAULT_ENTRIES 512 @@ -486,7 +486,7 @@ union amd_iommu_pte { #define IOMMU_REG_BASE_ADDR_HIGH_MASK 0x000FFFFFU #define IOMMU_REG_BASE_ADDR_HIGH_SHIFT 0 =20 -#endif /* AMD_IOMMU_DEFS_H */ +#endif /* DRIVERS__PASSTHROUGH__AMD__IOMMU_DEFS_H */ =20 /* * Local variables: diff --git a/xen/drivers/passthrough/amd/iommu.h b/xen/drivers/passthrough/= amd/iommu.h index 8d6f63d87f..c32e9e9a16 100644 --- a/xen/drivers/passthrough/amd/iommu.h +++ b/xen/drivers/passthrough/amd/iommu.h @@ -16,8 +16,8 @@ * You should have received a copy of the GNU General Public License * along with this program; If not, see . */ -#ifndef AMD_IOMMU_H -#define AMD_IOMMU_H +#ifndef DRIVERS__PASSTHROUGH__AMD__IOMMU_H +#define DRIVERS__PASSTHROUGH__AMD__IOMMU_H =20 #include #include @@ -372,4 +372,4 @@ static inline void iommu_set_addr_hi_to_reg(uint32_t *r= eg, uint32_t addr) IOMMU_REG_BASE_ADDR_HIGH_SHIFT, reg); } =20 -#endif /* AMD_IOMMU_H */ +#endif /* DRIVERS__PASSTHROUGH__AMD__IOMMU_H */ diff --git a/xen/drivers/passthrough/ats.h b/xen/drivers/passthrough/ats.h index f5e1d254e0..68b1c600eb 100644 --- a/xen/drivers/passthrough/ats.h +++ b/xen/drivers/passthrough/ats.h @@ -12,8 +12,8 @@ * this program; If not, see . */ =20 -#ifndef _ATS_H_ -#define _ATS_H_ +#ifndef DRIVERS__PASSTHROUGH__ATS_H +#define DRIVERS__PASSTHROUGH__ATS_H =20 #include =20 @@ -50,5 +50,5 @@ static inline int pci_ats_device(int seg, int bus, int de= vfn) PCI_EXT_CAP_ID_ATS); } =20 -#endif /* _ATS_H_ */ +#endif /* DRIVERS__PASSTHROUGH__ATS_H */ =20 diff --git a/xen/drivers/passthrough/vtd/dmar.h b/xen/drivers/passthrough/v= td/dmar.h index 61f71ca5e6..0ff4f36535 100644 --- a/xen/drivers/passthrough/vtd/dmar.h +++ b/xen/drivers/passthrough/vtd/dmar.h @@ -17,8 +17,8 @@ * Copyright (C) Shaohua Li */ =20 -#ifndef _DMAR_H_ -#define _DMAR_H_ +#ifndef DRIVERS__PASSTHROUGH__VTD__DMAR_H +#define DRIVERS__PASSTHROUGH__VTD__DMAR_H =20 #include #include @@ -171,4 +171,4 @@ int vtd_hw_check(void); void disable_pmr(struct vtd_iommu *iommu); int is_igd_drhd(struct acpi_drhd_unit *drhd); =20 -#endif /* _DMAR_H_ */ +#endif /* DRIVERS__PASSTHROUGH__VTD__DMAR_H */ diff --git a/xen/drivers/passthrough/vtd/extern.h b/xen/drivers/passthrough= /vtd/extern.h index 667590ee52..c16583c951 100644 --- a/xen/drivers/passthrough/vtd/extern.h +++ b/xen/drivers/passthrough/vtd/extern.h @@ -17,8 +17,8 @@ * Copyright (C) Weidong Han */ =20 -#ifndef _VTD_EXTERN_H_ -#define _VTD_EXTERN_H_ +#ifndef DRIVERS__PASSTHROUGH__VTD__EXTERN_H +#define DRIVERS__PASSTHROUGH__VTD__EXTERN_H =20 #include "dmar.h" #include @@ -114,4 +114,4 @@ void quirk_iommu_caps(struct vtd_iommu *iommu); bool platform_supports_intremap(void); bool platform_supports_x2apic(void); =20 -#endif // _VTD_EXTERN_H_ +#endif // DRIVERS__PASSTHROUGH__VTD__EXTERN_H diff --git a/xen/drivers/passthrough/vtd/iommu.h b/xen/drivers/passthrough/= vtd/iommu.h index 78aa8a96f5..29d350b23d 100644 --- a/xen/drivers/passthrough/vtd/iommu.h +++ b/xen/drivers/passthrough/vtd/iommu.h @@ -16,8 +16,8 @@ * Copyright (C) Ashok Raj */ =20 -#ifndef _INTEL_IOMMU_H_ -#define _INTEL_IOMMU_H_ +#ifndef DRIVERS__PASSTHROUGH__VTD__IOMMU_H +#define DRIVERS__PASSTHROUGH__VTD__IOMMU_H =20 #include #include diff --git a/xen/drivers/passthrough/vtd/vtd.h b/xen/drivers/passthrough/vt= d/vtd.h index cb2df76eed..8aeff8c1f2 100644 --- a/xen/drivers/passthrough/vtd/vtd.h +++ b/xen/drivers/passthrough/vtd/vtd.h @@ -17,8 +17,8 @@ * Copyright (C) Weidong Han */ =20 -#ifndef _VTD_H_ -#define _VTD_H_ +#ifndef DRIVERS__PASSTHROUGH__VTD__VTD_H +#define DRIVERS__PASSTHROUGH__VTD__VTD_H =20 #include =20 @@ -72,4 +72,4 @@ struct msi_msg_remap_entry { u32 data; /* msi message data */ }; =20 -#endif // _VTD_H_ +#endif // DRIVERS__PASSTHROUGH__VTD__VTD_H diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h index 442ae5322d..b928c67e19 100644 --- a/xen/include/xen/iommu.h +++ b/xen/include/xen/iommu.h @@ -16,8 +16,8 @@ * Copyright (C) Allen Kay */ =20 -#ifndef _IOMMU_H_ -#define _IOMMU_H_ +#ifndef XEN__IOMMU_H +#define XEN__IOMMU_H =20 #include #include @@ -440,7 +440,7 @@ static inline int iommu_update_ire_from_msi( } #endif =20 -#endif /* _IOMMU_H_ */ +#endif /* XEN__IOMMU_H */ =20 /* * Local variables: --=20 2.34.1