Re: Mac OS real USB device support issue

2021-05-15 Thread Programmingkid
I just wanted to give you guys an update on this issue. The libusb people have fixed the issue with USB device driver detaching on Mac OS. Here is where the code for the fix is located: https://github.com/libusb/libusb/pull/911/commits. I was able to build the library and connect it to QEMU on

Re: Mac OS real USB device support issue

2021-04-14 Thread Programmingkid
> On Apr 9, 2021, at 4:08 AM, Gerd Hoffmann wrote: > > Hi, > >> The questions that come to mind are: >> - Does libusb_detach_kernel_driver() work on Mac OS? >> - Is libusb_detach_kernel_driver() called on Mac OS in QEMU? >> >> The only mention of this function in QEMU comes from host-libusb

Re: Mac OS real USB device support issue

2021-04-10 Thread BALATON Zoltan
On Sat, 10 Apr 2021, Howard Spoelstra wrote: On Fri, Apr 9, 2021 at 9:37 PM Programmingkid wrote: Have you tried the proposed changes yet for libusb? Hi, Yes, I experimented with the current libusb from brew, the latest libusb code from github and a patched version based on that. I couldn't

Re: Mac OS real USB device support issue

2021-04-10 Thread Howard Spoelstra
On Fri, Apr 9, 2021 at 9:37 PM Programmingkid wrote: > > > > > On Apr 7, 2021, at 1:28 AM, Howard Spoelstra wrote: > > > > On Wed, Apr 7, 2021 at 7:26 AM Howard Spoelstra wrote: > >> > >> On Wed, Apr 7, 2021 at 3:53 AM Programmingkid > >> wrote: > >>> > >>> > >>> > On Apr 6, 2021, at 7:18

Re: Mac OS real USB device support issue

2021-04-09 Thread Programmingkid
> On Apr 7, 2021, at 1:28 AM, Howard Spoelstra wrote: > > On Wed, Apr 7, 2021 at 7:26 AM Howard Spoelstra wrote: >> >> On Wed, Apr 7, 2021 at 3:53 AM Programmingkid >> wrote: >>> >>> >>> On Apr 6, 2021, at 7:18 PM, BALATON Zoltan wrote: On Tue, 6 Apr 2021, Programmingki

Re: Mac OS real USB device support issue

2021-04-09 Thread Gerd Hoffmann
Hi, > The questions that come to mind are: > - Does libusb_detach_kernel_driver() work on Mac OS? > - Is libusb_detach_kernel_driver() called on Mac OS in QEMU? > > The only mention of this function in QEMU comes from host-libusb.c. > > After some tests I found out the function > host-libusb.

Re: Mac OS real USB device support issue

2021-04-08 Thread Programmingkid
> On Apr 8, 2021, at 12:40 PM, Howard Spoelstra wrote: > > On Thu, Apr 8, 2021 at 1:05 PM Gerd Hoffmann wrote: >> >> Hi, >> Those might be a good place to start. IOKit provides the drivers and also the io registry which is probably where you can get if a driver is bound to a

Re: Mac OS real USB device support issue

2021-04-08 Thread Programmingkid
> On Apr 8, 2021, at 7:05 AM, Gerd Hoffmann wrote: > > Hi, > >>> Those might be a good place to start. IOKit provides the drivers and >>> also the io registry which is probably where you can get if a driver >>> is bound to a device and which one is it. How to dissociate the >>> driver from t

Re: Mac OS real USB device support issue

2021-04-08 Thread Howard Spoelstra
On Thu, Apr 8, 2021 at 1:05 PM Gerd Hoffmann wrote: > > Hi, > > > > Those might be a good place to start. IOKit provides the drivers and > > > also the io registry which is probably where you can get if a driver > > > is bound to a device and which one is it. How to dissociate the > > > driver f

Re: Mac OS real USB device support issue

2021-04-08 Thread Gerd Hoffmann
Hi, > > Those might be a good place to start. IOKit provides the drivers and > > also the io registry which is probably where you can get if a driver > > is bound to a device and which one is it. How to dissociate the > > driver from the device though I don't know. > https://developer.apple.com

Re: Mac OS real USB device support issue

2021-04-07 Thread BALATON Zoltan
On Wed, 7 Apr 2021, Howard Spoelstra wrote: On Wed, Apr 7, 2021 at 7:26 AM Howard Spoelstra wrote: On Wed, Apr 7, 2021 at 3:53 AM Programmingkid wrote: On Apr 6, 2021, at 7:18 PM, BALATON Zoltan wrote: Those might be a good place to start. IOKit provides the drivers and also the io registry

Re: Mac OS real USB device support issue

2021-04-06 Thread Howard Spoelstra
On Wed, Apr 7, 2021 at 7:26 AM Howard Spoelstra wrote: > > On Wed, Apr 7, 2021 at 3:53 AM Programmingkid > wrote: > > > > > > > > > On Apr 6, 2021, at 7:18 PM, BALATON Zoltan wrote: > > > > > > On Tue, 6 Apr 2021, Programmingkid wrote: > > >>> On Apr 6, 2021, at 12:53 PM, BALATON Zoltan wrote:

Re: Mac OS real USB device support issue

2021-04-06 Thread Howard Spoelstra
On Wed, Apr 7, 2021 at 3:53 AM Programmingkid wrote: > > > > > On Apr 6, 2021, at 7:18 PM, BALATON Zoltan wrote: > > > > On Tue, 6 Apr 2021, Programmingkid wrote: > >>> On Apr 6, 2021, at 12:53 PM, BALATON Zoltan wrote: > >>> On Tue, 6 Apr 2021, Programmingkid wrote: > > On Apr 6, 2021, at 1

Re: Mac OS real USB device support issue

2021-04-06 Thread Programmingkid
> On Apr 6, 2021, at 7:18 PM, BALATON Zoltan wrote: > > On Tue, 6 Apr 2021, Programmingkid wrote: >>> On Apr 6, 2021, at 12:53 PM, BALATON Zoltan wrote: >>> On Tue, 6 Apr 2021, Programmingkid wrote: > On Apr 6, 2021, at 10:01 AM, Howard Spoelstra wrote: > On Tue, Apr 6, 2021 at 3:44

Re: Mac OS real USB device support issue

2021-04-06 Thread BALATON Zoltan
On Tue, 6 Apr 2021, Programmingkid wrote: On Apr 6, 2021, at 12:53 PM, BALATON Zoltan wrote: On Tue, 6 Apr 2021, Programmingkid wrote: On Apr 6, 2021, at 10:01 AM, Howard Spoelstra wrote: On Tue, Apr 6, 2021 at 3:44 PM Programmingkid wrote: Hi Gerd, I was wondering if you had access to a M

Re: Mac OS real USB device support issue

2021-04-06 Thread Programmingkid
> On Apr 6, 2021, at 12:53 PM, BALATON Zoltan wrote: > > On Tue, 6 Apr 2021, Programmingkid wrote: >>> On Apr 6, 2021, at 10:01 AM, Howard Spoelstra wrote: >>> On Tue, Apr 6, 2021 at 3:44 PM Programmingkid >>> wrote: Hi Gerd, I was wondering if you had access to a Mac

Re: Mac OS real USB device support issue

2021-04-06 Thread BALATON Zoltan
On Tue, 6 Apr 2021, Programmingkid wrote: On Apr 6, 2021, at 10:01 AM, Howard Spoelstra wrote: On Tue, Apr 6, 2021 at 3:44 PM Programmingkid wrote: Hi Gerd, I was wondering if you had access to a Mac OS 10 or Mac OS 11 machine to test USB support. I am on Mac OS 11.1 and cannot make USB dev

Re: Mac OS real USB device support issue

2021-04-06 Thread Programmingkid
> On Apr 6, 2021, at 10:20 AM, BALATON Zoltan wrote: > > On Tue, 6 Apr 2021, Howard Spoelstra wrote: >> On Tue, Apr 6, 2021 at 3:44 PM Programmingkid >> wrote: >>> >>> Hi Gerd, >>> >>> I was wondering if you had access to a Mac OS 10 or Mac OS 11 machine to >>> test USB support. I am on M

Re: Mac OS real USB device support issue

2021-04-06 Thread Programmingkid
> On Apr 6, 2021, at 10:01 AM, Howard Spoelstra wrote: > > On Tue, Apr 6, 2021 at 3:44 PM Programmingkid > wrote: >> >> Hi Gerd, >> >> I was wondering if you had access to a Mac OS 10 or Mac OS 11 machine to >> test USB support. I am on Mac OS 11.1 and cannot make USB devices work with >

Re: Mac OS real USB device support issue

2021-04-06 Thread BALATON Zoltan
On Tue, 6 Apr 2021, Howard Spoelstra wrote: On Tue, Apr 6, 2021 at 3:44 PM Programmingkid wrote: Hi Gerd, I was wondering if you had access to a Mac OS 10 or Mac OS 11 machine to test USB support. I am on Mac OS 11.1 and cannot make USB devices work with any of my guests. So far these are t

Re: Mac OS real USB device support issue

2021-04-06 Thread Howard Spoelstra
On Tue, Apr 6, 2021 at 3:44 PM Programmingkid wrote: > > Hi Gerd, > > I was wondering if you had access to a Mac OS 10 or Mac OS 11 machine to test > USB support. I am on Mac OS 11.1 and cannot make USB devices work with any of > my guests. So far these are the guests I have tested with: > > - W

Mac OS real USB device support issue

2021-04-06 Thread Programmingkid
Hi Gerd, I was wondering if you had access to a Mac OS 10 or Mac OS 11 machine to test USB support. I am on Mac OS 11.1 and cannot make USB devices work with any of my guests. So far these are the guests I have tested with: - Windows 7 - Mac OS 9.2 - Windows 2000 I have tried using USB flash d