All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hw/s390x/s390-virtio-ccw: Improve the machine description string
@ 2022-05-06  6:50 Thomas Huth
  2022-05-06  7:23 ` Cornelia Huck
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Huth @ 2022-05-06  6:50 UTC (permalink / raw)
  To: qemu-s390x, Eric Farman, Christian Borntraeger, Halil Pasic
  Cc: qemu-devel, Cornelia Huck, David Hildenbrand

The machine name already contains the words "ccw" and "virtio", so
using "VirtIO-ccw" in the description likely does not really help
the average user to get an idea what this machine type is about.
Thus let's switch to "Virtual s390x machine" now, since "virtual
machine" should be a familiar term, and "s390x" signals that this
is about 64-bit guests (unlike S390 which could mean that it is
31-bit only).
Also expand "v" to "version, since this makes it easier to use
this macro also with non-numeric machine names in downstream.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 hw/s390x/s390-virtio-ccw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
index 8fa488d13a..11a942a325 100644
--- a/hw/s390x/s390-virtio-ccw.c
+++ b/hw/s390x/s390-virtio-ccw.c
@@ -768,7 +768,7 @@ bool css_migration_enabled(void)
     {                                                                         \
         MachineClass *mc = MACHINE_CLASS(oc);                                 \
         ccw_machine_##suffix##_class_options(mc);                             \
-        mc->desc = "VirtIO-ccw based S390 machine v" verstr;                  \
+        mc->desc = "Virtual s390x machine (version " verstr ")";      \
         if (latest) {                                                         \
             mc->alias = "s390-ccw-virtio";                                    \
             mc->is_default = true;                                            \
-- 
2.27.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] hw/s390x/s390-virtio-ccw: Improve the machine description string
  2022-05-06  6:50 [PATCH] hw/s390x/s390-virtio-ccw: Improve the machine description string Thomas Huth
@ 2022-05-06  7:23 ` Cornelia Huck
  2022-05-06 10:03   ` Thomas Huth
  0 siblings, 1 reply; 4+ messages in thread
From: Cornelia Huck @ 2022-05-06  7:23 UTC (permalink / raw)
  To: Thomas Huth, qemu-s390x, Eric Farman, Christian Borntraeger, Halil Pasic
  Cc: qemu-devel, David Hildenbrand

On Fri, May 06 2022, Thomas Huth <thuth@redhat.com> wrote:

> The machine name already contains the words "ccw" and "virtio", so
> using "VirtIO-ccw" in the description likely does not really help
> the average user to get an idea what this machine type is about.
> Thus let's switch to "Virtual s390x machine" now, since "virtual
> machine" should be a familiar term, and "s390x" signals that this
> is about 64-bit guests (unlike S390 which could mean that it is
> 31-bit only).

Do we foresee any s390x machines that don't default to ccw virtio
devices in the future?

> Also expand "v" to "version, since this makes it easier to use

s/"version/"version"/ :)

> this macro also with non-numeric machine names in downstream.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  hw/s390x/s390-virtio-ccw.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
> index 8fa488d13a..11a942a325 100644
> --- a/hw/s390x/s390-virtio-ccw.c
> +++ b/hw/s390x/s390-virtio-ccw.c
> @@ -768,7 +768,7 @@ bool css_migration_enabled(void)
>      {                                                                         \
>          MachineClass *mc = MACHINE_CLASS(oc);                                 \
>          ccw_machine_##suffix##_class_options(mc);                             \
> -        mc->desc = "VirtIO-ccw based S390 machine v" verstr;                  \
> +        mc->desc = "Virtual s390x machine (version " verstr ")";      \
>          if (latest) {                                                         \
>              mc->alias = "s390-ccw-virtio";                                    \
>              mc->is_default = true;                                            \



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] hw/s390x/s390-virtio-ccw: Improve the machine description string
  2022-05-06  7:23 ` Cornelia Huck
@ 2022-05-06 10:03   ` Thomas Huth
  2022-05-06 10:22     ` Cornelia Huck
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Huth @ 2022-05-06 10:03 UTC (permalink / raw)
  To: Cornelia Huck, qemu-s390x, Eric Farman, Christian Borntraeger,
	Halil Pasic
  Cc: qemu-devel, David Hildenbrand

On 06/05/2022 09.23, Cornelia Huck wrote:
> On Fri, May 06 2022, Thomas Huth <thuth@redhat.com> wrote:
> 
>> The machine name already contains the words "ccw" and "virtio", so
>> using "VirtIO-ccw" in the description likely does not really help
>> the average user to get an idea what this machine type is about.
>> Thus let's switch to "Virtual s390x machine" now, since "virtual
>> machine" should be a familiar term, and "s390x" signals that this
>> is about 64-bit guests (unlike S390 which could mean that it is
>> 31-bit only).
> 
> Do we foresee any s390x machines that don't default to ccw virtio
> devices in the future?

I don't think so. And if we ever get another type of para-virtualized 
machine, we still can change the description again to be more specific to 
distinguish them.

>> Also expand "v" to "version, since this makes it easier to use
> 
> s/"version/"version"/ :)

Thanks!

>> this macro also with non-numeric machine names in downstream.
>>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>>   hw/s390x/s390-virtio-ccw.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
>> index 8fa488d13a..11a942a325 100644
>> --- a/hw/s390x/s390-virtio-ccw.c
>> +++ b/hw/s390x/s390-virtio-ccw.c
>> @@ -768,7 +768,7 @@ bool css_migration_enabled(void)
>>       {                                                                         \
>>           MachineClass *mc = MACHINE_CLASS(oc);                                 \
>>           ccw_machine_##suffix##_class_options(mc);                             \
>> -        mc->desc = "VirtIO-ccw based S390 machine v" verstr;                  \
>> +        mc->desc = "Virtual s390x machine (version " verstr ")";      \
>>           if (latest) {                                                         \
>>               mc->alias = "s390-ccw-virtio";                                    \
>>               mc->is_default = true;                                            \
> 

  Thomas



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] hw/s390x/s390-virtio-ccw: Improve the machine description string
  2022-05-06 10:03   ` Thomas Huth
@ 2022-05-06 10:22     ` Cornelia Huck
  0 siblings, 0 replies; 4+ messages in thread
From: Cornelia Huck @ 2022-05-06 10:22 UTC (permalink / raw)
  To: Thomas Huth, qemu-s390x, Eric Farman, Christian Borntraeger, Halil Pasic
  Cc: qemu-devel, David Hildenbrand

On Fri, May 06 2022, Thomas Huth <thuth@redhat.com> wrote:

> On 06/05/2022 09.23, Cornelia Huck wrote:
>> On Fri, May 06 2022, Thomas Huth <thuth@redhat.com> wrote:
>> 
>>> The machine name already contains the words "ccw" and "virtio", so
>>> using "VirtIO-ccw" in the description likely does not really help
>>> the average user to get an idea what this machine type is about.
>>> Thus let's switch to "Virtual s390x machine" now, since "virtual
>>> machine" should be a familiar term, and "s390x" signals that this
>>> is about 64-bit guests (unlike S390 which could mean that it is
>>> 31-bit only).
>> 
>> Do we foresee any s390x machines that don't default to ccw virtio
>> devices in the future?
>
> I don't think so. And if we ever get another type of para-virtualized 
> machine, we still can change the description again to be more specific to 
> distinguish them.

Fair enough.

Acked-by: Cornelia Huck <cohuck@redhat.com>

>
>>> Also expand "v" to "version, since this makes it easier to use
>> 
>> s/"version/"version"/ :)
>
> Thanks!
>
>>> this macro also with non-numeric machine names in downstream.
>>>
>>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>>> ---
>>>   hw/s390x/s390-virtio-ccw.c | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
>>> index 8fa488d13a..11a942a325 100644
>>> --- a/hw/s390x/s390-virtio-ccw.c
>>> +++ b/hw/s390x/s390-virtio-ccw.c
>>> @@ -768,7 +768,7 @@ bool css_migration_enabled(void)
>>>       {                                                                         \
>>>           MachineClass *mc = MACHINE_CLASS(oc);                                 \
>>>           ccw_machine_##suffix##_class_options(mc);                             \
>>> -        mc->desc = "VirtIO-ccw based S390 machine v" verstr;                  \
>>> +        mc->desc = "Virtual s390x machine (version " verstr ")";      \
>>>           if (latest) {                                                         \
>>>               mc->alias = "s390-ccw-virtio";                                    \
>>>               mc->is_default = true;                                            \
>> 
>
>   Thomas



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-06 10:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06  6:50 [PATCH] hw/s390x/s390-virtio-ccw: Improve the machine description string Thomas Huth
2022-05-06  7:23 ` Cornelia Huck
2022-05-06 10:03   ` Thomas Huth
2022-05-06 10:22     ` Cornelia Huck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.