[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 04/23] xen/arm: dom0less use domid 0 for hwdom
- To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
- From: Jason Andryuk <jason.andryuk@xxxxxxx>
- Date: Fri, 7 Mar 2025 10:00:57 -0500
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.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=Ot0tqWos9JReoTWC0254x4nLr0cDwCaE0AsCcoINB8k=; b=EfaGn8UjaSknnHHv1RrDqeIK4bgEtEOQeGMJNc6qnvPxxKAJSPQAUix2t/yZqhjR07j+Iauviaw6elJx+d1YzFUjZlbLrR711x3kptDSiqOmwxpARIe/CU0NFllnGwfbR5ZTFLjmPyuFA0s9Efa3cioJa9vr4lQRLXWeF17dqzOzQVdaXSkuj0iRuXNaxmXjtFnNZfLZdag+Xsh9+6qHPQfiEssax5JFZJmcMoToiHVoM+c5M5BlE6aAH+1BLSNDozvBmu8h5XGhAFHdTl4UzShsCvNeeR6AeSc4uyjIJEphibCagcbqUCC1uCJwtccEnOvAwF7weYZxH9BoKgAUGg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=minqys+RgUgkrcrN9FWydUyRxEtuRDEc6vH/Kdui/CpSXNKkwLShg6KwVNdiUQExwGfgKf5CMPl8WdFhESCUHTiW7X9ASWv+6w2RWB2nVS93chSb3FGaNd6XO21VCyyn8QbXPelFmW1pjLrBiZGmv0PwxRKIX1DFEQy8RkDLGhfJZ7teUmrA7C/nPheByNLwC3/KeQWj6grRhtJnMwLADeKCBihdnRZ/QYZEgO5Lw8ItoPyLzUHndEgCQdZTSEOlKGThD9QwlsRE+M0ShYOUooiqVIU8Tfd+RIGFBjDivt9NeKHqHr/m7IXC9ir+KXJ1tj750Ny2AZn5Ok0g9oYFuQ==
- Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, "Bertrand Marquis" <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Fri, 07 Mar 2025 15:01:12 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 2025-03-06 20:32, Stefano Stabellini wrote:
On Thu, 6 Mar 2025, Jason Andryuk wrote:
Assign domid 0 to the hwdom. Normally, dom0less does not use domid 0.
This fixes using the Xen console which assumes domid 0 to use the
hypercall interface.
Signed-off-by: Jason Andryuk <jason.andryuk@xxxxxxx>
I hope there is a check already in the code somewhere that triggers an
error if multiple domains are created with domid 0 ?
Hmm, no, the existence check is in the domctl code and not in
domain_create(). The next patch in the series, "xen/arm: Add
capabilities to dom0less", adds a panic when trying to create a second
hardware_domain. That check could be moved here to keep it all together.
Regards,
Jason
|