All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] q35: Re-enable FDC on pc-q35-2.3 and older
@ 2015-06-18 16:49 Eduardo Habkost
  2015-06-18 17:50 ` Laszlo Ersek
  0 siblings, 1 reply; 5+ messages in thread
From: Eduardo Habkost @ 2015-06-18 16:49 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laszlo Ersek, Ján Tomko, Markus Armbruster, Michael S. Tsirkin

commit ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4 doesn't match the patch
submitted by Laszlo to qemu-devel. We reuse pc_q35_2_4_machine_options()
inside pc_q35_2_3_machine_options(), so we need to undo the no_floppy
change in pc_q35_2_3_machine_options().

This restores the previous behavior where all the 2.3 and older machines
had no_floppy=0.

Reported-by: Ján Tomko <jtomko@redhat.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 hw/i386/pc_q35.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index b68263d..082cd93 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -403,6 +403,7 @@ DEFINE_Q35_MACHINE(v2_4, "pc-q35-2.4", NULL,
 static void pc_q35_2_3_machine_options(MachineClass *m)
 {
     pc_q35_2_4_machine_options(m);
+    m->no_floppy = 0;
     m->alias = NULL;
     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] q35: Re-enable FDC on pc-q35-2.3 and older
  2015-06-18 16:49 [Qemu-devel] [PATCH] q35: Re-enable FDC on pc-q35-2.3 and older Eduardo Habkost
@ 2015-06-18 17:50 ` Laszlo Ersek
  2015-06-19  6:43   ` Markus Armbruster
  0 siblings, 1 reply; 5+ messages in thread
From: Laszlo Ersek @ 2015-06-18 17:50 UTC (permalink / raw)
  To: Eduardo Habkost, qemu-devel
  Cc: Ján Tomko, Markus Armbruster, Michael S. Tsirkin

On 06/18/15 18:49, Eduardo Habkost wrote:
> commit ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4 doesn't match the patch
> submitted by Laszlo to qemu-devel. We reuse pc_q35_2_4_machine_options()
> inside pc_q35_2_3_machine_options(), so we need to undo the no_floppy
> change in pc_q35_2_3_machine_options().
> 
> This restores the previous behavior where all the 2.3 and older machines
> had no_floppy=0.
> 
> Reported-by: Ján Tomko <jtomko@redhat.com>
> Cc: Laszlo Ersek <lersek@redhat.com>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
>  hw/i386/pc_q35.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
> index b68263d..082cd93 100644
> --- a/hw/i386/pc_q35.c
> +++ b/hw/i386/pc_q35.c
> @@ -403,6 +403,7 @@ DEFINE_Q35_MACHINE(v2_4, "pc-q35-2.4", NULL,
>  static void pc_q35_2_3_machine_options(MachineClass *m)
>  {
>      pc_q35_2_4_machine_options(m);
> +    m->no_floppy = 0;
>      m->alias = NULL;
>      SET_MACHINE_COMPAT(m, PC_COMPAT_2_3);
>  }
> 

Looks good to me, thanks! In fact I'm just learning that under the new
"machine type knobs" infrastructure, it's idiomatic to override settings
(ie. to assign the same field several times). Resetting m->alias to NULL
is an example.

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

Cheers
Laszlo

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

* Re: [Qemu-devel] [PATCH] q35: Re-enable FDC on pc-q35-2.3 and older
  2015-06-18 17:50 ` Laszlo Ersek
@ 2015-06-19  6:43   ` Markus Armbruster
  2015-06-19  9:33     ` Peter Maydell
  2015-06-19 15:49     ` Eduardo Habkost
  0 siblings, 2 replies; 5+ messages in thread
From: Markus Armbruster @ 2015-06-19  6:43 UTC (permalink / raw)
  To: peter.maydell
  Cc: Michael S. Tsirkin, Ján Tomko, Eduardo Habkost, qemu-devel

Laszlo Ersek <lersek@redhat.com> writes:

> On 06/18/15 18:49, Eduardo Habkost wrote:
>> commit ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4 doesn't match the patch
>> submitted by Laszlo to qemu-devel. We reuse pc_q35_2_4_machine_options()
>> inside pc_q35_2_3_machine_options(), so we need to undo the no_floppy
>> change in pc_q35_2_3_machine_options().
>> 
>> This restores the previous behavior where all the 2.3 and older machines
>> had no_floppy=0.

Mentioning it was a botched merge, not a review failure wouldn't hurt.

>> 
>> Reported-by: Ján Tomko <jtomko@redhat.com>
>> Cc: Laszlo Ersek <lersek@redhat.com>
>> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
>> ---
>>  hw/i386/pc_q35.c | 1 +
>>  1 file changed, 1 insertion(+)
>> 
>> diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
>> index b68263d..082cd93 100644
>> --- a/hw/i386/pc_q35.c
>> +++ b/hw/i386/pc_q35.c
>> @@ -403,6 +403,7 @@ DEFINE_Q35_MACHINE(v2_4, "pc-q35-2.4", NULL,
>>  static void pc_q35_2_3_machine_options(MachineClass *m)
>>  {
>>      pc_q35_2_4_machine_options(m);
>> +    m->no_floppy = 0;
>>      m->alias = NULL;
>>      SET_MACHINE_COMPAT(m, PC_COMPAT_2_3);
>>  }
>> 
>
> Looks good to me, thanks! In fact I'm just learning that under the new
> "machine type knobs" infrastructure, it's idiomatic to override settings
> (ie. to assign the same field several times). Resetting m->alias to NULL
> is an example.
>
> Reviewed-by: Laszlo Ersek <lersek@redhat.com>

Peter, could you pick this up directly as a regression fix?

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

* Re: [Qemu-devel] [PATCH] q35: Re-enable FDC on pc-q35-2.3 and older
  2015-06-19  6:43   ` Markus Armbruster
@ 2015-06-19  9:33     ` Peter Maydell
  2015-06-19 15:49     ` Eduardo Habkost
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2015-06-19  9:33 UTC (permalink / raw)
  To: Markus Armbruster
  Cc: Michael S. Tsirkin, Ján Tomko, Eduardo Habkost, QEMU Developers

On 19 June 2015 at 07:43, Markus Armbruster <armbru@redhat.com> wrote:
> Laszlo Ersek <lersek@redhat.com> writes:
>
>> On 06/18/15 18:49, Eduardo Habkost wrote:
>>> commit ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4 doesn't match the patch
>>> submitted by Laszlo to qemu-devel. We reuse pc_q35_2_4_machine_options()
>>> inside pc_q35_2_3_machine_options(), so we need to undo the no_floppy
>>> change in pc_q35_2_3_machine_options().
>>>
>>> This restores the previous behavior where all the 2.3 and older machines
>>> had no_floppy=0.
>
> Mentioning it was a botched merge, not a review failure wouldn't hurt.
>
>>>
>>> Reported-by: Ján Tomko <jtomko@redhat.com>
>>> Cc: Laszlo Ersek <lersek@redhat.com>
>>> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
>>> ---
>>>  hw/i386/pc_q35.c | 1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
>>> index b68263d..082cd93 100644
>>> --- a/hw/i386/pc_q35.c
>>> +++ b/hw/i386/pc_q35.c
>>> @@ -403,6 +403,7 @@ DEFINE_Q35_MACHINE(v2_4, "pc-q35-2.4", NULL,
>>>  static void pc_q35_2_3_machine_options(MachineClass *m)
>>>  {
>>>      pc_q35_2_4_machine_options(m);
>>> +    m->no_floppy = 0;
>>>      m->alias = NULL;
>>>      SET_MACHINE_COMPAT(m, PC_COMPAT_2_3);
>>>  }
>>>
>>
>> Looks good to me, thanks! In fact I'm just learning that under the new
>> "machine type knobs" infrastructure, it's idiomatic to override settings
>> (ie. to assign the same field several times). Resetting m->alias to NULL
>> is an example.
>>
>> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
>
> Peter, could you pick this up directly as a regression fix?

Sure; applied to master (with a note about it being a bad merge).

thanks
-- PMM

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

* Re: [Qemu-devel] [PATCH] q35: Re-enable FDC on pc-q35-2.3 and older
  2015-06-19  6:43   ` Markus Armbruster
  2015-06-19  9:33     ` Peter Maydell
@ 2015-06-19 15:49     ` Eduardo Habkost
  1 sibling, 0 replies; 5+ messages in thread
From: Eduardo Habkost @ 2015-06-19 15:49 UTC (permalink / raw)
  To: Markus Armbruster
  Cc: peter.maydell, Ján Tomko, qemu-devel, Michael S. Tsirkin

On Fri, Jun 19, 2015 at 08:43:29AM +0200, Markus Armbruster wrote:
> Laszlo Ersek <lersek@redhat.com> writes:
> 
> > On 06/18/15 18:49, Eduardo Habkost wrote:
> >> commit ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4 doesn't match the patch
> >> submitted by Laszlo to qemu-devel. We reuse pc_q35_2_4_machine_options()
> >> inside pc_q35_2_3_machine_options(), so we need to undo the no_floppy
> >> change in pc_q35_2_3_machine_options().
> >> 
> >> This restores the previous behavior where all the 2.3 and older machines
> >> had no_floppy=0.
> 
> Mentioning it was a botched merge, not a review failure wouldn't hurt.

That's what I tried to say when I wrote that the commit doesn't match
the patch that Laszlo submitted to qemu-devel.

-- 
Eduardo

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

end of thread, other threads:[~2015-06-19 15:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-18 16:49 [Qemu-devel] [PATCH] q35: Re-enable FDC on pc-q35-2.3 and older Eduardo Habkost
2015-06-18 17:50 ` Laszlo Ersek
2015-06-19  6:43   ` Markus Armbruster
2015-06-19  9:33     ` Peter Maydell
2015-06-19 15:49     ` Eduardo Habkost

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.