Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: f9cc8cfdf346cadc92db8fce32c8b5d7f1095163
      
https://github.com/qemu/qemu/commit/f9cc8cfdf346cadc92db8fce32c8b5d7f1095163
  Author: Philippe Mathieu-Daudé <phi...@redhat.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M block/qcow2-bitmap.c

  Log Message:
  -----------
  block/qcow2-bitmap: Replace g_memdup() by g_memdup2()

Per 
https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538

  The old API took the size of the memory to duplicate as a guint,
  whereas most memory functions take memory sizes as a gsize. This
  made it easy to accidentally pass a gsize to g_memdup(). For large
  values, that would lead to a silent truncation of the size from 64
  to 32 bits, and result in a heap area being returned which is
  significantly smaller than what the caller expects. This can likely
  be exploited in various modules to cause a heap buffer overflow.

Replace g_memdup() by the safer g_memdup2() wrapper.

Trivially safe because the argument was directly from sizeof.

Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com>
Reviewed-by: Eric Blake <ebl...@redhat.com>
Message-Id: <20210903174510.751630-6-phi...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 40fed8c1d3a2bcef81c8de3f55d7e1abe1397347
      
https://github.com/qemu/qemu/commit/40fed8c1d3a2bcef81c8de3f55d7e1abe1397347
  Author: Philippe Mathieu-Daudé <phi...@redhat.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M target/ppc/mmu-hash64.c

  Log Message:
  -----------
  target/ppc: Replace g_memdup() by g_memdup2()

Per 
https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538

  The old API took the size of the memory to duplicate as a guint,
  whereas most memory functions take memory sizes as a gsize. This
  made it easy to accidentally pass a gsize to g_memdup(). For large
  values, that would lead to a silent truncation of the size from 64
  to 32 bits, and result in a heap area being returned which is
  significantly smaller than what the caller expects. This can likely
  be exploited in various modules to cause a heap buffer overflow.

Replace g_memdup() by the safer g_memdup2() wrapper.

Trivially safe because the argument was directly from sizeof.

Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com>
Acked-by: David Gibson <da...@gibson.dropbear.id.au>
Message-Id: <20210903174510.751630-27-phi...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 0572f01117c897bef5ece0b367bc6700d4fbd161
      
https://github.com/qemu/qemu/commit/0572f01117c897bef5ece0b367bc6700d4fbd161
  Author: Philippe Mathieu-Daudé <phi...@redhat.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M hw/hppa/machine.c

  Log Message:
  -----------
  hw/hppa/machine: Replace g_memdup() by g_memdup2()

Per 
https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538

  The old API took the size of the memory to duplicate as a guint,
  whereas most memory functions take memory sizes as a gsize. This
  made it easy to accidentally pass a gsize to g_memdup(). For large
  values, that would lead to a silent truncation of the size from 64
  to 32 bits, and result in a heap area being returned which is
  significantly smaller than what the caller expects. This can likely
  be exploited in various modules to cause a heap buffer overflow.

Replace g_memdup() by the safer g_memdup2() wrapper.

Trivially safe because the argument was directly from sizeof.

Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com>
Message-Id: <20210903174510.751630-12-phi...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 09d98a241caf12e0de5ab738cfa5c911af97fbd6
      
https://github.com/qemu/qemu/commit/09d98a241caf12e0de5ab738cfa5c911af97fbd6
  Author: Philippe Mathieu-Daudé <phi...@redhat.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M hw/ppc/spapr_pci.c

  Log Message:
  -----------
  hw/ppc/spapr_pci: Replace g_memdup() by g_memdup2()

Per 
https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538

  The old API took the size of the memory to duplicate as a guint,
  whereas most memory functions take memory sizes as a gsize. This
  made it easy to accidentally pass a gsize to g_memdup(). For large
  values, that would lead to a silent truncation of the size from 64
  to 32 bits, and result in a heap area being returned which is
  significantly smaller than what the caller expects. This can likely
  be exploited in various modules to cause a heap buffer overflow.

Replace g_memdup() by the safer g_memdup2() wrapper.

Trivially safe because the argument was directly from sizeof.

Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com>
Acked-by: David Gibson <da...@gibson.dropber.id.au>
Message-Id: <20210903174510.751630-17-phi...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: e6578f1f68a0e90789a841ada532c3e494c9a04c
      
https://github.com/qemu/qemu/commit/e6578f1f68a0e90789a841ada532c3e494c9a04c
  Author: Mattias Nissler <mniss...@rivosinc.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M hw/remote/vfio-user-obj.c

  Log Message:
  -----------
  hw/remote/vfio-user: Fix config space access byte order

PCI config space is little-endian, so on a big-endian host we need to
perform byte swaps for values as they are passed to and received from
the generic PCI config space access machinery.

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
Reviewed-by: Jagannathan Raman <jag.ra...@oracle.com>
Signed-off-by: Mattias Nissler <mniss...@rivosinc.com>
Message-ID: <20240507094210.300566-6-mniss...@rivosinc.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: d5e268197aa2ba89bc0540717c72be2c69568b62
      
https://github.com/qemu/qemu/commit/d5e268197aa2ba89bc0540717c72be2c69568b62
  Author: Philippe Mathieu-Daudé <phi...@linaro.org>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M system/physmem.c

  Log Message:
  -----------
  system/physmem: Replace qemu_mutex_lock() calls with QEMU_LOCK_GUARD

Simplify cpu_[un]register_map_client() and cpu_notify_map_clients()
by replacing the pair of qemu_mutex_lock/qemu_mutex_unlock calls by
the WITH_QEMU_LOCK_GUARD() macro.

Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
Reviewed-by: Mattias Nissler <mniss...@rivosinc.com>
Reviewed-by: Peter Xu <pet...@redhat.com>
Message-Id: <20240507123025.93391-2-phi...@linaro.org>


  Commit: 5c62719710bab66a98f68ebdba333e2240ed6668
      
https://github.com/qemu/qemu/commit/5c62719710bab66a98f68ebdba333e2240ed6668
  Author: Mattias Nissler <mniss...@rivosinc.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M include/exec/cpu-common.h
    M include/exec/memory.h
    M system/dma-helpers.c
    M system/physmem.c

  Log Message:
  -----------
  system/physmem: Propagate AddressSpace to MapClient helpers

Propagate AddressSpace handler to following helpers:
- register_map_client()
- unregister_map_client()
- notify_map_clients[_locked]()

Rename them using 'address_space_' prefix instead of 'cpu_'.

The AddressSpace argument will be used in the next commit.

Reviewed-by: Peter Xu <pet...@redhat.com>
Tested-by: Jonathan Cameron <jonathan.came...@huawei.com>
Signed-off-by: Mattias Nissler <mniss...@rivosinc.com>
Message-ID: <20240507094210.300566-2-mniss...@rivosinc.com>
[PMD: Split patch, part 1/2]
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 69e78f1b3484e429274352a464a94fa1d78be339
      
https://github.com/qemu/qemu/commit/69e78f1b3484e429274352a464a94fa1d78be339
  Author: Mattias Nissler <mniss...@rivosinc.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M include/exec/memory.h
    M system/memory.c
    M system/physmem.c

  Log Message:
  -----------
  system/physmem: Per-AddressSpace bounce buffering

Instead of using a single global bounce buffer, give each AddressSpace
its own bounce buffer. The MapClient callback mechanism moves to
AddressSpace accordingly.

This is in preparation for generalizing bounce buffer handling further
to allow multiple bounce buffers, with a total allocation limit
configured per AddressSpace.

Reviewed-by: Peter Xu <pet...@redhat.com>
Tested-by: Jonathan Cameron <jonathan.came...@huawei.com>
Signed-off-by: Mattias Nissler <mniss...@rivosinc.com>
Message-ID: <20240507094210.300566-2-mniss...@rivosinc.com>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
[PMD: Split patch, part 2/2]
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 64436c5c1739abf58ef3b768c20f312355c370fc
      
https://github.com/qemu/qemu/commit/64436c5c1739abf58ef3b768c20f312355c370fc
  Author: Thomas Huth <th...@redhat.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M hw/i386/pc.c

  Log Message:
  -----------
  hw/i386/pc: Allow to compile without CONFIG_FDC_ISA

The q35 machine can work without FDC. But to be able to also link
a QEMU binary that does not include the FDC code, we have to make
it possible to disable the spots that call into the FDC code.

Signed-off-by: Thomas Huth <th...@redhat.com>
Acked-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240425184315.553329-2-th...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 77af05946e450a804b55b4a10b0b1fbd4f838fa4
      
https://github.com/qemu/qemu/commit/77af05946e450a804b55b4a10b0b1fbd4f838fa4
  Author: Thomas Huth <th...@redhat.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M hw/i386/Kconfig

  Log Message:
  -----------
  hw/i386/Kconfig: Allow to compile Q35 without FDC_ISA

The q35 machine can be used without floppy disk controller (FDC),
but due to our current Kconfig setup, the FDC code is still always
included in the binary. To fix this, the "PC" config option should
only imply the "FDC_ISA" instead of always selecting it.

The i440fx and the isa-pc machine currently always instantiate
the FDC, so we have to add the select statements now there instead.

Signed-off-by: Thomas Huth <th...@redhat.com>
Acked-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240425184315.553329-3-th...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 8793d601f38b417d63820456582e1e22e51c2d34
      
https://github.com/qemu/qemu/commit/8793d601f38b417d63820456582e1e22e51c2d34
  Author: Thomas Huth <th...@redhat.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M hw/i386/Kconfig
    M hw/i386/pc_piix.c

  Log Message:
  -----------
  hw/i386: Add the possibility to use i440fx and isapc without FDC

The i440fx and the isapc machines can be used in binaries without
FDC, too. We just have to make sure that they don't try to instantiate
the FDC when it is not available.

Signed-off-by: Thomas Huth <th...@redhat.com>
Acked-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240425184315.553329-4-th...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 014dbdac8798799d081abc9dff3e4876ca54f49e
      
https://github.com/qemu/qemu/commit/014dbdac8798799d081abc9dff3e4876ca54f49e
  Author: Bernhard Beschow <shen...@gmail.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M hw/i386/x86.c

  Log Message:
  -----------
  hw/i386/x86: Eliminate two if statements in x86_bios_rom_init()

Given that memory_region_set_readonly() is a no-op when the readonlyness is
already as requested it is possible to simplify the pattern

  if (condition) {
    foo(true);
  }

to

  foo(condition);

which is shorter and allows to see the invariant of the code more easily.

Signed-off-by: Bernhard Beschow <shen...@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240430150643.111976-2-shen...@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 848351840148f8c3b53ddf6210194506547d3ffd
      
https://github.com/qemu/qemu/commit/848351840148f8c3b53ddf6210194506547d3ffd
  Author: Bernhard Beschow <shen...@gmail.com>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M hw/i386/microvm.c
    M hw/i386/pc_sysfw.c
    M hw/i386/x86.c
    M include/hw/i386/x86.h

  Log Message:
  -----------
  hw/i386: Have x86_bios_rom_init() take X86MachineState rather than 
MachineState

The function creates and leaks two MemoryRegion objects regarding the BIOS which
will be moved into X86MachineState in the next steps to avoid the leakage.

Signed-off-by: Bernhard Beschow <shen...@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240430150643.111976-3-shen...@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 32d3ee87a17fc91e981a23dba94855bff89f5920
      
https://github.com/qemu/qemu/commit/32d3ee87a17fc91e981a23dba94855bff89f5920
  Author: Bernhard Beschow <shen...@gmail.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/i386/pc_sysfw.c
    M hw/i386/x86.c
    M include/hw/i386/x86.h

  Log Message:
  -----------
  hw/i386/x86: Don't leak "isa-bios" memory regions

Fix the leaking in x86_bios_rom_init() and pc_isa_bios_init() by adding an
"isa_bios" attribute to X86MachineState.

Suggested-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Signed-off-by: Bernhard Beschow <shen...@gmail.com>
Message-ID: <20240508175507.22270-4-shen...@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 865d95321ffc8d9941e33000b10140550f094556
      
https://github.com/qemu/qemu/commit/865d95321ffc8d9941e33000b10140550f094556
  Author: Bernhard Beschow <shen...@gmail.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/i386/x86.c
    M include/hw/i386/x86.h

  Log Message:
  -----------
  hw/i386/x86: Don't leak "pc.bios" memory region

Fix the leaking in x86_bios_rom_init() by adding a "bios" attribute to
X86MachineState. Note that it is only used in the -bios case.

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Signed-off-by: Bernhard Beschow <shen...@gmail.com>
Message-ID: <20240508175507.22270-5-shen...@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 5c5ffec12c30d2017cbdee6798f54d8fad3f9656
      
https://github.com/qemu/qemu/commit/5c5ffec12c30d2017cbdee6798f54d8fad3f9656
  Author: Bernhard Beschow <shen...@gmail.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/i386/x86.c
    M include/hw/i386/x86.h

  Log Message:
  -----------
  hw/i386/x86: Extract x86_isa_bios_init() from x86_bios_rom_init()

The function is inspired by pc_isa_bios_init() and should eventually replace it.
Using x86_isa_bios_init() rather than pc_isa_bios_init() fixes pflash commands
to work in the isa-bios region.

While at it convert the magic number 0x100000 (== 1MiB) to increase readability.

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Signed-off-by: Bernhard Beschow <shen...@gmail.com>
Message-ID: <20240508175507.22270-6-shen...@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: f94b1871aa6ca64114dadea877ee6518809ddb9d
      
https://github.com/qemu/qemu/commit/f94b1871aa6ca64114dadea877ee6518809ddb9d
  Author: Dr. David Alan Gilbert <d...@treblig.org>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/usb/dev-network.c

  Log Message:
  -----------
  hw/usb/dev-network: Remove unused struct 'rndis_config_parameter'

As far as I can tell it was never used.

Signed-off-by: Dr. David Alan Gilbert <d...@treblig.org>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240505171444.333302-5-d...@treblig.org>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 1f3cabd3409c4eef0174f58211c0ced196f11446
      
https://github.com/qemu/qemu/commit/1f3cabd3409c4eef0174f58211c0ced196f11446
  Author: Inès Varhol <ines.var...@telecom-paris.fr>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/gpio/stm32l4x5_gpio.c

  Log Message:
  -----------
  hw/gpio: Handle clock migration in STM32L4x5 gpios

STM32L4x5 GPIO wasn't migrating its clock.

Signed-off-by: Inès Varhol <ines.var...@telecom-paris.fr>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240507185854.34572-3-ines.var...@telecom-paris.fr>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: ed95bdd1e52a0a5f4f8e07468f6c1aa766efc4f2
      
https://github.com/qemu/qemu/commit/ed95bdd1e52a0a5f4f8e07468f6c1aa766efc4f2
  Author: Cédric Le Goater <c...@redhat.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M docs/about/deprecated.rst
    M hw/ppc/ppc405_boards.c

  Log Message:
  -----------
  hw/ppc: Deprecate 'ref405ep' machine and 405 CPUs

The 'ref405ep' machine and PPC 405 CPU have no known users, firmware
images are not available, OpenWRT dropped support in 2019, U-Boot in
2017, Linux also is dropping support in 2024. It is time to let go of
this ancient hardware and focus on newer CPUs and platforms.

Signed-off-by: Cédric Le Goater <c...@redhat.com>
Acked-by: Nicholas Piggin <npig...@gmail.com>
Message-ID: <20240507123332.641708-1-...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 72674db080bcdf2fd66b2a538379ee6000f5b113
      
https://github.com/qemu/qemu/commit/72674db080bcdf2fd66b2a538379ee6000f5b113
  Author: Paolo Bonzini <pbonz...@redhat.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M .gitlab-ci.d/buildtest.yml
    M hw/loongarch/boot.c
    M hw/loongarch/virt.c
    M include/hw/loongarch/boot.h
    M include/hw/loongarch/virt.h

  Log Message:
  -----------
  hw/loongarch: move memory map to boot.c

Ensure that it can be used even if virt.c is not included in the build, as
is the case for --without-default-devices.

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
Acked-by: Richard Henderson <richard.hender...@linaro.org>
Message-ID: <20240507145135.270803-1-pbonz...@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 54c52ec719fb8c83bbde54cb87b58688ab27c166
      
https://github.com/qemu/qemu/commit/54c52ec719fb8c83bbde54cb87b58688ab27c166
  Author: Song Gao <gaos...@loongson.cn>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/loongarch/virt.c

  Log Message:
  -----------
  hw/loongarch/virt: Fix memory leak

The char pointer 'ramName' point to a block of memory,
but never free it. Use 'g_autofree' to automatically free it.

Resolves: Coverity CID 1544773

Fixes: 0cf1478d6 ("hw/loongarch: Add numa support")
Signed-off-by: Song Gao <gaos...@loongson.cn>
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240507022239.3113987-1-gaos...@loongson.cn>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: df0d93c1e20db0c2b683a823a8e95208f5dc09ff
      
https://github.com/qemu/qemu/commit/df0d93c1e20db0c2b683a823a8e95208f5dc09ff
  Author: Bibo Mao <maob...@loongson.cn>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/loongarch/acpi-build.c
    M hw/loongarch/boot.c
    M hw/loongarch/virt.c
    M include/hw/loongarch/virt.h

  Log Message:
  -----------
  hw/loongarch: Rename LOONGARCH_MACHINE with LOONGARCH_VIRT_MACHINE

On LoongArch system, there is only virt machine type now, name
LOONGARCH_MACHINE is confused, rename it with LOONGARCH_VIRT_MACHINE.
Machine name about Other real hw boards can be added in future.

Signed-off-by: Bibo Mao <maob...@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240508031110.2507477-2-maob...@loongson.cn>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: d804ad98f51cc6ae795ff9c9890db66bae513214
      
https://github.com/qemu/qemu/commit/d804ad98f51cc6ae795ff9c9890db66bae513214
  Author: Bibo Mao <maob...@loongson.cn>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/loongarch/acpi-build.c
    M hw/loongarch/boot.c
    M hw/loongarch/fw_cfg.c
    M hw/loongarch/fw_cfg.h
    M hw/loongarch/virt.c
    M include/hw/loongarch/virt.h

  Log Message:
  -----------
  hw/loongarch: Rename LoongArchMachineState with LoongArchVirtMachineState

Rename LoongArchMachineState with LoongArchVirtMachineState, and change
variable name LoongArchMachineState *lams with LoongArchVirtMachineState
*lvms.

Rename function specific for virtmachine loongarch_xxx()
with virt_xxx(). However some common functions keep unchanged such as
loongarch_acpi_setup()/loongarch_load_kernel(), since there functions
can be used for real hw boards.

Signed-off-by: Bibo Mao <maob...@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240508031110.2507477-3-maob...@loongson.cn>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 5b1a3b9f8c0fbcd2420977678601948d7573c809
      
https://github.com/qemu/qemu/commit/5b1a3b9f8c0fbcd2420977678601948d7573c809
  Author: Jiaxun Yang <jiaxun.y...@flygoat.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/mips/loongson3_bootp.c
    M hw/mips/loongson3_virt.c

  Log Message:
  -----------
  hw/mips/loongson3_virt: Emulate suspend function

Suspend function is emulated as what hardware actually do.
Doorbell register fields are updates to include suspend value,
suspend vector is encoded in firmware blob and fw_cfg is updated
to include S3 bits as what x86 did.

Signed-off-by: Jiaxun Yang <jiaxun.y...@flygoat.com>
Message-ID: <20240508-loongson3v-suspend-v1-1-186725524...@flygoat.com>
[PMD: Use g_memdup2(), constify suspend array]
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 39b3ae11b0763d8d8f4df9b03fc4b3ed5fa155ee
      
https://github.com/qemu/qemu/commit/39b3ae11b0763d8d8f4df9b03fc4b3ed5fa155ee
  Author: Jiaxun Yang <jiaxun.y...@flygoat.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/intc/loongarch_ipi.c
    M hw/intc/trace-events

  Log Message:
  -----------
  hw/intc/loongarch_ipi: Remove pointless MAX_CPU check

Since cpuid will be checked by ipi_getcpu anyway, there is
no point to enforce MAX_CPU here.

This also saved us from including loongarch board header.

Signed-off-by: Jiaxun Yang <jiaxun.y...@flygoat.com>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240508-loongson3-ipi-v1-1-1a7b67704...@flygoat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: b4a12dfc2132dc22c587ee2ecbd7b8d48ec381a1
      
https://github.com/qemu/qemu/commit/b4a12dfc2132dc22c587ee2ecbd7b8d48ec381a1
  Author: Jiaxun Yang <jiaxun.y...@flygoat.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M MAINTAINERS
    M hw/intc/Kconfig
    A hw/intc/loongson_ipi.c
    M hw/intc/meson.build
    M hw/intc/trace-events
    M hw/loongarch/Kconfig
    M hw/loongarch/virt.c
    R include/hw/intc/loongarch_ipi.h
    A include/hw/intc/loongson_ipi.h
    M include/hw/loongarch/virt.h

  Log Message:
  -----------
  hw/intc/loongarch_ipi: Rename as loongson_ipi

This device will be shared among LoongArch and MIPS
based Loongson machine, rename it as loongson_ipi
to reflect this nature.

Signed-off-by: Jiaxun Yang <jiaxun.y...@flygoat.com>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240508-loongson3-ipi-v1-2-1a7b67704...@flygoat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 91d0b151de4cb433ae31b7e2678fdb19850ad772
      
https://github.com/qemu/qemu/commit/91d0b151de4cb433ae31b7e2678fdb19850ad772
  Author: Jiaxun Yang <jiaxun.y...@flygoat.com>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/intc/loongson_ipi.c

  Log Message:
  -----------
  hw/intc/loongson_ipi: Implement IOCSR address space for MIPS

Implement IOCSR address space get functions for MIPS/Loongson CPUs.

For MIPS/Loongson without IOCSR (i.e. Loongson-3A1000), get_cpu_iocsr_as
will return as null, and send_ipi_data will fail with MEMTX_DECODE_ERROR,
which matches expected behavior on hardware.

Signed-off-by: Jiaxun Yang <jiaxun.y...@flygoat.com>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-ID: <20240508-loongson3-ipi-v1-3-1a7b67704...@flygoat.com>
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>


  Commit: 8b4d80bb53af30db5de91749216d0bb73fa93cab
      
https://github.com/qemu/qemu/commit/8b4d80bb53af30db5de91749216d0bb73fa93cab
  Author: Philippe Mathieu-Daudé <phi...@linaro.org>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M hw/audio/virtio-snd.c
    M hw/rtc/ls7a_rtc.c
    M target/i386/gdbstub.c
    M tests/qtest/nvme-test.c
    M tests/qtest/ufs-test.c

  Log Message:
  -----------
  misc: Use QEMU header path relative to include/ directory

QEMU headers are relative to the include/ directory,
not to the project root directory. Remove "include/".

See also:
https://www.qemu.org/docs/master/devel/style.html#include-directives

Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org>
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
Message-Id: <20240507142737.95735-1-phi...@linaro.org>


  Commit: 1a648f7ae4d3ac97ef0855baec46047ea21a400a
      
https://github.com/qemu/qemu/commit/1a648f7ae4d3ac97ef0855baec46047ea21a400a
  Author: Richard Henderson <richard.hender...@linaro.org>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M .gitlab-ci.d/buildtest.yml
    M MAINTAINERS
    M block/qcow2-bitmap.c
    M docs/about/deprecated.rst
    M hw/audio/virtio-snd.c
    M hw/gpio/stm32l4x5_gpio.c
    M hw/hppa/machine.c
    M hw/i386/Kconfig
    M hw/i386/microvm.c
    M hw/i386/pc.c
    M hw/i386/pc_piix.c
    M hw/i386/pc_sysfw.c
    M hw/i386/x86.c
    M hw/intc/Kconfig
    M hw/intc/loongarch_ipi.c
    A hw/intc/loongson_ipi.c
    M hw/intc/meson.build
    M hw/intc/trace-events
    M hw/loongarch/Kconfig
    M hw/loongarch/acpi-build.c
    M hw/loongarch/boot.c
    M hw/loongarch/fw_cfg.c
    M hw/loongarch/fw_cfg.h
    M hw/loongarch/virt.c
    M hw/mips/loongson3_bootp.c
    M hw/mips/loongson3_virt.c
    M hw/ppc/ppc405_boards.c
    M hw/ppc/spapr_pci.c
    M hw/remote/vfio-user-obj.c
    M hw/rtc/ls7a_rtc.c
    M hw/usb/dev-network.c
    M include/exec/cpu-common.h
    M include/exec/memory.h
    M include/hw/i386/x86.h
    R include/hw/intc/loongarch_ipi.h
    A include/hw/intc/loongson_ipi.h
    M include/hw/loongarch/boot.h
    M include/hw/loongarch/virt.h
    M system/dma-helpers.c
    M system/memory.c
    M system/physmem.c
    M target/i386/gdbstub.c
    M target/ppc/mmu-hash64.c
    M tests/qtest/nvme-test.c
    M tests/qtest/ufs-test.c

  Log Message:
  -----------
  Merge tag 'hw-misc-20240508' of https://github.com/philmd/qemu into staging

Misc HW patches

- Few more g_memdup() replaced by safer g_memdup2() wrapper (Phil)
- Endianness access fixed in vfio-user config space (Mattias)
- Replace qemu_mutex_lock() -> QEMU_LOCK_GUARD in system/physmem (Phil)
- Per-AddressSpace bounce buffering (Mattias)
- Allow to compile x86 PC machines without Floppy Controller (Thomas)
- Cleanups around i386 "isa-bios" memory regions (Bernhard)
- Remove unused usb rndis_config_parameter structure (David)
- Migrate missing clock in STM32L4x5 GPIOs (Inès)
- Deprecate PPC 'ref405ep' machine and 405 CPUs (Cédric)
- Memory leak fixed in Loongarch Virt machine (Song Gao)
- hw/loongarch/ code moved around (Paolo & Bibo Mao)
- Emulate S3 suspend in loongson3_virt machine (Jiaxun)
- Implement IOCSR address space in Loongson IPI (Jiaxun)
- Use QEMU header path relative to include/ directory (Phil)

# -----BEGIN PGP SIGNATURE-----
#
# iQIzBAABCAAdFiEE+qvnXhKRciHc/Wuy4+MsLN6twN4FAmY7+NgACgkQ4+MsLN6t
# wN4QdhAAnPGMoIGubXiZjrEmCuDU117Hm//g3wFdirn6pSr3XFWk+LGHurpgWzwf
# 6AG2ERE6ouEqbZmhfnkLA9/3cSuS/6YgCDxfQ/2Z5N7hy5+GaG60paIk2iw4wJc+
# z+3EBBNp1MKP7etP/f7XvBbempOGHSENvH83ZEKTXln6oYe/HQWBoTChV/W6Uczv
# Txf45DJ6QPPQl7cBYqtLpg9Nmc4g6d3M5t5YWzkBrecvXiBlKdZnEsI5CBtmXM8D
# h7+wIyNMl0Nc3DgQWN1SsARFDUyHG4bE4K6MS2KkGLkfFF84o8rRtEPV0RvsT+g6
# 0VkhZqLf+Gdq2w1IxCt1k5VCx8HK25+zWZypXlXY1o1dbfssqqbvXEh+3sws67eJ
# 4Hn+8QIXZBsl/zUxBbw5/CVYTHmy4Aosc1TItvDsCPnlicfV2phKSxADlL/WJCCU
# IQBwDMtxNwYM/QMP3bRIN0xNNSpB0+kOzfkRf1hVQmxH+ObqIvvIA+RbI6NhjM3L
# qXw5o0+FltLg7kPGk4Fo/rlhfnydRAE/swrwYd3WRp0sKjDe0lV3r7Bu+FZ4imdB
# 4u24FJK8ygcQOKiyHEX9cEkKruYAXeFmI3WglimYe5Po2LvIonsRLiqX97CGhgDX
# UM9Oo0Sr/0NnV7FnOW75OijNa2PE7pLVgWDjM3Xefmltqui7F/M=
# =uOIs
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu 09 May 2024 12:12:40 AM CEST
# gpg:                using RSA key FAABE75E12917221DCFD6BB2E3E32C2CDEADC0DE
# gpg: Good signature from "Philippe Mathieu-Daudé (F4BUG) <f4...@amsat.org>" 
[full]

* tag 'hw-misc-20240508' of https://github.com/philmd/qemu: (28 commits)
  misc: Use QEMU header path relative to include/ directory
  hw/intc/loongson_ipi: Implement IOCSR address space for MIPS
  hw/intc/loongarch_ipi: Rename as loongson_ipi
  hw/intc/loongarch_ipi: Remove pointless MAX_CPU check
  hw/mips/loongson3_virt: Emulate suspend function
  hw/loongarch: Rename LoongArchMachineState with LoongArchVirtMachineState
  hw/loongarch: Rename LOONGARCH_MACHINE with LOONGARCH_VIRT_MACHINE
  hw/loongarch/virt: Fix memory leak
  hw/loongarch: move memory map to boot.c
  hw/ppc: Deprecate 'ref405ep' machine and 405 CPUs
  hw/gpio: Handle clock migration in STM32L4x5 gpios
  hw/usb/dev-network: Remove unused struct 'rndis_config_parameter'
  hw/i386/x86: Extract x86_isa_bios_init() from x86_bios_rom_init()
  hw/i386/x86: Don't leak "pc.bios" memory region
  hw/i386/x86: Don't leak "isa-bios" memory regions
  hw/i386: Have x86_bios_rom_init() take X86MachineState rather than 
MachineState
  hw/i386/x86: Eliminate two if statements in x86_bios_rom_init()
  hw/i386: Add the possibility to use i440fx and isapc without FDC
  hw/i386/Kconfig: Allow to compile Q35 without FDC_ISA
  hw/i386/pc: Allow to compile without CONFIG_FDC_ISA
  ...

Signed-off-by: Richard Henderson <richard.hender...@linaro.org>


  Commit: 36fa7c686e9eac490002ffc439c4affaa352c17c
      
https://github.com/qemu/qemu/commit/36fa7c686e9eac490002ffc439c4affaa352c17c
  Author: Richard Henderson <richard.hender...@linaro.org>
  Date:   2024-05-09 (Thu, 09 May 2024)

  Changed paths:
    M .gitlab-ci.d/windows.yml

  Log Message:
  -----------
  gitlab: Update msys2-64bit runner tags

Gitlab has deprecated and removed support for windows-1809
and shared-windows.  Update to saas-windows-medium-amd64 per

https://about.gitlab.com/blog/2024/01/22/windows-2022-support-for-gitlab-saas-runners/

Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Tested-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Reviewed-by: Thomas Huth <th...@redhat.com>
Tested-by: Thomas Huth <th...@redhat.com>
Message-Id: <20240507175356.281618-1-richard.hender...@linaro.org>


Compare: https://github.com/qemu/qemu/compare/4e66a08546a2...36fa7c686e9e

To unsubscribe from these emails, change your notification settings at 
https://github.com/qemu/qemu/settings/notifications

Reply via email to