[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] generalise vcpu0 creation for predefined domains
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Thu, 17 Jul 2025 19:51:25 +0200
- 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=sVqJy8u+ZQH3wJGcwDe1Leaf8U63aTNrpPQjEZwcVgY=; b=swLmhwUBmSzZzTEi++a16BY0ySsrivRbofPnxcaV8AuKw9am+mHsEsD1Jg+fEoae3gY15T7c+fHYZnMhs4z/p5EN7l0BnV2jUIWgXAlxBDt3d3Qzl9+7c6XCwqtoOVMI1Gt3m1wPOPUoDDX+ch3ATtm1eJWDn5EygFCgkitiz0FDohQVuzeTimF1LK6EGLetl4Aa7nnTzzccZF1TDi4p/bK8TM5LNAbSRJw2fW8rpzP+cIUbTwuRBJFxXy9v/rrfcTUMi/KfZ8hHEIVuTW9d3UKCMuSIX2q3/06Cw27FhxxWzlTfAVCF2acfSeNqDCXRoYIYuucmya1uB8oysKl7kA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HV8S4JB9w67JeaTOnZLl/DL2D7B92URPDO7zXj0QS59PrCxd33VD336WGMsubP0w8F15lNfY03Btun2PAamy4HutraKgXABWWd0jNznRSBkDS8NnwAW5a9XgJl7uMlDiNl5kxrwUn0TdB6SXyQ78QOSpKVASahvIUsepedMZ/YGhg0oK+B3/E7Maow3yFjZlfQaALHDXNiHsSbrFz8OC7Po+UVJZ05HtBl28jAVZ0Bl8HJ6fXoqfj58A5Sw7bRhk9deC/8J+Je2qKmH4sRLj8kaVghgHpOX0ddqX8wEnfG8Tx0nwccgHTP3l4FJ8VyaAtSh5k6yxmkpD233NWbXxQA==
- Cc: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>, "Daniel P . Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, "Andrew Cooper" <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
- Delivery-date: Thu, 17 Jul 2025 17:52:33 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Hi,
This patch is a very compressed version of Daniel's. Originally, it
performed code motion between dom0_build.c and domain-builder/domain.c,
but in order for this to go in early, I've compressed everything in a
single hunk and left it in dom0_build.c.
We can move whatever must be moved later on.
I could see inlining the affinity settings and removing this function
altogether (having a regular vcpu_create() in its place). I've kept it
as is for consistency with the previous patch.
See
https://lore.kernel.org/xen-devel/20250515131744.3843-5-dpsmith@xxxxxxxxxxxxxxxxxxxx/
I've kept the S-by too, as this patch descends directly from that one.
Differences with Daniel's RFC:
* Function takes a domain, as the struct already exists by then.
* Apply dom0 cmdline overrides to control and hardware domains.
* Keep everything in dom0_build.c for the time being.
* Remove arm's incarnation of the function. It's just useless.
Cheers,
Alejandro
Alejandro Vallejo (2):
arm: Remove alloc_dom0_vcpu0()
x86: generalise vcpu0 creation for a domain
xen/arch/arm/domain_build.c | 7 +------
xen/arch/x86/dom0_build.c | 12 ++++++++----
xen/arch/x86/include/asm/dom0_build.h | 5 +++++
xen/arch/x86/setup.c | 6 ++++--
xen/include/xen/domain.h | 1 -
5 files changed, 18 insertions(+), 13 deletions(-)
base-commit: 55719030b0bb0069fc8b57cd808dc98dc9d39add
--
2.43.0
|