Re: [PULL 00/27] Functional tests, Microblaze endianness & pc/q35 cleanups

2025-06-04 Thread Thomas Huth

On 04/06/2025 15.11, Stefan Hajnoczi wrote:

On Wed, Jun 4, 2025 at 3:51 AM Alexandr Moshkov
 wrote:



On 5/29/25 01:12, Thomas Huth wrote:

On 28/05/2025 21.23, Stefan Hajnoczi wrote:

On Wed, May 28, 2025 at 6:12 AM Thomas Huth  wrote:


   Hi!

The following changes since commit
80db93b2b88f9b3ed8927ae7ac74ca30e643a83e:

Merge tag 'pull-aspeed-20250526' of
https://github.com/legoater/qemu into staging (2025-05-26 10:16:59
-0400)

are available in the Git repository at:

https://gitlab.com/thuth/qemu.git tags/pull-request-2025-05-28

for you to fetch changes up to
9c2da02e184fddfa7cd7d7813455c2306daae99a:

tests/unit/test-util-sockets: fix mem-leak on error object
(2025-05-28 11:59:47 +0200)


* Functional tests improvements
* Endianness improvements/clean-ups for the Microblaze machines
* Remove obsolete -2.4 and -2.5 i440fx and q35 machine types and
related code


Alexandr Moshkov (2):
tests/functional: add skipLockedMemoryTest decorator
tests/functional: add memlock tests


Hi Thomas and Alexandr,
The memlock tests are failing:
https://gitlab.com/qemu-project/qemu/-/jobs/10181084830#L5421
https://gitlab.com/qemu-project/qemu/-/jobs/10181084865#L5476

Please take a look and send a new pull request. Thanks!



Hello! I think Stefan forgot to CC me in his reply. Only now find this
message)



According to the log:

  Output: qemu-system-aarch64: No machine specified, and there is no
default

I think it likely does not make sense to run this test with the
aarch64 target... Alexandr, would it make sense to limit this to x86
only?


It looks like adding this lines to vm creation fixes all problems with
other targets on memlock test:

self.set_machine('none')
self.vm.add_args('-nodefaults')

What's the convenient way to fix it? Resend a new patch?


Hi Alexandr,
Sorry I forgot to CC you. Since the patch in question hasn't been
merged yet, you could send a new revision of the patch and Thomas
could include it in his next pull request. That way the fixed patch
will be introduced in one commit rather than a broken commit followed
by a fix.


Yes, please send a new version of the patch. Make sure to test with all 
targets enabled, or change the hunk in meson.build to include it for the x86 
target only. I think I'd even prefer the latter, since otherwise you might 
run out of memory easily when doing the tests in parallel with:


 "make -j$(nproc) check-functional"

Thanks,
 Thomas




Re: [PULL 00/27] Functional tests, Microblaze endianness & pc/q35 cleanups

2025-06-04 Thread Stefan Hajnoczi
On Wed, Jun 4, 2025 at 3:51 AM Alexandr Moshkov
 wrote:
>
>
> On 5/29/25 01:12, Thomas Huth wrote:
> > On 28/05/2025 21.23, Stefan Hajnoczi wrote:
> >> On Wed, May 28, 2025 at 6:12 AM Thomas Huth  wrote:
> >>>
> >>>   Hi!
> >>>
> >>> The following changes since commit
> >>> 80db93b2b88f9b3ed8927ae7ac74ca30e643a83e:
> >>>
> >>>Merge tag 'pull-aspeed-20250526' of
> >>> https://github.com/legoater/qemu into staging (2025-05-26 10:16:59
> >>> -0400)
> >>>
> >>> are available in the Git repository at:
> >>>
> >>>https://gitlab.com/thuth/qemu.git tags/pull-request-2025-05-28
> >>>
> >>> for you to fetch changes up to
> >>> 9c2da02e184fddfa7cd7d7813455c2306daae99a:
> >>>
> >>>tests/unit/test-util-sockets: fix mem-leak on error object
> >>> (2025-05-28 11:59:47 +0200)
> >>>
> >>> 
> >>> * Functional tests improvements
> >>> * Endianness improvements/clean-ups for the Microblaze machines
> >>> * Remove obsolete -2.4 and -2.5 i440fx and q35 machine types and
> >>> related code
> >>>
> >>> 
> >>> Alexandr Moshkov (2):
> >>>tests/functional: add skipLockedMemoryTest decorator
> >>>tests/functional: add memlock tests
> >>
> >> Hi Thomas and Alexandr,
> >> The memlock tests are failing:
> >> https://gitlab.com/qemu-project/qemu/-/jobs/10181084830#L5421
> >> https://gitlab.com/qemu-project/qemu/-/jobs/10181084865#L5476
> >>
> >> Please take a look and send a new pull request. Thanks!
> >
> Hello! I think Stefan forgot to CC me in his reply. Only now find this
> message)
>
>
> > According to the log:
> >
> >  Output: qemu-system-aarch64: No machine specified, and there is no
> > default
> >
> > I think it likely does not make sense to run this test with the
> > aarch64 target... Alexandr, would it make sense to limit this to x86
> > only?
>
> It looks like adding this lines to vm creation fixes all problems with
> other targets on memlock test:
>
> self.set_machine('none')
> self.vm.add_args('-nodefaults')
>
> What's the convenient way to fix it? Resend a new patch?

Hi Alexandr,
Sorry I forgot to CC you. Since the patch in question hasn't been
merged yet, you could send a new revision of the patch and Thomas
could include it in his next pull request. That way the fixed patch
will be introduced in one commit rather than a broken commit followed
by a fix.

Stefan

>
>
> Best regards,
>
> Alexandr
>



Re: [PULL 00/27] Functional tests, Microblaze endianness & pc/q35 cleanups

2025-06-04 Thread Alexandr Moshkov



On 5/29/25 01:12, Thomas Huth wrote:

On 28/05/2025 21.23, Stefan Hajnoczi wrote:

On Wed, May 28, 2025 at 6:12 AM Thomas Huth  wrote:


  Hi!

The following changes since commit 
80db93b2b88f9b3ed8927ae7ac74ca30e643a83e:


   Merge tag 'pull-aspeed-20250526' of 
https://github.com/legoater/qemu into staging (2025-05-26 10:16:59 
-0400)


are available in the Git repository at:

   https://gitlab.com/thuth/qemu.git tags/pull-request-2025-05-28

for you to fetch changes up to 
9c2da02e184fddfa7cd7d7813455c2306daae99a:


   tests/unit/test-util-sockets: fix mem-leak on error object 
(2025-05-28 11:59:47 +0200)



* Functional tests improvements
* Endianness improvements/clean-ups for the Microblaze machines
* Remove obsolete -2.4 and -2.5 i440fx and q35 machine types and 
related code



Alexandr Moshkov (2):
   tests/functional: add skipLockedMemoryTest decorator
   tests/functional: add memlock tests


Hi Thomas and Alexandr,
The memlock tests are failing:
https://gitlab.com/qemu-project/qemu/-/jobs/10181084830#L5421
https://gitlab.com/qemu-project/qemu/-/jobs/10181084865#L5476

Please take a look and send a new pull request. Thanks!


Hello! I think Stefan forgot to CC me in his reply. Only now find this 
message)




According to the log:

 Output: qemu-system-aarch64: No machine specified, and there is no 
default


I think it likely does not make sense to run this test with the 
aarch64 target... Alexandr, would it make sense to limit this to x86 
only?


It looks like adding this lines to vm creation fixes all problems with 
other targets on memlock test:


self.set_machine('none')
self.vm.add_args('-nodefaults')

What's the convenient way to fix it? Resend a new patch?


Best regards,

Alexandr




Re: [PULL 00/27] Functional tests, Microblaze endianness & pc/q35 cleanups

2025-05-28 Thread Thomas Huth

On 28/05/2025 21.23, Stefan Hajnoczi wrote:

On Wed, May 28, 2025 at 6:12 AM Thomas Huth  wrote:


  Hi!

The following changes since commit 80db93b2b88f9b3ed8927ae7ac74ca30e643a83e:

   Merge tag 'pull-aspeed-20250526' of https://github.com/legoater/qemu into 
staging (2025-05-26 10:16:59 -0400)

are available in the Git repository at:

   https://gitlab.com/thuth/qemu.git tags/pull-request-2025-05-28

for you to fetch changes up to 9c2da02e184fddfa7cd7d7813455c2306daae99a:

   tests/unit/test-util-sockets: fix mem-leak on error object (2025-05-28 
11:59:47 +0200)


* Functional tests improvements
* Endianness improvements/clean-ups for the Microblaze machines
* Remove obsolete -2.4 and -2.5 i440fx and q35 machine types and related code


Alexandr Moshkov (2):
   tests/functional: add skipLockedMemoryTest decorator
   tests/functional: add memlock tests


Hi Thomas and Alexandr,
The memlock tests are failing:
https://gitlab.com/qemu-project/qemu/-/jobs/10181084830#L5421
https://gitlab.com/qemu-project/qemu/-/jobs/10181084865#L5476

Please take a look and send a new pull request. Thanks!


According to the log:

 Output: qemu-system-aarch64: No machine specified, and there is no default

I think it likely does not make sense to run this test with the aarch64 
target... Alexandr, would it make sense to limit this to x86 only?


Also, quite a bunch of other tests failed at the same time in the aarch64 
job, too ... I wonder whether they were running out of memory now?


 Thomas




Re: [PULL 00/27] Functional tests, Microblaze endianness & pc/q35 cleanups

2025-05-28 Thread Stefan Hajnoczi
On Wed, May 28, 2025 at 6:12 AM Thomas Huth  wrote:
>
>  Hi!
>
> The following changes since commit 80db93b2b88f9b3ed8927ae7ac74ca30e643a83e:
>
>   Merge tag 'pull-aspeed-20250526' of https://github.com/legoater/qemu into 
> staging (2025-05-26 10:16:59 -0400)
>
> are available in the Git repository at:
>
>   https://gitlab.com/thuth/qemu.git tags/pull-request-2025-05-28
>
> for you to fetch changes up to 9c2da02e184fddfa7cd7d7813455c2306daae99a:
>
>   tests/unit/test-util-sockets: fix mem-leak on error object (2025-05-28 
> 11:59:47 +0200)
>
> 
> * Functional tests improvements
> * Endianness improvements/clean-ups for the Microblaze machines
> * Remove obsolete -2.4 and -2.5 i440fx and q35 machine types and related code
>
> 
> Alexandr Moshkov (2):
>   tests/functional: add skipLockedMemoryTest decorator
>   tests/functional: add memlock tests

Hi Thomas and Alexandr,
The memlock tests are failing:
https://gitlab.com/qemu-project/qemu/-/jobs/10181084830#L5421
https://gitlab.com/qemu-project/qemu/-/jobs/10181084865#L5476

Please take a look and send a new pull request. Thanks!

Stefan

>
> Matheus Tavares Bernardino (1):
>   tests/unit/test-util-sockets: fix mem-leak on error object
>
> Philippe Mathieu-Daudé (17):
>   hw/i386/pc: Remove deprecated pc-q35-2.4 and pc-i440fx-2.4 machines
>   hw/i386/pc: Remove PCMachineClass::broken_reserved_end field
>   hw/i386/pc: Remove pc_compat_2_4[] array
>   hw/core/machine: Remove hw_compat_2_4[] array
>   hw/net/e1000: Remove unused E1000_FLAG_MAC flag
>   hw/virtio/virtio-pci: Remove VIRTIO_PCI_FLAG_MIGRATE_EXTRA definition
>   hw/virtio/virtio-pci: Remove VIRTIO_PCI_FLAG_DISABLE_PCIE definition
>   hw/i386/pc: Remove deprecated pc-q35-2.5 and pc-i440fx-2.5 machines
>   hw/i386/x86: Remove X86MachineClass::save_tsc_khz field
>   hw/nvram/fw_cfg: Remove legacy FW_CFG_ORDER_OVERRIDE
>   hw/core/machine: Remove hw_compat_2_5[] array
>   hw/scsi/vmw_pvscsi: Remove PVSCSI_COMPAT_OLD_PCI_CONFIGURATION 
> definition
>   hw/scsi/vmw_pvscsi: Remove PVSCSI_COMPAT_DISABLE_PCIE_BIT definition
>   hw/scsi/vmw_pvscsi: Convert DeviceRealize -> InstanceInit
>   hw/net/vmxnet3: Remove VMXNET3_COMPAT_FLAG_OLD_MSI_OFFSETS definition
>   hw/net/vmxnet3: Remove VMXNET3_COMPAT_FLAG_DISABLE_PCIE definition
>   hw/net/vmxnet3: Merge DeviceRealize in InstanceInit
>
> Thomas Huth (7):
>   tests/functional/test_sparc64_tuxrun: Explicitly set the 'sun4u' machine
>   tests/functional/test_mips_malta: Re-enable the check for the PCI host 
> bridge
>   tests/functional/test_mem_addr_space: Use set_machine() to select the 
> machine
>   hw/microblaze: Add endianness property to the petalogix_s3adsp1800 
> machine
>   tests/functional: Test both microblaze s3adsp1800 endianness variants
>   hw/microblaze: Remove the big-endian variants of ml605 and 
> xlnx-zynqmp-pmu
>   docs: Deprecate the qemu-system-microblazeel binary
>
>  docs/about/deprecated.rst|  19 ++--
>  docs/about/removed-features.rst  |   9 ++
>  include/hw/boards.h  |   9 +-
>  include/hw/i386/pc.h |   7 --
>  include/hw/i386/x86.h|   5 --
>  include/hw/loader.h  |   2 -
>  include/hw/nvram/fw_cfg.h|  10 ---
>  include/hw/virtio/virtio-pci.h   |   8 --
>  hw/core/loader.c |  14 ---
>  hw/core/machine.c|  18 
>  hw/i386/pc.c |  42 ++---
>  hw/i386/pc_piix.c|  26 --
>  hw/i386/pc_q35.c |  26 --
>  hw/i386/x86.c|   1 -
>  hw/microblaze/petalogix_ml605_mmu.c  |  15 +---
>  hw/microblaze/petalogix_s3adsp1800_mmu.c |  41 +++--
>  hw/microblaze/xlnx-zynqmp-pmu.c  |   7 +-
>  hw/net/e1000.c   |  95 +---
>  hw/net/vmxnet3.c |  44 ++---
>  hw/nvram/fw_cfg.c| 110 
> ++-
>  hw/scsi/vmw_pvscsi.c |  67 +++---
>  hw/virtio/virtio-pci.c   |  11 +--
>  system/vl.c  |   5 --
>  target/i386/machine.c|   5 +-
>  tests/qtest/test-x86-cpuid-compat.c  |  14 ---
>  tests/unit/test-util-sockets.c   |   4 +
>  tests/functional/meson.build |   1 +
>  tests/functional/qemu_test/__init__.py   |   2 +-
>  tests/functional/qemu_test/decorators.py |  18 
>  tests/functio