* [Qemu-devel] qemu fail to parse command line with "-pcidevice 00:19.0"
@ 2010-06-24 2:03 Hao, Xudong
2010-06-24 6:08 ` [Qemu-devel] " Markus Armbruster
0 siblings, 1 reply; 7+ messages in thread
From: Hao, Xudong @ 2010-06-24 2:03 UTC (permalink / raw)
To: qemu-devel@nongnu.org
Cc: aliguori@us.ibm.com, armbru@redhat.com, kvm@vger.kernel.org
When assign one PCI device, qemu fail to parse the command line:
qemu-system_x86 -smp 2 -m 1024 -hda /path/to/img -pcidevice host=00:19.0
Error:
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
https://bugs.launchpad.net/qemu/+bug/597932
This issue caused by qemu-kvm commit b560a9ab9be06afcbb78b3791ab836dad208a239.
Best Regards,
Xudong Hao
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] Re: qemu fail to parse command line with "-pcidevice 00:19.0"
2010-06-24 2:03 [Qemu-devel] qemu fail to parse command line with "-pcidevice 00:19.0" Hao, Xudong
@ 2010-06-24 6:08 ` Markus Armbruster
2010-06-25 1:48 ` [Qemu-devel] " Hao, Xudong
2010-06-25 6:31 ` [Qemu-devel] " Hidetoshi Seto
0 siblings, 2 replies; 7+ messages in thread
From: Markus Armbruster @ 2010-06-24 6:08 UTC (permalink / raw)
To: Hao, Xudong
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, kvm@vger.kernel.org
Note to qemu-devel: this issue is qemu-kvm only.
"Hao, Xudong" <xudong.hao@intel.com> writes:
> When assign one PCI device, qemu fail to parse the command line:
> qemu-system_x86 -smp 2 -m 1024 -hda /path/to/img -pcidevice host=00:19.0
> Error:
> 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
>
> https://bugs.launchpad.net/qemu/+bug/597932
>
> This issue caused by qemu-kvm commit b560a9ab9be06afcbb78b3791ab836dad208a239.
The bug is in add_assigned_device():
r = get_param_value(id, sizeof(id), "id", arg);
if (!r)
r = get_param_value(id, sizeof(id), "name", arg);
if (!r)
r = get_param_value(id, sizeof(id), "host", arg);
We end up with invalid ID "00:19.0".
Is there a technical reason why we must have an ID? I doubt it.
Work-around: -device pci-assign,host=00:19.1
See the last section of docs/qdev-device-use.txt for details.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] RE: qemu fail to parse command line with "-pcidevice 00:19.0"
2010-06-24 6:08 ` [Qemu-devel] " Markus Armbruster
@ 2010-06-25 1:48 ` Hao, Xudong
2010-06-25 4:57 ` [Qemu-devel] " Markus Armbruster
2010-06-25 6:31 ` [Qemu-devel] " Hidetoshi Seto
1 sibling, 1 reply; 7+ messages in thread
From: Hao, Xudong @ 2010-06-25 1:48 UTC (permalink / raw)
To: Markus Armbruster
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, kvm@vger.kernel.org
>Work-around: -device pci-assign,host=00:19.1
OK, this new way can work when create guest with static assignment.
But how to hot add a pci device to guest? the old hot add command "pci_add pci_addr=auto host host=00:19.0" has the same parse error.
BTW: if we use add "-net none" in qemu command, guest can not be created and nothing error printed.
Do you have plan to fix this parse issue?
Thanks,
Xudong
-----Original Message-----
From: Markus Armbruster [mailto:armbru@redhat.com]
Sent: 2010年6月24日 14:08
To: Hao, Xudong
Cc: qemu-devel@nongnu.org; aliguori@us.ibm.com; kvm@vger.kernel.org
Subject: Re: qemu fail to parse command line with "-pcidevice 00:19.0"
Note to qemu-devel: this issue is qemu-kvm only.
"Hao, Xudong" <xudong.hao@intel.com> writes:
> When assign one PCI device, qemu fail to parse the command line:
> qemu-system_x86 -smp 2 -m 1024 -hda /path/to/img -pcidevice host=00:19.0
> Error:
> 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
>
> https://bugs.launchpad.net/qemu/+bug/597932
>
> This issue caused by qemu-kvm commit b560a9ab9be06afcbb78b3791ab836dad208a239.
The bug is in add_assigned_device():
r = get_param_value(id, sizeof(id), "id", arg);
if (!r)
r = get_param_value(id, sizeof(id), "name", arg);
if (!r)
r = get_param_value(id, sizeof(id), "host", arg);
We end up with invalid ID "00:19.0".
Is there a technical reason why we must have an ID? I doubt it.
Work-around: -device pci-assign,host=00:19.1
See the last section of docs/qdev-device-use.txt for details.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] Re: qemu fail to parse command line with "-pcidevice 00:19.0"
2010-06-25 1:48 ` [Qemu-devel] " Hao, Xudong
@ 2010-06-25 4:57 ` Markus Armbruster
2010-06-25 6:30 ` [Qemu-devel] " Hao, Xudong
0 siblings, 1 reply; 7+ messages in thread
From: Markus Armbruster @ 2010-06-25 4:57 UTC (permalink / raw)
To: Hao, Xudong
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, kvm@vger.kernel.org
"Hao, Xudong" <xudong.hao@intel.com> writes:
>>Work-around: -device pci-assign,host=00:19.1
> OK, this new way can work when create guest with static assignment.
> But how to hot add a pci device to guest? the old hot add command "pci_add pci_addr=auto host host=00:19.0" has the same parse error.
Command line's -device becomes monitor's device_add:
device_add pci-assign,host=00:19.1
> BTW: if we use add "-net none" in qemu command, guest can not be created and nothing error printed.
>
> Do you have plan to fix this parse issue?
Separate issue. Fix posted:
Subject: [Qemu-devel] [PATCH] net: Fix VM start with '-net none'
Date: Tue, 15 Jun 2010 13:30:39 +0530
Message-Id: <22a96312232a0458fc04268b79d17828c824df42.1276588830.git.amit.shah@redhat.com>
You could have found this yourself :)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] RE: qemu fail to parse command line with "-pcidevice 00:19.0"
2010-06-25 4:57 ` [Qemu-devel] " Markus Armbruster
@ 2010-06-25 6:30 ` Hao, Xudong
0 siblings, 0 replies; 7+ messages in thread
From: Hao, Xudong @ 2010-06-25 6:30 UTC (permalink / raw)
To: Markus Armbruster
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, kvm@vger.kernel.org
Thanks, Mark.
-----Original Message-----
From: Markus Armbruster [mailto:armbru@redhat.com]
Sent: 2010年6月25日 12:58
To: Hao, Xudong
Cc: qemu-devel@nongnu.org; aliguori@us.ibm.com; kvm@vger.kernel.org
Subject: Re: qemu fail to parse command line with "-pcidevice 00:19.0"
"Hao, Xudong" <xudong.hao@intel.com> writes:
>>Work-around: -device pci-assign,host=00:19.1
> OK, this new way can work when create guest with static assignment.
> But how to hot add a pci device to guest? the old hot add command "pci_add pci_addr=auto host host=00:19.0" has the same parse error.
Command line's -device becomes monitor's device_add:
device_add pci-assign,host=00:19.1
> BTW: if we use add "-net none" in qemu command, guest can not be created and nothing error printed.
>
> Do you have plan to fix this parse issue?
Separate issue. Fix posted:
Subject: [Qemu-devel] [PATCH] net: Fix VM start with '-net none'
Date: Tue, 15 Jun 2010 13:30:39 +0530
Message-Id: <22a96312232a0458fc04268b79d17828c824df42.1276588830.git.amit.shah@redhat.com>
You could have found this yourself :)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] Re: qemu fail to parse command line with "-pcidevice 00:19.0"
2010-06-24 6:08 ` [Qemu-devel] " Markus Armbruster
2010-06-25 1:48 ` [Qemu-devel] " Hao, Xudong
@ 2010-06-25 6:31 ` Hidetoshi Seto
2010-06-25 8:12 ` Markus Armbruster
1 sibling, 1 reply; 7+ messages in thread
From: Hidetoshi Seto @ 2010-06-25 6:31 UTC (permalink / raw)
To: Markus Armbruster
Cc: aliguori@us.ibm.com, Hao, Xudong, qemu-devel@nongnu.org,
kvm@vger.kernel.org
(2010/06/24 15:08), Markus Armbruster wrote:
> Note to qemu-devel: this issue is qemu-kvm only.
>
> "Hao, Xudong" <xudong.hao@intel.com> writes:
>
>> When assign one PCI device, qemu fail to parse the command line:
>> qemu-system_x86 -smp 2 -m 1024 -hda /path/to/img -pcidevice host=00:19.0
>> Error:
>> 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
>>
>> https://bugs.launchpad.net/qemu/+bug/597932
>>
>> This issue caused by qemu-kvm commit b560a9ab9be06afcbb78b3791ab836dad208a239.
>
> The bug is in add_assigned_device():
>
> r = get_param_value(id, sizeof(id), "id", arg);
> if (!r)
> r = get_param_value(id, sizeof(id), "name", arg);
> if (!r)
> r = get_param_value(id, sizeof(id), "host", arg);
>
> We end up with invalid ID "00:19.0".
... Are there any strong reason why we cannot use ':' in the identifier?
Thanks,
H.Seto
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Qemu-devel] Re: qemu fail to parse command line with "-pcidevice 00:19.0"
2010-06-25 6:31 ` [Qemu-devel] " Hidetoshi Seto
@ 2010-06-25 8:12 ` Markus Armbruster
0 siblings, 0 replies; 7+ messages in thread
From: Markus Armbruster @ 2010-06-25 8:12 UTC (permalink / raw)
To: Hidetoshi Seto
Cc: aliguori@us.ibm.com, Hao, Xudong, qemu-devel@nongnu.org,
kvm@vger.kernel.org, Paul Brook
Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> writes:
> (2010/06/24 15:08), Markus Armbruster wrote:
>> Note to qemu-devel: this issue is qemu-kvm only.
>>
>> "Hao, Xudong" <xudong.hao@intel.com> writes:
>>
>>> When assign one PCI device, qemu fail to parse the command line:
>>> qemu-system_x86 -smp 2 -m 1024 -hda /path/to/img -pcidevice host=00:19.0
>>> Error:
>>> 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
>>>
>>> https://bugs.launchpad.net/qemu/+bug/597932
>>>
>>> This issue caused by qemu-kvm commit b560a9ab9be06afcbb78b3791ab836dad208a239.
>>
>> The bug is in add_assigned_device():
>>
>> r = get_param_value(id, sizeof(id), "id", arg);
>> if (!r)
>> r = get_param_value(id, sizeof(id), "name", arg);
>> if (!r)
>> r = get_param_value(id, sizeof(id), "host", arg);
>>
>> We end up with invalid ID "00:19.0".
>
> ... Are there any strong reason why we cannot use ':' in the identifier?
Paul Brook (cc'ed) objected.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-06-25 17:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-24 2:03 [Qemu-devel] qemu fail to parse command line with "-pcidevice 00:19.0" Hao, Xudong
2010-06-24 6:08 ` [Qemu-devel] " Markus Armbruster
2010-06-25 1:48 ` [Qemu-devel] " Hao, Xudong
2010-06-25 4:57 ` [Qemu-devel] " Markus Armbruster
2010-06-25 6:30 ` [Qemu-devel] " Hao, Xudong
2010-06-25 6:31 ` [Qemu-devel] " Hidetoshi Seto
2010-06-25 8:12 ` Markus Armbruster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).