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

Re: [PATCH 3/4] xen: Add DOMAIN_CAPS_DEVICE_MODEL & XEN_DOMCTL_CDF_device_model


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Wed, 11 Jun 2025 00:35:45 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com 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=Et0YllRS4jurYtI9iva30mNVvtIvpzZkSX2b8rff/Rk=; b=kbyqTbwXJiO0joBLqwjgv91/C/r3SI5JSMMJo3KUJUWIEfhQW/oAQlu+C3tkKTuyfDjdlKY77ImnS2m242DizVraociXXTixPMp+igByZv/kL1KNEeCjONgzZNXChrObx7PSDjRxAH6z/JPkTbhi8aM4O8luf35OTvGcmRhwZiqJMz1SaBJiZbaRErt+CydrC/lJUSQBY/zmR7BzPWYflWuyRN9puNY8SVOaNvXCxJF4HOeqQaWUKpf/RGNV1okoUSsBGzTrwvv5I0/eihHf/fofaOzoPpeWhki2A39gin+OwDamHEEsR6FoErbC9bOXpWr8osYnJU3sSVeQnAm+pw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mmMVXrBebK9KgqMvcrI0N2plMO01rwuLhat0IIss5iqfaLl/qvNcCqzEheOsGVNeDdAj2E5yNOdonwI5rrulsZ6/RHhpr+b2GYO0FfUkeCAqSDqamVcID5P9RJ+aRr7JXmA5Bvxy4FabvRlPBzNW6VBvPRM7St7vVs95D6z03+822JIhSlkbEhqsBxvuDIzxVEdpJHC6+OXxq9G2fLsgaoJ3yn/DcYg7j8dqmv+TTODKQgsgiuH2i38BDS9GcNm2B18p0OECMN4r60M9L5VkvB9eQAaU4ISMA7H4rHPqjJnsgvbeN5wGMI0+UEncY0/s8DUyfP97lLXhQ7JF539jjA==
  • Cc: Christian Lindig <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, "Julien Grall" <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 11 Jun 2025 17:14:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2025-06-11 09:24, Jan Beulich wrote:
On 11.06.2025 00:57, Jason Andryuk wrote:
To add more flexibility in system configuration add the new
DOMAIN_CAPS_DEVICE_MODEL flag and XEN_DOMCTL_CDF_device_model.

Thie new flag corresponds to allowing XSM_DM_PRIV for the domain.  This
will enable running device model emulators (QEMU) from the assigne
domain for multiple target domains.

Stubdoms assign target allowing the stubdom to serve as the device
model for a single domain.  This new flag allows the single domain to
provide emulators for multiple guests.

The specific scenario is a disaggregated system with the hardware domain
providing device models for muitple guest domains.

Why the hardware domain? Unless a DM also needs access to some of the
physical hardware, it ought to run in a separate domain. Conceivably
such a domain could service multiply guests, so maybe the "single
target" concept presently used for stubdom simply needed extending?

One configuration is the hardware domain running QEMU for the virtio-gpu. In an earlier iteration, I allowed XSM_DM_PRIV for is_hardware_domain(). Rightfully, there was some questioning of that hardcoding. Adding a new flag allows it to be configurable.

Maybe target could be extended. I was thinking that could be left for the stubdom case as it is today. i.e. a 1-1 device model. But a 1-N case could be handled this way.

Today dom0 XSM_DM_PRIV falls through to is_control_domain(). The idea was place a new check directly corresponding to XSM_DM_PRIV.

Regards,
Jason



 


Rackspace

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