From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (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 C244E2F547F for ; Thu, 28 May 2026 02:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779935280; cv=none; b=SrRDjBHFO+/nEWLmNylBJwut1xPgpNjCmcusQPoucels07qIwtCG89SGA07QM6x/JvJTYUY1fIrlbhfVUVKT4gnxGO1jcrXDeWj+zp8v6Qn24tKd22iK8invKxxRQSG2r21w3FWd+ZZNYEFwXl0qDgUSEz8L2nz2OFTJNcogr3o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779935280; c=relaxed/simple; bh=nLLPuCdNmRQZ0Oo8285nt0spZY7+o3nE86Yfg1dYGiw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=GoxmSbwkJCpEVflP7tt+75ZOncj+HpO6zddON0EE+FS7QDFuCXHGwPtsAE6A9a1TaIVUOBXgSkHEDqP5BaDGT23oYoldh3vzs9TcQB8so0VM6bKFvyPUDSaTNaEDN50I87Tt5Ie8o82PXFgyQjWtxYN4TJ9TN3NbS4N3wsHi3+o= 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=FoeA6Sqj; arc=none smtp.client-ip=209.85.210.201 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="FoeA6Sqj" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-8353df9bc7eso12166990b3a.2 for ; Wed, 27 May 2026 19:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779935279; x=1780540079; 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=quuJWlyAppDPgAPcSZyEzPmuCUDWESYO2v/WDSRk9CE=; b=FoeA6Sqj6TlSRYx/ACOXdIAL7MMxRTGcXpkqUjtoNj83gOWr93suhJXS5z5waOXh+s NLcan+kpYGN1huxWOoJNFMGNMZx0IJYbZeEeRV3POsaOt/vWIJGFrKBXigRnP/vV+Fd8 pQRAHns1YxHohOmAMGuFoXEbtlFtgKdF4QwBc3bVE4n0eL1aHJj/jQkakBzp9+uKxKvh PNzqVr2oMTPC8Yp30urmDZ+4EZ5Zc/9E+7MEpKP6M+n3OsMwQBLWAnJisP2rVwdeuHPG EtXMya0NUrk3pQh9RQKq1ejbksGvavFU4hIcOeHzZlGKl6mzuTBnwXz9lMPOluf3gbtM r1Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779935279; x=1780540079; 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=quuJWlyAppDPgAPcSZyEzPmuCUDWESYO2v/WDSRk9CE=; b=bFPd12qJ8RFOvPsMC3lRyPhyYpfkIcTTYFarGZhjFODt3mEhyKH+n/sWQUVNEu7Yxt yQZBNeLJXTel23sjUwz121anZz7evgn6yrNFFZ/LyDJQK1Wxzjho6s1JwPpbLvJkB8wc xBEfSehDDzMgxmUg20lBVZPrLY0/RZqg41uxUcuvMiz3T5XiSptquHpoh9VvBbPxsZL5 wxrnh+JTLatKF7x9e0Hjm1NINcTM2LrfxaLstEMSIRDLPvYz/eOrhlytJYOtYWNGDdbU p/65In3GnIjELJiJ2rXFyVS47bV+1f+cFj8p7PtmNxK13/LVYMw52nmtERWHKTALB6kA fv0w== X-Forwarded-Encrypted: i=1; AFNElJ+yXP+GnvTdgeUlY+diFQhV+ZpTEMcayZTIxfhFi+BYTOSW5gZT6kShH50gXNp0D9MWQFr6m7fVCFqzzgY=@vger.kernel.org X-Gm-Message-State: AOJu0Yx96i1AgE9rWtovaY6JPlVy8SiD1EZ2vdB47ASBfL53+2pjJGVD kgwPGKhCRkpwfpygDuYKjWmKHZoq5YSpeufjHT3qgOQu1jxLfAXst+i4mdeSSQb3C4FfodTbEUy 627Y85A== X-Received: from pfch18.prod.google.com ([2002:a05:6a00:1712:b0:841:c352:f7c0]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:66df:b0:835:3949:3c25 with SMTP id d2e1a72fcca58-8417a84cd06mr17518553b3a.24.1779935278743; Wed, 27 May 2026 19:27:58 -0700 (PDT) Date: Wed, 27 May 2026 19:27:58 -0700 In-Reply-To: <20260527234711.4175166-1-yosry@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260527234711.4175166-1-yosry@kernel.org> Message-ID: Subject: Re: [PATCH v7 00/17] KVM: x86/pmu: Add support for AMD Host-Only/Guest-Only bits From: Sean Christopherson To: Yosry Ahmed Cc: Paolo Bonzini , Jim Mattson , Dapeng Mi , Sandipan Das , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Wed, May 27, 2026, Yosry Ahmed wrote: > Jim Mattson (2): > KVM: x86/pmu: Allow Host-Only/Guest-Only bits with nSVM and mediated > PMU > KVM: selftests: Add svm_pmu_host_guest_test for Host-Only/Guest-Only > bits > > Yosry Ahmed (15): > KVM: nSVM: Stop leaking single-stepping on VMRUN into L2 > KVM: nSVM: Bail early out of VMRUN emulation if advancing RIP fails > KVM: nSVM: Unify RIP and PMU handling calls when emulating VMRUN > KVM: nSVM: Move VMRUN instruction retirement after entering guest mode > KVM: x86: Move enable_pmu/enable_mediated_pmu to pmu.h and pmu.c > KVM: x86/pmu: Rename reprogram_counters() to clarify usage > KVM: x86/pmu: Do a single atomic OR when reprogramming counters > KVM: x86/pmu: Check mediated PMU counter enablement before event > filters > KVM: x86/pmu: Add support for KVM_X86_PMU_OP_OPTIONAL_RET0 > KVM: x86/pmu: Disable counters based on Host-Only/Guest-Only bits in > SVM > KVM: x86/pmu: Track mediated PMU counters with mode-specific enables > KVM: x86/pmu: Reprogram Host/Guest-Only counters on nested transitions > KVM: selftests: Refactor allocating guest stack into a helper > KVM: selftests: Allocate a dedicated guest page for x86 L2 guest stack > KVM: selftests: Drop L1-provided stacks for L2 guests on x86 This all looks good. I'll get the KVM changes applied and pushed (assuming they pass testing). For the selftests, I'm going to hold off on applying them until after the initial pull requests for 7.2 are merged into Paolo's tree. The (AWESOME!!!) L2 stack changes are going to cause conflict hell, and it's easy enough for me to carry them out of tree for a few weeks. I'll send a refreshed version of the selftest once kvm-x86 has settled down for 7.2, e.g. to account for the gpat test as well.