Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp405666iob; Tue, 3 May 2022 21:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzammK19pjGm8oBqf99LmEtMvYlmNmJ4mVSH8jmpeXQTHK/URSvKvkpcVNEnFcvnVyp/wNb X-Received: by 2002:a17:902:e884:b0:15e:bfbc:1a35 with SMTP id w4-20020a170902e88400b0015ebfbc1a35mr3873560plg.51.1651640367606; Tue, 03 May 2022 21:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651640367; cv=none; d=google.com; s=arc-20160816; b=erCAHGZgWMuqaJ7vJv3MIp29NBPZJzpPA/BUaz6MYnGAa5Dojc5bKzfGPEW/EB5osn TYNRPYZA7zVZ1DX9DbgOSBsFOhJsgldAuW1HiSdtcRiY8myB1qa3qX2quTTbOSsW68Ge USn1qzli4zNz4UAKZmBluAgh0PYgQZ6v9VBCJhsBtUWj2NAEdlnHTSYpWnVK0nMfL0At 53f88+tNsARqoenSiZpFDECTyJlsLGldI+6XUuMNT9MSatrwa7MrRRqF/rjtku4bsWiu 4LAhjUv/cODHNPD3f3imOdAVJKCf6KmyxKTqA7XjkgIxwGLM057sZZLNe+o55n7T4OL/ FC4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=eAq5CW3lHJyV3oVT1+Nc1esfazy1iyczh6XKzDLQcPU=; b=UeH6uU/ZW+JEHD98hx+pcJfsprgcd41l4h9yOmAg4IufsBl/6g/T/5y3X5ND4IMWjj CoLCmSx1to0bk7NxLNXk4X4AR9gWzh4OxHhtbIN9NjzzUE8x6b16x/+H/yW7OwzuRhko pKlmyQuFh4ghKpreL3cKySdcod5QCM5u/eE99ggAacbxgEPv28kO9RSFkMZSIxvUG5g6 utjfGN3Z2X80OhQnipTbChXCN4Yoo5MACLtfkvhVniqvXFLC2OLVy+2pRwxhzuOZfal4 197RKWGZMCcLMM5lMtmZ/D4Qu2VE8r4m1iNzS2eI1Q7x57kBpMoT6kFcUJUeMSkRk4zt nw4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q6x1lzU+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020a638c56000000b003c14551f779si18188644pgn.842.2022.05.03.21.58.40; Tue, 03 May 2022 21:59:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q6x1lzU+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237630AbiECUhT (ORCPT + 99 others); Tue, 3 May 2022 16:37:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235722AbiECUhR (ORCPT ); Tue, 3 May 2022 16:37:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E7643389A; Tue, 3 May 2022 13:33:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DF5CB61228; Tue, 3 May 2022 20:33:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4210FC385A4; Tue, 3 May 2022 20:33:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651610023; bh=+S+gI1rUYoYq98LrroKUD/OVNIAreoq4PC0e3oaD+DM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q6x1lzU+6y4QJQE53ZAVYfNknpKqET8REpetEZQOASqdJqet0iFBjVOQXjdxCNW4j 4yCJzqLFjtQ1hF0FsD4bjwdTYumlcYknmcnG00CnhjFSJNsl3mpWhcrxANWjStmP+2 GdGBOX0Rh4RQzXuRGojk34t2bw2lfhwxVk8QYOlfIK16nVF/smo5oiVSLrIgLpEWPa qrvhFY4BLfC9/WgqlPOhIKXnrE9tVcVlDDZpQJEgNC4knATTysgnvtqvNNWvdlQ3c3 gtSsrM95ANJIndvWT5eukBbKDhcjtFLsUVQjx49n42kpHhevPAGkcRV+g+o+zatF0V DoI+2rKPXiglQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nlzDI-008jtX-PA; Tue, 03 May 2022 21:33:40 +0100 Date: Tue, 03 May 2022 21:33:40 +0100 Message-ID: <878rriicez.wl-maz@kernel.org> From: Marc Zyngier To: Raghavendra Rao Ananta Cc: Andrew Jones , James Morse , Alexandru Elisei , Suzuki K Poulose , Paolo Bonzini , Catalin Marinas , Will Deacon , Peter Shier , Ricardo Koller , Oliver Upton , Reiji Watanabe , Jing Zhang , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v7 0/9] KVM: arm64: Add support for hypercall services selection In-Reply-To: References: <20220502233853.1233742-1-rananta@google.com> <878rri8r78.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: rananta@google.com, drjones@redhat.com, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, pbonzini@redhat.com, catalin.marinas@arm.com, will@kernel.org, pshier@google.com, ricarkol@google.com, oupton@google.com, reijiw@google.com, jingzhangos@google.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 03 May 2022 19:49:13 +0100, Raghavendra Rao Ananta wrote: >=20 > Hi Marc, >=20 > On Tue, May 3, 2022 at 10:24 AM Marc Zyngier wrote: > > > > On Tue, 03 May 2022 00:38:44 +0100, > > Raghavendra Rao Ananta wrote: > > > > > > Hello, > > > > > > Continuing the discussion from [1], the series tries to add support > > > for the userspace to elect the hypercall services that it wishes > > > to expose to the guest, rather than the guest discovering them > > > unconditionally. The idea employed by the series was taken from > > > [1] as suggested by Marc Z. > > > > As it took some time to get there, and that there was still a bunch of > > things to address, I've taken the liberty to apply my own fixes to the > > series. > > > > Please have a look at [1], and let me know if you're OK with the > > result. If you are, I'll merge the series for 5.19. > > > > Thanks, > > > > M. > > > Thank you for speeding up the process; appreciate it. However, the > series's selftest patches have a dependency on Oliver's > PSCI_SYSTEM_SUSPEND's selftest patches [1][2]. Can we pull them in > too? Urgh... I guess this is the time to set some ground rules: - Please don't introduce dependencies between series, that's unmanageable. I really need to see each series independently, and if there is a merge conflict, that's my job to fix (and I don't really mind). - If there is a dependency between series, please post a version of the required patches as a prefix to your series, assuming this prefix is itself standalone. If it isn't, then something really is wrong, and the series should be resplit. - You also should be basing your series on an *official* tag from Linus' tree (preferably -rc1, -rc2 or -rc3), and not something random like any odd commit from the KVM tree (I had conflicts while applying this on -rc3, probably due to the non-advertised dependency on Oliver's series). >=20 > aarch64/hypercalls.c: In function =E2=80=98guest_test_hvc=E2=80=99: > aarch64/hypercalls.c:95:30: error: storage size of =E2=80=98res=E2=80=99 = isn=E2=80=99t known > 95 | struct arm_smccc_res res; > | ^~~ > aarch64/hypercalls.c:103:17: warning: implicit declaration of function > =E2=80=98smccc_hvc=E2=80=99 [-Wimplicit-function-declaration] > 103 | smccc_hvc(hc_info->func_id, hc_info->arg1, 0, > 0, 0, 0, 0, 0, &res); > | ^~~~~~~~~ > I've picked the two patches, which means they will most likely appear twice in the history. In the future, please reach out so that we can organise this better. > Also, just a couple of readability nits in the fixed version: >=20 > 1. Patch-2/9, hypercall.c:kvm_hvc_call_default_allowed(), in the > 'default' case, do you think we should probably add a small comment > that mentions we are checking for func_id in the PSCI range? Dumped a one-liner there. > 2. Patch-2/9, arm_hypercall.h, clear all the macros in this patch > itself instead of doing it in increments (unless there's some reason > that I'm missing)? Ah, rebasing leftovers, now gone. I've pushed an updated branch again, please have a look. M. --=20 Without deviation from the norm, progress is not possible.