From: Ian Jackson Subject: Re: [PATCH 2 of 2] mini-os: do not wait for pci backend in pcifront_scan Date: Fri, 9 Dec 2011 16:56:33 +0000 Message-ID: <20194.15809.931214.529696@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH 2 of 2] mini-os: do not wait for pci backend in pcifront_scan"): > 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 :-/ Right. The worry would be, surely, that this somehow breaks by unpausing the guest before everything has been set up by the stubdom. But I'm happy to ack this patch on the basis that it seemed to improve things for you and should be harmless for the non-stubdom case. Acked-by: Ian Jackson (Not applying it yet as the patch floodgate is still closed pending a test pass.) Ian.