* [Qemu-devel] [PATCH v5] vl.c: Output error on invalid machine type provided
@ 2013-07-31 7:04 Michal Novotny
2013-08-12 15:55 ` Eric Blake
0 siblings, 1 reply; 4+ messages in thread
From: Michal Novotny @ 2013-07-31 7:04 UTC (permalink / raw)
To: qemu-devel
Output error message using qemu's error_report() function when user
provides the invalid machine type on the command line. This also saves
time to find what issue is when you downgrade from one version of qemu
to another that doesn't support required machine type yet (the version
user downgraded to have to have this patch applied too, of course).
Signed-off-by: Michal Novotny <minovotn@redhat.com>
---
vl.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/vl.c b/vl.c
index f422a1c..9b4a3f9 100644
--- a/vl.c
+++ b/vl.c
@@ -2671,6 +2671,11 @@ static QEMUMachine *machine_parse(const char *name)
if (machine) {
return machine;
}
+
+ if (name && !is_help_option(name)) {
+ error_report("Unsupported machine type");
+ }
+
printf("Supported machines are:\n");
for (m = first_machine; m != NULL; m = m->next) {
if (m->alias) {
--
1.7.11.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH v5] vl.c: Output error on invalid machine type provided
2013-07-31 7:04 [Qemu-devel] [PATCH v5] vl.c: Output error on invalid machine type provided Michal Novotny
@ 2013-08-12 15:55 ` Eric Blake
2013-08-12 15:58 ` Michal Novotny
0 siblings, 1 reply; 4+ messages in thread
From: Eric Blake @ 2013-08-12 15:55 UTC (permalink / raw)
To: Michal Novotny; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 728 bytes --]
On 07/31/2013 01:04 AM, Michal Novotny wrote:
> Output error message using qemu's error_report() function when user
> provides the invalid machine type on the command line. This also saves
> time to find what issue is when you downgrade from one version of qemu
> to another that doesn't support required machine type yet (the version
> user downgraded to have to have this patch applied too, of course).
>
> Signed-off-by: Michal Novotny <minovotn@redhat.com>
> ---
> vl.c | 5 +++++
> 1 file changed, 5 insertions(+)
Are you trying to get this in 1.6?
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH v5] vl.c: Output error on invalid machine type provided
2013-08-12 15:55 ` Eric Blake
@ 2013-08-12 15:58 ` Michal Novotny
2013-08-12 16:16 ` Eric Blake
0 siblings, 1 reply; 4+ messages in thread
From: Michal Novotny @ 2013-08-12 15:58 UTC (permalink / raw)
To: Eric Blake; +Cc: qemu-devel
On 08/12/2013 05:55 PM, Eric Blake wrote:
> On 07/31/2013 01:04 AM, Michal Novotny wrote:
>> Output error message using qemu's error_report() function when user
>> provides the invalid machine type on the command line. This also saves
>> time to find what issue is when you downgrade from one version of qemu
>> to another that doesn't support required machine type yet (the version
>> user downgraded to have to have this patch applied too, of course).
>>
>> Signed-off-by: Michal Novotny <minovotn@redhat.com>
>> ---
>> vl.c | 5 +++++
>> 1 file changed, 5 insertions(+)
> Are you trying to get this in 1.6?
>
> Reviewed-by: Eric Blake <eblake@redhat.com>
>
It's ok for 1.6. It applies cleanly. So if it's fine with you please
push it to the repository.
Thanks,
Michal
--
Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat
Virtualization | libvirt-php bindings | php-virt-control.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH v5] vl.c: Output error on invalid machine type provided
2013-08-12 15:58 ` Michal Novotny
@ 2013-08-12 16:16 ` Eric Blake
0 siblings, 0 replies; 4+ messages in thread
From: Eric Blake @ 2013-08-12 16:16 UTC (permalink / raw)
To: Michal Novotny; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]
On 08/12/2013 09:58 AM, Michal Novotny wrote:
>
> On 08/12/2013 05:55 PM, Eric Blake wrote:
>> On 07/31/2013 01:04 AM, Michal Novotny wrote:
>>> Output error message using qemu's error_report() function when user
>>> provides the invalid machine type on the command line. This also saves
>>> time to find what issue is when you downgrade from one version of qemu
>>> to another that doesn't support required machine type yet (the version
>>> user downgraded to have to have this patch applied too, of course).
>>>
>>> Signed-off-by: Michal Novotny <minovotn@redhat.com>
>>> ---
>>> vl.c | 5 +++++
>>> 1 file changed, 5 insertions(+)
>> Are you trying to get this in 1.6?
>>
>> Reviewed-by: Eric Blake <eblake@redhat.com>
>>
>
> It's ok for 1.6. It applies cleanly. So if it's fine with you please
> push it to the repository.
I'm not the maintainer, so I'm not the one that can push it. At this
phase in the game, it helps if you resend a patch with 'for 1.6' inside
the [] as part of the subject line, as well as cc the maintainer listed
by ./scripts/get_maintainer.pl, to make sure the actual maintainer sees
it and can make a more-informed decision on whether it qualifies as a
bug fix.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-08-12 16:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-31 7:04 [Qemu-devel] [PATCH v5] vl.c: Output error on invalid machine type provided Michal Novotny
2013-08-12 15:55 ` Eric Blake
2013-08-12 15:58 ` Michal Novotny
2013-08-12 16:16 ` Eric Blake
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).