From patchwork Sat May 21 06:31:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 12857694 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 1B3BAC433EF for ; Sat, 21 May 2022 06:31:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240195AbiEUGb0 (ORCPT ); Sat, 21 May 2022 02:31:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbiEUGbZ (ORCPT ); Sat, 21 May 2022 02:31:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5F2041E3F1 for ; Fri, 20 May 2022 23:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653114680; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=zHLMnhFySsFtf9jU9mylcGPoZOFPA7Ix+k7LYTrmjHI=; b=e3rJPrSs7Khz90vA6cJprzQKninSKHt4WVB4joC6D/q2sFt8j0Gk0QKDcVsuJps4J7f+na mFri2Hfg9W70UtrUZQQCo0yomLH1Z3NjoP4n0Pigz3gEmQHu/9yxha/G42MvooUp6yJWUN HYei+/D+Vca4Xn5XyTXdhzmTuIWTTfs= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-675-hHJXGTQPMC-bMqlWE_U8PQ-1; Sat, 21 May 2022 02:31:18 -0400 X-MC-Unique: hHJXGTQPMC-bMqlWE_U8PQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 357DB185A79C; Sat, 21 May 2022 06:31:18 +0000 (UTC) Received: from virtlab701.virt.lab.eng.bos.redhat.com (virtlab701.virt.lab.eng.bos.redhat.com [10.19.152.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id 19A417ADD; Sat, 21 May 2022 06:31:18 +0000 (UTC) From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [GIT PULL] Final batch of KVM fixes for 5.18 Date: Sat, 21 May 2022 02:31:17 -0400 Message-Id: <20220521063117.70051-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Linus, The following changes since commit 053d2290c0307e3642e75e0185ddadf084dc36c1: KVM: VMX: Exit to userspace if vCPU has injected exception and invalid state (2022-05-06 13:08:06 -0400) are available in the Git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to 9f46c187e2e680ecd9de7983e4d081c3391acc76: KVM: x86/mmu: fix NULL pointer dereference on guest INVPCID (2022-05-20 13:49:52 -0400) Sorry for the relatively large change so close to the release, but in terms of lines added it's mostly selftests. ---------------------------------------------------------------- ARM: * Correctly expose GICv3 support even if no irqchip is created so that userspace doesn't observe it changing pointlessly (fixing a regression with QEMU) * Don't issue a hypercall to set the id-mapped vectors when protected mode is enabled (fix for pKVM in combination with CPUs affected by Spectre-v3a) x86: Five oneliners, of which the most interesting two are: * a NULL pointer dereference on INVPCID executed with paging disabled, but only if KVM is using shadow paging * an incorrect bsearch comparison function which could truncate the result and apply PMU event filtering incorrectly. This one comes with a selftests update too. ---------------------------------------------------------------- Aaron Lewis (3): kvm: x86/pmu: Fix the compare function used by the pmu event filter selftests: kvm/x86: Add the helper function create_pmu_event_filter selftests: kvm/x86: Verify the pmu event filter matches the correct event Marc Zyngier (1): KVM: arm64: vgic-v3: Consistently populate ID_AA64PFR0_EL1.GIC Paolo Bonzini (2): Merge tag 'kvmarm-fixes-5.18-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD KVM: x86/mmu: fix NULL pointer dereference on guest INVPCID Quentin Perret (1): KVM: arm64: Don't hypercall before EL2 init Sean Christopherson (2): KVM: x86/mmu: Update number of zapped pages even if page list is stable KVM: Free new dirty bitmap if creating a new memslot fails Wanpeng Li (1): KVM: eventfd: Fix false positive RCU usage warning Yury Norov (1): KVM: x86: hyper-v: fix type of valid_bank_mask arch/arm64/kvm/arm.c | 3 +- arch/arm64/kvm/sys_regs.c | 3 +- arch/x86/kvm/hyperv.c | 4 +-- arch/x86/kvm/mmu/mmu.c | 16 ++++++---- arch/x86/kvm/pmu.c | 7 ++-- .../selftests/kvm/x86_64/pmu_event_filter_test.c | 37 +++++++++++++++++++--- virt/kvm/eventfd.c | 3 +- virt/kvm/kvm_main.c | 2 +- 8 files changed, 56 insertions(+), 19 deletions(-)