* [Qemu-devel] Determining if USB is available
@ 2015-09-18 1:45 Programmingkid
2015-10-16 12:07 ` Stefan Hajnoczi
0 siblings, 1 reply; 5+ messages in thread
From: Programmingkid @ 2015-09-18 1:45 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel qemu-devel
Would you know of a function that could indicate if USB is available on the current emulator?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Determining if USB is available
2015-09-18 1:45 [Qemu-devel] Determining if USB is available Programmingkid
@ 2015-10-16 12:07 ` Stefan Hajnoczi
2015-10-16 12:48 ` Peter Maydell
2015-10-16 13:54 ` Programmingkid
0 siblings, 2 replies; 5+ messages in thread
From: Stefan Hajnoczi @ 2015-10-16 12:07 UTC (permalink / raw)
To: Programmingkid; +Cc: Gerd Hoffmann, qemu-devel qemu-devel
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()?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Determining if USB is available
2015-10-16 12:07 ` Stefan Hajnoczi
@ 2015-10-16 12:48 ` Peter Maydell
2015-10-16 13:55 ` Programmingkid
2015-10-16 13:54 ` Programmingkid
1 sibling, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2015-10-16 12:48 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Programmingkid, Gerd Hoffmann, qemu-devel qemu-devel
On 16 October 2015 at 13:07, Stefan Hajnoczi <stefanha@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?
thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Determining if USB is available
2015-10-16 12:07 ` Stefan Hajnoczi
2015-10-16 12:48 ` Peter Maydell
@ 2015-10-16 13:54 ` Programmingkid
1 sibling, 0 replies; 5+ messages in thread
From: Programmingkid @ 2015-10-16 13:54 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Gerd Hoffmann, qemu-devel qemu-devel
On Oct 16, 2015, at 8:07 AM, Stefan Hajnoczi 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()?
Thank you.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Determining if USB is available
2015-10-16 12:48 ` Peter Maydell
@ 2015-10-16 13:55 ` Programmingkid
0 siblings, 0 replies; 5+ messages in thread
From: Programmingkid @ 2015-10-16 13:55 UTC (permalink / raw)
To: Peter Maydell; +Cc: Stefan Hajnoczi, Gerd Hoffmann, qemu-devel qemu-devel
On Oct 16, 2015, at 8:48 AM, Peter Maydell wrote:
> On 16 October 2015 at 13:07, Stefan Hajnoczi <stefanha@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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-10-16 13:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-18 1:45 [Qemu-devel] Determining if USB is available Programmingkid
2015-10-16 12:07 ` Stefan Hajnoczi
2015-10-16 12:48 ` Peter Maydell
2015-10-16 13:55 ` Programmingkid
2015-10-16 13:54 ` Programmingkid
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).