[PATCH 0/3] dtc: Fixes for the fdt check and update submodule to 1.6.1

2021-08-27 Thread Thomas Huth
There are some issues in the checks for libfdt in meson.build which get fixed with the first two patches. And while we're at it, also update the dtc submodule to a proper release version (in the third patch). Thomas Huth (3): meson.build: Fix the check for a usable libfdt meson.build: Don't u

[PATCH 2/3] meson.build: Don't use internal libfdt if the user requested the system libfdt

2021-08-27 Thread Thomas Huth
If the users ran configure with --enable-libfdt=system, they likely did that on purpose. We should not silently fall back to the internal libfdt if the system libfdt is not usable, but report the problem with a proper message instead. Signed-off-by: Thomas Huth --- meson.build | 2 ++ 1 file cha

[PATCH 1/3] meson.build: Fix the check for a usable libfdt

2021-08-27 Thread Thomas Huth
The check for libfdt currently has a flaw: If there is a system libfdt, the meson.build code initialized the fdt variable with fdt = cc.find_library(...). However, if this libfdt is too old and there is no internal dtc module available, it continues with "fdt" pointing to the old and unusable versi

Re: [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set

2021-08-27 Thread Mark Cave-Ayland
On 27/08/2021 11:14, Peter Maydell wrote: On Fri, 27 Aug 2021 at 10:14, Mark Cave-Ayland wrote: Ah so the plan moving forward is to always have an explicit MR passed in for DMA use. Sorry if I missed that in earlier versions of the patchset, I'm still getting back up to speed on QEMU hacking

[PATCH 1/2] virtio: Linux: Update of virtio_ids

2021-08-27 Thread Pierre Morel
The virtio IDs depends on Linux tree... Signed-off-by: Pierre Morel --- include/standard-headers/linux/virtio_ids.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/standard-headers/linux/virtio_ids.h b/include/standard-headers/linux/virtio_ids.h index 4fe842c3a3..bf61801eeb 100644 -

[PATCH 2/2] s390x: ccw: A simple test device for virtio CCW

2021-08-27 Thread Pierre Morel
This VIRTIO device receives data on its input channel and emit a simple checksum for these data on its output channel. This allows a simple VIRTIO device driver to check the VIRTIO initialization and various data transfer. Signed-off-by: Pierre Morel --- hw/s390x/meson.build| 1 +

[PATCH 0/2] s390x: ccw: A simple test device for virtio CCW

2021-08-27 Thread Pierre Morel
Hello All, This series presents a VIRTIO test device which receives data on its input channel and sends back a simple checksum for the data it received on its output channel. The goal is to allow a simple VIRTIO device driver to check the VIRTIO initialization and various data transfer. For th

[Bug 1921635] Re: ESP SCSI adapter not working with DOS ASPI drivers

2021-08-27 Thread Thomas Huth
This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/569 ** Tags added: scsi ** Bug watch added: gitlab.com/qemu-projec

Qemu PCIe aer error injection

2021-08-27 Thread Mayuresh Chitale
Hi, I am working to add the PCIe root complex event collector support to Qemu. I want to test the AER error injection by using the QMP shell. However I am unable to use the pcie_aer_inject_error command on the QMP shell. I see this error: "id or pci device path is invalid or device not found ". I

Re: [PATCH v2] hw/sensor: Add lsm303dlhc magnetometer device

2021-08-27 Thread Peter Maydell
On Sun, 15 Aug 2021 at 17:31, Kevin Townsend wrote: > > This commit adds emulation of the magnetometer on the LSM303DLHC. > It allows the magnetometer's X, Y and Z outputs to be set via the > mag_x, mag_y and mag_z properties, as well as the 12-bit > temperature output via the temperature property

Re: [PULL 00/15] Error reporting patches for 2021-08-26

2021-08-27 Thread Peter Maydell
On Fri, 27 Aug 2021 at 05:50, Markus Armbruster wrote: > > The following changes since commit c83fcfaf8a54d0d034bd0edf7bbb3b0d16669be9: > > Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2021-08-26' > into staging (2021-08-26 13:42:34 +0100) > > are available in the Git repository

Re: [PATCH v2 4/4] hw/riscv: virt: Add optional ACLINT support to virt machine

2021-08-27 Thread Anup Patel
On Fri, Aug 6, 2021 at 8:00 AM Bin Meng wrote: > > On Sat, Jul 24, 2021 at 8:27 PM Anup Patel wrote: > > > > We extend virt machine to emulate ACLINT devices only when "aclint=on" > > parameter is passed along with machine name in QEMU command-line. > > > > Signed-off-by: Anup Patel > > --- > >

Re: [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set

2021-08-27 Thread Peter Maydell
On Fri, 27 Aug 2021 at 10:14, Mark Cave-Ayland wrote: > Ah so the plan moving forward is to always have an explicit MR passed in for > DMA use. > Sorry if I missed that in earlier versions of the patchset, I'm still getting > back up > to speed on QEMU hacking. > > Was there a decision as to wha

Re: [PATCH v2 2/4] hw/intc: Upgrade the SiFive CLINT implementation to RISC-V ACLINT

2021-08-27 Thread Anup Patel
On Fri, Aug 6, 2021 at 7:55 AM Bin Meng wrote: > > On Sat, Jul 24, 2021 at 8:27 PM Anup Patel wrote: > > > > The RISC-V ACLINT is more modular and backward compatible with > > original SiFive CLINT so instead of duplicating the original > > SiFive CLINT implementation we upgrade the current SiFiv

Re: [PATCH v2 0/4] target/arm/cpu: Introduce sve_vq_supported bitmap

2021-08-27 Thread Andrew Jones
On Fri, Aug 27, 2021 at 08:30:07AM +, ishii.shuuic...@fujitsu.com wrote: > > Thank you, Andrew, for creating the patches. > And thank you all for your comments. > > I have applied the suggested v2 patch series by andrew locally, > and reviewed the next version of the a64fx patch series as fo

[PATCH v4 5/5] spapr: move memory/cpu less check to spapr_numa_FORM1_affinity_init()

2021-08-27 Thread Daniel Henrique Barboza
FORM2 NUMA affinity is prepared to deal with memory/cpu less NUMA nodes. This is used by the DAX KMEM driver to locate a PAPR SCM device that has a different latency than the original NUMA node from the regular memory. Move this verification to FORM1 affinity code. Signed-off-by: Daniel Henrique

[PATCH v4 3/5] spapr_numa.c: base FORM2 NUMA affinity support

2021-08-27 Thread Daniel Henrique Barboza
The main feature of FORM2 affinity support is the separation of NUMA distances from ibm,associativity information. This allows for a more flexible and straightforward NUMA distance assignment without relying on complex associations between several levels of NUMA via ibm,associativity matches. Anoth

[PATCH v4 4/5] spapr: simplify spapr_numa_associativity_init params

2021-08-27 Thread Daniel Henrique Barboza
When spapr_numa_associativity_init() was introduced it was being called from spapr_machine_init(), where we have pointers to a SpaprMachineState and a MachineState. Having both being passed as params spared us from calling a macro to get the MachineState. Previous patches moved the function away f

[PATCH v4 2/5] spapr_numa.c: split FORM1 code into helpers

2021-08-27 Thread Daniel Henrique Barboza
The upcoming FORM2 NUMA affinity will support asymmetric NUMA topologies and doesn't need be concerned with all the legacy support for older pseries FORM1 guests. We're also not going to calculate associativity domains based on numa distance (via spapr_numa_define_associativity_domains) since the

[PATCH v4 0/5] pSeries FORM2 affinity support

2021-08-27 Thread Daniel Henrique Barboza
Hi, This new version contains changes suggested by Greg from his v3 review. Changes from v3: - patch 1: added due to a need of having a MachineClass attribute for tne yet to be added 6.2 machine type. Can be dropped if someone already did this in an yet to be merged tree. Can also be enhanced t

[PATCH v4 1/5] hw, spapr: add 6.2 compat pseries machine

2021-08-27 Thread Daniel Henrique Barboza
Signed-off-by: Daniel Henrique Barboza --- hw/core/machine.c | 3 +++ hw/ppc/spapr.c | 15 +-- include/hw/boards.h | 3 +++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/hw/core/machine.c b/hw/core/machine.c index 54e040587d..067f42b528 100644 --- a/hw/core/

Re: [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set

2021-08-27 Thread Mark Cave-Ayland
On 27/08/2021 09:54, Peter Maydell wrote: In a way I could see why you may wish to explicitly set the DMA memory region, but a quick look around suggests that devices where the memory region is unspecified (typically using a link property called "dma_mr") then the default is assumed to be get_

Re: [PATCH] RFC: build-sys: drop dtc submodule

2021-08-27 Thread Marc-André Lureau
Hi On Fri, Aug 27, 2021 at 1:03 PM Daniel P. Berrangé wrote: > On Wed, Aug 25, 2021 at 07:12:10PM +0100, Peter Maydell wrote: > > On Wed, 25 Aug 2021 at 14:28, Philippe Mathieu-Daudé > wrote: > > > > > > On 8/25/21 2:43 PM, marcandre.lur...@redhat.com wrote: > > > > From: Marc-André Lureau > >

Re: [PATCH] RFC: build-sys: drop dtc submodule

2021-08-27 Thread Daniel P . Berrangé
On Wed, Aug 25, 2021 at 07:12:10PM +0100, Peter Maydell wrote: > On Wed, 25 Aug 2021 at 14:28, Philippe Mathieu-Daudé wrote: > > > > On 8/25/21 2:43 PM, marcandre.lur...@redhat.com wrote: > > > From: Marc-André Lureau > > > > > > DTC is widely available, we could consider to stop bundling it. > >

Re: [PATCH v2 0/4] target/arm/cpu: Introduce sve_vq_supported bitmap

2021-08-27 Thread Peter Maydell
On Fri, 27 Aug 2021 at 09:30, ishii.shuuic...@fujitsu.com wrote: > > > Thank you, Andrew, for creating the patches. > And thank you all for your comments. > > I have applied the suggested v2 patch series by andrew locally, FYI, Andrew's patches are now upstream so you'll be able to base your next

Re: [PATCH v3 3/3] hw/usb/xhci: Always expect 'dma' link property to be set

2021-08-27 Thread Peter Maydell
On Thu, 26 Aug 2021 at 22:15, Mark Cave-Ayland wrote: > > On 26/08/2021 21:07, Philippe Mathieu-Daudé wrote: > > > Simplify by always passing a MemoryRegion property to the device. > > Doing so we can move the AddressSpace field to the device struct, > > removing need for heap allocation. > > > >

RE: [PATCH v2 0/4] target/arm/cpu: Introduce sve_vq_supported bitmap

2021-08-27 Thread ishii.shuuic...@fujitsu.com
Thank you, Andrew, for creating the patches. And thank you all for your comments. I have applied the suggested v2 patch series by andrew locally, and reviewed the next version of the a64fx patch series as follows. I would appreciate if you could comment on whether there are any problems with th

Re: [PATCH v3] tests/acceptance: allow control over tags during check-acceptance

2021-08-27 Thread Thomas Huth
On 13/07/2021 23.01, Willian Rampazzo wrote: Although it is possible to run a specific test using the avocado command-line, a user may want to use a specific tag while running the ``make check-acceptance`` during the development or debugging. This allows using the AVOCADO_TAGS environment variab

[PATCH v3 16/19] target/loongarch: Add disassembler

2021-08-27 Thread Song Gao
This patch add support for disassembling via option '-d in_asm'. Acked-by: Richard Henderson Signed-off-by: Song Gao --- MAINTAINERS |1 + disas/loongarch.c | 2511 +++ disas/meson.build |1 + include/disas/dis-asm.h |

[PATCH v3 19/19] target/loongarch: Add target build suport

2021-08-27 Thread Song Gao
This patch add build loongarch-linux-user target support. Signed-off-by: Song Gao --- target/loongarch/meson.build | 18 ++ target/meson.build | 1 + 2 files changed, 19 insertions(+) create mode 100644 target/loongarch/meson.build diff --git a/target/loongarch/meson

[PATCH v3 18/19] default-configs: Add loongarch linux-user support

2021-08-27 Thread Song Gao
Add loongarch64 linux-user default configs file. Reviewed-by: Richard Henderson Signed-off-by: Song Gao --- configs/targets/loongarch64-linux-user.mak | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 configs/targets/loongarch64-linux-user.mak diff --git a/configs/targets/loongarch6

[PATCH v3 15/19] target/loongarch: Add branch instruction translation

2021-08-27 Thread Song Gao
This patch implement branch instruction translation. This includes: - BEQ, BNE, BLT[U], BGE[U] - BEQZ, BNEZ - B - BL - JIRL - BCEQZ, BCNEZ Signed-off-by: Song Gao --- target/loongarch/insn_trans/trans_branch.c | 84 ++ target/loongarch/insns.decode | 30

Re: [PATCH v2 3/3] dump-guest-memory: Block live migration

2021-08-27 Thread Marc-André Lureau
Hi On Fri, Aug 27, 2021 at 11:44 AM Marc-André Lureau < marcandre.lur...@redhat.com> wrote: > Hi > > On Thu, Aug 26, 2021 at 10:58 PM Peter Xu wrote: > >> Both dump-guest-memory and live migration caches vm state at the >> beginning. >> Either of them entering the other one will cause race on th

Re: [PATCH v2 3/3] dump-guest-memory: Block live migration

2021-08-27 Thread Marc-André Lureau
Hi On Thu, Aug 26, 2021 at 10:58 PM Peter Xu wrote: > Both dump-guest-memory and live migration caches vm state at the beginning. > Either of them entering the other one will cause race on the vm state, and > even > more severe on that (please refer to the crash report in the bug link). > > Let'

[PATCH v3 14/19] target/loongarch: Add floating point load/store instruction translation

2021-08-27 Thread Song Gao
This patch implement floating point load/store instruction translation. This includes: - FLD.{S/D}, FST.{S/D} - FLDX.{S/D}, FSTX.{S/D} - FLD{GT/LE}.{S/D}, FST{GT/LE}.{S/D} Signed-off-by: Song Gao --- target/loongarch/insn_trans/trans_fmemory.c | 143 target/loongarc

[PATCH v3 09/19] target/loongarch: Add fixed point extra instruction translation

2021-08-27 Thread Song Gao
This patch implement fixed point extra instruction translation. This includes: - CRC[C].W.{B/H/W/D}.W - SYSCALL - BREAK - ASRT{LE/GT}.D - RDTIME{L/H}.W, RDTIME.D - CPUCFG Signed-off-by: Song Gao --- target/loongarch/helper.h | 4 ++ target/loongarch/insn_trans/trans_extra.c | 8

[PATCH v3 13/19] target/loongarch: Add floating point move instruction translation

2021-08-27 Thread Song Gao
This patch implement floationg point move instruction translation. This includes: - FMOV.{S/D} - FSEL - MOVGR2FR.{W/D}, MOVGR2FRH.W - MOVFR2GR.{S/D}, MOVFRH2GR.S - MOVGR2FCSR, MOVFCSR2GR - MOVFR2CF, MOVCF2FR - MOVGR2CF, MOVCF2GR Signed-off-by: Song Gao --- target/loongarch/fpu_helper.c

[PATCH v3 08/19] target/loongarch: Add fixed point atomic instruction translation

2021-08-27 Thread Song Gao
This patch implement fixed point atomic instruction translation. This includes: - LL.{W/D}, SC.{W/D} - AM{SWAP/ADD/AND/OR/XOR/MAX/MIN}[_DB].{W/D} - AM{MAX/MIN}[_DB].{WU/DU} Signed-off-by: Song Gao --- target/loongarch/insn_trans/trans_atomic.c | 132 + target/loongar

[PATCH v3 07/19] target/loongarch: Add fixed point load/store instruction translation

2021-08-27 Thread Song Gao
This patch implement fixed point load/store instruction translation. This includes: - LD.{B[U]/H[U]/W[U]/D}, ST.{B/H/W/D} - LDX.{B[U]/H[U]/W[U]/D}, STX.{B/H/W/D} - LDPTR.{W/D}, STPTR.{W/D} - PRELD - LD{GT/LE}.{B/H/W/D}, ST{GT/LE}.{B/H/W/D} - DBAR, IBAR Signed-off-by: Song Gao --- target/loongar

[PATCH v3 12/19] target/loongarch: Add floating point conversion instruction translation

2021-08-27 Thread Song Gao
This patch implement floating point conversion instruction translation. This includes: - FCVT.S.D, FCVT.D.S - FFINT.{S/D}.{W/L}, FTINT.{W/L}.{S/D} - FTINT{RM/RP/RZ/RNE}.{W/L}.{S/D} - FRINT.{S/D} Signed-off-by: Song Gao --- target/loongarch/fpu_helper.c| 393 +

[PATCH v3 05/19] target/loongarch: Add fixed point shift instruction translation

2021-08-27 Thread Song Gao
This patch implement fixed point shift instruction translation. This includes: - SLL.W, SRL.W, SRA.W, ROTR.W - SLLI.W, SRLI.W, SRAI.W, ROTRI.W - SLL.D, SRL.D, SRA.D, ROTR.D - SLLI.D, SRLI.D, SRAI.D, ROTRI.D Signed-off-by: Song Gao --- target/loongarch/insn_trans/trans_shift.c | 154

[PULL 14/18] ppc/xive: Export xive_presenter_notify()

2021-08-27 Thread David Gibson
From: Cédric Le Goater It's generic enough to be used from the XIVE2 router and avoid more duplication. Reviewed-by: Greg Kurz Signed-off-by: Cédric Le Goater Message-Id: <20210809134547.689560-9-...@kaod.org> Signed-off-by: David Gibson --- hw/intc/xive.c| 8 include/hw/ppc

[PATCH v3 06/19] target/loongarch: Add fixed point bit instruction translation

2021-08-27 Thread Song Gao
This patch implement fixed point bit instruction translation. This includes: - EXT.W.{B/H} - CL{O/Z}.{W/D}, CT{O/Z}.{W/D} - BYTEPICK.{W/D} - REVB.{2H/4H/2W/D} - REVH.{2W/D} - BITREV.{4B/8B}, BITREV.{W/D} - BSTRINS.{W/D}, BSTRPICK.{W/D} - MASKEQZ, MASKNEZ Signed-off-by: Song Gao --- target/loong

[PATCH v3 03/19] target/loongarch: Add main translation routines

2021-08-27 Thread Song Gao
This patch add main translation routines and basic functions for translation. Signed-off-by: Song Gao --- target/loongarch/helper.h| 9 +++ target/loongarch/op_helper.c | 22 ++ target/loongarch/translate.c | 171 +++ target/loongarch/translate.

[PATCH v3 00/19] Add LoongArch linux-user emulation support

2021-08-27 Thread Song Gao
Hi, This series only adds linux-user emulation support for LoongArch. So there is no introduction of system in docs/system directory, We'll add that in a future series. Changes for v3: * split trans.inc.c. * remove csr registers. * delete patchs 2, 4, 5. * follow Richard's code review co

[PATCH v3 01/19] target/loongarch: Add README

2021-08-27 Thread Song Gao
This patch give an introduction to the LoongArch target. Signed-off-by: Song Gao --- MAINTAINERS | 5 + target/loongarch/README | 5 + 2 files changed, 10 insertions(+) create mode 100644 target/loongarch/README diff --git a/MAINTAINERS b/MAINTAINERS index dffcb65..396f970

[PULL 17/18] include/qemu/int128.h: introduce bswap128s

2021-08-27 Thread David Gibson
From: Matheus Ferst Changes the current bswap128 implementation to use __builtin_bswap128 when available, adds a bswap128 implementation for !CONFIG_INT128 builds, and introduces bswap128s based on bswap128. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Signed-off-by: Matheus

[PULL 18/18] target/ppc: fix vector registers access in gdbstub for little-endian

2021-08-27 Thread David Gibson
From: Matheus Ferst As vector registers are stored in host endianness, we shouldn't swap its 64-bit elements in user mode. Add a 16-byte case in ppc_maybe_bswap_register to handle the reordering of elements in softmmu and remove avr_need_swap which is now unused. Reviewed-by: Peter Maydell Sign

[PATCH v3 17/19] LoongArch Linux User Emulation

2021-08-27 Thread Song Gao
Implementation of linux user emulation for LoongArch. Signed-off-by: Song Gao --- include/elf.h | 2 + linux-user/elfload.c | 58 ++ linux-user/loongarch64/cpu_loop.c | 108 ++ linux-user/loongarch64/signal.c|

[PULL 11/18] ppc/pnv: Distribute RAM among the chips

2021-08-27 Thread David Gibson
From: Cédric Le Goater But always give the first 1GB to chip 0 as skiboot requires it. Signed-off-by: Cédric Le Goater Message-Id: <20210809134547.689560-6-...@kaod.org> Reviewed-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/pnv.c | 33 + 1 file changed

[PATCH v3 11/19] target/loongarch: Add floating point comparison instruction translation

2021-08-27 Thread Song Gao
This patch implement floating point comparison instruction translation. This includes: - FCMP.cond.{S/D} Signed-off-by: Song Gao --- target/loongarch/fpu_helper.c| 110 target/loongarch/helper.h| 9 + target/loongarch/insn_trans/trans_fcmp.c | 279

[PATCH v3 10/19] target/loongarch: Add floating point arithmetic instruction translation

2021-08-27 Thread Song Gao
This patch implement floating point arithmetic instruction translation. This includes: - F{ADD/SUB/MUL/DIV}.{S/D} - F{MADD/MSUB/NMADD/NMSUB}.{S/D} - F{MAX/MIN}.{S/D} - F{MAXA/MINA}.{S/D} - F{ABS/NEG}.{S/D} - F{SQRT/RECIP/RSQRT}.{S/D} - F{SCALEB/LOGB/COPYSIGN}.{S/D} - FCLASS.{S/D} Signed-off-by: S

[PULL 07/18] ppc: Add a POWER10 DD2 CPU

2021-08-27 Thread David Gibson
From: Cédric Le Goater The POWER10 DD2 CPU adds an extra LPCR[HAIL] bit. DD1 doesn't have HAIL but since it does not break the modeling and that we don't plan to support DD1, modify the LPCR mask of all the POWER10 family. Setting the HAIL bit is a requirement to support the scv instruction on P

[PATCH v3 04/19] target/loongarch: Add fixed point arithmetic instruction translation

2021-08-27 Thread Song Gao
This patch implement fixed point arithemtic instruction translation. This includes: - ADD.{W/D}, SUB.{W/D} - ADDI.{W/D}, ADDU16ID - ALSL.{W[U]/D} - LU12I.W, LU32I.D LU52I.D - SLT[U], SLT[U]I - PCADDI, PCADDU12I, PCADDU18I, PCALAU12I - AND, OR, NOR, XOR, ANDN, ORN - MUL.{W/D}, MULH.{W[U]/D[U]} - MU

[PULL 16/18] target/ppc: fix vextu[bhw][lr]x helpers

2021-08-27 Thread David Gibson
From: Matheus Ferst These helpers shouldn't depend on the host endianness, as they only use shifts, ands, and int128_* methods. Fixes: 60caf2216bf0 ("target-ppc: add vextu[bhw][lr]x instructions") Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: David Gibson Signed-off-by: Matheus Ferst Messa

[PATCH v3 02/19] target/loongarch: Add core definition

2021-08-27 Thread Song Gao
This patch add target state header, target definitions and initialization routines. Signed-off-by: Song Gao --- target/loongarch/cpu-param.h | 19 +++ target/loongarch/cpu.c | 285 +++ target/loongarch/cpu.h | 145 ++ targ

[PULL 09/18] ppc/pnv: powerpc_excp: Do not discard HDECR exception when entering power-saving mode

2021-08-27 Thread David Gibson
From: Cédric Le Goater The Hypervisor Decrementer exception should not be generated while the CPU is in power-saving mode (see cpu_ppc_hdecr_excp()). However, discarding the exception before entering the power-saving mode is wrong since we would loose a previously generated HDEC. Fixes: 4b236b62

[PULL 15/18] include/qemu/int128.h: define struct Int128 according to the host endianness

2021-08-27 Thread David Gibson
From: Matheus Ferst Suggested-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Signed-off-by: Matheus Ferst Message-Id: <20210826141446.2488609-2-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson --- include/qemu/int128.h | 27 ---

[PULL 08/18] ppc/pnv: Change the POWER10 machine to support DD2 only

2021-08-27 Thread David Gibson
From: Cédric Le Goater There is no need to keep the DD1 chip model as it will never be publicly available. Signed-off-by: Cédric Le Goater Message-Id: <20210809134547.689560-3-...@kaod.org> Reviewed-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/pnv.c | 2 +- hw/ppc/pnv_core.c

[PULL 00/18] ppc-for-6.2 queue 20210827

2021-08-27 Thread David Gibson
pc-for-6.2-20210827 for you to fetch changes up to 0ff16b6b78831240c39cfaaeab1f22ae52c84b09: target/ppc: fix vector registers access in gdbstub for little-endian (2021-08-27 12:43:13 +1000) ppc patch queue 2021-08-27 First ppc pu

[PULL 10/18] ppc/pnv: Use a simple incrementing index for the chip-id

2021-08-27 Thread David Gibson
From: Cédric Le Goater When the QEMU PowerNV machine was introduced, multi chip support modeled a two socket system with dual chip modules as found on some P8 Tuleta systems (8286-42A). But this is hardly used and not relevant for QEMU. Use a simple index instead. With this change, we can now in

[PULL 13/18] ppc/xive: Export PQ get/set routines

2021-08-27 Thread David Gibson
From: Cédric Le Goater These will be shared with the XIVE2 router. Reviewed-by: Greg Kurz Signed-off-by: Cédric Le Goater Message-Id: <20210809134547.689560-8-...@kaod.org> Signed-off-by: David Gibson --- hw/intc/spapr_xive_kvm.c | 8 hw/intc/xive.c | 6 +++--- include/hw/

[PULL 03/18] target/ppc: divided mmu_helper.c in 2 files

2021-08-27 Thread David Gibson
From: "Lucas Mateus Castro (alqotel)" Divided mmu_helper.c in 2 files, functions inside #ifdef CONFIG_SOFTMMU stayed in mmu_helper.c, other functions moved to mmu_common.c. Updated meson.build to compile mmu_common.c and only compile mmu_helper.c when CONFIG_TCG is set. Moved function declaration

[PULL 01/18] xive: Remove extra '0x' prefix in trace events

2021-08-27 Thread David Gibson
From: Cédric Le Goater Cc: th...@redhat.com Fixes: 4e960974d4ee ("xive: Add trace events") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/519 Signed-off-by: Cédric Le Goater Message-Id: <20210809085227.288523-1-...@kaod.org> Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Laurent Vivi

[PULL 12/18] ppc/pnv: add a chip topology index for POWER10

2021-08-27 Thread David Gibson
From: Cédric Le Goater Signed-off-by: Cédric Le Goater Message-Id: <20210809134547.689560-7-...@kaod.org> Signed-off-by: David Gibson --- hw/ppc/pnv_xscom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/ppc/pnv_xscom.c b/hw/ppc/pnv_xscom.c index be7018e8ac..faa488e311 100644 --- a/h

[PULL 04/18] target/ppc: moved ppc_store_sdr1 to mmu_common.c

2021-08-27 Thread David Gibson
From: "Lucas Mateus Castro (alqotel)" ppc_store_sdr1 was at first in mmu_helper.c and was moved as part the patches to enable the disable-tcg option, now it's being moved back to a file that will be compiled with that option Signed-off-by: Lucas Mateus Castro (alqotel) Message-Id: <202107231756

[PULL 02/18] spapr_pci: Fix leak in spapr_phb_vfio_get_loc_code() with g_autofree

2021-08-27 Thread David Gibson
This uses g_autofree to simplify logic in spapr_phb_vfio_get_loc_code(), in the process fixing a leak in one of the paths. I'm told this fixes Coverity error CID 1460454 Reported-by: Peter Maydell Fixes: 16b0ea1d852 ("spapr_pci: populate ibm,loc-code") Reviewed-by: Philippe Mathieu-Daudé Signed

[PULL 05/18] target/ppc: moved store_40x_sler to helper_regs.c

2021-08-27 Thread David Gibson
From: "Lucas Mateus Castro (alqotel)" moved store_40x_sler from mmu_common.c to helper_regs.c as it is a function to store a value in a special purpose register, so moving it to a file focused in special register manipulation is more appropriate. Signed-off-by: Lucas Mateus Castro (alqotel) Mes

<    1   2