Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1519598rwb; Wed, 16 Nov 2022 20:01:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5tN2sF9KyymKrk9yxFQAOV8MrOjA6oMEwzUALvtQgqoCU8BshOS88gvgw8iB84X+EkGMUR X-Received: by 2002:a17:906:3953:b0:78d:39ac:3129 with SMTP id g19-20020a170906395300b0078d39ac3129mr738987eje.24.1668657692023; Wed, 16 Nov 2022 20:01:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668657692; cv=none; d=google.com; s=arc-20160816; b=K255wsbBkU1hvKoYqm9J0ajZl0xT4lZaUd9Fxmw0PFuAjsAW0grjxXRnuRJZtEdeOv 9dhuSGGfJzKdSRceMUdVHfSJ4wZsR3HZOg3TVDIjg7fqmz/L313nxPo/ckCTqoz5fqE/ BoWypWjSghSaw7+MUVblCuZvd0ggohIG6JrR4MYp/jtOsAkrBJ/kjbdo57SezPqltfC1 /aM+B4C9Oewo+R8PSedSQuoF9qmiKgFbIGSctT+4KG02O07pHeOFg02Ox1EtsQrUkbzg K5PowOI95vHqLPcRlaT2JOG8Vn4f/0fjTUFYflCkbe+cRM6XT256d6+rez+JHG6kk0EK 5ngg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pa5UqVHoKtSmMcTtq44P+OTbkS+eAwwWT8kOI+vqzfQ=; b=xuti9dU4Q7BqGypN7UD8vD3IVeCreGZvm3VFyRVvrhlQxLA+EnVQKCR4lL9So5Wy3A TtTGmm+2/TEAdu0FvVz7ExDg2P08xXLfj0DlwgdhAJFM1qHbRwxYk+Rqm2WvjD22yqBu UPvdDbmCh2ZoNDS72w3bs4QRNTK4uDyrQUJKbZth9f56PyxH2blJMzGDTcch+6obhp9w KYAMuPpVE6nlkKVHWohNN0V8yLFIiwgZPgydbulVdKch9mpXquOlV3WNNqu3XMn4Keze rnCHa4XF06oa2uIYF+RnjqZBUHoLJFJEHQBjAiT4SUJsBVebEgcx+TkQfD/f0gBlAIyA I3WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=fGfwLJbY; 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 ce11-20020a170906b24b00b007825bd02a6asi12761351ejb.54.2022.11.16.20.01.10; Wed, 16 Nov 2022 20:01:32 -0800 (PST) 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=fGfwLJbY; 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 S234148AbiKQDHl (ORCPT + 90 others); Wed, 16 Nov 2022 22:07:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232921AbiKQDHj (ORCPT ); Wed, 16 Nov 2022 22:07:39 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 586E161BB1 for ; Wed, 16 Nov 2022 19:07:39 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id w4-20020a17090ac98400b002186f5d7a4cso649913pjt.0 for ; Wed, 16 Nov 2022 19:07:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pa5UqVHoKtSmMcTtq44P+OTbkS+eAwwWT8kOI+vqzfQ=; b=fGfwLJbYQdy/G/BDCUmvzEKCl86N3TtDPIxkdzCUUG5SxWXmkaqsjH4zxZjm+9EqQ3 0DnbmWLdhVLD47jVGlDwt1Qi6cjG3CIXIHP5oC5CQ2zRR7QTACY9/Sb//2HfGoIVou2o lDypdJakoSkMG3OzQNBziXbuuQAqSMTXNI8tHZFEW3YYnLF489LAS1awa1C6y1UBWVUL 2dEn1B0NeuQluzDRXry+DZBdotiZsXrloQg00i634wfHsCm6zZ+VSRzNBsejwHT7/IFV fuEAkUYy07DwH+JrjYGkN8EM7flnITG0xEK3F4svo31W7SWMBhULnsAp5qwRqfjTF03S Xx/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pa5UqVHoKtSmMcTtq44P+OTbkS+eAwwWT8kOI+vqzfQ=; b=5RQLyeL99rUgB5WPKSzt0eg9LAd1kyi0APt0Zg/S8blsfANbfae3gZddWcyksTWru9 7R3O6gzqaUjYp7zR2nvbSU1Kj1jmX8J1nTp9CkuFt/PjIJ2kKK4m4eqfpnvR8FtFP1e0 QOGGCPTP1GjNoG7KNCxfZup8G0krk6oPEEJN73lA4v0QLFUVKZV23AZjXNtXz7yRtY+f yruqiRMvtsu4Ik68rOlC7xjVGfNEferBt8jkh6cjF3+CsyDV31wzMvLbT5grV820Smr8 bQqfPNzreeeiTMRr8FHVxKQzVuPBSPRisqw8SfIAyCtrs4Ulh/W5+rjXVlVoKOOPRNpU ARjw== X-Gm-Message-State: ANoB5pmfweeZFKVOqz6FILy9xPGQ08kM4jj/S2TaWlfHa1IDhIj7lz4z zQT2hDYNYKTSjWqPnOAB12cpk5vIQ7Hc53MfC1cZ4w== X-Received: by 2002:a17:90a:ab84:b0:213:343:9873 with SMTP id n4-20020a17090aab8400b0021303439873mr6754073pjq.102.1668654458703; Wed, 16 Nov 2022 19:07:38 -0800 (PST) MIME-Version: 1.0 References: <20221117002350.2178351-1-seanjc@google.com> <20221117002350.2178351-2-seanjc@google.com> In-Reply-To: <20221117002350.2178351-2-seanjc@google.com> From: Reiji Watanabe Date: Wed, 16 Nov 2022 19:07:22 -0800 Message-ID: Subject: Re: [PATCH 1/2] KVM: arm64: selftests: Disable single-step with correct KVM define To: Sean Christopherson Cc: Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , Oliver Upton , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Wed, Nov 16, 2022 at 4:24 PM Sean Christopherson wrote: > > Disable single-step by setting debug.control to KVM_GUESTDBG_ENABLE, > not to SINGLE_STEP_DISABLE. The latter is an arbitrary test enum that > just happens to have the same value as KVM_GUESTDBG_ENABLE, and so > effectively disables single-step debug. > > No functional change intended. > > Cc: Reiji Watanabe > Fixes: b18e4d4aebdd ("KVM: arm64: selftests: Add a test case for KVM_GUESTDBG_SINGLESTEP") > Signed-off-by: Sean Christopherson > --- > tools/testing/selftests/kvm/aarch64/debug-exceptions.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/kvm/aarch64/debug-exceptions.c b/tools/testing/selftests/kvm/aarch64/debug-exceptions.c > index 947bd201435c..91f55b45dfc7 100644 > --- a/tools/testing/selftests/kvm/aarch64/debug-exceptions.c > +++ b/tools/testing/selftests/kvm/aarch64/debug-exceptions.c > @@ -369,7 +369,7 @@ void test_single_step_from_userspace(int test_cnt) > KVM_GUESTDBG_SINGLESTEP; > ss_enable = true; > } else { > - debug.control = SINGLE_STEP_DISABLE; > + debug.control = KVM_GUESTDBG_ENABLE; Reviewed-by: Reiji Watanabe Maybe I originally wanted to set it to 0:) There is no issue with KVM_GUESTDBG_ENABLE at all, as KVM_GUESTDBG_SINGLESTEP is cleared with that. Thank you for fixing this! Thanks, Reiji > ss_enable = false; > } > > -- > 2.38.1.431.g37b22c650d-goog >