[Spice-devel] win 7 terminal recognize usb as libusbx device when exiting usb redirect

陈晴 chenqing at sanlogic.com
Tue Oct 21 18:40:33 PDT 2014


hi, all:
environment:
    terminal: win 7
    guest: win 7
    usb redirect: usb clerk (provided by Cody Chan)
    usb device: kinston data traveller 8G
                    teclast 16G (use correctly) 
                    usb harddisk (use correctly) 


following is my steps to use kinston usb storage:
 1.connect usb to terminal, recognize as: mass storage device
 2.use virt-viewer to connect to guest, usb device is successfully redirected
 3.disconnect from guest
 4.back to terminal, usb device recognize as "universal serial bus device" whose driver is libusbx, and oemxx.inf generated in windows/system32/inf
(something happened in this step make win 7 to choose libusbx as its driver)


---------------------------------------------------------------------------------------
and the content of oem16.inf:


; usb_device_0930_6544.inf
; Copyright (c) 2010-2012 libusbx (GNU LGPL)
[Strings]
DeviceName = "DataTraveler 2.0"
VendorName = "Toshiba Corp."
SourceName = "DataTraveler 2.0 Install Disk"
DeviceID   = "VID_0930&PID_6544"
DeviceGUID = "{B52B8DAB-6552-4D5C-9BF2-768CC137BDA3}"


[Version]
Signature   = "$Windows NT$"
Class       = "Universal Serial Bus devices"
ClassGuid   = {88bae032-5a81-49f0-bc3d-a4ff138216d6}
Provider    = "libusbx.org"
CatalogFile = usb_device_0930_6544.cat
DriverVer   = 10/22/2014, 0.0.0.0


[ClassInstall32]
Addreg = WinUSBDeviceClassReg


[WinUSBDeviceClassReg]
HKR,,,0,"Universal Serial Bus devices"
HKR,,Icon,,-20


[Manufacturer]
%VendorName% = libusbxDevice_WinUSB,NTx86,NTamd64,NTia64


[libusbxDevice_WinUSB.NTx86]
%DeviceName% = USB_Install, USB\%DeviceID%


[libusbxDevice_WinUSB.NTamd64]
%DeviceName% = USB_Install, USB\%DeviceID%


[libusbxDevice_WinUSB.NTia64]
%DeviceName% = USB_Install, USB\%DeviceID%


[USB_Install]
Include = winusb.inf
Needs   = WINUSB.NT


[USB_Install.Services]
Include    = winusb.inf
AddService = WinUSB,0x00000002,WinUSB_ServiceInstall


[WinUSB_ServiceInstall]
DisplayName   = "WinUSB - Kernel Driver 10/22/2014 0.0.0.0"
ServiceType   = 1
StartType     = 3
ErrorControl  = 1
ServiceBinary = %12%\WinUSB.sys


[USB_Install.Wdf]
KmdfService = WINUSB, WinUsb_Install


[WinUSB_Install]
KmdfLibraryVersion = 1.9


[USB_Install.HW]
AddReg = AddDeviceInterfaceGUID


[NoDeviceInterfaceGUID]
; Avoids adding a DeviceInterfaceGUID for generic driver


[AddDeviceInterfaceGUID]
HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID%


[USB_Install.CoInstallers]
AddReg    = CoInstallers_AddReg
CopyFiles = CoInstallers_CopyFiles


[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUSBCoInstaller2.dll"


[CoInstallers_CopyFiles]
WinUSBCoInstaller2.dll
WdfCoInstaller01009.dll


[DestinationDirs]
CoInstallers_CopyFiles = 11


[SourceDisksNames]
1 = %SourceName%


[SourceDisksFiles.x86]
WinUSBCoInstaller2.dll  = 1,x86
WdfCoInstaller01009.dll = 1,x86


[SourceDisksFiles.amd64]
WinUSBCoInstaller2.dll  = 1,amd64
WdfCoInstaller01009.dll = 1,amd64


[SourceDisksFiles.ia64]
WinUSBCoInstaller2.dll  = 1,ia64
WdfCoInstaller01009.dll = 1,ia64
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20141022/3031dfde/attachment-0001.html>


More information about the Spice-devel mailing list