qemu fail to parse command line with "-pcidevice B:D.F"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Host OS:ia32e
Guest OS :32e and pae
kvm.git Commit:
qemu-kvm Commit:
Host Kernel Version:2.6.35-rc3
Hardware:
Bug detailed description:
-------
when use command "qemu-system_x86 -smp 2 -m 1024 -hda /path/to/img -pcidevice
host=00:19.0" to assign a nic to guest, guest cannot boot up, and display error
message:
qemu-system-x86_64: Parameter 'id' expects an identifier
Identifiers consist of letters, digits, '-', '.', '_', starting with a letter.
pcidevice argument parse error; please check the help text for usage
Could not add assigned device host=00:19.0
It's caused by commit: b560a9ab9be06af
Reproduce steps:
----------------
1. boot up into host
2. use pcistub hide a nic: #sh pcistub.sh -h 00:19.0
3. when use command "qemu-system_x86 -smp 2 -m 1024 -hda /path/to/img
-pcidevice host=00:19.0" to assign a nic to guest
Now we use new command to do VT-d device assignment: host=00: 19.0"
"qemu-system_x86 -smp 2 -m 1024 -hda /path/to/img -device pci-assign,