From patchwork Fri Nov 17 12:24:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksii Kurochko X-Patchwork-Id: 13458911 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0CDA9C197A0 for ; Fri, 17 Nov 2023 12:25:08 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.635113.990891 (Exim 4.92) (envelope-from ) id 1r3xu0-0001Nx-4M; Fri, 17 Nov 2023 12:24:52 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 635113.990891; Fri, 17 Nov 2023 12:24:52 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r3xtz-0001Ni-Ut; Fri, 17 Nov 2023 12:24:51 +0000 Received: by outflank-mailman (input) for mailman id 635113; Fri, 17 Nov 2023 12:24:50 +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 1r3xty-0000ZQ-7U for xen-devel@lists.xenproject.org; Fri, 17 Nov 2023 12:24:50 +0000 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [2a00:1450:4864:20::12a]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 4d580a64-8544-11ee-98dc-6d05b1d4d9a1; Fri, 17 Nov 2023 13:24:49 +0100 (CET) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-507cee17b00so2493206e87.2 for ; Fri, 17 Nov 2023 04:24:49 -0800 (PST) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id a18-20020ac25e72000000b005094d95e8bcsm209811lfr.218.2023.11.17.04.24.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 04:24:47 -0800 (PST) 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: 4d580a64-8544-11ee-98dc-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700223888; x=1700828688; 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=6/X1l3KpVhIOhwMjT/JSPLzc+aIMz5zfKRbPaWipyYU=; b=SKVBfb9yRcYoAQ8W7SoziZ2RIvzPHeMhpok2vU/TEhZrfs0IITg7cKrBaFs8pJ6X10 VGDg7GfMsojyjimgcKUXFLV7nrGklDi7xVZt0IKYPSpjrkYe1pG/SHvaAALnlV81gSwc rD3UDRPjv80hHFWmZnQrtYUAl0X9b/w/dCaPAQdZM8QSyinpCwaPlWmv6blShfIBz+dB VkH+zSWQne9xcjq+9h/qDAafY4IiTGoVZykdZpXW7t7Z582s9fOhj74/vfRPJXAoqt+L p9eT+cg9uBlKPd1MDB9SymSZZEdSxkz5Uk2r1vCB2Ox7mAAttb49wcqCrH9cEoycGqLv EOOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700223888; x=1700828688; 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=6/X1l3KpVhIOhwMjT/JSPLzc+aIMz5zfKRbPaWipyYU=; b=n36UYDyBJp5JxnHvopc2byfSBOfu1iInmrDuUujVU+8hxr+1SYjHGJcDzluHAPAywM W/Dr2/ENMcuRkSLW/QVDk3TOmQed2yuOG4QaVsPw06B7g2UsjnJNSKF59fOJuapHm91X bmmqwedOimGVo/eHRmmtXupMaJo6Ejk27+TekE3Apd8U8Z29HsTLVSbxRBDTjPUMVOna 03qH9epuec305a2skb0K/wxJ/RbJOQa9YjceCtlloP3MyPL4tjVKPBkvg91bT6IBhVVH rQhqdR+7kb1v09GTBnq66uLBsw4Bp7Z+TbMtaWGbGqlmjLpvBLggjVcXWTefx942lu5R BXEQ== X-Gm-Message-State: AOJu0YxZsFUl+9apITgm76+47GX6ja4bnGJcPuNBixwJzUeh+KzhyiMr WHsRLopJvPzyoeYRbOOoaw9COeGZtDc= X-Google-Smtp-Source: AGHT+IEvnQCsFxKR1j7FSQT4FtnCuUD4m0o0xNiIC5Z2eweZoQod90dYu/BHi5QZdk43WRXX4IQtoA== X-Received: by 2002:a05:6512:2303:b0:50a:2710:d207 with SMTP id o3-20020a056512230300b0050a2710d207mr17756432lfu.53.1700223888535; Fri, 17 Nov 2023 04:24:48 -0800 (PST) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Oleksii Kurochko , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Andrew Cooper , George Dunlap , Jan Beulich , Wei Liu , Shawn Anastasio Subject: [PATCH v3 04/14] xen/asm-generic: introduce generic header iocap.h Date: Fri, 17 Nov 2023 14:24:28 +0200 Message-ID: <3f6a80241a2c98477eaca5fa3bf80ff6c0df3f39.1700221559.git.oleksii.kurochko@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 iocap.h is common for Arm, PPC and RISC-V architectures thereby it was moved to asm-generic. Also Arm and PPC were switched to asm-generic version of iocap.h. Signed-off-by: Oleksii Kurochko Reviewed-by: Jan Beulich Acked-by: Julien Grall --- Changes in V3: - Drop Arm and PPC's iocap.h and switch to asm-generic's version. - Update the commit message. --- Changes in V2: - update the commit message --- xen/arch/arm/include/asm/Makefile | 1 + xen/arch/ppc/include/asm/Makefile | 1 + xen/arch/ppc/include/asm/iocap.h | 8 -------- xen/{arch/arm/include/asm => include/asm-generic}/iocap.h | 7 ++++--- 4 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 xen/arch/ppc/include/asm/iocap.h rename xen/{arch/arm/include/asm => include/asm-generic}/iocap.h (60%) diff --git a/xen/arch/arm/include/asm/Makefile b/xen/arch/arm/include/asm/Makefile index ece7fa66dd..96e3aa6b6c 100644 --- a/xen/arch/arm/include/asm/Makefile +++ b/xen/arch/arm/include/asm/Makefile @@ -1,3 +1,4 @@ # SPDX-License-Identifier: GPL-2.0-only +generic-y += iocap.h generic-y += paging.h generic-y += vm_event.h diff --git a/xen/arch/ppc/include/asm/Makefile b/xen/arch/ppc/include/asm/Makefile index 48d587f35d..9f5a0dfb31 100644 --- a/xen/arch/ppc/include/asm/Makefile +++ b/xen/arch/ppc/include/asm/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only generic-y += hypercall.h +generic-y += iocap.h generic-y += paging.h generic-y += vm_event.h diff --git a/xen/arch/ppc/include/asm/iocap.h b/xen/arch/ppc/include/asm/iocap.h deleted file mode 100644 index 76bf13a70f..0000000000 --- a/xen/arch/ppc/include/asm/iocap.h +++ /dev/null @@ -1,8 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -#ifndef __ASM_PPC_IOCAP_H__ -#define __ASM_PPC_IOCAP_H__ - -#define cache_flush_permitted(d) \ - (!rangeset_is_empty((d)->iomem_caps)) - -#endif /* __ASM_PPC_IOCAP_H__ */ diff --git a/xen/arch/arm/include/asm/iocap.h b/xen/include/asm-generic/iocap.h similarity index 60% rename from xen/arch/arm/include/asm/iocap.h rename to xen/include/asm-generic/iocap.h index 276fefbc59..dd7cb45488 100644 --- a/xen/arch/arm/include/asm/iocap.h +++ b/xen/include/asm-generic/iocap.h @@ -1,10 +1,11 @@ -#ifndef __X86_IOCAP_H__ -#define __X86_IOCAP_H__ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef __ASM_GENERIC_IOCAP_H__ +#define __ASM_GENERIC_IOCAP_H__ #define cache_flush_permitted(d) \ (!rangeset_is_empty((d)->iomem_caps)) -#endif +#endif /* __ASM_GENERIC_IOCAP_H__ */ /* * Local variables: