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

Re: [RFC PATCH] xen/kconfig: allow LATE_HWDOM config for ARM


  • To: Julien Grall <julien@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Sergiy Kibrik <sergiy_kibrik@xxxxxxxx>
  • Date: Tue, 24 Dec 2024 05:55:14 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • 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=hH4/d0I4p8N8xD8RENftgn2pBsiEpuAI//YY+y57N5Q=; b=QeLkidzbJ9gLmhKKijehx4wkXj+orqHFgIBhhd86tY6QmPyXBF52AzLOuzf03kgadX0+OpUMoLM4yfNjKYSRG+5PXGg2OVjqNmGVBCYgQl3hfKnAW4aXsXb+KWMWkh5iQtFDjYp/uaqRo6/5VK6Xl/d9tslWRm66tI3pdt+D/DGoSoDxDUG/98WRLnLCRITc5MEAZIOgQcYtP/hSnHtMpxljbRo5GkoF5oQ2O193yM728pNOIEetqYoa2qeCKlhO5tMgYov2yw3TQ68slscH8w8kIh50wkpg/QtkS66n7DC7EiQQOzeBVuL1ZXtB8mnUCc/1cbzOynltD2TobRsxNQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ndyIKDi0p+2n/r17gaUJ3owaVLtjC6WmPba0/ndGf1VTpfar0PYelenNI5X5+ay9ers+SDqdmjkm8pYscDtewRUdjMeZWssI7FUygwKaSoyZjVvVxLbsNJwtAwHHKNuClETjztpXdY1zHp7XQg/B06ss9NFNyXajeB+wtyh/uuNcd4IZNcFJ/1oU3om+tHOemb+xk1mYZL/ltPIywrPLUITsUhdZKwL6gh8MqkoFMb/M8LOn0y7QsaJVXZcLXCE0szfTIRrmF1U7xpC6NpJyTk/IuBbI/uZua5m2Guj4pJlCgGaJyrjqe2/AdgtApAGXWiMi1EQQ+p1qZILE9plRUQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 24 Dec 2024 03:55:33 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

18.12.24 12:38, Julien Grall:

Are you sure this patch is sufficient to use the late hwdom feature? Looking at the code, to enable the late hwdom, the user needs to provide a domid on the command line. But AFAICT, there is no way to provide a domain ID in the DOM0LESS case...


I append "hardware_dom=1" to xen,xen-bootargs in host's device tree and it works.

AFAIU, the domain needs to be explicitely created. How do you do that? Is it just describing the domain in the DT? If so, how does it work if there are multiple domain described in the DT?

I just had a look at the code. I don't see how this change and simply adding "hardware_dom=X" is sufficient.

In addition to what I wrote above, Dom0 will be the first domain created and we will assign all the devices and mappings. When the hardware domain is created later on, dom0 will still have those mappings and devices. That's unless you list all the devices in the device-tree as not assigned to dom0 and then assign them manually to the hardware domain.

I would also expect that the hardware domain wants to use the same memory layout as the host. But that's not necessary for the control domain.

So surely you need something more in the device-tree?

yes, I had to assign devices to hardware domain manually.

  -Sergiy



 


Rackspace

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