From patchwork Wed Sep 20 15:46:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 13393031 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2B08BC04AAA for ; Wed, 20 Sep 2023 15:46:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235426AbjITPqb (ORCPT ); Wed, 20 Sep 2023 11:46:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236749AbjITPqa (ORCPT ); Wed, 20 Sep 2023 11:46:30 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ED3FB9 for ; Wed, 20 Sep 2023 08:46:24 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1c3d6d88231so56010545ad.0 for ; Wed, 20 Sep 2023 08:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1695224784; x=1695829584; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HIC1z+Y5X7nE4BXr1975QA3QvmpInOTVPTiyv7G4DQk=; b=Zc4mumcs4PLbklSIehlaVVP4N/0QW604dbJlsdHfeJjeTzimaTiUyYP4lJMPUwb2Wj K/0oPDgTqY8Wed0KEqKrKdqiX2PaP9a3/FgYWzVj3gCQuNSDMjlEZfW7uKh5LpDv0geh hs1HHCQTxWLHGQLSZOg9bH/Z7oTdbVI2OJAQdJwCsyv4dgwEdiwYiEkjFReXahFuUuCK MCczDjB3xIqRcKkpafTDMC73usHZi58yIVHJS4odLzidZTJhkBLBjkt7kOnqCuhgyH3z yzPoBjmPmFWWzmXUVv1ZT5ZJ3iP4P1Y7dHR8q2KQpM5py2xDU0kM6vRcAyru5sKpdGvo 0ang== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695224784; x=1695829584; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HIC1z+Y5X7nE4BXr1975QA3QvmpInOTVPTiyv7G4DQk=; b=UtRLd3Jbwvj0Hy8icx89p74ImkgnEAzL9Joau2YCh6febU9HkxZpdjDuXGK/oII77I ebAIV8kVHDoPTnWuE2i8G69ElGRzGcaNciwbItwUQHqhNrqP5hP+1CzINwYs/NUaDC0b zlwwlX5iRAMT95xP2/lJzCIfSmfESvMmb5kJ1Rlgeyq89OIlTo3RAm5g3otnuVLcICyi igOoZ1g76mkjKFqbOSVHHsSjTsbH3Rkd37vtVhIJVd4/vb7ovcwcwmTCgRBI+n1xSa7I ujRs4WoFO7l52w6krpr88m4FS/fy2n91Fwek2WllrPu0sI0m5CYIImHsyP8odgVI9lIN 4g7g== X-Gm-Message-State: AOJu0Yw9vPc5hOMe8da+USUe20zet116wSjRXeZkC/2ImhTDNoPWQ5bx STmuBUxmY7WoGg9zItvhGvB9GCi4EWuzMKuk6Io= X-Google-Smtp-Source: AGHT+IH3EjLrv/byDVEUBKjQ6K2VTEFNBFwq6oAb2NPMTHvNIVpZJ/QjFXRiSyjLYbNycwjvDS1j2g== X-Received: by 2002:a17:902:dad2:b0:1c4:c92:2320 with SMTP id q18-20020a170902dad200b001c40c922320mr3107163plx.31.1695224783665; Wed, 20 Sep 2023 08:46:23 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([171.76.85.109]) by smtp.gmail.com with ESMTPSA id m7-20020a170902db0700b001c0de73564dsm11995153plx.205.2023.09.20.08.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:46:22 -0700 (PDT) From: Anup Patel To: Paolo Bonzini , Atish Patra , Shuah Khan Cc: Palmer Dabbelt , Paul Walmsley , Andrew Jones , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Anup Patel Subject: [PATCH v2 0/4] KVM RISC-V fixes for ONE_REG interface Date: Wed, 20 Sep 2023 21:16:04 +0530 Message-Id: <20230920154608.1447057-1-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org This series includes few assorted fixes for KVM RISC-V ONE_REG interface and KVM_GET_REG_LIST API. These patches can also be found in riscv_kvm_onereg_fixes_v2 branch at: https://github.com/avpatel/linux.git Changes since v1: - Addressed Drew's comments in PATCH4 Anup Patel (4): RISC-V: KVM: Fix KVM_GET_REG_LIST API for ISA_EXT registers RISC-V: KVM: Fix riscv_vcpu_get_isa_ext_single() for missing extensions KVM: riscv: selftests: Fix ISA_EXT register handling in get-reg-list KVM: riscv: selftests: Selectively filter-out AIA registers arch/riscv/kvm/vcpu_onereg.c | 7 ++- .../selftests/kvm/riscv/get-reg-list.c | 58 ++++++++++++++----- 2 files changed, 47 insertions(+), 18 deletions(-)