From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 920E82750ED for ; Thu, 15 Jan 2026 18:04:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768500257; cv=none; b=qDlHdY1sJCL6TGkBW2riluLCRT7B2OhnHc4K7MAVWwxZ2EbnMzBdkF6ASXiUAoLFYngqRVkWl8PfIkcUdEeKVjjCudjsS7drsjepGUsFo3Ghe7p76hR+X1CP/OIt9ptPpJsQKrR/Vs6GNzh04IBkyx51q+gj3DE6iUmd92Z0VCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768500257; c=relaxed/simple; bh=3h1wHbwbivUh1a4FHfMHIB29fWkrU1oML1OeXskfr40=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=YnhiQY7nDOzTH/kAcG2jyIdYzlxYEDAOjPVZwKPMEXZonHk0EF3ZLzZEH+bGW5ffWCkZEexbk6DL/onRtk9WhX2/zurPIdptZhBN6lzzicxylSzAVACV6FHja5b/1taiKaY/V2nyPmrZE6+3rBMcxOmRFeLvO4Qv7mfaqMVqPAY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ZO7/zFsb; arc=none smtp.client-ip=209.85.210.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ZO7/zFsb" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-7dd05696910so749309b3a.2 for ; Thu, 15 Jan 2026 10:04:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1768500256; x=1769105056; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=FWPa2edH23MO18gbaoDEce948cEhwYgwvTfYsQIAt8s=; b=ZO7/zFsb9/oCHYM0tMdEM8Do2NZBZ5ksSdiGnZsUdeiyjOFc2sopI5NPZ7G3OKnpLV jYhLhpVZvlNONQEreEXQrcB0ypuMJbpCy9+IiGVxNpJOz6NPWNm0WS53tOAbc3pBZuWu YoQM9WjsiNb4uKwe4VdghNXl2BI3kxgW9sQH+0MV9ADsIjMibOVRRhNJriI6O9bffYIQ nyLHhDjqRmQTpZOiDszPHMwOJzx84pIfsCEup6EhJFw6XC5e5zOpF/VI3NN6YI6ezHag u6DlKyGsLvfR7w1J7l05U9WIdu9ZIgcevWF5Jl9XaCrJyaJ3mbwC7fAN7qbWNd1zF1hB kY+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768500256; x=1769105056; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FWPa2edH23MO18gbaoDEce948cEhwYgwvTfYsQIAt8s=; b=NcCmm270cf5KLQY9rwmXof+63sBcDQKqTO9YqSGR3L4XsOYQYKasW3dHGnSKp/vCJ8 O9g1tSGm0ifpn7IF2yqKQRMiGqg6AFLJENH8csKM4ieYHs+Fg/Xyq6fRcpCmAYGhycNJ eoOrWi5lAunmNdFUcdKNq4MWQ6tX9yh/eLz6x/BGrDREbTfbEVi4DOviv6BN2s5xrMpE 34h97jyFOg1OR4GnaSfUAZXIiE15VdcGFZlOyAKU0bbhEQI874Vu5XXHJ9rlT+M4ogJr mK/0Wnu7LLVk4pV6z09Ljr8OfB3zGraZBLjkaC3VLhPkNovckQmN0nbL9UFqdzCezuzr pguA== X-Forwarded-Encrypted: i=1; AJvYcCVY9Hvpch/nvXK0Tk8rsr2v07PuPM2d2qqI6dKjvsddKhj7gGCCdBa2eA3N5xQa/3YQsvaeViWZS9+NjBs=@vger.kernel.org X-Gm-Message-State: AOJu0YwVi3KRf3zEj29FM7cNSKP55Y/xK64qAyoC8DjSaae53366OecI ZIFsXCP6T4NAsTOWSGnoghdAPsR3KSYZkKJr1289Zmepl4xCZkiww+d+6fsgjxXBvurwikONR3f Y9GnwEw== X-Received: from pjyw19.prod.google.com ([2002:a17:90a:ea13:b0:340:bd8e:458f]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:2d08:b0:38d:fc34:c88d with SMTP id adf61e73a8af0-38dfe7b6e2dmr610183637.55.1768500255930; Thu, 15 Jan 2026 10:04:15 -0800 (PST) Date: Thu, 15 Jan 2026 10:03:16 -0800 In-Reply-To: <20260109034532.1012993-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260109034532.1012993-1-seanjc@google.com> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog Message-ID: <176849901874.720432.9876385140637326056.b4-ty@google.com> Subject: Re: [PATCH v4 0/8] KVM: VMX: Rip out "deferred nested VM-Exit updates" From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Chao Gao Content-Type: text/plain; charset="utf-8" On Thu, 08 Jan 2026 19:45:24 -0800, Sean Christopherson wrote: > v4 of what was "KVM: VMX: Fix APICv activation bugs", but the two bug fixes > were already merged and so that name doesn't fit. > > Rip out the "defer updates until nested VM-Exit" that contributed to the > APICv bugs and made them harder to fix. > > v4: > - Collect reviews. [Chao] > - Use the existing vmcall() in the selftest. [Chao] > - Use GUEST_FAIL() instead of TEST_FAIL() in the guest. [Chao] > - Correct the number of args passed to the guest in the test. [Chao] > - Remove the redundant hwapic_isr_update() call in kvm_lapic_reset() > - Use the local "vmx" variable in vmx_set_virtual_apic_mode(). [Chao] > - Relocate the "update SVI" comment from __kvm_vcpu_update_apicv() > to kvm_apic_update_apicv(). > > [...] Applied to kvm-x86 apic, thanks! [1/8] KVM: selftests: Add a test to verify APICv updates (while L2 is active) https://github.com/kvm-x86/linux/commit/c3a9a27c79e4 [2/8] KVM: nVMX: Switch to vmcs01 to update PML controls on-demand if L2 is active https://github.com/kvm-x86/linux/commit/3e013d0a7099 [3/8] KVM: nVMX: Switch to vmcs01 to update TPR threshold on-demand if L2 is active https://github.com/kvm-x86/linux/commit/51ca2746078e [4/8] KVM: nVMX: Switch to vmcs01 to update SVI on-demand if L2 is active https://github.com/kvm-x86/linux/commit/f0044429b257 [5/8] KVM: nVMX: Switch to vmcs01 to refresh APICv controls on-demand if L2 is active https://github.com/kvm-x86/linux/commit/2bf889a68fba [6/8] KVM: nVMX: Switch to vmcs01 to update APIC page on-demand if L2 is active https://github.com/kvm-x86/linux/commit/51c821d6d0ba [7/8] KVM: nVMX: Switch to vmcs01 to set virtual APICv mode on-demand if L2 is active https://github.com/kvm-x86/linux/commit/249cc1ab4b9a [8/8] KVM: x86: Update APICv ISR (a.k.a. SVI) as part of kvm_apic_update_apicv() https://github.com/kvm-x86/linux/commit/000d75b0b186 -- https://github.com/kvm-x86/linux/tree/next