diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-12-09 12:01:17 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-12-09 12:01:17 +0000 |
commit | 0d819a81abd35d31a3377ec23c356e590d3d4c88 (patch) | |
tree | 2cfe72857cfce73754920b7e07c5b3958709f853 /extras/mini-os/kernel.c | |
parent | e53a33568d4127852dc272873cdcda8da8c14239 (diff) | |
download | xen-0d819a81abd35d31a3377ec23c356e590d3d4c88.tar.gz xen-0d819a81abd35d31a3377ec23c356e590d3d4c88.tar.bz2 xen-0d819a81abd35d31a3377ec23c356e590d3d4c88.zip |
mini-os: do not wait for pci backend in pcifront_scan
This blocks the main thread indefinitely if there is no PCI backend present in
xenstore.
Even in the case where there are passthrough devices configured libxl creates
the stubdom and waits for it to startup _before_ adding the backend. Since the
stub domains main thread is blocked before it can write the "running" state to
xenstore the toolstack eventually times out and kills everything.
There is already a separate pcifront thread which waits for the backend to
appear and calls init_pcifront at the appropriate time should a backend ever
appear.
Unfortunately I don't have any free test boxes with VT-d so I haven't been able
to test the cases where PCI deivces are passed through but I obviously have
tested that I can now start an HVM domain with stub qemu without PCI devices
passed through which I couldn't do before so this is an improvement. This stuff
is a bit like pushing the lump around the carpet :-/
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/kernel.c')
-rw-r--r-- | extras/mini-os/kernel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/mini-os/kernel.c b/extras/mini-os/kernel.c index 1feb87b198..2875bf138e 100644 --- a/extras/mini-os/kernel.c +++ b/extras/mini-os/kernel.c @@ -448,6 +448,7 @@ static void print_pcidev(unsigned int domain, unsigned int bus, unsigned int slo static void pcifront_thread(void *p) { + pcifront_watches(NULL); pci_dev = init_pcifront(NULL); if (!pci_dev) return; |