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

Re: [PATCH 17/23] xsm/dummy: Allow hwdom more - except targeting control


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Mon, 17 Mar 2025 12:17:37 -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=Z4Q49e6FKtUlrxzhZWKmKEd+5xhJlzAh4n8emjo78ZE=; b=hIl5KMpgCNewm6idemCYVTIXS1bErRxDrzCSZUDbQDzakfFND3nT9B7sZGybXeuUhYZp+6ee7tlIxH9h5dbcihe6Vl/H/aHc+2zylpFEyotkyyc/zhY0W8oIiNyt46p1qeo3ugAbm8ayBbMBYek+Hyl44GUf36rp/DmLwLKBbLc3cCznL/ZdoCoGXdoxnslP6S17rsMCYBlCj6DqYEiyAbVatNkZdvl3sYoBMzgev9g9J/EHO+4JOLMFNPb3tvqQ7mBikGxR8KnINz1HRPu0Ys+PROf5ez/faLcO0nwhkQEI3H1rveCr/xMf+rHvQXCyEVOj1yIKxaxLwD9xIbYbSQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lAlZZAnuI0IqR8CFEG8P+xvMjZUKdnWmv0HpRyGfujzsS3ejx13kChd8WdZnsQzzcAktGsg2FPIpCa+9AMtMHL1E2qVk0Iczl6A2jxwgbkldqCNL7lnWBkoTbDo7jrrxXndKJgwZ+8pN9mtTHCjr9gYCXiMrEWCs594Q9PvRtOQMn8IX5IweIDkRpyHAvA4lShz5wOwvLisEYSYMtSXdD2Dhag6Kjdkece0LN/ICzmukGRPewJpoaPzz/R1olAN4mss/PFeOkK85btM+SQKEZy2zA7xfnNxzKf7mz6jev3Izd0dwY40g+82Yuh2AZkdfraiVsFttHZCsBekVt9/O+Q==
  • Cc: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 17 Mar 2025 16:17:47 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 2025-03-17 10:28, Jan Beulich wrote:
On 06.03.2025 23:03, Jason Andryuk wrote:
Allow hwdom all perms, except XSM_PRIV, and except commands where the
target is the control domain.  This protects the control domain from
hwdom while allowing the hardware domain to serve as the backend and
device model for other domUs.

I can see why backends may need to live there. But device models don't
belong in the hardware domain, do they?

One of my tests was on x86 with hardware domain running QEMU providing virtio-gpu to a domU. QEMU needs to access the GPU for virtio-gpu. Also HVM/QEMU PCI passthrough would need to run from hardware domain. for the config space access.

I viewed the hardware domain as the place to run the device model - sort of like a stubdom moving out of dom0.

Regards,
Jason



 


Rackspace

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