q35: Re-enable FDC on pc-q35-2.3 and older
PATCH 1/1 q35: Re-enable FDC on pc-q35-2.3 and older
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.
--- hw/i386/pc_q35.c | 1 + 1 file changed, 1 insertion(+)
hw/i386/pc_q35.c +1 -0
@@ -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 ); }
Signature · 1 line
2.1.0
Quoted 21 lines · Eduardo Habkost
commit
ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4doesn't match the patch submitted by Laszlo to qemu-devel. We reusepc_q35_2_4_machine_options()insidepc_q35_2_3_machine_options(), so we need to undo theno_floppychange inpc_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 <[email protected]>Cc Laszlo Ersek <[email protected]>Signed-off-by Eduardo Habkost <[email protected]>--- hw/i386/pc_q35.c | 1 + 1 file changed, 1 insertion(+)hw/i386/pc_q35.c +0
-0
hw/i386/pc_q35.c DEFINE_Q35_MACHINE(v2_4, "pc-q35-2.4", NULL, · line 409
Quoted 7 lines
hw/i386/pc_q35.c +1
-0@@ -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.
Cheers
Laszlo
Quoted 8 lines · Laszlo Ersek
Quoted 7 lines · Eduardo Habkost
commit
ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4doesn't match the patch submitted by Laszlo to qemu-devel. We reusepc_q35_2_4_machine_options()insidepc_q35_2_3_machine_options(), so we need to undo theno_floppychange inpc_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.
Quoted 27 lines
Quoted 14 lines
Reported-by Ján Tomko <[email protected]>Cc Laszlo Ersek <[email protected]>Signed-off-by Eduardo Habkost <[email protected]>--- hw/i386/pc_q35.c | 1 + 1 file changed, 1 insertion(+)hw/i386/pc_q35.c +0
-0hw/i386/pc_q35.c DEFINE_Q35_MACHINE(v2_4, "pc-q35-2.4", NULL, · line 409
Quoted 7 lines
hw/i386/pc_q35.c +1
-0@@ -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->aliasto NULL is an example.
Quoted 1 line
Reviewed-by Laszlo Ersek <[email protected]>
Peter, could you pick this up directly as a regression fix?
Quoted 40 lines · Markus Armbruster
Quoted 8 lines · Laszlo Ersek
Quoted 7 lines · Eduardo Habkost
commit
ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4doesn't match the patch submitted by Laszlo to qemu-devel. We reusepc_q35_2_4_machine_options()insidepc_q35_2_3_machine_options(), so we need to undo theno_floppychange inpc_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.
Quoted 27 lines
Quoted 14 lines
Reported-by Ján Tomko <[email protected]>Cc Laszlo Ersek <[email protected]>Signed-off-by Eduardo Habkost <[email protected]>--- hw/i386/pc_q35.c | 1 + 1 file changed, 1 insertion(+)hw/i386/pc_q35.c +0
-0hw/i386/pc_q35.c DEFINE_Q35_MACHINE(v2_4, "pc-q35-2.4", NULL, · line 409
Quoted 7 lines
hw/i386/pc_q35.c +1
-0@@ -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->aliasto NULL is an example.
Quoted 3 lines
Quoted 1 line
Reviewed-by Laszlo Ersek <[email protected]>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
Quoted 8 lines · Markus Armbruster
Quoted 6 lines · Laszlo Ersek
Quoted 5 lines · Eduardo Habkost
commit
ea96bc629cbd52be98b2967a4b4f72e91dfc3ee4doesn't match the patch submitted by Laszlo to qemu-devel. We reusepc_q35_2_4_machine_options()insidepc_q35_2_3_machine_options(), so we need to undo theno_floppychange inpc_q35_2_3_machine_options().
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
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.
Signature · 1 line
Eduardo