Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp970920pxb; Tue, 29 Mar 2022 13:57:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhXuc2ZwXoZjLnCwRI47K6ZT75u1zRQ6l2IsYwL6pk8Vqf050lcy0gLIy8RD8985ulynZC X-Received: by 2002:a63:4721:0:b0:382:70fa:479d with SMTP id u33-20020a634721000000b0038270fa479dmr3371279pga.259.1648587430427; Tue, 29 Mar 2022 13:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648587430; cv=none; d=google.com; s=arc-20160816; b=SSzQe8RKILjyuUUK+UbJaFieFmgUviPmPdOjrsLTD+zOQKj4WaJBMlgwJ5o4QQxyvh MVdJ27rWXBowlibjsWcv5oMfTCsVXmyRWjIDAXPxSdreE9ED3X8MscYgcKBvbanBKZvA bnLJsnubZb9rFSrvq82KyC6RllaE256tdrD2WzYl+zBh1XokAEeIUq82s5MqA5zIi12X diffqVuImxqR6jkjaXapLBLkD5+dWMZU7YDCsZ8fwshOZf9Y4S6PwGN+61IIbJQSURuM 2P+c6+OoCKOdcg7Ijez5i+DZ6KPZqMk/1cGbhwWfvp3YZY2+pxJw7edOYgsiQQfE8a0R /4MQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=UTbD7jGgh/KLDDWua+lhKitl7ix/55ibmUsyIxaned4=; b=U8D+C7cpRJn6WOjvMrcS0//8wyBu58EPfFxQmN+rp864KlI+OBmsvRFh/iV3fhHU57 hxkKHsWYalK5y8gNtKj/yQQPDUGPER/tOjqVJxMFa8S1sixcn+j5Y7EptEvHVO/WTAro EEZrfHeiqILneH6gPGCr59o7yrdscAPTRtg5wV8j2byq3/VZndwR+VUP6NQiB9j3sPZm QO6HFpJC+7SyGn2l3Pu7CWs1kmOkFmvlxicaOLEOfTxigri9FRfH68rl85+aMCixl6P+ U+l19JO6lImWurmVZEw/I5MWsYXiMlLw67rNUFdvwqA/8fjFGAVQefOucxlAeiKBohDs ESDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=UEarIBkX; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r15-20020a170902be0f00b00153b2d1646fsi18053872pls.119.2022.03.29.13.56.57; Tue, 29 Mar 2022 13:57:10 -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=@ventanamicro.com header.s=google header.b=UEarIBkX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233395AbiC2HbL (ORCPT + 99 others); Tue, 29 Mar 2022 03:31:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbiC2HbK (ORCPT ); Tue, 29 Mar 2022 03:31:10 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1788A2AE6 for ; Tue, 29 Mar 2022 00:29:28 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id b15so15144463pfm.5 for ; Tue, 29 Mar 2022 00:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UTbD7jGgh/KLDDWua+lhKitl7ix/55ibmUsyIxaned4=; b=UEarIBkXggU6f1IDuuLRahcOyLDmhoTwhhFad0YQS6tczcmbGtfopV40XNg0dlMLV9 5kE3fh2S0koV0yDrG3x5lFHmuc5mobUwE5bD2DMFbDfCAzYfhhYeRsrprilqKrN3zrHq 1w7Pfts/TuEemwSOWKOH4G1E5Qby4wB1xCfe+Pfj/zWTaGpvk0T1OYPiQRsTGDfyx9id Q/x2xfJ8PJUeYs5uvJC7i9NQ4aBP42ucW5mOFhOvtXsT4966C9S3M2Q1WYSslEJ7Akdr pUEtEkn6i7WTWvf1jywickNrM6pC0HcBP+7Skped0Jwd/GAdpSxARqtAAqyPy2EpqVBv ediQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UTbD7jGgh/KLDDWua+lhKitl7ix/55ibmUsyIxaned4=; b=RzngHKXiohh49PkoJR6YLsvaOj2qYxyh/YpHu0T0bl0rwkh1R1sBtu1hpcWpWAavxT sdjVLBA7iAqh/ATHSUa9Su0NlzR2I1riXEF+d2Q8awa858BcIqygCcFwN6DM0QfdLBKS SbreKQq5ncYUmECMOxyvt5IZs//rvU8gof5bP46ZlsrpwqOkt71khizPb82+1uWGDDPU A95N2Bj9obGbRiwL0OSRCyqxJGbyKofghp7Ynk1NWH1X0BFDgXSphTjLTcZC+HnsqFl+ e0h5VYBT9yMCU62UjDOG5Q0SW4PTMnh9HYrQNrRq//lgi9oO3GtmPASgy+JRe713y85r Qzqg== X-Gm-Message-State: AOAM533ZJ1EQelikBBNrAhYwLyAZ32eQ53kAwtwnQbblpnEj5Xc/ZyoS g6abIdkpWc2g6hCjL6QMzjTgBw== X-Received: by 2002:a63:211b:0:b0:382:6f4e:3408 with SMTP id h27-20020a63211b000000b003826f4e3408mr1061874pgh.515.1648538967322; Tue, 29 Mar 2022 00:29:27 -0700 (PDT) Received: from localhost.localdomain ([122.171.166.231]) by smtp.gmail.com with ESMTPSA id z6-20020a056a00240600b004e17ab23340sm19440564pfh.177.2022.03.29.00.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 00:29:26 -0700 (PDT) From: Anup Patel To: Paolo Bonzini , Atish Patra Cc: 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, Anup Patel Subject: [PATCH 0/3] Unexpected guest trap handling for KVM RISC-V selftests Date: Tue, 29 Mar 2022 12:59:08 +0530 Message-Id: <20220329072911.1692766-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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