Re: [PATCH v4 13/19] hw/block/fdc-isa: Remove 'fallback' property

2025-06-02 Thread Philippe Mathieu-Daudé

On 30/5/25 13:45, Michael S. Tsirkin wrote:

On Wed, May 28, 2025 at 10:30:17AM +0200, Thomas Huth wrote:

On 27/05/2025 19.20, Thomas Huth wrote:

On 12/05/2025 10.39, Philippe Mathieu-Daudé wrote:

The "fallback" property was only used by the hw_compat_2_5[] array,
as 'fallback=144'. We removed all machines using that array, lets
remove ISA floppy drive 'fallback' property, manually setting the
default value in isabus_fdc_realize().

Signed-off-by: Philippe Mathieu-Daudé 
Reviewed-by: Daniel P. Berrangé 
Reviewed-by: Zhao Liu 
---
   hw/block/fdc-isa.c | 4 +---
   1 file changed, 1 insertion(+), 3 deletions(-)


FWIW, this needs a fixup for iotest 172:

   https://gitlab.com/thuth/qemu/-/jobs/10166450223#L466




and I will queue this series (without the "Remove X86CPU::check_cpuid field"
patch as mentioned by Xiaoyao Li), unless Paolo or another x86 maintainer
wants to do this instead (please let me know!).

  Thomas


No, pls go ahead.


Thanks both!




Re: [PATCH v4 13/19] hw/block/fdc-isa: Remove 'fallback' property

2025-05-30 Thread Michael S. Tsirkin
On Wed, May 28, 2025 at 10:30:17AM +0200, Thomas Huth wrote:
> On 27/05/2025 19.20, Thomas Huth wrote:
> > On 12/05/2025 10.39, Philippe Mathieu-Daudé wrote:
> > > The "fallback" property was only used by the hw_compat_2_5[] array,
> > > as 'fallback=144'. We removed all machines using that array, lets
> > > remove ISA floppy drive 'fallback' property, manually setting the
> > > default value in isabus_fdc_realize().
> > > 
> > > Signed-off-by: Philippe Mathieu-Daudé 
> > > Reviewed-by: Daniel P. Berrangé 
> > > Reviewed-by: Zhao Liu 
> > > ---
> > >   hw/block/fdc-isa.c | 4 +---
> > >   1 file changed, 1 insertion(+), 3 deletions(-)
> > 
> > FWIW, this needs a fixup for iotest 172:
> > 
> >   https://gitlab.com/thuth/qemu/-/jobs/10166450223#L466
> 
> FYI, since I was testing this series anyway, I'll fix up this patch with:
> 
> diff --git a/tests/qemu-iotests/172.out b/tests/qemu-iotests/172.out
> --- a/tests/qemu-iotests/172.out
> +++ b/tests/qemu-iotests/172.out
> @@ -14,7 +14,6 @@ Testing:
>  dma = 2 (0x2)
>  fdtypeA = "auto"
>  fdtypeB = "auto"
> -fallback = "288"
>  bus: floppy-bus.0
>type floppy-bus
>dev: floppy, id ""
> @@ -43,7 +42,6 @@ Testing: -fda TEST_DIR/t.qcow2
>  dma = 2 (0x2)
>  fdtypeA = "auto"
>  fdtypeB = "auto"
> -fallback = "288"
>  bus: floppy-bus.0
>type floppy-bus
>dev: floppy, id ""
> @@ -79,7 +77,6 @@ Testing: -fdb TEST_DIR/t.qcow2
>  dma = 2 (0x2)
>  fdtypeA = "auto"
>  fdtypeB = "auto"
> -fallback = "288"
>  bus: floppy-bus.0
>type floppy-bus
>dev: floppy, id ""
> 
> etc.
> 
> and I will queue this series (without the "Remove X86CPU::check_cpuid field"
> patch as mentioned by Xiaoyao Li), unless Paolo or another x86 maintainer
> wants to do this instead (please let me know!).
> 
>  Thomas

No, pls go ahead.




Re: [PATCH v4 13/19] hw/block/fdc-isa: Remove 'fallback' property

2025-05-28 Thread Thomas Huth

On 28/05/2025 10.30, Thomas Huth wrote:

On 27/05/2025 19.20, Thomas Huth wrote:

On 12/05/2025 10.39, Philippe Mathieu-Daudé wrote:

The "fallback" property was only used by the hw_compat_2_5[] array,
as 'fallback=144'. We removed all machines using that array, lets
remove ISA floppy drive 'fallback' property, manually setting the
default value in isabus_fdc_realize().

Signed-off-by: Philippe Mathieu-Daudé 
Reviewed-by: Daniel P. Berrangé 
Reviewed-by: Zhao Liu 
---
  hw/block/fdc-isa.c | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)


FWIW, this needs a fixup for iotest 172:

  https://gitlab.com/thuth/qemu/-/jobs/10166450223#L466


FYI, since I was testing this series anyway, I'll fix up this patch

...
and I will queue this series (without the "Remove X86CPU::check_cpuid field" 
patch as mentioned by Xiaoyao Li), unless Paolo or another x86 maintainer 
wants to do this instead (please let me know!).


Hmm, looking at this twice, hw/block/fdc-sysbus.c has a "fallback" property, 
too, and there are people out there who set this property manually, e.g.:


 https://github.com/mariuz/linux-0.01/issues/4#issuecomment-974768898

So it seems like this property is meant as a config knob for the user, 
indeed, not just an internal one. I'll drop this patch for now.


 Thomas




Re: [PATCH v4 13/19] hw/block/fdc-isa: Remove 'fallback' property

2025-05-28 Thread Thomas Huth

On 27/05/2025 19.20, Thomas Huth wrote:

On 12/05/2025 10.39, Philippe Mathieu-Daudé wrote:

The "fallback" property was only used by the hw_compat_2_5[] array,
as 'fallback=144'. We removed all machines using that array, lets
remove ISA floppy drive 'fallback' property, manually setting the
default value in isabus_fdc_realize().

Signed-off-by: Philippe Mathieu-Daudé 
Reviewed-by: Daniel P. Berrangé 
Reviewed-by: Zhao Liu 
---
  hw/block/fdc-isa.c | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)


FWIW, this needs a fixup for iotest 172:

  https://gitlab.com/thuth/qemu/-/jobs/10166450223#L466


FYI, since I was testing this series anyway, I'll fix up this patch with:

diff --git a/tests/qemu-iotests/172.out b/tests/qemu-iotests/172.out
--- a/tests/qemu-iotests/172.out
+++ b/tests/qemu-iotests/172.out
@@ -14,7 +14,6 @@ Testing:
 dma = 2 (0x2)
 fdtypeA = "auto"
 fdtypeB = "auto"
-fallback = "288"
 bus: floppy-bus.0
   type floppy-bus
   dev: floppy, id ""
@@ -43,7 +42,6 @@ Testing: -fda TEST_DIR/t.qcow2
 dma = 2 (0x2)
 fdtypeA = "auto"
 fdtypeB = "auto"
-fallback = "288"
 bus: floppy-bus.0
   type floppy-bus
   dev: floppy, id ""
@@ -79,7 +77,6 @@ Testing: -fdb TEST_DIR/t.qcow2
 dma = 2 (0x2)
 fdtypeA = "auto"
 fdtypeB = "auto"
-fallback = "288"
 bus: floppy-bus.0
   type floppy-bus
   dev: floppy, id ""

etc.

and I will queue this series (without the "Remove X86CPU::check_cpuid field" 
patch as mentioned by Xiaoyao Li), unless Paolo or another x86 maintainer 
wants to do this instead (please let me know!).


 Thomas




Re: [PATCH v4 13/19] hw/block/fdc-isa: Remove 'fallback' property

2025-05-27 Thread Thomas Huth

On 12/05/2025 10.39, Philippe Mathieu-Daudé wrote:

The "fallback" property was only used by the hw_compat_2_5[] array,
as 'fallback=144'. We removed all machines using that array, lets
remove ISA floppy drive 'fallback' property, manually setting the
default value in isabus_fdc_realize().

Signed-off-by: Philippe Mathieu-Daudé 
Reviewed-by: Daniel P. Berrangé 
Reviewed-by: Zhao Liu 
---
  hw/block/fdc-isa.c | 4 +---
  1 file changed, 1 insertion(+), 3 deletions(-)


FWIW, this needs a fixup for iotest 172:

 https://gitlab.com/thuth/qemu/-/jobs/10166450223#L466

 Thomas