[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 10/11] arm/libxl: Emulated PCI device tree node in libxl
- To: Ian Jackson <iwj@xxxxxxxxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Mon, 11 Oct 2021 15:46:21 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=HT7gJfsCPOMGqFHw1s6BZbpetYt+I7JHu1N0hi6eXdY=; b=hFk6mXGSCTvR4/qpaT4d3n0NpRaNcH7mymOAv0XIjiCmRWTNKqsnZutF3k5i8U8fwBB0vMQ2Ze1Siv5JUxFc+8RsfC+3afr4nSj4w3jiVS6LNgB2yoS+p+NetgjRFAB4P2ZW+wvJf1uqTR2Cf2aGQIYETRsht4PsSfOgGaFdqriX2GvffzXcY9K7pOITaIcc0GTgEZONT7VBl4SSHmkAhED3DDu9t7RzyMOS6RdbATCu56h0TmRgFRzhxNB/531RLsegHt+IUGGnBghnxIpsvwdvgoIXkK0Yy9UXZQkKtaI4oZ03uAZTzRJssaLjflbTlBYSy//F4GlX0xNAhODrMg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wy0Q7qV0Lt08yPyZCzWD4yKAguiporv9nzckH0hzqVtS1PaiitDf8Qb1nzin/ntEwuQAtyuzJC0dtAN7jvnHSWbps0nTnBUBKvfeKgD8kdChiMl+3dGm39AfECRjkSAE0M3SXYCdG5MsvmHberdhNAobgidBvsemyAH9dgoMcmTYHvevUSEUyz0h3UcRopIBkoYZttTG0Z5/q6w+EAeQhtZllYTl9Ia4CqutciM9a87b3zAjoRfOTW9i+x8zAaUcXVpWeJJkYdsi3QFycMpU+8T6Sb5T/tkEGaUecvWdLr/3kwXD9+7tqN6ih81WnMOuZ3OMBYHiypsX+jnoRmLe0g==
- Authentication-results: esa6.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Rahul Singh <Rahul.Singh@xxxxxxx>, Julien Grall <julien@xxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Andre Przywara <Andre.Przywara@xxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Mon, 11 Oct 2021 13:47:03 +0000
- Ironport-data: A9a23:IZgBzaBtoujR8hVW/1flw5YqxClBgxIJ4kV8jS/XYbTApD0n1DUBn GVOCGmDPv6CazD8etogPNuw9kMGu5fcxoRrQQY4rX1jcSlH+JHPbTi7wuYcHM8wwunrFh8PA xA2M4GYRCwMo/u1Si6FatANl1ElvU2zbue6WLOs1hxZH1c+EX550Es7wobVv6Yz6TSHK1LV0 T/Ni5W31G+Ng1aY5UpNtspvADs21BjDkGtwUm4WPJinj3eH/5UhN7oNJLnZEpfNatI88thW5 Qr05OrREmvxp3/BAz4++1rxWhVirrX6ZWBihpfKMkQLb9crSiEai84G2PQghUh/tBG5u/dYw e525cKxThwPZaLNmMYPXEwNe81+FfUuFL7vJHG+tYqYzlHccmuqyPJrZK00FdRGoKAtWzgIr KFGbmBWBvyAr7veLLaTUO5ji95lNMD2FIgepmth3XfSCvNOrZXrHvmauI4Fhm1YasZmLcz6P +g0VDFWYT+RSR4WBU06OMN5g7L97pX4W2IB8w/EzUYt2EDMyCRh3b6rN8DaEv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bTqzyxrlNUX/OLQpAiA1yWZMR+gUfSxGAiH24lR4mhKzjiqzTkSRaZgk9AYra5ptqF 4hVnOEtfR/ix2VvMRXM9OGAa
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu, Oct 07, 2021 at 05:11:47PM +0100, Ian Jackson wrote:
> Rahul Singh writes ("Re: [PATCH v5 10/11] arm/libxl: Emulated PCI device tree
> node in libxl"):
> > As Stefano suggested in another email that we can remove the vpci
> > option, if we reach to conclusion that we need vpci option I will
> > move it to internal structure.
> ...
> > Yes I agree with you VPCI is necessary for hot plugged PCI device
> > and once we implement the hotplug in future we will use the
> > passthrough= option to enable VPCI.
>
> So, to summarise, I think the situation is:
>
> * VCPI is necessry for passthrough on ARM, whether coldplug or
> hotplug. It's part of the way that PCI-PT works on ARM.
>
> * Hotplug is not yet implemented.
>
> * VPCI is not necessary on x86 (evidently, since we don't have it
> there but we do have passthrough).
>
> So when hotplug is added, vpci will need to be turned on when
> passthrough=yes is selected. I don't fully understand the other
> possible values for passthrough= but maybe we can defer the question
> of whether they apply to ARM ?
>
> I think that means that yes, this should be an internal variable.
> Probably in libxl__domain_create_state. We don't currently arrange to
> elide arch-specific state in there, so perhaps it's fine just to
> invent a member called `arm_vpci`.
Seeing as we might want to also use this on x86, I wonder whether we
should allow to specify a backend to use for each passthrough device,
ie:
pci = [ '36:00.0,backend=vpci',
'36:01.0,backend=qemu',
... ]
In principle we should support different backends on a per-device
basis, albeit if not currently possible.
Iff we have to introduce a new struct member for vPCI it should be
shared between all arches, as it's likely x86 will also want to at
least have the option to use vPCI for passthrough.
Thanks, Roger.
|