|
|
楼主 |
发表于 2022-9-29 11:52:34
|
显示全部楼层
(nova-libvirt)[root@compute07 /]# lsusb -v# Q0 n z6 e$ c9 K$ b
# G% x3 P4 Z) W2 Y! |
Bus 002 Device 003: ID 0781:5588 SanDisk Corp. ( S. Z5 }4 P; N0 Y6 ^
Device Descriptor:: M* A6 P, D$ H2 G$ h
bLength 18
i0 m( ], {. o bDescriptorType 1
( B6 C4 @+ t: }. n5 b bcdUSB 2.10
! m; E) x0 j' J; D! T1 u/ q bDeviceClass 0 (Defined at Interface level)9 b) m* i. T. F2 n$ r5 M( X
bDeviceSubClass 0
2 B5 M9 M$ r! u6 Y( k2 P bDeviceProtocol 0 $ N. g# ]$ S+ q4 z/ j5 I# f: X g! g& Y
bMaxPacketSize0 64& k- o j* @! p: z2 q7 ~2 {
idVendor 0x0781 SanDisk Corp.1 C) v1 l3 `5 E% ]7 [" w$ K
idProduct 0x5588
+ `, `) s c0 x% G; z% J' f bcdDevice 1.00
0 ]9 d7 [& F1 T9 ~4 Q4 D iManufacturer 2 SanDisk
4 o$ l; c( O' k. O+ i4 E iProduct 3 USB Extreme Pro
- n4 [- ?8 V( y G3 s iSerial 1 00000000000000000000. b8 \7 M0 @+ F% B* |
bNumConfigurations 1
. A3 g* l5 g/ T; T+ i Configuration Descriptor:
4 @( \0 y4 V) V _, n7 E' G bLength 9
7 |: q9 O7 t% a7 B- A( P6 z- W bDescriptorType 2; ~" l0 k0 N9 K! w! h0 v8 P5 g
wTotalLength 32, ^9 C W# [ ]6 o: D
bNumInterfaces 1. ^3 @" a, J6 j1 J3 l& H0 E/ V1 ~
bConfigurationValue 1
0 T( C/ V ]' M iConfiguration 0 7 t7 g# [8 n! E' }& \9 d
bmAttributes 0xc02 I8 G+ f9 _3 V5 i
Self Powered: C# m& \9 ^( X' x z1 O" n2 p/ h
MaxPower 0mA* n2 s) [8 x1 }! f& g8 o
Interface Descriptor:3 W( u& v- w. ^( b
bLength 9! a, t2 q$ v" v2 g1 O" D
bDescriptorType 4
% ^/ k l$ H) k% t. I bInterfaceNumber 0
: l1 G" e. \0 d) T n6 x9 A- V bAlternateSetting 0
+ Q3 Y) S2 _" _6 [. T bNumEndpoints 2
6 q- M2 t& z! h1 ~, o5 \( s bInterfaceClass 8 Mass Storage
/ u3 }* @1 h; l4 d8 {5 ]4 U bInterfaceSubClass 6 SCSI
, f" e' g' t, q% ` bInterfaceProtocol 80 Bulk-Only: O7 J- ^+ C- S/ P* U" |
iInterface 0 ; x/ `/ l' Y; h, K- ^# p
Endpoint Descriptor:
) w2 F* a+ Q# H bLength 7
: D9 {2 G- ?7 O( ?: B' g6 ^ bDescriptorType 5
2 P; m7 G. Z) g, u& } bEndpointAddress 0x81 EP 1 IN
q3 Y$ h3 b" ^* L bmAttributes 2# T* [/ m; l7 P- p$ [/ |( s
Transfer Type Bulk
& n8 d! ^ I; d Synch Type None3 I8 y+ u, X' e8 h! g9 H W
Usage Type Data
8 G0 b$ z6 ^, W( X# q- q! z' n6 V( T' @ wMaxPacketSize 0x0200 1x 512 bytes
6 n, `6 X4 i! j9 i bInterval 0
6 {. U* F: Q- x- ] Endpoint Descriptor:
/ ~0 H2 E* Y! }4 ~* }, r bLength 7
- q# u% t$ ^& }2 k9 e bDescriptorType 5+ m; o. K/ f4 R2 W
bEndpointAddress 0x02 EP 2 OUT
# I7 b4 @# ]: S; I7 z' A% { bmAttributes 25 B' K/ y- D, W) |+ a
Transfer Type Bulk
' Q% t& I) V, q* V9 A7 W! J Synch Type None# v) y" Y# j7 @- \3 R' P7 R
Usage Type Data
4 W/ y) Y3 b1 }' e2 L: l; R* L wMaxPacketSize 0x0200 1x 512 bytes
6 I: |3 e f& U x. c" c& g/ r bInterval 0; p5 A: l1 U$ D
4 Y$ m* P1 A3 M% S8 W9 r9 ?
(nova-libvirt)[root@compute07 /]# cat usb.xml
_3 P6 N6 ^$ J4 i, ^0 z% ~' ^<hostdev mode='subsystem' type='usb'>
' w$ a4 E0 C* h<source startupPolicy='optional'>
) H( x8 W( H$ |) d# e/ F7 ^; B4 w' r<vendor id='0x0781'/>6 `9 \/ L# k# d r" {3 u$ o
<product id='0x5588'/>/ k5 X0 e5 G7 |3 W2 j0 a- F
</source>& g8 P* u1 P- L# Y4 [- t! i$ r4 u
</hostdev>6 l9 d- q5 H7 t$ {" H0 G1 d
8 M% e. P x; \* I8 o$ e) Q5 I+ a0 F. o9 C/ Y, H! I
(nova-libvirt)[root@compute07 /]# virsh attach-device instance-00000162 usb.xml1 b+ z4 T0 T: [* Z1 [
Device attached successfully: h- g$ S% P7 i, m! ~$ [) o
( T" ^; ] i& F, [: }- }2 b# X" k7 d/ W% n5 p) v. S
% p4 m7 \" `6 L7 U, d
|
|