All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] nseries: Don't use qemu_hw_version()
@ 2015-11-11 21:42 Eduardo Habkost
  2015-11-12 11:39 ` Michael S. Tsirkin
  0 siblings, 1 reply; 4+ messages in thread
From: Eduardo Habkost @ 2015-11-11 21:42 UTC (permalink / raw)
  To: balrogg
  Cc: peter.maydell, Michael S. Tsirkin, qemu-devel, qemu-arm, Paolo Bonzini

nseries doesn't use qemu_set_hw_version() and doesn't need the
compatibility magic of qemu_hw_version(). Use QEMU_VERSION
directly.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 hw/arm/nseries.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c
index 2a8835e..f1eab73 100644
--- a/hw/arm/nseries.c
+++ b/hw/arm/nseries.c
@@ -1275,7 +1275,7 @@ static int n8x0_atag_setup(void *p, int model)
     strcpy((void *) w, "hw-build");		/* char component[12] */
     w += 6;
     strcpy((void *) w, "QEMU ");
-    pstrcat((void *) w, 12, qemu_hw_version()); /* char version[12] */
+    pstrcat((void *) w, 12, QEMU_VERSION); /* char version[12] */
     w += 6;
 
     tag = (model == 810) ? "1.1.10-qemu" : "1.1.6-qemu";
-- 
2.1.0

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

* Re: [Qemu-devel] [PATCH] nseries: Don't use qemu_hw_version()
  2015-11-11 21:42 [Qemu-devel] [PATCH] nseries: Don't use qemu_hw_version() Eduardo Habkost
@ 2015-11-12 11:39 ` Michael S. Tsirkin
  2015-11-12 15:04   ` Eduardo Habkost
  0 siblings, 1 reply; 4+ messages in thread
From: Michael S. Tsirkin @ 2015-11-12 11:39 UTC (permalink / raw)
  To: Eduardo Habkost; +Cc: peter.maydell, qemu-arm, qemu-devel, Paolo Bonzini

On Wed, Nov 11, 2015 at 07:42:47PM -0200, Eduardo Habkost wrote:
> nseries doesn't use qemu_set_hw_version() and doesn't need the
> compatibility magic of qemu_hw_version(). Use QEMU_VERSION
> directly.
> 
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>

This looks very wrong.
We should be reducing the users of QEMU_VERSION,
not adding more.


> ---
>  hw/arm/nseries.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c
> index 2a8835e..f1eab73 100644
> --- a/hw/arm/nseries.c
> +++ b/hw/arm/nseries.c
> @@ -1275,7 +1275,7 @@ static int n8x0_atag_setup(void *p, int model)
>      strcpy((void *) w, "hw-build");		/* char component[12] */
>      w += 6;
>      strcpy((void *) w, "QEMU ");
> -    pstrcat((void *) w, 12, qemu_hw_version()); /* char version[12] */
> +    pstrcat((void *) w, 12, QEMU_VERSION); /* char version[12] */
>      w += 6;
>  
>      tag = (model == 810) ? "1.1.10-qemu" : "1.1.6-qemu";
> -- 
> 2.1.0

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

* Re: [Qemu-devel] [PATCH] nseries: Don't use qemu_hw_version()
  2015-11-12 11:39 ` Michael S. Tsirkin
@ 2015-11-12 15:04   ` Eduardo Habkost
  2015-11-20 16:26     ` Peter Maydell
  0 siblings, 1 reply; 4+ messages in thread
From: Eduardo Habkost @ 2015-11-12 15:04 UTC (permalink / raw)
  To: Michael S. Tsirkin; +Cc: peter.maydell, qemu-arm, qemu-devel, Paolo Bonzini

On Thu, Nov 12, 2015 at 01:39:24PM +0200, Michael S. Tsirkin wrote:
> On Wed, Nov 11, 2015 at 07:42:47PM -0200, Eduardo Habkost wrote:
> > nseries doesn't use qemu_set_hw_version() and doesn't need the
> > compatibility magic of qemu_hw_version(). Use QEMU_VERSION
> > directly.
> > 
> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> 
> This looks very wrong.
> We should be reducing the users of QEMU_VERSION,
> not adding more.

I would like to hear from the users and maintainers of the
nseries machines, to judge this. I assume they don't need ABI
compatibility betweeen QEMU versions, and maybe they want to know
the QEMU version they are running.

-- 
Eduardo

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

* Re: [Qemu-devel] [PATCH] nseries: Don't use qemu_hw_version()
  2015-11-12 15:04   ` Eduardo Habkost
@ 2015-11-20 16:26     ` Peter Maydell
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2015-11-20 16:26 UTC (permalink / raw)
  To: Eduardo Habkost
  Cc: Paolo Bonzini, qemu-arm, QEMU Developers, Michael S. Tsirkin

On 12 November 2015 at 15:04, Eduardo Habkost <ehabkost@redhat.com> wrote:
> On Thu, Nov 12, 2015 at 01:39:24PM +0200, Michael S. Tsirkin wrote:
>> On Wed, Nov 11, 2015 at 07:42:47PM -0200, Eduardo Habkost wrote:
>> > nseries doesn't use qemu_set_hw_version() and doesn't need the
>> > compatibility magic of qemu_hw_version(). Use QEMU_VERSION
>> > directly.
>> >
>> > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
>>
>> This looks very wrong.
>> We should be reducing the users of QEMU_VERSION,
>> not adding more.
>
> I would like to hear from the users and maintainers of the
> nseries machines, to judge this. I assume they don't need ABI
> compatibility betweeen QEMU versions, and maybe they want to know
> the QEMU version they are running.

I suspect you won't find many users or maintainers on this
list (or anywhere else). My guess is that this was useful
for when Nokia were actively shipping an SDK that used QEMU
(because then they could surface the QEMU and other component
version information to SDK end-users and get better bug reports
and so on as a result), but that anybody still using upstream
QEMU to emulate an n-series device is capable of reporting
what QEMU version they're using without having to have it
reported via a dialog box inside the guest :-)

thanks
-- PMM

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

end of thread, other threads:[~2015-11-20 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-11 21:42 [Qemu-devel] [PATCH] nseries: Don't use qemu_hw_version() Eduardo Habkost
2015-11-12 11:39 ` Michael S. Tsirkin
2015-11-12 15:04   ` Eduardo Habkost
2015-11-20 16:26     ` Peter Maydell

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.