[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/3] x86/svm: Add support for Bus Lock Threshold
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Wed, 21 Jan 2026 15:28:52 +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=NB/bRU2K+Hx6Vf9hp6DVAPKBk1y2bdwkPR9p0WpfVXk=; b=I9UnAmd6UhBii4U2XueoQuU8q+dGMOon3Zyufpntn1rfsgmUO1SsQNJYNYkEWZuzq48oW9oMyLwzV8JREdtxEfObPbs9F1+MUUxQj+nTD62UPHv4jWRU3M8/KnxEv0BBBF/9aKKYYiYLaRvFJqKBNN9/OM8dmpywIeQcOVLIylw9rOPWgC9EZU3QFLmsm2ofkWxAYlgYlMZtgiWjSnUgwlwCaemLjhV2DBLK2MpwBnbyhut7gVaKsbKJvZ5Ob5bjNOpBi7dos9gMDrRdp+wxhG9yIrDX2OQIAJup98fvesAW9hsBdGA698wtyLKnFMOxE6YYiomOkbfvX+9z1GH8qQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KRn0zPRCiuvYDH//aXD7NbQwPl6LlXpN5nxnXBG4Ja1cdEi8vy4E5qRGVh1Oce+bFssjRv+aU/eGUvyFj/EyYjqpmRpD1qfP9+ytMsUXJmhhhCAiPoac2sswCfnS8z1Z50HLsD/g+CCH6ElgvQ+aLtAV3Scg/i3EuZPfCBBLXEC8SRjumeqki6GjDMmqcMXmzbC5Ac5i9Ke+eUNE414ArNj3UfZ8Nj2hQ87GKfVJhZJXBF329R5CqF8Lao5ZZc19PBTPOls5y74qpsTI36HsjcYKI3UGqdVqK7fvWNLB9WINoH7dEX2x8eVbH2wss6pDhXlfOqeTFXCOLD47xjIRhw==
- Cc: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Community Manager <community.manager@xxxxxxxxxxxxxx>
- Delivery-date: Wed, 21 Jan 2026 14:30:29 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Hi,
v1:
https://lore.kernel.org/xen-devel/20260120095353.2778-1-alejandro.garciavallejo@xxxxxxx
pipeline (in progress):
https://gitlab.com/xen-project/people/agvallejo/xen/-/pipelines/2276726870
Original cover letter:
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.
Cheers,
Alejandro
Alejandro Vallejo (3):
x86/svm: Add infrastructure for Bus Lock Threshold
x86/svm: Intercept Bus Locks for HVM guests
CHANGELOG: Note the new SVM bus-lock intercept
CHANGELOG.md | 3 +++
xen/arch/x86/hvm/svm/svm.c | 6 ++++++
xen/arch/x86/hvm/svm/vmcb.c | 3 +++
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 +-
6 files changed, 28 insertions(+), 3 deletions(-)
base-commit: 61204ed24ba4537d6eff56594faa5d23cacb8310
--
2.43.0
|