mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-25 06:03:55 +03:00
domain: Don't be so strict about matching USB devs
Since an active USB dev has both product+vendor and bus+addr, but an inactive dev won't have bus+addr in many situations, hotunplug wasn't removing the persistent dev. Relax the lookup check a bit.
This commit is contained in:
parent
26c49f7d6e
commit
fa0070b1dd
@ -40,8 +40,9 @@ def compare_device(origdev, newdev, idx):
|
||||
"sound" : ["model", "vmmindex"],
|
||||
"video" : ["model_type", "vmmindex"],
|
||||
"watchdog" : ["vmmindex"],
|
||||
"hostdev" : ["vendor", "product", "bus", "device",
|
||||
"type", "function", "domain", "slot", "managed"],
|
||||
"hostdev" : ["type", "managed", "vmmindex",
|
||||
"product", "vendor",
|
||||
"function", "domain", "slot"],
|
||||
"serial" : ["char_type", "target_port"],
|
||||
"parallel" : ["char_type", "target_port"],
|
||||
"console" : ["char_type", "target_type", "target_port"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user