From patchwork Sat Apr 4 13:10:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 11474265 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 48D111805 for ; Sat, 4 Apr 2020 13:11:51 +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 257AD20659 for ; Sat, 4 Apr 2020 13:11:51 +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="15fkMMHZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 257AD20659 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.89) (envelope-from ) id 1jKiZI-0005ld-93; Sat, 04 Apr 2020 13:10:36 +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.89) (envelope-from ) id 1jKiZH-0005lH-9D for xen-devel@lists.xenproject.org; Sat, 04 Apr 2020 13:10:35 +0000 X-Inumbo-ID: a85a84d3-7675-11ea-be20-12813bfff9fa Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id a85a84d3-7675-11ea-be20-12813bfff9fa; Sat, 04 Apr 2020 13:10:30 +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=fO7x3voDfHss5ovu96vgspZrv+9jBsYOHqKTD7O91Lk=; b=15fkMMHZt27vNi6fAMQpUUxxIt mu+JDXBfBsTWXYn4TL2a2AFhGM9buz1+0ObCKj7Lq1EMuwOHRtOtPEgD0AON6jNbut0lw/PAYNw8B alMtDT6PScVirmIWHGiycu6qVSqyWyCZEw8aWuwIE2TXB1QWX4y3eny12pzSB1In/cV4=; Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jKiZ9-0008FU-6B; Sat, 04 Apr 2020 13:10:27 +0000 Received: from 54-240-197-235.amazon.com ([54.240.197.235] helo=ufe34d9ed68d054.ant.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jKiZ8-0007rM-SZ; Sat, 04 Apr 2020 13:10:27 +0000 From: Julien Grall To: xen-devel@lists.xenproject.org Subject: [PATCH 0/7] xen: Consolidate asm-*/guest_access.h in xen/guest_access.h Date: Sat, 4 Apr 2020 14:10:10 +0100 Message-Id: <20200404131017.27330-1-julien@xen.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 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 missing 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 | 132 ------------------------ xen/include/asm-x86/guest_access.h | 129 ++--------------------- xen/include/xen/guest_access.h | 149 +++++++++++++++++++++++++++ xen/lib/x86/private.h | 2 +- 14 files changed, 178 insertions(+), 273 deletions(-)