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

[PATCH v3 0/2] xen/x86: Change stub page freeing to fix smt=0


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Mon, 8 Jun 2026 20:06:36 -0400
  • 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=iPbgNWRKj+FQsWIjXJBl1E6b6LJ3lrfQK5YEhG6LK0Y=; b=KWq68tIIV4Zcq/URTR42mMy96q7XZj8bpP72e8UUed9Y/KyZr+yUBWa7Qv4W6inb8zzgyaMIsMKzuElKfY0DmZy6NTl4cbIrwKIg/PmeO89YMRChNqg3v/2s9rCkkBM8PZEWc8dCQ/7cm3pQD9tlF3TCvX93rwTGGVKjKrbKfn+V9uz7a+iU7vdBqxxaSWoiff9tRrK2WRxmXfv/4UUnzoC5gVONQipnEZgtBFCsmODmWVhnDzqP0HiOjYhWdbZZ07Na5XdjUp8lUdnvV8mOumgNIX0l1nc0WdWFCt8MEaaXPLxwTNH9/hBEo4hL39+zwBTjSxqtLTBMCWja6zMA5A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OdPvtfzdZMaWLaUvGZNioSP1fvtCLy6Y5udXgU1nSVgsTet4sHaz5+NkrXR5H4XjT30xE641KsqE02KerHKCJAU8BkN3Y7QT9CWKTFVm3p336IvCyGhCk6fBM2q0PT1dGfQEt3ncAP1NIKKXTPuUvG2QmEr6BweiHZ5IO1Vxh4dkMIg0+9rYTjP6wPXX33t1AqYcrrhGtJtBQCRb+rD6+S0Rc6sINYhvzVkjVVUR128BF99cpHflANk/nTuvdyCbMrGDJdXCFAN4bbcF7HBVtyHx4CDhPSlT8t9AEbmqZh6wfy6LubWR2udJV0xvxZNne8b2uZj2Zin1gp8uqPucoA==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: Jason Andryuk <jason.andryuk@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>
  • Delivery-date: Tue, 09 Jun 2026 00:09:27 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This is a third approach to fixing the stub page handling that is
broken with !CONFIG_PV and smt=0.

There is a CPU-indexed stubs array and a NUMA node-indexed node_stubs
for allocating the stub buffers.

>From v2, this patch
  xen/x86: Remove unneeded stub_page setting
is dropped as stub_page is removed as part of patch 2.

Jason Andryuk (2):
  xen/x86: Return virtual address from alloc_stub_page()
  xen/x86: Change stub page allocation/free

 xen/arch/x86/include/asm/stubs.h |   2 +-
 xen/arch/x86/setup.c             |   3 +-
 xen/arch/x86/smpboot.c           | 114 +++++++++++++++++++++----------
 3 files changed, 79 insertions(+), 40 deletions(-)

-- 
2.54.0




 


Rackspace

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