From mboxrd@z Thu Jan 1 00:00:00 1970 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 A2972C7EE23 for ; Sun, 4 Jun 2023 10:26:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230518AbjFDK0g (ORCPT ); Sun, 4 Jun 2023 06:26:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbjFDK0d (ORCPT ); Sun, 4 Jun 2023 06:26:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0F361BD for ; Sun, 4 Jun 2023 03:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685874344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6QuVff0D6XaAXOCOopebXuwGjm2V9RJJEXXLpHUrRf4=; b=fwTyQBg8mT21H/fpY9k+1vxZi7nTAkADSzGTT6GY358kEfCP/+CzNLEC5S7ojptiPNxiS+ Y2CHQ8edKnrYqW/zi3+AlRdKLXn0Md+/niBVjMuQnnzepzNAsYAI5K45XGnzhvElUrRS/I Xe4PNvWvAKXnBzeN7apYeFH+YIUmtVM= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-498-pc1F0zy0Mwer03OD8jcRNg-1; Sun, 04 Jun 2023 06:25:41 -0400 X-MC-Unique: pc1F0zy0Mwer03OD8jcRNg-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-97542592eb9so131350766b.2 for ; Sun, 04 Jun 2023 03:25:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685874340; x=1688466340; 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=6QuVff0D6XaAXOCOopebXuwGjm2V9RJJEXXLpHUrRf4=; b=Us1WXFHozB/mVbMf/+u69ReUGIeKJwB1HmNyzTjIi7KAhgosDfVa8uMsHcWsFb0wSL Y2O6kFHaqRzGzOOm5mi7vU51XnNCvaGoqIKkVisLnZOz9o+gDAN7f4K96vPSRqEsD6MU IWaZAWv3cdPGPcNWo8ZBkzghRRm5Iox71Ni6OC0kUaXYEWhqZYw4SpDgGGSqAWIrYmoF TtmOGnRLBkPlt9dy3pruYVXu1heCWla6oJaleD6fTNdxcN+jpRDr+28BVqk9zUjOkrvM vtkigwPez0SniGYzrQdRakMnXbzrgAWcdHr9mvIj6yMuonz9cBOEheBsvxvzvLXROL6E FOaQ== X-Gm-Message-State: AC+VfDythPSHTLbGIq4lvQy6smsakYQz9yRL6u/Sxw1UT/MPhDgNukx8 442CJM3WyRS3dU/z0UPcNZRgZfU5IJZJi7PWxUFJY9vVHEkRw0lGaRn00g9UzAlDJaSGgyzt4L4 Lc3TSjEtItBXDpBLP1rtCze3P X-Received: by 2002:a17:907:36cd:b0:974:4457:b6f with SMTP id bj13-20020a17090736cd00b0097444570b6fmr3774098ejc.23.1685874340243; Sun, 04 Jun 2023 03:25:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ53MNg5eFT+A6Y7ISahP3Zp1j3vd9ETNRvngzAMX7tdW0nnEjhgKaL7fFs7ARigZ11uJ1ffZg== X-Received: by 2002:a17:907:36cd:b0:974:4457:b6f with SMTP id bj13-20020a17090736cd00b0097444570b6fmr3774085ejc.23.1685874339862; Sun, 04 Jun 2023 03:25:39 -0700 (PDT) Received: from [192.168.10.118] ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.gmail.com with ESMTPSA id bi1-20020a170906a24100b009664cdb3fc5sm2904639ejb.138.2023.06.04.03.25.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jun 2023 03:25:39 -0700 (PDT) From: Paolo Bonzini To: torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [GIT PULL] KVM fixes for Linux 6.4-rc5 Date: Sun, 4 Jun 2023 12:25:38 +0200 Message-Id: <20230604102538.8867-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus, The following changes since commit b9846a698c9aff4eb2214a06ac83638ad098f33f: KVM: VMX: add MSR_IA32_TSX_CTRL into msrs_to_save (2023-05-21 04:05:51 -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 f211b45057d8b0264b494f1acebf2e8d7f9432c9: Merge tag 'kvm-x86-fixes-6.4' of https://github.com/kvm-x86/linux into HEAD (2023-06-03 15:16:58 -0400) ---------------------------------------------------------------- ARM: * Address some fallout of the locking rework, this time affecting the way the vgic is configured * Fix an issue where the page table walker frees a subtree and then proceeds with walking what it has just freed... * Check that a given PA donated to the guest is actually memory (only affecting pKVM) * Correctly handle MTE CMOs by Set/Way * Fix the reported address of a watchpoint forwarded to userspace * Fix the freeing of the root of stage-2 page tables * Stop creating spurious PMU events to perform detection of the default PMU and use the existing PMU list instead. x86: * Fix a memslot lookup bug in the NX recovery thread that could theoretically let userspace bypass the NX hugepage mitigation * Fix a s/BLOCKING/PENDING bug in SVM's vNMI support * Account exit stats for fastpath VM-Exits that never leave the super tight run-loop * Fix an out-of-bounds bug in the optimized APIC map code, and add a regression test for the race. ---------------------------------------------------------------- Akihiko Odaki (1): KVM: arm64: Populate fault info for watchpoint Fuad Tabba (1): KVM: arm64: Reload PTE after invoking walker callback on preorder traversal Jean-Philippe Brucker (4): KVM: arm64: vgic: Fix a circular locking issue KVM: arm64: vgic: Wrap vgic_its_create() with config_lock KVM: arm64: vgic: Fix locking comment KVM: arm64: vgic: Fix a comment Maciej S. Szmigiero (1): KVM: SVM: vNMI pending bit is V_NMI_PENDING_MASK not V_NMI_BLOCKING_MASK Marc Zyngier (2): arm64: Add missing Set/Way CMO encodings KVM: arm64: Handle trap of tagged Set/Way CMOs Michal Luczaj (1): KVM: selftests: Add test for race in kvm_recalculate_apic_map() Oliver Upton (3): KVM: arm64: Drop last page ref in kvm_pgtable_stage2_free_removed() KVM: arm64: Iterate arm_pmus list to probe for default PMU KVM: arm64: Document default vPMU behavior on heterogeneous systems Paolo Bonzini (3): Merge tag 'kvmarm-fixes-6.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD Merge tag 'kvmarm-fixes-6.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD Merge tag 'kvm-x86-fixes-6.4' of https://github.com/kvm-x86/linux into HEAD Sean Christopherson (3): KVM: x86/mmu: Grab memslot for correct address space in NX recovery worker KVM: x86: Account fastpath-only VM-Exits in vCPU stats KVM: x86: Bail from kvm_recalculate_phys_map() if x2APIC ID is out-of-bounds Will Deacon (1): KVM: arm64: Prevent unconditional donation of unmapped regions from the host arch/arm64/include/asm/kvm_pgtable.h | 6 +- arch/arm64/include/asm/sysreg.h | 6 ++ arch/arm64/kvm/hyp/include/hyp/switch.h | 8 ++- arch/arm64/kvm/hyp/nvhe/mem_protect.c | 14 ++-- arch/arm64/kvm/hyp/nvhe/switch.c | 2 + arch/arm64/kvm/hyp/pgtable.c | 17 ++++- arch/arm64/kvm/hyp/vhe/switch.c | 1 + arch/arm64/kvm/pmu-emul.c | 58 +++++++---------- arch/arm64/kvm/sys_regs.c | 19 ++++++ arch/arm64/kvm/vgic/vgic-init.c | 27 ++++++-- arch/arm64/kvm/vgic/vgic-its.c | 14 ++-- arch/arm64/kvm/vgic/vgic-kvm-device.c | 10 ++- arch/arm64/kvm/vgic/vgic-mmio-v3.c | 31 ++++++--- arch/arm64/kvm/vgic/vgic-mmio.c | 9 +-- arch/arm64/kvm/vgic/vgic-v2.c | 6 -- arch/arm64/kvm/vgic/vgic-v3.c | 7 -- arch/arm64/kvm/vgic/vgic-v4.c | 3 +- arch/x86/kvm/lapic.c | 20 +++++- arch/x86/kvm/mmu/mmu.c | 5 +- arch/x86/kvm/svm/svm.c | 2 +- arch/x86/kvm/x86.c | 3 + tools/testing/selftests/kvm/Makefile | 1 + .../selftests/kvm/x86_64/recalc_apic_map_test.c | 74 ++++++++++++++++++++++ 23 files changed, 248 insertions(+), 95 deletions(-) create mode 100644 tools/testing/selftests/kvm/x86_64/recalc_apic_map_test.c