[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] docs/designs/launch: hyperlaunch design document
- To: George Dunlap <George.Dunlap@xxxxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Thu, 25 Mar 2021 10:49:28 +0100
- 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-SenderADCheck; bh=+3kA/450iOyCr4RtK0VYR6nt+tQPGFcC+lro44Bw32c=; b=fbdDCe3pMbpWsVUGawOkBkwVstL6mLjPIsqoh5f3vwAgB8toHfX4Zti4CmR0Jo/8u/7AQKHiDKX6OXB9BeaEiZg5NSVgqKVrjIVGrDKOvpo7XW9bNtDsVIvUoNFGcgFiZBGJLobGYyogTaMGKPKn5ZEP1Xl6jrVIvammktIGWVl5E1vtr3y1cObO8rUQa4HpiUDSveJJHHN+AHxXrm6kMOZ+OyJNA61XP13l7ybzgQNkbzWjOAWRjvO1AChInmq07/kH99+vGF8iEX6ZWVfLG4xWhuSZK9v8e3DTuDZ0AFeIlZFTf3PZQ4uDJRp/u3gopSjh69ww7P723bSBFQjAOw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zu68J0jwYedoeuIOrkAtp2K2vV0/JpPDkIftoAYFLAUIB59UftuDWbn+E7O1QiHeQUo2KzaPnMs+k14zs20itYX+q0sRU2uLDrMBFrJrnaAzb0QaKHg0F7l0CLweeC1QLWZH4aUbvnWo7OsIZbdPglXlABCQQR19R0tUdlrYe4z0F7CxV1+hE3OtyT8JC1Dg+J3vcd/z+YhCVf2Pf29DvzlOdu38D9dSv13381pWJT9/bD6AbnWxkwk/0OcVieFy3EuCujY/IyXIlcsa1Z7uZG1g4tR05FREecmz2yX8hon0I1DJRQZOPwW72rDnmXWgwYF8VUeabGspCALXcjcs0g==
- Authentication-results: esa2.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: Christopher Clark <christopher.w.clark@xxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, "Julien Grall" <Julien.grall.oss@xxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Rich Persaud <persaur@xxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, "luca.fancellu@xxxxxxx" <luca.fancellu@xxxxxxx>, "paul@xxxxxxx" <paul@xxxxxxx>, Adam Schwalm <adam.schwalm@xxxxxxxxxx>
- Delivery-date: Thu, 25 Mar 2021 09:49:59 +0000
- Ironport-hdrordr: A9a23:WcrUnKpDCcNQrVcYMSvBqzAaV5uZKtV00zAX/kB9WHVpW+SivY SHgOkb2RjoiDwYRXEnnpS6NLOdRG7HnKQa3aA4Bp3neAX9omOnIMVZ7YXkyyD9ACGWzIFg/I 9aWexFBNX0ZGIXse/T/BS4H9E8wNOO7aCvgqPkw21wSBxxApsB0y5SIG+gYytLbSNBAoc0E4 fZy8pcvjy7eWkWaMPTPAh5Y8HoodrXmJX6JSMcDxk85wWUyR+u4rj2Ex+Xty1uLw9n67Ek7G TDjkjF9ryu2svLsCP0+k3yy9BtmNXnwsZeH8DksKkoAxjllwrAXvUFZ5SspzYwydvfjGoCsN 6JmBs4OtQ21nW5RBDLnTLI+y3NlAkj8GXjz1jwuwqRneXcSCghA8RMwaJ1GyGpk3YIh9133K JV02/xjfM+Zn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5vvpXyOM0rgBFqI7SF4mHnQU2TBH/OmYcZfXBxjvX+Zf/ECiOnvVSs4RdIG1XZERpA 19+deGgqu+cDf5whnZuX9eLrhV+2iqBeO0DwTkI58Fz/WKfXCNiLCt+si9kXPeTia6cV0Rgc l9TnMrB/4zwgUKvckQySi9Sqv+v0IjnR9/2Fhc5yDQ87njxnzaE0FAORDembNMU1BoQyC1sf g=
- Ironport-sdr: qoWB19Xjk1ZGwS9CvNmCo0m4zm+TCLqJeBCjZ3/TBGfRRRWJL83lT0rrwlzQnNtmpFadGO2nN4 eFmQOrE6/ZKwwrW8AFtG+ru9bp55NShppxtoSW8JKxK3OWuzDUP+Pa4o7cDKfT0Sv538rFNIdl O7vlhNFCxpurUg1SBqLyShX81/Dr/4HZh1G632DKDIZTM7kOLvkHYwLAWGOr8+x7iianxXG2Ug kNdZMZLjcNueb4q8kKzMNnmrM4puIaE7fDAtZw+wEE7S0BPPQBAtpYIc0+sOda+6Cwocg0uZ5G k7A=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu, Mar 25, 2021 at 10:14:31AM +0100, George Dunlap wrote:
>
>
> > On Mar 25, 2021, at 8:32 AM, Roger Pau Monne <roger.pau@xxxxxxxxxx> wrote:
> >
> > On Wed, Mar 24, 2021 at 05:53:26AM -0700, Christopher Clark wrote:
> >> On Wed, Mar 24, 2021 at 1:01 AM Roger Pau Monné <roger.pau@xxxxxxxxxx>
> >> wrote:
> >>>
> >>> On Tue, Mar 23, 2021 at 10:39:53AM -0700, Christopher Clark wrote:
> >>>> On Thu, Mar 18, 2021 at 9:43 AM Roger Pau Monné <roger.pau@xxxxxxxxxx>
> >>>> wrote:
> >>> If you offload domain creation of guests with
> >>> pci-passthrough devices to a control domain and/or hardware domain,
> >>> I'm not sure I see the difference from normal domain creation, ie:
> >>> it's no longer something specific to hyperlaunch, as I could achieve
> >>> the same by using the existing xendomains init script.
> >>
> >> So that's not what we've proposed, and hopefully not what we'll need to do.
> >>
> >> Do you know if there is a need to perform work to support the
> >> assignment of PCI devices at the point of domain creation (ie. in
> >> domain_create), rather than handling it in a later step of domain
> >> configuration, prior to the domain being started?
> >
> > So while I think you could indeed create a domain from the hypervisor
> > in a paused state and attach the pci devices later from a
> > control/hardware domain, I don't see much benefit in doing it. If you
> > need to end up waiting for a control/hardware domain to attach the
> > devices and unpause you might as well do the whole domain creation
> > from such control/hardware domain.
>
> My understanding was that one of the primary advantages of domB was
> that you could compile and run arbitrary code in whatever language
> you wanted to, using already known tools. If *all* we want to do is
> to assign some pre-defined specific BDFs to specific domains, then
> sure, we could add that capability to Xen.
Well, it's not so easy because we require QEMU or pciback ATM on x86
in order to do pci passthrough to guests, so assigning BDFs to
specific domains from the hypervisor would need to be done using vPCI
(which is not yet ready for unprivileged guest usage) and only support
HVM kind of guests strictly.
Doing passthrough to PV guests directly from the hypervisor is
impossible AFAICT without putting pciback inside of the hypervisor.
> But suppose you wanted
> to have the flexibility to handle changes in hardware at boot time?
> “Scan through the PCI bus and assign anything that looks like a
> network card to domNet, and anything that looks like a USB
> controller to domUSB” is something you could easily do in domB, but
> would be way too complicated to add to Xen.
Right, but then you might as well create the domain from domB instead
of doing it in the hypervisor?
I'm not arguing about not using domB, I just don't see the benefit of
creating a paused domain from the hypervisor that then requires the
intervention of a further domain (domB) in order to finish creation.
Won't it be simpler to just create the domain and attach the pci
devices from domB?
Thanks, Roger.
|