From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Morse Subject: Re: [PATCH v3 04/25] arm64: KVM: Allow the main HYP code to use the init hyp stub implementation Date: Mon, 13 Mar 2017 17:59:11 +0000 Message-ID: <58C6DDEF.3080100@arm.com> References: <20170306142458.8875-1-marc.zyngier@arm.com> <20170306142458.8875-5-marc.zyngier@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: Russell King , Ard Biesheuvel , Catalin Marinas , cdall@linaro.org, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu To: Marc Zyngier Return-path: Received: from foss.arm.com ([217.140.101.70]:52636 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751258AbdCMR70 (ORCPT ); Mon, 13 Mar 2017 13:59:26 -0400 In-Reply-To: <20170306142458.8875-5-marc.zyngier@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: On 06/03/17 14:24, Marc Zyngier wrote: > We now have a full hyp-stub implementation in the KVM init code, > but the main KVM code only supports HVC_GET_VECTORS, which is not > enough. > > Instead of reinventing the wheel, let's reuse the init implementation > by branching to the idmap page when called with a hyp-stub hypercall. Since your merged page tables change this isn't as scary as it looks, as the idmap is always present. Reviewed-by: James Morse Thanks, James