From: Anthony PERARD <anthony.perard@citrix.com>
To: Ian Jackson <iwj@xenproject.org>
Cc: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>,
"Jason Andryuk" <jandryuk@gmail.com>,
"Scott Davis" <scottwd@gmail.com>,
xen-devel <xen-devel@lists.xenproject.org>,
"Scott Davis" <scott.davis@starlab.io>, "Wei Liu" <wl@xen.org>,
"George Dunlap" <george.dunlap@citrix.com>,
"Nick Rosbrook" <rosbrookn@ainfosec.com>,
"Juergen Gross" <jgross@suse.com>,
"Daniel De Graaf" <dgdegra@tycho.nsa.gov>,
"Daniel P . Smith" <dpsmith@apertussolutions.com>
Subject: Re: [XEN PATCH] tools/xl: Add device_model_stubdomain_init_seclabel option to xl.cfg
Date: Wed, 28 Jul 2021 13:19:00 +0100 [thread overview]
Message-ID: <YQFLND63SJH85Zeo@perard> (raw)
In-Reply-To: <24832.2790.631888.595948@mariner.uk.xensource.com>
On Tue, Jul 27, 2021 at 02:32:22PM +0100, Ian Jackson wrote:
> Marek Marczykowski-Górecki writes ("Re: [XEN PATCH] tools/xl: Add device_model_stubdomain_init_seclabel option to xl.cfg"):
> > On Mon, Jul 26, 2021 at 09:07:03AM -0400, Jason Andryuk wrote:
> > > Sort of relatedly, is stubdom unpaused before the guest gets
> > > relabeled? Quickly looking, I think stubdom is unpaused. I would
> > > think you want them both relabeled before either is unpaused. If the
> > > stubdom starts with the exec_label, but it sees the guest with the
> > > init_label, it may get an unexpected denial? On the other hand,
> > > delayed unpausing of stubdom would slow down booting.
> >
> > Some parts of the stubdomain setup are done after it's unpaused (but
> > before the guest is unpaused). Especially, PCI devices are hot-plugged
> > only when QEMU is already running (not sure why).
>
> I think the PCI hotplug involves interaction with QEMU, and providing
> only hotplug simplifies the code in libxl. Anthony, do I have that
> righgt ?
I think interaction with QEMU is needed to find out the new address of
the PCI device in cases none were asked for. And have a single
implementation in libxl is certainly better.
But even if QEMU is running, I think we can still call it cold-plugged,
when it's done before emulation is supposed to have started.
Cheers,
--
Anthony PERARD
next prev parent reply other threads:[~2021-07-28 12:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-23 4:47 [XEN PATCH] tools/xl: Add device_model_stubdomain_init_seclabel option to xl.cfg Scott Davis
2021-07-26 13:07 ` Jason Andryuk
2021-07-27 12:19 ` Marek Marczykowski-Górecki
2021-07-27 13:32 ` Ian Jackson
2021-07-27 13:50 ` Jason Andryuk
2021-07-28 12:19 ` Anthony PERARD [this message]
2021-07-28 22:11 ` Scott Davis
2021-07-27 11:45 ` Andrew Cooper
2021-07-27 13:30 ` Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YQFLND63SJH85Zeo@perard \
--to=anthony.perard@citrix.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=dpsmith@apertussolutions.com \
--cc=george.dunlap@citrix.com \
--cc=iwj@xenproject.org \
--cc=jandryuk@gmail.com \
--cc=jgross@suse.com \
--cc=marmarek@invisiblethingslab.com \
--cc=rosbrookn@ainfosec.com \
--cc=scott.davis@starlab.io \
--cc=scottwd@gmail.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.