From patchwork Sun Apr 23 17:09:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9695015 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D803F60245 for ; Sun, 23 Apr 2017 17:12:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C11CC26530 for ; Sun, 23 Apr 2017 17:12:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B367A265B9; Sun, 23 Apr 2017 17:12:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41C1526530 for ; Sun, 23 Apr 2017 17:12:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1163338AbdDWRMg (ORCPT ); Sun, 23 Apr 2017 13:12:36 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:35916 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162917AbdDWRKc (ORCPT ); Sun, 23 Apr 2017 13:10:32 -0400 Received: by mail-wr0-f171.google.com with SMTP id l50so5311740wrc.3 for ; Sun, 23 Apr 2017 10:10:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M3METMFXZcq4Hcd4bFSaUwf9qopGkDRhezYrzAhISGE=; b=Jenuwx8+z4hrYZQr/v21g8zup/J3+OHW/g1EncDwQx3oeHsXJ06bSnKCE2uOG5USxQ aS4iEnLZvUV0W+RSBcRE8s8FGyEMIF7TJB5q70hr+sh8Y9WofDBzqzNI1kzuIsy+bkvL R7/+ojeEC7sN9Ah+Ra9jsWheBFNsLt5TwO3OA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=M3METMFXZcq4Hcd4bFSaUwf9qopGkDRhezYrzAhISGE=; b=KCVY8g2LhAZ5Mg1kwiu5U5tyHSBU7NoN6RsT6JmJzBzIZrJfFhTruqdIr3sP9otLtQ a/QYTkwVHzfh3fSlbPrbf0m66Xvlt2DKm/VYBOkInJQTQ6K6ucrTvQFS247Y5Nn3pm9N Tc2bpEl0Mtm3fTJejEYhoJ/AEWr+aVSLu763KjctzkEIM9GQmKeG5hEXxNW9Kb9b6oLU S6hhqh0dje9SOAnCZ55qYHNXD/28+iqgTvZIs5Ml19+CtQGsvaoH8m9JEeWNDUWh0PMW dMMZBR+yfyT7DlzJv30SzWbcCxwoQjwVFz6XpEeRI3QIz6RM3BXTImKVG4GMpROg4SX6 /pJw== X-Gm-Message-State: AN3rC/5inqaH2Kv8tjr8SvjsUeCBia6/DRXYecAsjGug/7qBUlFh/2aE lw2DCu4higNFtz1a X-Received: by 10.223.129.229 with SMTP id 92mr2593576wra.17.1492967430947; Sun, 23 Apr 2017 10:10:30 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id 58sm2803521edz.2.2017.04.23.10.10.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 23 Apr 2017 10:10:30 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Cc: Marc Zyngier , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Christoffer Dall Subject: [PULL 56/79] ARM: KVM: Implement HVC_GET_VECTORS in the init code Date: Sun, 23 Apr 2017 19:09:06 +0200 Message-Id: <20170423170929.27334-57-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170423170929.27334-1-cdall@linaro.org> References: <20170423170929.27334-1-cdall@linaro.org> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marc Zyngier Now that we have an infrastructure to handle hypercalls in the KVM init code, let's implement HVC_GET_VECTORS there. Tested-by: Keerthy Acked-by: Russell King Acked-by: Catalin Marinas Signed-off-by: Marc Zyngier Signed-off-by: Christoffer Dall --- arch/arm/kvm/init.S | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/kvm/init.S b/arch/arm/kvm/init.S index 86a7008..d6b2f49 100644 --- a/arch/arm/kvm/init.S +++ b/arch/arm/kvm/init.S @@ -122,7 +122,12 @@ __do_hyp_init: eret ENTRY(__kvm_handle_stub_hvc) - cmp r0, #HVC_RESET_VECTORS + cmp r0, #HVC_GET_VECTORS + bne 1f + mrc p15, 4, r0, c12, c0, 0 @ get HVBAR + b exit + +1: cmp r0, #HVC_RESET_VECTORS bne 1f ENTRY(__kvm_hyp_reset) /* We're now in idmap, disable MMU */