From patchwork Thu Nov 21 18:48:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pasha Tatashin X-Patchwork-Id: 11257177 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 2BF0B14C0 for ; Fri, 22 Nov 2019 05:18:34 +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 0790520708 for ; Fri, 22 Nov 2019 05:18:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=soleen.com header.i=@soleen.com header.b="Qd5DOiTE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0790520708 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=soleen.com Authentication-Results: mail.kernel.org; spf=none 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 1iY1Jr-0006CD-EH; Fri, 22 Nov 2019 05:17:23 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iXrUv-0006OO-4H for xen-devel@lists.xenproject.org; Thu, 21 Nov 2019 18:48:09 +0000 X-Inumbo-ID: 7594e6dc-0c8f-11ea-b678-bc764e2007e4 Received: from mail-qv1-xf42.google.com (unknown [2607:f8b0:4864:20::f42]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 7594e6dc-0c8f-11ea-b678-bc764e2007e4; Thu, 21 Nov 2019 18:48:08 +0000 (UTC) Received: by mail-qv1-xf42.google.com with SMTP id y18so1858617qve.2 for ; Thu, 21 Nov 2019 10:48:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=c8nVRzgB0YDtJ+y9FNkA3x/d530+qZE+NnYikZNbCrY=; b=Qd5DOiTEUKkAbvWWBA600R4XlxLwFyDaJa4sle8qP7489uHD80RxMqUwg5kGz940pO Uy/pT7lJTR4GjlFlbX7dHMDtR211secMJRkotfPvB3o5DKTw1xv6+vrmxKW2htfMcNZX g98vk8RHBl+DeicsPE+4EaSyMYG2IvzwUx8keHJ3qp1ecHMWoDc07wiL++XC9dFUC0uh 07RFJvQGvxdBHY09cPELbIbfaaty+SNFMSSt86Yd256lMjQTqyMjWc/5tY2oblfPJ/m+ EgTVEXpzneOCRxHOBITpWNP/bgT484K6eQDsihDtqabDvyYJu/4Vl0nQYvaEC/PFgMOd GvgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=c8nVRzgB0YDtJ+y9FNkA3x/d530+qZE+NnYikZNbCrY=; b=bLc0peUtRJZL8U7pdWWHtrQ51nmDbkELFfKUtuIIg7wnYxMOjZDVNmkN6Q0J2uFDnA qOoHkN5z4QnpsEDgo9JFPJQ7AWujdUX+yqV8JLnK4Eyu11CAd3D+PhOEJfAHtRg0W1Y1 yKamubxZDosLU0L1LewKyEkyHMWwuYaC48Vt/jsi/UdSI7AJma2vRHF//jFlYt67iIAV u4Q7bAn9O6/EL6rzIwxHe7ZkD6C1r1Qu066PDviziB8FYyQSevfN0lgy3BLvdL5wMDXw exi3kXT+liiZRCaXJbDsOZEoy+wjeOsUBnvJDRBTAirjD1sWShanJggFqMLd5hfkUlK7 sd1g== X-Gm-Message-State: APjAAAWWNKxU/Bx2WZiXI6YpaYl6qogEbGWM1QKlaJXV5Z1sUOWrvscV lJ3KSLmuKxq7k7lkcPvLXvNClA== X-Google-Smtp-Source: APXvYqwZjCYx8RRyhAGY177FzvhWk79OzV7zKnj87grfXziN6cxCQV8PczfcjMpEI7opQBzRuRrwkw== X-Received: by 2002:a0c:f787:: with SMTP id s7mr9663802qvn.12.1574362087643; Thu, 21 Nov 2019 10:48:07 -0800 (PST) Received: from localhost.localdomain (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id t2sm1811634qkt.95.2019.11.21.10.48.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 10:48:06 -0800 (PST) From: Pavel Tatashin To: pasha.tatashin@soleen.com, jmorris@namei.org, sashal@kernel.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, steve.capper@arm.com, linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, james.morse@arm.com, vladimir.murzin@arm.com, mark.rutland@arm.com, tglx@linutronix.de, gregkh@linuxfoundation.org, allison@lohutok.net, info@metux.net, alexios.zavras@intel.com, sstabellini@kernel.org, boris.ostrovsky@oracle.com, jgross@suse.com, stefan@agner.ch, yamada.masahiro@socionext.com, xen-devel@lists.xenproject.org, linux@armlinux.org.uk Date: Thu, 21 Nov 2019 13:48:02 -0500 Message-Id: <20191121184805.414758-1-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 22 Nov 2019 05:17:22 +0000 Subject: [Xen-devel] [PATCH 0/3] Use C inlines for uaccess 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: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Convert the remaining uaccess_* calls from ASM macros to C inlines. These patches apply against linux-next. I boot tested ARM64, and compile tested ARM changes. Pavel Tatashin (3): arm/arm64/xen: use C inlines for privcmd_call arm64: remove uaccess_ttbr0 asm macros from cache functions arm64: remove the rest of asm-uaccess.h arch/arm/include/asm/assembler.h | 2 +- arch/arm/include/asm/uaccess.h | 32 ++++++++++++--- arch/arm/xen/enlighten.c | 2 +- arch/arm/xen/hypercall.S | 15 +------ arch/arm64/include/asm/asm-uaccess.h | 60 ---------------------------- arch/arm64/include/asm/cacheflush.h | 38 ++++++++++++++++-- arch/arm64/kernel/entry.S | 6 +-- arch/arm64/lib/clear_user.S | 2 +- arch/arm64/lib/copy_from_user.S | 2 +- arch/arm64/lib/copy_in_user.S | 2 +- arch/arm64/lib/copy_to_user.S | 2 +- arch/arm64/mm/cache.S | 31 +++++--------- arch/arm64/mm/context.c | 12 ++++++ arch/arm64/mm/flush.c | 2 +- arch/arm64/xen/hypercall.S | 19 +-------- arch/xtensa/kernel/coprocessor.S | 1 - include/xen/arm/hypercall.h | 23 +++++++++-- 17 files changed, 117 insertions(+), 134 deletions(-) delete mode 100644 arch/arm64/include/asm/asm-uaccess.h