From patchwork Wed Nov 27 18:44:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pasha Tatashin X-Patchwork-Id: 11264731 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 E60EE1863 for ; Wed, 27 Nov 2019 18:46:01 +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 BCC812084B for ; Wed, 27 Nov 2019 18:46:01 +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="iY3WGmb4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BCC812084B 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 1ia2J8-0003Ea-H5; Wed, 27 Nov 2019 18:44:58 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ia2J7-0003EV-3C for xen-devel@lists.xenproject.org; Wed, 27 Nov 2019 18:44:57 +0000 X-Inumbo-ID: 01c47ef0-1146-11ea-83b8-bc764e2007e4 Received: from mail-qk1-x741.google.com (unknown [2607:f8b0:4864:20::741]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 01c47ef0-1146-11ea-83b8-bc764e2007e4; Wed, 27 Nov 2019 18:44:56 +0000 (UTC) Received: by mail-qk1-x741.google.com with SMTP id x1so5714159qkl.12 for ; Wed, 27 Nov 2019 10:44:56 -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=F/n86b6Kh7/7bx65ohsSuhkfsrRS1fX/ghGHBMXhZiA=; b=iY3WGmb47fenakYk1z1uQ4/43MV+16v1SYdlJk6JAl3euekC4kAR8C4/ECW6Rz4kVJ cLsUVHWp7fiU24FpQ96I3EO48/XAQq9zOHMo6Z88+oUoYA2qxHZj0u0HXL9lEU30dY8Y ep/6IBJL7UCp1cC77ME+6B+78g9QNgLonOnUPH9yYuQX/6yAiB2YXbytWuONSaskHBTl LO+aA8Fj3N/cz2+KGHOx7EUjM4pzrKWWB8RcJjxbmMvaWHLPjAHHqiyL6s8xsKcjinzu dxrpdBh9lEOmwBD1CeekX+TeZn/pMfMPeKE4YXl9vgLYYwvwh9btiumNMmwMJzXJJu62 L9bg== 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=F/n86b6Kh7/7bx65ohsSuhkfsrRS1fX/ghGHBMXhZiA=; b=CLGAK4UPOQG4MYQEoS9Ta8aG0jdZRkSJlouPBuWfCnWU3vsxyMjITHAPAOTxy055Ax dXyYk5dnhNAsr+P6HDQd+2aBD37pqgPnrJuZGobqRkm5uXkxqbtX6VIapgfgS6DQpeNW SblaM1QJ1oIfL72aFE2CtZ/8NyE/oE++iH6+ieFGZNv1xiGm0+/rzB6Kgqn05cXP06Qd N5WRmWIRCbo+ucooi39VD4wsY0AitOi6Axy8+45Sz6as5NJZMluKkbHqErHkWkuqpQxa MMz5D/+Ux/0iCrHEMXsbbZ6dAFmCj2Srkz1RynObXkmPrvfafaOhA2anLH+t5eNXgaXq oTyA== X-Gm-Message-State: APjAAAV3FfKmpy8WHyRDUAk/rWtg3Cu3f6T+IOjcrnPJZrOEzC1iaYAH v+Ntb9LJzYPM6k+Kh3NObM/rYw== X-Google-Smtp-Source: APXvYqytTMLn9EqxEu+OgYBIR0W3UcV5QcnBL8/xWD7wWi7CQazQ0liRoDUunsojwesXXqeQBJ7PVQ== X-Received: by 2002:a37:bd06:: with SMTP id n6mr5990382qkf.286.1574880295965; Wed, 27 Nov 2019 10:44:55 -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 o62sm2748024qte.76.2019.11.27.10.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 10:44:55 -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: Wed, 27 Nov 2019 13:44:50 -0500 Message-Id: <20191127184453.229321-1-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 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" Changelog v3: - Added Acked-by from Stefano Stabellini - Addressed comments from Mark Rutland v2: - Addressed Russell King's concern by not adding uaccess_* to ARM. - Removed the accidental change to xtensa 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 change 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/xen/hypercall.h | 10 +++++ arch/arm/xen/enlighten.c | 2 +- arch/arm/xen/hypercall.S | 4 +- arch/arm64/include/asm/asm-uaccess.h | 61 -------------------------- arch/arm64/include/asm/cacheflush.h | 39 ++++++++++++++-- arch/arm64/include/asm/xen/hypercall.h | 28 ++++++++++++ arch/arm64/kernel/entry.S | 27 +++++++++++- 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 | 42 ++++++------------ arch/arm64/mm/flush.c | 2 +- arch/arm64/xen/hypercall.S | 19 +------- include/xen/arm/hypercall.h | 12 ++--- 16 files changed, 130 insertions(+), 126 deletions(-) delete mode 100644 arch/arm64/include/asm/asm-uaccess.h