Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3516178pxb; Mon, 4 Apr 2022 19:33:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC9SG0+D4KXzWMPhib7jxnE1OVXNtLMsh4Vb+Eo6++ZmOlssYaGQWP8BN3y23X+xLJL5ZB X-Received: by 2002:a17:902:e882:b0:154:445d:9818 with SMTP id w2-20020a170902e88200b00154445d9818mr1289374plg.40.1649125991182; Mon, 04 Apr 2022 19:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649125991; cv=none; d=google.com; s=arc-20160816; b=AsiKLHsTJbUuvvGKTUmT48zMaTSCcAzsea6tSIKlqbIc/vPlgY3d2r3VmmYIt3PiH3 r8phKa+IvepqARG2GUprCYRBNn5Nm8zTABUbZDZeUIl7Sfy5F20oRK8D7dYbXEs6dxJr l5tFV/ey6sXkA2EPSJSQln4k+B9vKtbQLPHonP0FCLlL9LIGLRuLl7NEFs6a9o2eWjWJ oyjlNpaTTss9I+Y8GAxueHNvzEp5kMEIpfSfY8TybMFcS9Do57Q/Y81M/cER+yHo7m2j QW8k7neA8gjKsrnLBoeMKaYq1im6c0nxDNQ4syS99/LC/e06K1kv1chu1HTvG56Egcta GFsQ== 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=WFqQvpKwz9t3MY+vODy7R6BwTMReD9EdP51jpYbflnM=; b=CVmvvffB+Gq9KarZYkDdJ6gwYwQkTDUD0TMYHvwGFjFKaxvNxcONUbbaXx0llkE5XI /exjaRQEqX8Y4sWnuH/UiztSJx+uWujHLi7zVJgvcm+7o5QP0ZtycqI34UiGeki+tRVd MRERlNRHmE8R0o8VlanA3W3CeJuA+7qDNxmQPRiUZIS9IDZD+61SWknycu8hDGKAKlo+ 6eHb2s3HLe0CQWzaWQrQ23Q+mCm9KanXT3GQQA8qBScj3Mx2agi9f5FfVC7HJbfDHNjr u+lYEqwqmTAVMo70JNZSD/mh/529fs++BHFpQmna5jNDZX+M8RvsJZb7IHy9J984jT0u GU2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=ZCKSOsE9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id pj14-20020a17090b4f4e00b001bf207bdb67si961592pjb.47.2022.04.04.19.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 19:33:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=ZCKSOsE9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 98BBD2F05E2; Mon, 4 Apr 2022 17:56:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377073AbiDDEOQ (ORCPT + 99 others); Mon, 4 Apr 2022 00:14:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233038AbiDDEOP (ORCPT ); Mon, 4 Apr 2022 00:14:15 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3105F23BEF for ; Sun, 3 Apr 2022 21:12:20 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id t25so14909716lfg.7 for ; Sun, 03 Apr 2022 21:12:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WFqQvpKwz9t3MY+vODy7R6BwTMReD9EdP51jpYbflnM=; b=ZCKSOsE9fWMUmrSdwyyh4jD0q/OpYUH/QL2SGajWsM7FyBvZRcWnoBFFLEyb6//gy7 xDoghElluMymqnJk7EtAkzfN1G7LsjBEA96ENW/BTeTClIugzQHyTzi1mHTE2sy83eob yLHXP6PoNhvGEzTi0TyBVnZR9bKLwwgF3MiMGPNIySFyYkdeO5IL59o0act2GAvKlxo0 EtgPgILqxaGDU69VXLnG4iw2UGQEOTQUy6BPYGV2y0C37/eKGJYFaOyOCfGQ0fVGj0zy aqoU1quVMMvGtJ6XRxJi6f5lQX3vcnfB6bHHAm65w687o5MCbNeX5bgQs+LdwbadFljW OZTQ== 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; bh=WFqQvpKwz9t3MY+vODy7R6BwTMReD9EdP51jpYbflnM=; b=sbiiWqIiug19hG6RNjo7JBikRhTGnkMUM2c+v58CVXudq8KGK6iJCiML47gMOS9a5+ vw+TuIEtGQ/5o+bxT+IVrvHJMJ3jCQVX+BrDpZOZydzofiPR/m6JdBJbnLXOUH9FAKLh LFRq8h02tt1sHpOSNse1NIzs3AeHRGS6jYqVMvD/lUYP6NGPQ1wW88cXU6iQgASaEKz1 5XOAua3DCovshgYb1+z8RvdUDKqmReqvjd8hVxTF7L1Bexc+DjvVETWNkZbJgoAU+mMf NOQpjvruX7/6VYNhdpzB/8uas9IAKd+SmrwH+ZqC4gGsTTUqfd6+MuN8cGi+BrHKRJYk c3jA== X-Gm-Message-State: AOAM530Om3l5VGMnoYqOqFG0Uxs30mwlN203F44vXnrYy6b2QfuG2E+X 5OTXhCLFCvaTnsLRWQ+yaCX+M5Y9XnSZ85wEd8IExw== X-Received: by 2002:a05:6512:3ca9:b0:44a:fe96:fe0e with SMTP id h41-20020a0565123ca900b0044afe96fe0emr3042289lfv.77.1649045538414; Sun, 03 Apr 2022 21:12:18 -0700 (PDT) MIME-Version: 1.0 References: <20220329072911.1692766-1-apatel@ventanamicro.com> In-Reply-To: <20220329072911.1692766-1-apatel@ventanamicro.com> From: Mayuresh Chitale Date: Mon, 4 Apr 2022 09:41:42 +0530 Message-ID: Subject: Re: [PATCH 0/3] Unexpected guest trap handling for KVM RISC-V selftests To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Albert Ou , Alistair Francis , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, Mar 29, 2022 at 1:00 PM Anup Patel wrote: > > Getting unexpected guest traps while running KVM RISC-V selftests should > cause the test to fail appropriately with VCPU register dump. This series > improves handling of unexpected traps along these lines. > > These patches can also be found in riscv_kvm_selftests_unexp_trap_v1 branch > at: https://github.com/avpatel/linux.git > > Anup Patel (3): > KVM: selftests: riscv: Set PTE A and D bits in VS-stage page table > KVM: selftests: riscv: Fix alignment of the guest_hang() function > KVM: selftests: riscv: Improve unexpected guest trap handling > > .../selftests/kvm/include/riscv/processor.h | 12 ++++--- > .../selftests/kvm/lib/riscv/processor.c | 9 +++--- > tools/testing/selftests/kvm/lib/riscv/ucall.c | 31 +++++++++++++------ > 3 files changed, 34 insertions(+), 18 deletions(-) > > -- > 2.25.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv I have tested the series on Qemu. Tested-by: Mayuresh Chitale