From patchwork Fri Nov 22 02:24:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pasha Tatashin X-Patchwork-Id: 11257171 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 9CC351593 for ; Fri, 22 Nov 2019 05:18:30 +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 78DA020708 for ; Fri, 22 Nov 2019 05:18:30 +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="juXdHl2/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 78DA020708 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 1iY1Ju-0006E4-Gb; Fri, 22 Nov 2019 05:17:26 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iXycD-0001Fa-DF for xen-devel@lists.xenproject.org; Fri, 22 Nov 2019 02:24:09 +0000 X-Inumbo-ID: 29e67bc0-0ccf-11ea-b678-bc764e2007e4 Received: from mail-qt1-x843.google.com (unknown [2607:f8b0:4864:20::843]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 29e67bc0-0ccf-11ea-b678-bc764e2007e4; Fri, 22 Nov 2019 02:24:08 +0000 (UTC) Received: by mail-qt1-x843.google.com with SMTP id q8so3470870qtr.10 for ; Thu, 21 Nov 2019 18:24: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=hiLKK1+r4xrwDMfPVXvgdsqsmhpmz4wcDPltvr+YiPM=; b=juXdHl2/OTY1JDCI2WvisMRYkfyhCB9wL5baTK6u4p7eMyINED07coapH0Tt+jhDTZ pz0mU0Dl+9ZUlwgPMIllUSSMrvSNJvxM84FAxwu2TdgV95+/uj7U9npfrofHN2Vg2xBP AL/4MLKTSwV+OsUlPJVCLv+WEepm6sWacJ59AsPA0mIGJA2xvMttUK5wpHc2hbzSQDGA Hj46YAtBseFmPmD9OBoVcmsLYh7euLUgyIjHTJMMYCHNUy/Sp8SMj+4SiYqsNdkrb6yL lVFlX/JTHsJV+gxQz41tqhZFB+XZlGdmcR2A6yIShk049QI7rcWL1R1ea6zARZaR/6qg IrBw== 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=hiLKK1+r4xrwDMfPVXvgdsqsmhpmz4wcDPltvr+YiPM=; b=mk0zeHacL5bOIT06o5Q74f8AZLWkFXrOUmBR5b3ZyXtwAiqnitAe7C8HfL1MAnSXDv NPJ1yn4QqEHsDFULd3Kp3wn4HEg38vK+OFklAoJPgRTapMcJhpEFbqNkO41UkP0Upy8g WBKZpyqaNZIzoXc1zLQoYeO8J7pK33X1U7ZnaiZmzTs/L7VtJ0o0Z6zPRZpyDs0xRHrP MTiC72hJWMMoKDS+oJphlVIE9WyEnkMllakMQSe55l2VVy2gBaYweNS5dd+gu6UD9sMz 4gJnt6wKTubfEw2tbewTd3vRTWWGZdz3KXqXcVbP5EEDbuRFElrJ8fgdMTVV2oaxx/EA aOSA== X-Gm-Message-State: APjAAAUmFtEbre3cryv/P1Z5S6Kdk4qSrTtdopXm8eDGHnhyaLJtwBEn wzPhsPW55inxNV1bdS+HErN6ng== X-Google-Smtp-Source: APXvYqzgQzCnz8RAyDKTprcdXtRBKBNV8pw9G0OGoEv3raFUYmGZAJZFgHjMZtF26RBtdnjCSFPUmw== X-Received: by 2002:ac8:51c3:: with SMTP id d3mr1690299qtn.14.1574389448532; Thu, 21 Nov 2019 18:24:08 -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 z5sm2609801qtm.9.2019.11.21.18.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 18:24:07 -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 21:24:03 -0500 Message-Id: <20191122022406.590141-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 v2 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 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 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/xen/hypercall.h | 10 +++++ arch/arm/xen/enlighten.c | 2 +- arch/arm/xen/hypercall.S | 4 +- arch/arm64/include/asm/asm-uaccess.h | 60 -------------------------- arch/arm64/include/asm/cacheflush.h | 38 ++++++++++++++-- arch/arm64/include/asm/xen/hypercall.h | 28 ++++++++++++ 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 +------- include/xen/arm/hypercall.h | 12 +++--- 17 files changed, 115 insertions(+), 119 deletions(-) delete mode 100644 arch/arm64/include/asm/asm-uaccess.h