[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/2] x86/svm: Add support for Bus Lock Threshold
- To: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Tue, 20 Jan 2026 12:22:27 +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=msUwpqeTDCH8hB32ESc6Q5VfBQUh3YmEqMuWl9Z9c10=; b=qoO8O96Neb8OuvZU8Hk+waKusED9IChpiJIEafiejn9n0pzPoffJJkHMleexGYHu7H9VRyE2aMharZcA/r9HtHXDW0Q2oUoKg8hjzPrMy6zMysW5KqpDzg4ScskeuHYxyTrJ7/sM7KZt8hzjG+xYPZMH0PhaInPX2tdVKNpeJLlx0K+zxART4TawbhTdVK3xO7JCRINvXogYbsgB7wJXoIVG5NlONh8Q6o3rWZSoidaUO9EzQNF1HIdSmprrYFaU51kyaR+hSVyRey3wIbktOIWLLHuhjgL6LW4wWGLVS91rBqCrhtqAAN7X6d/cXD8bz+VfaOKdbFlpaKYiRmCiGQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hsYMsRGOUF1vsyroJtsTgcq74HGrP5ePvvOCrXvROCGgOIIrAX6WieewMXlGDv9LKrZrRXwW0o6UqIBseKUwCGO6maDGkWwUE6z1dSYwaQlsIQ6dkEyAEv1NC8/Fb1Zd9P9QZf8g2ZgHzw0yNijCo3nTSxvV7YOuk76JfgU80W5WD0ZnQ+3aJBdw1jRlsH/yLFc1An4pPvx9HLm5ERi32dGC5H/E2y5Jf50JwEMZ3faYuUBSvXsBaNvctqK+LeaVejaz+V6tnPLvz0SMH7qWvyJ83Cd8+X7promdnXOqTT0+ltZI4lybCJ32GYyXC1OHYQ+NF32uygRsa3vEItYKGg==
- Cc: Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>
- Delivery-date: Tue, 20 Jan 2026 11:22:43 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Tue Jan 20, 2026 at 10:53 AM CET, Alejandro Vallejo wrote:
> Bus Locks are very costly and a VM left unchecked spamming instructions that
> lock the memory bus (e.g: unaligned atomic CAS) makes system perf take a
> nosedive. This patch is similar to BLD of VMX, but for SVM. It configures all
> VMRUNs so they automatically exit at the first encounter of a buslock event,
> effectively rate-limiting them.
Does this warrant an entry in the CHANGELOG?
Cheers,
Alejandro
>
> Cheers,
> Alejandro
>
> Alejandro Vallejo (2):
> x86/svm: Add infrastructure for Bus Lock Threshold
> x86/svm: Intercept Bus Locks for HVM guests
>
> xen/arch/x86/hvm/svm/svm.c | 5 +++++
> xen/arch/x86/hvm/svm/vmcb.c | 6 ++++++
> 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 +-
> 5 files changed, 27 insertions(+), 3 deletions(-)
>
>
> base-commit: 7b3e1b4e848d34c9a5b6634009959a7b9dd42104
|