From: Russell King - ARM Linux Subject: Re: [PATCH 1/2] ARM: hyp-stub: improve ABI Date: Thu, 15 Dec 2016 11:35:39 +0000 Message-ID: <20161215113539.GK14217@n2100.armlinux.org.uk> References: <20161213113044.GC19985@leverpostej> <72f93940-cf87-fd91-90f2-760b7ff050fb@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id E86FC40354 for ; Thu, 15 Dec 2016 06:34:46 -0500 (EST) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T1SZbahRosPm for ; Thu, 15 Dec 2016 06:34:41 -0500 (EST) Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id D9AAF4022C for ; Thu, 15 Dec 2016 06:34:40 -0500 (EST) Content-Disposition: inline In-Reply-To: <72f93940-cf87-fd91-90f2-760b7ff050fb@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, dave.martin@arm.com, kvmarm@lists.cs.columbia.edu List-Id: kvmarm@lists.cs.columbia.edu On Thu, Dec 15, 2016 at 11:18:48AM +0000, Marc Zyngier wrote: > On 14/12/16 10:46, Russell King wrote: > > @@ -231,10 +244,14 @@ ENDPROC(__hyp_stub_do_trap) > > * initialisation entry point. > > */ > > ENTRY(__hyp_get_vectors) > > - mov r0, #-1 > > + mov r0, #HVC_GET_VECTORS > > This breaks the KVM implementation of __hyp_get_vectors, easily fixed > with the following patchlet: Right, so what Mark said is wrong: "The hyp-stub is part of the kernel image, and the API is private to that particular image, so we can change things -- there's no ABI to worry about." So no, I'm going with my original patch (which TI has tested) which is the minimal change, and if we _then_ want to rework the HYP mode interfaces, that's the time to do the other changes when more people (such as KVM folk) are paying attention and we can come to a cross- hypervisor agreement on what the interface should be. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.