NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: USB passthrough in QEMU
Passing as a block device will work for sure :) But I want to pass it
as a real USB device to a guest, because then I will want to try with
USB headset to get the audio with no latency.
Here /dev/sd0 is just for testing.
On Tue, Mar 25, 2025 at 1:41 AM Manuel Bouyer <bouyer%antioche.eu.org@localhost> wrote:
>
> On Tue, Mar 25, 2025 at 01:30:05AM +0500, Vitaly Shevtsov wrote:
> > It's just a USB stick (Kingston DataTraveler)
> >
> > It's recognized by the kernel as:
> > [ 15381.341529] umass0 at uhub5 port 2 configuration 1 interface 0
> > [ 15381.341529] umass0: Kingston (0x0951) DataTraveler 3.0 (0x1666),
> > rev 2.10/0.01, addr 7
> > [ 15381.341529] umass0: using SCSI over Bulk-Only
> > [ 15381.351529] scsibus0 at umass0: 2 targets, 1 lun per target
> > [ 15381.351529] sd0 at scsibus0 target 0 lun 0: <Kingston,
> > DataTraveler 3.0, > disk removable
> > [ 15381.351529] sd0: fabricating a geometry
> > [ 15381.351529] sd0: 29510 MB, 29510 cyl, 64 head, 32 sec, 512
> > bytes/sect x 60437492 sectors
> > [ 15381.361604] sd0: fabricating a geometry
> > [ 15381.361604] sd0: GPT GUID: 4e0321bd-dfee-47ad-b2dc-4879b9721620
> > [ 15381.361604] dk4 at sd0: "1f41835f-af7b-470b-8d60-e6b10332e142",
> > 60432384 blocks at 4096, type: ffs
>
> You'll have to arrange for it to appear as a ugen device (easiest it
> boot -c and then disable sd*).
> But in your case it's easier to detach the dk4 wedge, and pass it to the guest
> as a block device using /dev/rsd0d
>
> --
> Manuel Bouyer <bouyer%antioche.eu.org@localhost>
> NetBSD: 26 ans d'experience feront toujours la difference
> --
Home |
Main Index |
Thread Index |
Old Index