Skip to contentSkip to conversation

Determining if USB is available

Qemu-devel Programmingkid 3 participants 5 messages Sep 18, 2015 – Oct 16, 2015

lore
Share & tools
lore
#0 lore raw

Would you know of a function that could indicate if USB is available on the current emulator?

#1 lore raw
Quoted 1 line · Programmingkid

Would you know of a function that could indicate if USB is available on the current emulator?

vl.c:usb_enabled()?

#2 lore raw
Quoted 4 lines · Stefan Hajnoczi
Quoted 1 line · Programmingkid

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?

thanks
-- PMM

#3 lore raw
Quoted 9 lines · Peter Maydell
Quoted 4 lines · Stefan Hajnoczi
Quoted 1 line · Programmingkid

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.

#4 lore raw
In reply to Stefan Hajnoczi
Quoted 4 lines · Stefan Hajnoczi
Quoted 1 line · Programmingkid

Would you know of a function that could indicate if USB is available on the current emulator?

vl.c:usb_enabled()?

Thank you.