Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp810921iob; Wed, 4 May 2022 08:25:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrrjtt6hWxZY+2VfQBZDQNxOwxWs4EEzmM2FypdRmUkBtH6WhLdQdjr8O8kH4wq/zRLveO X-Received: by 2002:a17:903:241:b0:15c:ee52:cbf2 with SMTP id j1-20020a170903024100b0015cee52cbf2mr21980468plh.10.1651677930500; Wed, 04 May 2022 08:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651677930; cv=none; d=google.com; s=arc-20160816; b=0wHQO0/83C1meA2KvgnL8NEI83jkBT55+vge/I4WNePy29ewUcVjAGiq4DLKrhzQSJ J/26nhkBrhs7TeKgRCR25T1k9KhTaWsZuc8vz/YVl0y4kSTf3slJWQDLKmkAmBrCvmXM xEbNeF4LRYhZg4ocV4fgAToVfIrJHmyPMa1Q17LgosKnf6+7g+sbjIK8RlSPJZb1Yxlm LKkOj65gYgz77NBB1zdxY/w9dp5LHXXSHdsmDEazqPGV6m59ei8iVZPCV+0KLzi3jBwi mGtQoEei6y9WKoT4cpNfCTI8mYgA/iWxglmoiVXAarxKjnA0YvlmV9bW45gJAT4Nw2qI 8DDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4fiXOSargbkmqorI6WusV2qGhD3iqsqBH5PjRfunjuA=; b=jBh6HQYAGJiKvithSpCBEm4+eFy+8ls1QsuCqYST9Ryk/9z97VHtV1MDfviTQnfoHS SePf8DiXQOVnX4XdBneF9plnyeN/16j17Tqbz9tbH+efFqNf/vhYWPkHkf/XmXg/AjtX Qz/fpbcRmVT0VjPFANax+AGgIPCbIDAkAK+fZF1KOg0CaOeCqa83JpWB8tcUMVaL3wtm vBH+6GPsHg6eCayd2J2QSIf7cH9wOXm9bJaZMsetz6Ni9/EBhI/C6RYU2hDB0wv+GFPs +LgS2ZWsjdqgsA1jyaldo0ajaBjJT/QKs9HELQuMwDmLVuLxp8VnNP2Iw2wW5CLtaKHP DBpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=YoNJVD72; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pw4-20020a17090b278400b001d75a3e38easi4792853pjb.41.2022.05.04.08.25.16; Wed, 04 May 2022 08:25:30 -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=@google.com header.s=20210112 header.b=YoNJVD72; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229537AbiECVNU (ORCPT + 99 others); Tue, 3 May 2022 17:13:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235960AbiECVNP (ORCPT ); Tue, 3 May 2022 17:13:15 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8EB63F8AB for ; Tue, 3 May 2022 14:09:41 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id s30so33224168ybi.8 for ; Tue, 03 May 2022 14:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4fiXOSargbkmqorI6WusV2qGhD3iqsqBH5PjRfunjuA=; b=YoNJVD72g3AVg+3aeTpK8KNgGmRrdH21U6jGrIF4yTt28emi7xJOvR/HVHHovuFaVi Rd+rn0a8n7qTEglfwFmqhABF0y3SYRRRrmknTwyamT3woWJY7QvpPos6aPXoaNRQJ2oV B2VptOYHCq2ctdiq3rOLXvB7cTCEBFxxlta1hd9rw1xOAdhwINOkLE7bA29UfIHpgFe1 Hi91a1cNyIXPOEJMCLjMi/mGqk+JQ7EGfMXLspEaH/MUkinOK6Hl+zjrf4PxxZfQKJdc H7PHfoB0QvVbHEfxf1qjOczuwlVUt+tWhFVrhaqw0qsMVX2ApZ2DOZRrlXestDqBC8FU lZEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4fiXOSargbkmqorI6WusV2qGhD3iqsqBH5PjRfunjuA=; b=sHCIC9n9irmB3A50/k1xxQA2WN1z2sGkDM1QDnuTLlTC0L8GfRXaQD6cqtoi0bQjhH rEgxwUm+YohzNMX5xJ6gSkl0wqhk3i28X08l5UoI9/jhRlvEzr3b5qIFVaoc8dWoyVzB cXWAOv00iesi7Xvo4vrcDJS2pQ3r7tFkDza+6+Il4VFmZ/WYtnDo8Z1AC4h1LDHtba5K 4SRzFxzRnt5+QSKy62WPi1+KaykStqJMjciU/ZP56Gda82uAKUZzPkk593HTZSudQpkW H2wJUTz2iuuv3eU/BgQ1IzMQ0qJqiKwNA0YVKnmeMBMWM13GTaUWTeQ4pl488ddl1o9r U8mw== X-Gm-Message-State: AOAM530HUHIUKKYW7AQijR2uJSDsnlCKaZ6gql8cGLtZ+fSzFp+EBnqM B9A4wUlAb7s9HkJkcDZnu6j1CRYZqHCqqDrC9Bv4oQ== X-Received: by 2002:a25:b095:0:b0:649:d59e:4c07 with SMTP id f21-20020a25b095000000b00649d59e4c07mr5306279ybj.627.1651612180307; Tue, 03 May 2022 14:09:40 -0700 (PDT) MIME-Version: 1.0 References: <20220502233853.1233742-1-rananta@google.com> <878rri8r78.wl-maz@kernel.org> <878rriicez.wl-maz@kernel.org> In-Reply-To: <878rriicez.wl-maz@kernel.org> From: Raghavendra Rao Ananta Date: Tue, 3 May 2022 14:09:29 -0700 Message-ID: Subject: Re: [PATCH v7 0/9] KVM: arm64: Add support for hypercall services selection To: Marc Zyngier 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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, May 3, 2022 at 1:33 PM Marc Zyngier wrote: > > On Tue, 03 May 2022 19:49:13 +0100, > Raghavendra Rao Ananta wrote: > > > > Hi Marc, > > > > 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 o= f > > > things to address, I've taken the liberty to apply my own fixes to th= e > > > 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). > Thanks for picking the dependency patches. I'll keep these mind the next time I push changes. > > > > 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: > > > > 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. > Thanks for addressing these. The series looks good now. Regards, Raghavendra > M. > > -- > Without deviation from the norm, progress is not possible.