From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BC86C10F14 for ; Thu, 3 Oct 2019 12:23:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F255520830 for ; Thu, 3 Oct 2019 12:23:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZL1tsP63" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F255520830 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=19IoajJ1mw9HtpoasTxrlx7Oy6tljaMzIi7I3u7Rdak=; b=ZL1tsP63fqr7yv hjHFH+9jpZySEKUFvS8L1i/kSYGDusrQflxYehZatE1Dp79EmQ1vSMQ0Qk2TmoRlzzXcN0AYnMPht HHbH8wi632P1Gfw//ulyKnzVN3cYIxgQcz3YTvKRlKNb8HX0sKcJ5MBdRkag/GmxmHCIfurvmJZKx GCJaNkyujRPPrsJzOSMM5QPfncg98la0G6UVXLe/DJAyGKiPCkIjUWH211nhObJcbbNcsCOFSLlOL pSgti4VVMMIZnV4GFQ0iViqckx+/tt7pjAV0BXswdRIXknYQdn9RnoDcnaAxok7ge3puFhL1iqMsk mWr7bVsjP0MA5AUr7B8g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iG08Z-0003Sf-L7; Thu, 03 Oct 2019 12:23:15 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iG08W-0003Rs-7A for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2019 12:23:13 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8A5DE10DCC8F; Thu, 3 Oct 2019 12:23:11 +0000 (UTC) Received: from kamzik.brq.redhat.com (unknown [10.43.2.160]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7E5C65C3F8; Thu, 3 Oct 2019 12:23:05 +0000 (UTC) Date: Thu, 3 Oct 2019 14:23:02 +0200 From: Andrew Jones To: Steven Price Subject: Re: [PATCH v5 02/10] KVM: arm/arm64: Factor out hypercall handling from PSCI code Message-ID: <20191003122302.emrmpzntkgzqlc3m@kamzik.brq.redhat.com> References: <20191002145037.51630-1-steven.price@arm.com> <20191002145037.51630-3-steven.price@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191002145037.51630-3-steven.price@arm.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.64]); Thu, 03 Oct 2019 12:23:11 +0000 (UTC) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191003_052312_280183_D4A944AE X-CRM114-Status: GOOD ( 15.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Christoffer Dall , kvm@vger.kernel.org, Radim =?utf-8?B?S3LEjW3DocWZ?= , Marc Zyngier , Suzuki K Pouloze , linux-doc@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, James Morse , Julien Thierry , Catalin Marinas , Paolo Bonzini , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Oct 02, 2019 at 03:50:29PM +0100, Steven Price wrote: > From: Christoffer Dall > > We currently intertwine the KVM PSCI implementation with the general > dispatch of hypercall handling, which makes perfect sense because PSCI > is the only category of hypercalls we support. > > However, as we are about to support additional hypercalls, factor out > this functionality into a separate hypercall handler file. > > Signed-off-by: Christoffer Dall > [steven.price@arm.com: rebased] > Signed-off-by: Steven Price > --- > arch/arm/kvm/Makefile | 2 +- > arch/arm/kvm/handle_exit.c | 2 +- > arch/arm64/kvm/Makefile | 1 + > arch/arm64/kvm/handle_exit.c | 4 +- > include/Kbuild | 2 + > include/kvm/arm_hypercalls.h | 43 ++++++++++++++++++ > include/kvm/arm_psci.h | 2 +- > virt/kvm/arm/hypercalls.c | 59 +++++++++++++++++++++++++ > virt/kvm/arm/psci.c | 84 +----------------------------------- > 9 files changed, 112 insertions(+), 87 deletions(-) > create mode 100644 include/kvm/arm_hypercalls.h > create mode 100644 virt/kvm/arm/hypercalls.c > Reviewed-by: Andrew Jones _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel