From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.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 7D0B2408001 for ; Thu, 28 May 2026 18:05:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779991547; cv=none; b=LUfwzeu2xWkueR52T4SH1Vm7RsaGloUdfPRiTim/4P+X4kNuNLn1tmbO3yzEKqBXS99LYAb9OfQ1Ft4l/L8Vd0igF5KCL/OJ2eO4lJ60AvqUsSPqSdVqRdU6piGGTFBIUseDpw5/PVMZ6vpkr82GvDUf61lk56ExnH0IJSw6/b8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779991547; c=relaxed/simple; bh=ezWkMf1/nBuwKvq1Ie6nTfMcUtAMsxfURYeysfpXWtg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=oOcD0PRnO+Ne3pI1XCF3uqAGHb81EOKUx9auFe409Jwv8vh49UIzqC1keu8t1E5el3HbOTcocMVo0cn8+wGQdTBDmhNmr+RdRl7HYOCXI510j53lvTDvcC5QJKvnuebofmCKSLQkHlvQgOGjGz0kiMn8ERkCQibbjANE7frE2tk= 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=muFhEEvl; arc=none smtp.client-ip=209.85.214.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="muFhEEvl" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2ba5f794825so104495615ad.0 for ; Thu, 28 May 2026 11:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779991545; x=1780596345; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=EAX4aGyOlp58kUC6uPoUPFDHIumnxZdWSgRHitD9Mr4=; b=muFhEEvlrm7+GSocv/9jaos8tn4Q0MtvzGVvQjYomUkuFPutXZy0y8V4CXWsyuiTwa ghmHnRH6YVmCM4hFv60x1RtXU5XAalgYnPBM/3cZjOsA/eiEm1PDgyyFWNR1yeSf2NwD vqnDa5JGfxODQGDgQO11O5aoef8/uNSzHBl/7JGBSkrTJX0HrGOQLIV8aW8lgUtvxsEZ FD6U40iUwAqzlyYc2Ndg4uyE1QkR/PbJOZGU3v0PQLUgE97yp+oNoeM9U0inlJlfvFyg feomkO0kcx1sEeVMQNLneFXLqq4P4/vkbkaYPSHNDgAVWo0kxCEIs0C0fFai09orc7LF htBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779991545; x=1780596345; h=content-transfer-encoding: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=EAX4aGyOlp58kUC6uPoUPFDHIumnxZdWSgRHitD9Mr4=; b=EME5SHpoLbVtcjQeOF+rKPHxW3ORKLjE3Q8TXO79XyjIQNX31FFqJzmB0GSrwlEKCB 8KApMGnMqlNcSA3YnnpOi+AjqK1J5s5+3cTLoSrJ78Rr4F6YMNaHfBYxGh5dWcmD0SH7 rZ0cZq5dd2klTJXbBl0mXwh2zYR+yujT1wEQh4dGTUT+h+WS4R89gWmzb9wVuGwp1gzf vvmv5rALc7spOZ/rKY9sWC5lwuh7rj3y2aAiRlq+n2m13cPT+id9piQ/ohbMJW4ALACC mR1VMIAa464JcHfDxDUtR06mvCa8fFptl1eJSdkBgmsIX2PxsSb58lvFIo4JkKhHGkeX umBg== X-Forwarded-Encrypted: i=1; AFNElJ9SJHlLpdoFmJVAa3PG+gsVd7rVRcYcwtFCwM9oMZHiaOY4RSZmtC6S1mTUl2NLsooBhGlyAn4WvF70i3U=@vger.kernel.org X-Gm-Message-State: AOJu0YyfoD52RMmW8oMU9mTTg/y/rwtXbnm5EVLv1lZNy7OlwuGw8wsB 8Lk45IVquwjw+tW02h8yCvyi0xb/cHe/bjlyTIg5F3qB2jr5HGWknAvCBGYdT9qrl1OWl1r9HZv 5Z7rCjw== X-Received: from plbkg11.prod.google.com ([2002:a17:903:60b:b0:2ae:41d1:278d]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:2388:b0:2b4:5cb8:99eb with SMTP id d9443c01a7336-2beb07e9e15mr313634085ad.27.1779991544602; Thu, 28 May 2026 11:05:44 -0700 (PDT) Date: Thu, 28 May 2026 11:05:43 -0700 In-Reply-To: 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="utf-8" Content-Transfer-Encoding: quoted-printable On Thu, May 28, 2026, Yosry Ahmed wrote: > On Wed, May 27, 2026 at 7:28=E2=80=AFPM Sean Christopherson wrote: > > > > On Wed, May 27, 2026, Yosry Ahmed wrote: > > > Jim Mattson (2): > > > KVM: x86/pmu: Allow Host-Only/Guest-Only bits with nSVM and mediate= d > > > PMU > > > KVM: selftests: Add svm_pmu_host_guest_test for Host-Only/Guest-Onl= y > > > 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 m= ode > > > 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 i= n > > > SVM > > > KVM: x86/pmu: Track mediated PMU counters with mode-specific enable= s > > > KVM: x86/pmu: Reprogram Host/Guest-Only counters on nested transiti= ons > > > KVM: selftests: Refactor allocating guest stack into a helper > > > KVM: selftests: Allocate a dedicated guest page for x86 L2 guest st= ack > > > KVM: selftests: Drop L1-provided stacks for L2 guests on x86 > > > > This all looks good. I'll get the KVM changes applied and pushed (assu= ming they > > pass testing). > > > > For the selftests, I'm going to hold off on applying them until after t= he initial > > pull requests for 7.2 are merged into Paolo's tree. The (AWESOME!!!) L= 2 stack > > changes are going to cause conflict hell, and it's easy enough for me t= o 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. >=20 > So do you plan on getting it merged later in the 7.2 merge window or > for 7.3? I think the former but I am not quite sure. Ideally, later in the 7.2 merge window. Worst case scenario, super duper e= arly in kvm/next for 7.3, so that developers (and me) can build on the functiona= lity.