Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3940675ybc; Thu, 21 Nov 2019 16:43:17 -0800 (PST) X-Google-Smtp-Source: APXvYqw2fe7K2DmC42cRU3O8+07+B79+Rhl3HsbZx9viefoI2kAWwbOzGxrn92LcVKq9aHopRF6T X-Received: by 2002:a17:906:8591:: with SMTP id v17mr18063080ejx.185.1574383397405; Thu, 21 Nov 2019 16:43:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574383397; cv=none; d=google.com; s=arc-20160816; b=GDt7KnLH5TKfdgaPSRXHVJkIMv2b1EgPkO4VtR532mSIxtBkMCjgWeE2aEWBmnDvS8 AH/VyWVfktfEHe0L9FYqgJZmtnvfEiYS9dovhwcos4vAg745droeLt7mKnV9UD2PVR6O 3V+gmVUz0arWoi3eEYHCdm3squUCJS5sWaHgJfmQRO+0iqlyoH8o79Wcvy8NSMjyzYoq aZZuqePAIvDh20Hh1jlhEBc1uuuyTEptbD00jiT8BJyGv+ME2jMZjXaC3T5WCPnzHxjt 16j2ffRWx+MMLgYdFkz3BqeXDr/0libvw2MyDxPHZ1ElJs7ASR4nmRKmK2nDqaWI+3Ny uBXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=oHj++TIMg4Ens0F3aJfk7j7E8iHr52gJeFlshV/ISiw=; b=tfnWSFNvnvI44xuEPPlg5KPQUGLzZv8SJ7xltEgQLdBbybmr93aa6RfS2RDkcHfm+E hZisketQ6XPbOFTE6TlPBGJjHGWKfmufXkAYh7kPyr/9vmFeFcHKa8WI/xLstxT2Vgvs /3U+Xl1VZtaGI7JcLNNg3Bjm+qv3Rokt9E/CrAqRaPV36D1lPkZvbIccPrigqQVoYBpA GdUp/LkY5lxtE6qsl5xCVu/dBRLMzD2cr0Pz3RqM1deyPUkWJSQrSWif/tIik92ykSyI 1UhLN3ESkF0dWNrvMILWuN0uEWLZCOLAmwyB77jJ3j3xkoaEQOR9EL829ni5zj3S/Ccy XmEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=YJIHNZEU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4si2891629ejy.439.2019.11.21.16.42.50; Thu, 21 Nov 2019 16:43:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=YJIHNZEU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726408AbfKVAjf (ORCPT + 99 others); Thu, 21 Nov 2019 19:39:35 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:38081 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbfKVAjf (ORCPT ); Thu, 21 Nov 2019 19:39:35 -0500 Received: by mail-ed1-f65.google.com with SMTP id s10so4459231edi.5 for ; Thu, 21 Nov 2019 16:39:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oHj++TIMg4Ens0F3aJfk7j7E8iHr52gJeFlshV/ISiw=; b=YJIHNZEUFsgL4TpJs14+fbdITnHvxz0M9LOs/Dgy5BnL6M72oTwQRtOfHbO+T05ufJ 1/h2bu5CbngwpOk9xEAXUGoL47+0wPGVl8kzdVFg01KrkZWwGTKp9iyOPCAMdvcn1fFt OMdq3ceEnzKogu7+hA4aBhv8w2Jc3Ofz5LZnK7luVq1GrJUQnU/fVoBM6h3G2vQprGJO dfL6DlR4mjWJ8D5CyC68cL6TvpB2mRxeylMzeU5xftSuNDAa8J9opSHNTrz+YLpFlpWc KfWihhOYnN6H7SyWReveUP0uLF3kZEWSuZ5asTyXPmCHwKTW3sgqpxJeiC1yudV73OrE HZlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oHj++TIMg4Ens0F3aJfk7j7E8iHr52gJeFlshV/ISiw=; b=riNLRkglWgqXTv3OG5fsCykbTXnmV1OjNxVcQ4Ydi6QTFm19clW+kag8gL9hW4PAE5 iu+BQ/hGmc9CRGDamxuYlTv7XXM7ecBZbigHb3rHkCn7sDWlHvDcftUxu6Ve/r50EVLV XVJQzrwZTKndaiY7b4aIZ/BnTN8ihMe3quoQfN4ylTihm2Gi3TQjq//5o/GxcgTU3s9W OfzrMn6YPcH39v/Ef7Ts7MS7igPC56DQ5hXOHrItZsao+XRLrv4EdiOyEZ2pkkBJSSQ7 dYHt14MnYDc5kzztYwk7TJqAg6nG378N3y2+H1y3LL88hVi13/gkKtJl6uNjKquaut+Z 3efA== X-Gm-Message-State: APjAAAX7/9sgIvu8MWAtZpyfKD2c5pkgOTs6NcoptrCTYtlV4LV9NX5h LeKJc3Ohcsc5iOSnnsfcJhC+RY29Ude/SvSVVupSPQ== X-Received: by 2002:a17:906:b30c:: with SMTP id n12mr17585915ejz.96.1574383173304; Thu, 21 Nov 2019 16:39:33 -0800 (PST) MIME-Version: 1.0 References: <20191121184805.414758-1-pasha.tatashin@soleen.com> <20191121184805.414758-2-pasha.tatashin@soleen.com> <20191122002258.GD25745@shell.armlinux.org.uk> <20191122003403.GG25745@shell.armlinux.org.uk> <20191122003524.GH25745@shell.armlinux.org.uk> In-Reply-To: <20191122003524.GH25745@shell.armlinux.org.uk> From: Pavel Tatashin Date: Thu, 21 Nov 2019 19:39:22 -0500 Message-ID: Subject: Re: [PATCH 1/3] arm/arm64/xen: use C inlines for privcmd_call To: Russell King - ARM Linux admin Cc: Mark Rutland , Catalin Marinas , stefan@agner.ch, Masahiro Yamada , Will Deacon , boris.ostrovsky@oracle.com, Sasha Levin , sstabellini@kernel.org, James Morris , Linux ARM , xen-devel@lists.xenproject.org, Vladimir Murzin , Marc Zyngier , alexios.zavras@intel.com, Thomas Gleixner , allison@lohutok.net, jgross@suse.com, steve.capper@arm.com, Greg Kroah-Hartman , LKML , James Morse , info@metux.net Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > That may be, but be very careful that you only use them in ARMv7-only > > code. Using them elsewhere is unsafe as the domain register is used > > for other purposes, and merely blatting over it (as your > > uaccess_enable and uaccess_disable functions do) is unsafe. > > In fact, I'll turn that into a bit more than a suggestion. I'll make > it a NAK on adding them to 32-bit ARM. > That's fine, and I also did not want to change ARM 32-bit. But, do you have a suggestion how differentiate between arm64 and arm in include/xen/arm/hypercall.h without ugly ifdefs? Thank you, Pasha