On Oct 16, 2015, at 8:48 AM, Peter Maydell wrote: > On 16 October 2015 at 13:07, Stefan Hajnoczi <stefa...@gmail.com> wrote: >> On Thu, Sep 17, 2015 at 09:45:44PM -0400, Programmingkid wrote: >>> Would you know of a function that could indicate if USB is available on the >>> current emulator? >> >> vl.c:usb_enabled()? > > Haven't checked, but a quick look at the code suggests that may > not give the correct answer if the USB is provided by an emulated > PCI USB card?
It is ok. I have solved this problem by I think checking for a USB bus.