qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options
@ 2015-06-23 17:00 Eduardo Habkost
  2015-06-23 17:08 ` Laszlo Ersek
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Eduardo Habkost @ 2015-06-23 17:00 UTC (permalink / raw)
  To: qemu-devel, Michael S. Tsirkin; +Cc: Laszlo Ersek, Dr. David Alan Gilbert

On commit fddd179ab962f6f78a8493742e1068d6a620e059, I broke the chaining of
*_machine_options() functions on pc-i440fx-2.3, at:

  -#define PC_I440FX_2_3_MACHINE_OPTIONS \
  -    PC_I440FX_2_4_MACHINE_OPTIONS, \
  -    .alias = NULL, \
  -    .is_default = 0
  +static void pc_i440fx_2_3_machine_options(QEMUMachine *m)
  +{
  +    pc_i440fx_machine_options(m);
  +    m->alias = NULL;
  +    m->is_default = 0;
  +}

I have replaced PC_I440FX_2_4_MACHINE_OPTIONS with a
pc_i440fx_machine_options() call, instead of calling
pc_i440fx_2_4_machine_options(). This broke the setting of default_machine_opts
and default_display on pc-i440fx-{2.0,2,1,2.2,2.3}.

Fix this by making pc_i440fx_2_3_machine_options() reuse
pc_i440fx_2_4_machine_options().

Reported-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 hw/i386/pc_piix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index e142f75..b335856 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -486,7 +486,7 @@ DEFINE_I440FX_MACHINE(v2_4, "pc-i440fx-2.4", NULL,
 
 static void pc_i440fx_2_3_machine_options(MachineClass *m)
 {
-    pc_i440fx_machine_options(m);
+    pc_i440fx_2_4_machine_options(m);
     m->alias = NULL;
     m->is_default = 0;
     SET_MACHINE_COMPAT(m, PC_COMPAT_2_3);
-- 
2.1.0

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

* Re: [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options
  2015-06-23 17:00 [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options Eduardo Habkost
@ 2015-06-23 17:08 ` Laszlo Ersek
  2015-06-23 17:28 ` Dr. David Alan Gilbert
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Laszlo Ersek @ 2015-06-23 17:08 UTC (permalink / raw)
  To: Eduardo Habkost, qemu-devel, Michael S. Tsirkin; +Cc: Dr. David Alan Gilbert

On 06/23/15 19:00, Eduardo Habkost wrote:
> On commit fddd179ab962f6f78a8493742e1068d6a620e059, I broke the chaining of
> *_machine_options() functions on pc-i440fx-2.3, at:
> 
>   -#define PC_I440FX_2_3_MACHINE_OPTIONS \
>   -    PC_I440FX_2_4_MACHINE_OPTIONS, \
>   -    .alias = NULL, \
>   -    .is_default = 0
>   +static void pc_i440fx_2_3_machine_options(QEMUMachine *m)
>   +{
>   +    pc_i440fx_machine_options(m);
>   +    m->alias = NULL;
>   +    m->is_default = 0;
>   +}
> 
> I have replaced PC_I440FX_2_4_MACHINE_OPTIONS with a
> pc_i440fx_machine_options() call, instead of calling
> pc_i440fx_2_4_machine_options(). This broke the setting of default_machine_opts
> and default_display on pc-i440fx-{2.0,2,1,2.2,2.3}.
> 
> Fix this by making pc_i440fx_2_3_machine_options() reuse
> pc_i440fx_2_4_machine_options().
> 
> Reported-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
>  hw/i386/pc_piix.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
> index e142f75..b335856 100644
> --- a/hw/i386/pc_piix.c
> +++ b/hw/i386/pc_piix.c
> @@ -486,7 +486,7 @@ DEFINE_I440FX_MACHINE(v2_4, "pc-i440fx-2.4", NULL,
>  
>  static void pc_i440fx_2_3_machine_options(MachineClass *m)
>  {
> -    pc_i440fx_machine_options(m);
> +    pc_i440fx_2_4_machine_options(m);
>      m->alias = NULL;
>      m->is_default = 0;
>      SET_MACHINE_COMPAT(m, PC_COMPAT_2_3);
> 

looks good to me

Reviewed-by: Laszlo Ersek <lersek@redhat.com>

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

* Re: [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options
  2015-06-23 17:00 [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options Eduardo Habkost
  2015-06-23 17:08 ` Laszlo Ersek
@ 2015-06-23 17:28 ` Dr. David Alan Gilbert
  2015-06-23 18:47 ` Andreas Färber
  2015-07-07 18:09 ` Eduardo Habkost
  3 siblings, 0 replies; 5+ messages in thread
From: Dr. David Alan Gilbert @ 2015-06-23 17:28 UTC (permalink / raw)
  To: Eduardo Habkost; +Cc: Laszlo Ersek, qemu-devel, Michael S. Tsirkin

* Eduardo Habkost (ehabkost@redhat.com) wrote:
> On commit fddd179ab962f6f78a8493742e1068d6a620e059, I broke the chaining of
> *_machine_options() functions on pc-i440fx-2.3, at:
> 
>   -#define PC_I440FX_2_3_MACHINE_OPTIONS \
>   -    PC_I440FX_2_4_MACHINE_OPTIONS, \
>   -    .alias = NULL, \
>   -    .is_default = 0
>   +static void pc_i440fx_2_3_machine_options(QEMUMachine *m)
>   +{
>   +    pc_i440fx_machine_options(m);
>   +    m->alias = NULL;
>   +    m->is_default = 0;
>   +}
> 
> I have replaced PC_I440FX_2_4_MACHINE_OPTIONS with a
> pc_i440fx_machine_options() call, instead of calling
> pc_i440fx_2_4_machine_options(). This broke the setting of default_machine_opts
> and default_display on pc-i440fx-{2.0,2,1,2.2,2.3}.
> 
> Fix this by making pc_i440fx_2_3_machine_options() reuse
> pc_i440fx_2_4_machine_options().
> 
> Reported-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>

Thanks, that does solve that one.
(Unfortunately VGA memory size is still incompatible somewhere
between 2.1 and head by default; but I think that's separate).

Dave

> ---
>  hw/i386/pc_piix.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
> index e142f75..b335856 100644
> --- a/hw/i386/pc_piix.c
> +++ b/hw/i386/pc_piix.c
> @@ -486,7 +486,7 @@ DEFINE_I440FX_MACHINE(v2_4, "pc-i440fx-2.4", NULL,
>  
>  static void pc_i440fx_2_3_machine_options(MachineClass *m)
>  {
> -    pc_i440fx_machine_options(m);
> +    pc_i440fx_2_4_machine_options(m);
>      m->alias = NULL;
>      m->is_default = 0;
>      SET_MACHINE_COMPAT(m, PC_COMPAT_2_3);
> -- 
> 2.1.0
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK

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

* Re: [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options
  2015-06-23 17:00 [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options Eduardo Habkost
  2015-06-23 17:08 ` Laszlo Ersek
  2015-06-23 17:28 ` Dr. David Alan Gilbert
@ 2015-06-23 18:47 ` Andreas Färber
  2015-07-07 18:09 ` Eduardo Habkost
  3 siblings, 0 replies; 5+ messages in thread
From: Andreas Färber @ 2015-06-23 18:47 UTC (permalink / raw)
  To: Eduardo Habkost, qemu-devel, Michael S. Tsirkin
  Cc: Laszlo Ersek, Dr. David Alan Gilbert

s/resue/reuse/

Looks okay otherwise.

Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton; HRB
21284 (AG Nürnberg)

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

* Re: [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options
  2015-06-23 17:00 [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options Eduardo Habkost
                   ` (2 preceding siblings ...)
  2015-06-23 18:47 ` Andreas Färber
@ 2015-07-07 18:09 ` Eduardo Habkost
  3 siblings, 0 replies; 5+ messages in thread
From: Eduardo Habkost @ 2015-07-07 18:09 UTC (permalink / raw)
  To: qemu-devel, Michael S. Tsirkin; +Cc: Laszlo Ersek, Dr. David Alan Gilbert

Michael, is this going to be applied to your tree?

On Tue, Jun 23, 2015 at 02:00:51PM -0300, Eduardo Habkost wrote:
> On commit fddd179ab962f6f78a8493742e1068d6a620e059, I broke the chaining of
> *_machine_options() functions on pc-i440fx-2.3, at:
> 
>   -#define PC_I440FX_2_3_MACHINE_OPTIONS \
>   -    PC_I440FX_2_4_MACHINE_OPTIONS, \
>   -    .alias = NULL, \
>   -    .is_default = 0
>   +static void pc_i440fx_2_3_machine_options(QEMUMachine *m)
>   +{
>   +    pc_i440fx_machine_options(m);
>   +    m->alias = NULL;
>   +    m->is_default = 0;
>   +}
> 
> I have replaced PC_I440FX_2_4_MACHINE_OPTIONS with a
> pc_i440fx_machine_options() call, instead of calling
> pc_i440fx_2_4_machine_options(). This broke the setting of default_machine_opts
> and default_display on pc-i440fx-{2.0,2,1,2.2,2.3}.
> 
> Fix this by making pc_i440fx_2_3_machine_options() reuse
> pc_i440fx_2_4_machine_options().
> 
> Reported-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
>  hw/i386/pc_piix.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
> index e142f75..b335856 100644
> --- a/hw/i386/pc_piix.c
> +++ b/hw/i386/pc_piix.c
> @@ -486,7 +486,7 @@ DEFINE_I440FX_MACHINE(v2_4, "pc-i440fx-2.4", NULL,
>  
>  static void pc_i440fx_2_3_machine_options(MachineClass *m)
>  {
> -    pc_i440fx_machine_options(m);
> +    pc_i440fx_2_4_machine_options(m);
>      m->alias = NULL;
>      m->is_default = 0;
>      SET_MACHINE_COMPAT(m, PC_COMPAT_2_3);
> -- 
> 2.1.0
> 
> 

-- 
Eduardo

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

end of thread, other threads:[~2015-07-07 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-23 17:00 [Qemu-devel] [PATCH] pc: Fix resue of pc-i440fx-2.4 on pc-i440fx-2.3 machine_options Eduardo Habkost
2015-06-23 17:08 ` Laszlo Ersek
2015-06-23 17:28 ` Dr. David Alan Gilbert
2015-06-23 18:47 ` Andreas Färber
2015-07-07 18:09 ` Eduardo Habkost

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).