[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 1/3] x86/svm: Add infrastructure for Bus Lock Threshold


  • To: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Wed, 21 Jan 2026 16:13:51 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bLvqchy5GUHxBItgzBiidBSNDV6sdsLnkBQ6qcWBSDw=; b=xJB79TGwugCzWJhb7TSeiC+lvB+ma8lgLMw+mnWOPUWptXmKOX7BLq3mcKGtkrqnA6CWfy1TtPiQ0z/hl+ogpKFfTla15eRfRJ3det8UmCPzAJxCiawiapp7YmXyIZFrJ5b4cJL97kxjgo4ttR5NxNVVwVZd+bHjbVO6tA2iBJS/c+OG3kBNPUW64B+SMDvJdNTeL0VRRc4lHL8RWin9HMPiBrwGuV2zfb9QFWJJXB/wqSKxUid6WhcSKB3nVw2r7qGJsyYRWrkLMyxuBylHaLr/98jC4ctaE1Gd22ynWZyE0rrBAGZkCJDX3KVb/FDhiIWUZ0DUft3CTvABdBV/UQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jLIq2Hm4ZG+f99+mZb/W7TyqRT1FHjZ3+m1dzGNThKhzJAb4A6xR72QYs1+jaraac82Ys4NXODCmXwZzSSJ0MqyNJt41BDAo0t2K4ZV8BAoecl4OBfbBrJTam64tCq8ou64wp/Nn1RHqt7ZyAReogjLMXjjk2awZm7/aSWkPca/BCjx3/RUuOWuzY6vs4GybqwauUnabgeOWzwS8ClW9baHOe1mDk8YHMxn7Km65ZkJzo2fSH0y5JXz9pmGXalLkdA94HlZbwJGpD+B/qlEKCyjOXkN5k96q1rg7IgnKvs3uQm3dQmVNIG0qYboYriDqBJNpohILV19WOmbxbehyQA==
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>
  • Delivery-date: Wed, 21 Jan 2026 15:14:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed Jan 21, 2026 at 3:28 PM CET, Alejandro Vallejo wrote:
> Add missing scaffolding to enable BusLock Threshold. That is:
>
>   * Add general_intercepts_3.
>   * Add missing VMEXIT
>   * Adjust NPF perf counter base to immediately after the buslock counter
>
> Signed-off-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
> Reviewed-by: Teddy Astie <teddy.astie@xxxxxxxxxx>
> ---
> v2:
>   * s/general intercepts 2/general intercepts 3/
>   * removed _thresh suffix
>   * added missing _svm_ infix in the SVM feature
> ---
>  xen/arch/x86/hvm/svm/vmcb.h           | 15 +++++++++++++--
>  xen/arch/x86/include/asm/hvm/svm.h    |  2 ++
>  xen/arch/x86/include/asm/perfc_defn.h |  2 +-
>  3 files changed, 16 insertions(+), 3 deletions(-)
>
> diff --git a/xen/arch/x86/hvm/svm/vmcb.h b/xen/arch/x86/hvm/svm/vmcb.h
> index ba554a9644..231f9b1b06 100644
> --- a/xen/arch/x86/hvm/svm/vmcb.h
> +++ b/xen/arch/x86/hvm/svm/vmcb.h
> @@ -65,6 +65,11 @@ enum GenericIntercept2bits
>      GENERAL2_INTERCEPT_RDPRU   = 1 << 14,
>  };
>  
> +/* general 3 intercepts */

I had already sent v2 by the time I noticed the request to capitalise G. Feel
free to fix on commit or let me know to resend.

Cheers,
Alejandro



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.