2008/9/29 Paul Brook : > On Monday 29 September 2008, andrzej zaborowski wrote: >> Hi, >> I added code to emulate various bluetooth hardware but I didn't add >> any user interface to set it up or tweak. The attached patch adds >> command line switches for doind that but it's not very pretty, any >> suggestions to change it will be appreciated. > > Do we really need 3 different options? Can't everything be done with a > single -bt option, like it is with -net? We can and then the syntax is more like with -net and less like with -usbdevice, the attached patch does that instead. The syntax is now: -bt hci,null -bt hci,host[:id] -bt hci[,vlan=N] -bt vhci[,vlan=N] -bt device:dev[,vlan=N] > > I'd kinda expect serial bluetooth dongles to be added the same way as USB > ones, i.e. via -serial options. The serial dongle emulated in hw/bt-hci-csr.c has some vendor extensions so it's not a standard serial dongle. It's attached by the machine code because this part is not configurable in n8x0. One can add support for attaching hot-pluggable serial dongles in vl.c if needed. Regards