From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796407042; b=d+uBy/44C0a1nihka8ZLf0xT7mH78OibVYB1ncOjupPSaE12sGokSJYEmDDxCYLlHZP5 IFaNArOV/OkIpzsPFKeUe7pp8FY5ofhOxOZbyZJfsuQ3IjD4xRJukxf0oFFtxjmRf96aP sAh/p/Sf+9wxcS01fGFkji71DSBBC67fJ2mAkZCwjvTojPCc8WuA4WrRXIsdM4WgfphaR ivAQiWthx6VSYUgBhsS4b7D6XoDUaP4czTwIkHagxcffgym/0DBDwyfgDjo23Z1hKfVb6 7438SDNZCUs7gBXGICP6NJqUixrrbl8em0tMpbEjQynVR6oaOTOxb1+iat0RAoiB5Nw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796407042; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:MIME-Version:Content-Transfer-Encoding:X-Scanned-By; bh=G0Ix2Q7qnHcKrYFh1k2ICGUTGaVqv3PmzsS7gLSkKH8=; b=ip5BSgMvxrUMy3bTjU6dkTf1hz0N95ceiQKIswS3WQ0X9QPf1pqn0HJF+37dIjOV/lV6 0uUSKAX1EEMyOQ60OHLClrVNKWXTQNBu8qRb551idPi5SPK7D6qzIWFPkQAqJDIrnxj0K +Xde/SS684pKQTDNOWrs/CO0M4XbazBXQHU9hEeTOWhBUF1mHyEzoYKKtf8dDmJlqw2OY 8yk1SJYj6tamBKlybdGgl2A9yFBxrRPqinf3x2ifG/Co9zVYCcu+x+/DaGWqsUK5OkXgx RGyh4w+WdXus7D+wMpZkqoG6c9l9F123HLMCsp68yFUijUyuQFqnzacfhMdgYYULqFQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b="QWhiHiI/"; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A580606A32C for ; Fri, 4 Dec 2026 17:57:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7A580606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=QWhiHiI/ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796407041; 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=G0Ix2Q7qnHcKrYFh1k2ICGUTGaVqv3PmzsS7gLSkKH8=; b=QWhiHiI/tSyVga4Xyh1C+BzVzGr3JxsFclbcRXNhW5vWtbHiVBhA6ReeqN2dnwjq+8iAkc +ssPI3qpLl3/F6Q/W5mlpS0qnhiBwO9M/d1z3RBgNc+O735s+HnC4V2zNDU5/oHcNrt6DA vj5Ctme752JK1NlC4fPqdB5Tn3ItZR8= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS with 8BITMIME (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-355-eY5g7PgCPj-8hM_LP9TimQ-1; Fri, 4 Dec 2026 17:57:16 +0000 X-MC-Unique: eY5g7PgCPj-8hM_LP9TimQ-1 X-Mimecast-MFC-AGG-ID: eY5g7PgCPj-8hM_LP9TimQ_1796407035 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DE830180047A; Fri, 4 Dec 2026 17:57:14 +0000 (UTC) Received: from pbonzini-thinkpadx1carbon6th.rmtit.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id BEE643003EA7; Fri, 4 Dec 2026 17:57:13 +0000 (UTC) From: Paolo Bonzini To: torvalds@linux-foundation.org Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: [GIT PULL] Too many KVM fixes for Linux 7.4-rc6 Date: Fri, 4 Dec 2026 18:57:12 +0100 Message-ID: <20261204175712.2153471-1-pbonzini@redhat.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Linus, here is the next wave of AI found issues (plus some s390 fixes of their own). The following changes since commit bd1be6e0267d7a52425bd515c53e9a49bd4e2a12: Merge tag 'kvm-riscv-fixes-7.4-1' of https://github.com/kvm-riscv/linux into HEAD (2026-11-20 17:55:01 +0100) 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 d82c92691a1e001ae75083f7d4eb9350d4a8ec27: Merge tag 'kvm-s390-master-7.4-3' of https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD (2026-12-03 19:01:47 +0100) ---------------------------------------------------------------- Arm: - Bound PINTID during ITE table restore, avoiding the possibility that the guest plants an out-of-range LPI INTID in its own in-memory ITS tables prior to restore. - Do not blindly trust the vINTID field coming from KVM, and reject anything that is out of the boundaries that the hardware ITS is configured to support. - Add signal_pending checks to the scan_its_table() loop; device table entries with num_eventid_bits = 16 (or 65536 EventIDs per device) are valid but takes a long time to restore. - Remove quadratic complexity from the algorithm used to prune IRQs sitting in the AP list has a quadratic complexity, and simplify the locking while at that. s390: - Don't kick vcpus for floating IRQs that are no longer pending - Fix PSW manipulation for 31-bit nested guests - Ensure nested guest state is not modified in the vSIE error path, if no nested guest instruction was run. - Clear icptcode, icptstatus, ipa and ipb when reusing a shadow SCB. - Reserve space in the MMU cache early when creating or moving memslots, so you don't have migration mode turned off under your feet when KVM_SET_USER_MEMORY_REGION returns -ENOMEM. Loongarch: - Flush TLBs *before* dropping mmu_lock RISC-V: - Flush TLBs *before* dropping mmu_lock x86: - Flush TLB *before* dropping mmu_lock, and flush them entirely - Flush TLBs if child SPTE is zapped when splitting a huge SPTE - Pin kvm->mm prior to borrowing mm when setting event channel - Disable hypervisor (VMX Preemption) timer if TSC deadline wraps - Reset local APIC timer metadata on RESET, INIT, and KVM_SET_LAPIC - Ensure guest FPU is resident in hardware when updating actual XFD MSR - Ensure pCPU is valid before sending IPI to deliver posted IRQ Generic: - Invalidate all GFN=>PFN caches when VM and/or its process is dying ---------------------------------------------------------------- Christian Borntraeger (1): KVM: s390: Don't kick vcpus for floating IRQs that are no longer pending Gautam Gala (2): KVM: s390: reserve mmu cache before stopping migration mode KVM: s390: vsie: Do not overwrite guest 3 state on early validity icpt Kyle Zeng (3): RISC-V: KVM: Flush TLBs *before* dropping mmu_lock, e.g. when yielding LoongArch: KVM: Flush TLBs *before* dropping mmu_lock KVM: x86/mmu: Flush all TLB entries, not a precise range, when yielding Marc Zyngier (2): irqchip/gic-v4: Contain VMAPTI vINTID to the expected boundaries KVM: arm64: vgic: Linearise AP list pruning process Paolo Bonzini (2): Merge kvm-7.4-rc6/kvm-arm64-urgent-fixes.bundle into kvm-20261202 Merge tag 'kvm-s390-master-7.4-3' of https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD Raghavendra Rao Ananta (2): KVM: arm64: vgic-its: Bound PINTID during ITE table restore KVM: arm64: vgic-its: Add signal checks in scan_its_table() Sean Christopherson (14): KVM: x86/mmu: Flush TLBs if child SPTE is zapped when splitting a huge SPTE KVM: x86/mmu: Propagate the return from kvm_zap_all_rmap_sptes() out of __rmap_add() KVM: x86: Disable hypervisor (VMX Preemption) timer if TSC deadline wraps KVM: x86: Reset local APIC timer metadata on RESET, INIT, and KVM_SET_LAPIC KVM: x86/mmu: Flush TLBs in kvm_unmap_gfn_range() if the unmap may block/yield KVM: x86/xen: Pin kvm->mm prior to borrowing mm when setting event channel KVM: Fold kvm_flush_shadow_all() into kvm_mmu_notifier_release() KVM: WARN if there are in-flight memslot updates when a VM's process exits KVM: Set mn_active_invalidate_count when the VM's mm is released KVM: Invalidate all GFN=>PFN caches when VM and/or its process is dying x86/fpu: Bail early from guest XFD update if XFD isn't supported x86/fpu: Clear XSTATE_BV[i] in guest XSAVE state if guest FPU isn't in-use x86/fpu: Ensure guest FPU is resident in hardware when updating actual XFD MSR KVM: VMX: Ensure pCPU is valid before sending IPI to deliver posted IRQ Yvan Janssens (1): KVM: s390: vsie: Rewind the PSW of ESA mode guests in the right format arch/arm64/kvm/vgic/vgic-its.c | 6 +- arch/arm64/kvm/vgic/vgic.c | 175 +++++++++++++++++++-------------------- arch/loongarch/kvm/mmu.c | 12 ++- arch/riscv/kvm/gstage.c | 9 +- arch/riscv/kvm/mmu.c | 2 +- arch/s390/kvm/gmap/kvm_mmu.c | 15 ++-- arch/s390/kvm/s390/interrupt.c | 14 ++++ arch/s390/kvm/s390/vsie.c | 42 ++++++++-- arch/x86/kernel/fpu/core.c | 37 ++++++--- arch/x86/kvm/lapic.c | 67 ++++++++++----- arch/x86/kvm/mmu/mmu.c | 49 ++++++++--- arch/x86/kvm/vmx/common.h | 5 +- arch/x86/kvm/vmx/tdx.c | 4 +- arch/x86/kvm/x86.c | 2 +- arch/x86/kvm/xen.c | 7 +- drivers/irqchip/irq-gic-v3-its.c | 3 +- virt/kvm/kvm_main.c | 61 +++++++++----- virt/kvm/kvm_mm.h | 2 + virt/kvm/pfncache.c | 12 +++ 19 files changed, 340 insertions(+), 184 deletions(-)