From patchwork Thu Feb 3 17:41:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Upton X-Patchwork-Id: 12734485 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EFEE6C433F5 for ; Thu, 3 Feb 2022 17:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:References: Mime-Version:Message-Id:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=0xQz4RumHczpoGHk7LZwnHFLPiHTNQk51IrT6cmJGQ0=; b=TmMl1EORGfQ4fh4zEEWkoEeDzo 5vesoh1GeeE7fmwnvxsuuSIbKjl/LD9MeYUJL+yp1uuzIP/gGKQcg1PfKylhG2T2LMuY9woefe8Wl 1aeti8/mXz/w2KRalHiJCkZK1vUmSdhcJ4pqHb5qxHL+wVlKGYU76D0b/avtpeMxdyBMHBcPE2SVr Jg8ZRsCP32D/UKa6ZDQ/MkEMxDhnMupOdVTGJPnkKv0zqA4qhzG+ntzM1xDJ3q54Cs+D6eO7KzlKB 9CZ1uRtwMQ7RZoBwyhfttjjFjQBAnXJHp/w1ZRIISo2B9hSjDgjE8x/Fjm+vtRB6Thxt6yhijK3xR 67/hd2Lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFgBq-002JyV-IS; Thu, 03 Feb 2022 17:46:39 +0000 Received: from mail-il1-x149.google.com ([2607:f8b0:4864:20::149]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nFg7V-002IHr-Kk for linux-arm-kernel@lists.infradead.org; Thu, 03 Feb 2022 17:42:13 +0000 Received: by mail-il1-x149.google.com with SMTP id h8-20020a056e021b8800b002ba614f7c5dso2202684ili.2 for ; Thu, 03 Feb 2022 09:42:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=V8BbjeU/NUjuU0PC2phaUtgSmpC9nGD4vm8lUsINuPc=; b=CquM8kVvpzZqCsqd3uTsfb/Kq+NX1L8Btg7Y4cIvmQCfpvGHXwVLO/7lenwDXHB8eq +zPvw2EGJWYdyXqu9YhkKlgMvyeX7KCDkq5pI+qkUQ5te6Azs6NyvqIERfSxZxAGSk3P wDkIuA/Q5meKfi+a9mjf2y7mIR7cjKwYlWfwd+PxKQaDDnBl2nkoaKd4IfwZ7MXgV7F5 ASwYXKF6UNO7gZbDel/rBRqKxvbvPv4X6fIaSjuHTddVptehyzWbzTtEydDY5/AkyKF5 yyg3zzFZdpU7Cs0gcfQMUq/U9PtFAdV612z0aA5iGaOKg4XC6TqsbxXnBSvR+InZy+8S phWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=V8BbjeU/NUjuU0PC2phaUtgSmpC9nGD4vm8lUsINuPc=; b=Vdmeub/jQDLdnJ7aSDTEVZTzR4WoKAPryOjLfbzulQzeBu0iIGFwCuHcbk0Ig+APfJ iNMHkZAcXOopB8AcfmaAZTVR/fxs/eFbfGGB2zevZYBv5fnM11DPMiWdMlLGxjii7KGc zUmBzqYAw54FB+dKazD4yeneH1x/hNuUM6nVRPssneNP0hQggIpG+pGgsD+8d9vlFfWf tstd/kSXIFzcJGqxoYCzK4awkwjov7QNJZpl9PMBpAOrwU3cPi2/Q8KGJWGb2/iB/MR8 dk61qvQ1WavGQJw7Mkuw+uZ1k51kvqFbBqEE/cOH3rV3MXB6tRTtuw4Q7h7q8GTmkVcJ Ybgw== X-Gm-Message-State: AOAM533exvw+Hfp4gfNW6UxNswOC9GmGA6F95kQTvQssMyY0L6pO0NYt MWw06UTHMK2QFmdKgBrTIO3GB4eeGsg= X-Google-Smtp-Source: ABdhPJwvty3JHxDSDgNiODiOwQlb6U16qNxJc1J7l+iM6Xi2RAAcYFElWAr1Q86A+cSIHHHQIY21vcySbA0= X-Received: from oupton.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:404]) (user=oupton job=sendgmr) by 2002:a92:c24c:: with SMTP id k12mr9848406ilo.45.1643910127829; Thu, 03 Feb 2022 09:42:07 -0800 (PST) Date: Thu, 3 Feb 2022 17:41:58 +0000 In-Reply-To: <20220203174159.2887882-1-oupton@google.com> Message-Id: <20220203174159.2887882-6-oupton@google.com> Mime-Version: 1.0 References: <20220203174159.2887882-1-oupton@google.com> X-Mailer: git-send-email 2.35.0.263.gb82422642f-goog Subject: [PATCH v5 5/6] selftests: KVM: Add OSLSR_EL1 to the list of blessed regs From: Oliver Upton To: kvmarm@lists.cs.columbia.edu Cc: kvm@vger.kernel.org, Marc Zyngier , James Morse , Alexandru Elisei , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, Andrew Jones , Peter Shier , Ricardo Koller , Reiji Watanabe , Mark Rutland , Oliver Upton X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220203_094209_775465_8E83F890 X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org OSLSR_EL1 is now part of the visible system register state. Add it to the get-reg-list selftest to ensure we keep it that way. Signed-off-by: Oliver Upton --- tools/testing/selftests/kvm/aarch64/get-reg-list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/kvm/aarch64/get-reg-list.c b/tools/testing/selftests/kvm/aarch64/get-reg-list.c index f769fc6cd927..f12147c43464 100644 --- a/tools/testing/selftests/kvm/aarch64/get-reg-list.c +++ b/tools/testing/selftests/kvm/aarch64/get-reg-list.c @@ -760,6 +760,7 @@ static __u64 base_regs[] = { ARM64_SYS_REG(2, 0, 0, 15, 5), ARM64_SYS_REG(2, 0, 0, 15, 6), ARM64_SYS_REG(2, 0, 0, 15, 7), + ARM64_SYS_REG(2, 0, 1, 1, 4), /* OSLSR_EL1 */ ARM64_SYS_REG(2, 4, 0, 7, 0), /* DBGVCR32_EL2 */ ARM64_SYS_REG(3, 0, 0, 0, 5), /* MPIDR_EL1 */ ARM64_SYS_REG(3, 0, 0, 1, 0), /* ID_PFR0_EL1 */