From patchwork Mon Apr 25 16:39:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 12825944 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 4746BC433F5 for ; Mon, 25 Apr 2022 16:40:28 +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:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=MmDvqkMdHGgAqKI64vY4I0UMuoJc/UxjZorScWTCHl8=; b=EOT4S7/9QCu8fF uSR/gKYqi7rGlUMlzac8q3kt49sRSasOGpzJ1PFRuPMQpdvvUkZ/ESe1JMqNqyhVpGgiBvLswNIDh T3H+0EOmJqsL7h1jyAs7Ua/23UeZoVZWoM99HqhDyG+nYOHt4BUz0qpMPyUGYVoiB8GDgOyHRZuNM W3JDyDAhO8AkPeSyRzbqbuktXDhIKX/4GwapG989QpdjXgpPH/eQSlaJAb6pU6y3iRVf3hz4LkQCZ 9961QwhpbUWz6wpBHRoPM3nBoyPhDb78HRhiGLIED+c2C1YKmkg4u0ua8UVakTCboGv0Ce98K5pV9 yYcqwg6SBSJ+Hjo0b8yw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nj1kB-00ARVZ-0w; Mon, 25 Apr 2022 16:39:23 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nj1k1-00ARRn-Ls for linux-arm-kernel@lists.infradead.org; Mon, 25 Apr 2022 16:39:16 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 205881FB; Mon, 25 Apr 2022 09:39:12 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1B67D3F774; Mon, 25 Apr 2022 09:39:10 -0700 (PDT) From: Alexandru Elisei To: maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Subject: [PATCH 0/2] KVM/arm64: sys_reg_table_init() small improvements Date: Mon, 25 Apr 2022 17:39:01 +0100 Message-Id: <20220425163904.859195-1-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220425_093913_788309_8BC77FB5 X-CRM114-Status: UNSURE ( 6.04 ) 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 These are two small improvements to how KVM handles an out-of-order sys_reg_desc table. These should only affect KVM developers, as the end user should never see an error caused by an unsorted sys_reg_desc table. Alexandru Elisei (2): KVM/arm64: Don't BUG_ON() if emulated register table is unsorted KVM/arm64: Print emulated register table name when it is unsorted arch/arm64/include/asm/kvm_host.h | 2 +- arch/arm64/kvm/arm.c | 7 ++++-- arch/arm64/kvm/sys_regs.c | 37 ++++++++++++++++++------------- 3 files changed, 28 insertions(+), 18 deletions(-)