From patchwork Thu Jul 30 17:52:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 11693467 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA44F138C for ; Thu, 30 Jul 2020 17:53:00 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A6B3B20809 for ; Thu, 30 Jul 2020 17:53:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=xen.org header.i=@xen.org header.b="g1CPwU7E" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A6B3B20809 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1k1CjC-00089n-6q; Thu, 30 Jul 2020 17:52:26 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1k1CjA-00089P-W1 for xen-devel@lists.xenproject.org; Thu, 30 Jul 2020 17:52:25 +0000 X-Inumbo-ID: 6968361b-d28d-11ea-aaff-12813bfff9fa Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 6968361b-d28d-11ea-aaff-12813bfff9fa; Thu, 30 Jul 2020 17:52:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=AgySXafvLKDrFHZwhVYC/CtvL9daRvYVrDlQBaY611s=; b=g1CPwU7EKozO36MiD2faC1WMy4 I+v2tAqxkFHvaT1ICh99bgbrtPD+9HvV0wzwgZu6zk6TRcB1e4kuU8nkJU/gzbs62eppIByDEAWTt pWt+C9DmwoJxfTOOKenxFDczSndjdgohvt0zBXag/Ef5JEzTiLVk0UI90t80pM7RpmZ0=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1k1Cj3-000796-H9; Thu, 30 Jul 2020 17:52:17 +0000 Received: from 54-240-197-227.amazon.com ([54.240.197.227] helo=ufe34d9ed68d054.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k1Cj3-0004nV-1p; Thu, 30 Jul 2020 17:52:17 +0000 From: Julien Grall To: xen-devel@lists.xenproject.org Subject: [PATCH v2 0/7] xen: Consolidate asm-*/guest_access.h in xen/guest_access.h Date: Thu, 30 Jul 2020 18:52:00 +0100 Message-Id: <20200730175213.30679-1-julien@xen.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Kevin Tian , Stefano Stabellini , julien@xen.org, Jun Nakajima , Wei Liu , Paul Durrant , Andrew Cooper , Julien Grall , Ian Jackson , George Dunlap , Jan Beulich , Volodymyr Babchuk , =?utf-8?q?Roger_Pau_Monn?= =?utf-8?q?=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" From: Julien Grall Hi all, A lot of the helpers implemented in asm-*/guest_access.h are implemented the same way. This series aims to avoid the duplication and implement them only once in xen/guest_access.h. Cheers, Julien Grall (7): xen/guest_access: Add emacs magics xen/arm: kernel: Re-order the includes xen/arm: decode: Re-order the includes xen/arm: guestcopy: Re-order the includes xen: include xen/guest_access.h rather than asm/guest_access.h xen/guest_access: Consolidate guest access helpers in xen/guest_access.h xen/guest_access: Fix coding style in xen/guest_access.h xen/arch/arm/decode.c | 7 +- xen/arch/arm/domain.c | 2 +- xen/arch/arm/guest_walk.c | 3 +- xen/arch/arm/guestcopy.c | 5 +- xen/arch/arm/kernel.c | 12 +-- xen/arch/arm/vgic-v3-its.c | 2 +- xen/arch/x86/hvm/svm/svm.c | 2 +- xen/arch/x86/hvm/viridian/viridian.c | 2 +- xen/arch/x86/hvm/vmx/vmx.c | 2 +- xen/common/libelf/libelf-loader.c | 2 +- xen/include/asm-arm/guest_access.h | 115 ----------------------- xen/include/asm-x86/guest_access.h | 116 ++---------------------- xen/include/xen/guest_access.h | 131 +++++++++++++++++++++++++++ xen/lib/x86/private.h | 2 +- 14 files changed, 161 insertions(+), 242 deletions(-)