Re: [PATCH v4 1/2] accel/tcg: Add probe_access_range_flags interface

2022-03-02 Thread Alistair Francis
On Thu, Feb 17, 2022 at 1:49 AM Christoph Muellner wrote: > > The existing probe_access* functions do not allow to specify the > access size and a non-faulting behavior at the same time. > > This is resolved by adding a generalization of probe_access_flags() > that takes an additional size paramet

Re: propagating vmgenid outward and upward

2022-03-02 Thread Michael S. Tsirkin
On Tue, Mar 01, 2022 at 07:37:06PM +0100, Jason A. Donenfeld wrote: > Hi Michael, > > On Tue, Mar 1, 2022 at 6:17 PM Michael S. Tsirkin wrote: > > Hmm okay, so it's a performance optimization... some batching then? Do > > you really need to worry about every packet? Every 64 packets not > > enoug

[PATCH] aspeed: Fix a potential memory leak bug in write_boot_rom()

2022-03-02 Thread Cédric Le Goater
From: Wentao_Liang A memory chunk is allocated with g_new0() and assigned to the variable 'storage'. However, if the branch takes true, there will be only an error report but not a free operation for 'storage' before function returns. As a result, a memory leak bug is triggered. Use g_autofree t

Re: [PATCH v3] Check and report for incomplete 'global' option format

2022-03-02 Thread Rohit Kumar
Hi Markus, thanks for the review. Please let me know if this patch needs to be rebased on top of current master or does it looks good to merge. Thanks ! On 16/02/22 7:25 pm, Markus Armbruster wrote: Rohit Kumar writes: Qemu might crash when provided incomplete '-global' option. For example:

Re: [PATCH v4 2/3] hw/acpi: add indication for i8042 in IA-PC boot flags of the FADT table

2022-03-02 Thread Michael S. Tsirkin
On Tue, Mar 01, 2022 at 09:11:09PM +0200, Liav Albani wrote: > > On 3/1/22 13:19, Michael S. Tsirkin wrote: > > On Tue, Mar 01, 2022 at 09:43:54AM +0100, Igor Mammedov wrote: > > > On Mon, 28 Feb 2022 22:17:32 +0200 > > > Liav Albani wrote: > > > > > > > This can allow the guest OS to determine

Re: [PATCH v4 3/3] tests/acpi: i386: update FACP table differences

2022-03-02 Thread Michael S. Tsirkin
On Tue, Mar 01, 2022 at 09:13:04PM +0200, Liav Albani wrote: > > On 3/1/22 13:21, Michael S. Tsirkin wrote: > > On Tue, Mar 01, 2022 at 08:29:57AM +0530, Ani Sinha wrote: > > > > > > On Mon, 28 Feb 2022, Liav Albani wrote: > > > > > > > After changing the IAPC boot flags register to indicate sup

[PATCH 2/2] qga/commands-posix: Support NVMe disk type

2022-03-02 Thread zhenwei pi
Support NVMe disk type, test PCI passthrough case: ~#virsh qemu-agent-command buster '{"execute":"guest-get-disks"}' | jq ... { "name": "/dev/nvme0n1", "dependencies": [], "partition": false, "address": { "serial": "SAMSUNG MZQL23T8HCLS-00A07_S64HNE0N500076",

[PATCH 1/2] qapi: Introduce NVMe disk bus type

2022-03-02 Thread zhenwei pi
Assigning a NVMe disk by VFIO or emulating a NVMe controller by QEMU, a NVMe disk get exposed in guest side. Support NVMe disk bus type for QAPI. Signed-off-by: zhenwei pi --- qga/qapi-schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qga/qapi-schema.json b/qga/qa

[PATCH 0/2] QAPI: Support NVMe disk type

2022-03-02 Thread zhenwei pi
- Introduce NVMe disk type - Support NVMe disk type for posix Zhenwei Pi (2): qapi: Introduce NVMe disk bus type qga/commands-posix: Support NVMe disk type qga/commands-posix.c | 5 - qga/qapi-schema.json | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) -- 2.20.1

Re: [PATCH 03/10] macfb: increase number of registers saved in MacfbState

2022-03-02 Thread Mark Cave-Ayland
On 28/02/2022 22:25, Mark Cave-Ayland wrote: The MacOS toolbox ROM accesses a number of addresses between 0x0 and 0x200 during initialisation and resolution changes. Whilst the function of many of these registers is unknown, it is worth the minimal cost of saving these extra values as part of

Re: [PATCH 08/10] esp: convert ESPState pdma_cb from a function pointer to an integer

2022-03-02 Thread Mark Cave-Ayland
On 28/02/2022 23:10, Philippe Mathieu-Daudé wrote: On 28/2/22 23:25, Mark Cave-Ayland wrote: This prepares for the inclusion of the current PDMA callback in the migration stream since the callback is referenced by an integer instead of a function pointer. Signed-off-by: Mark Cave-Ayland ---  

Re: [PATCH 1/2] qapi: Introduce NVMe disk bus type

2022-03-02 Thread Markus Armbruster
zhenwei pi writes: > Assigning a NVMe disk by VFIO or emulating a NVMe controller by QEMU, > a NVMe disk get exposed in guest side. Support NVMe disk bus type for > QAPI. > > Signed-off-by: zhenwei pi > --- > qga/qapi-schema.json | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > dif

Re: [PATCH v3] Check and report for incomplete 'global' option format

2022-03-02 Thread Markus Armbruster
Rohit Kumar writes: > Hi Markus, thanks for the review. Please let me know if this patch > needs to be rebased on top of current master or does it looks good to > merge. > Thanks ! Paolo, can you take care of this one?

Re: [RFC PATCH 0/5] Removal of AioContext lock, bs->parents and ->children: proof of concept

2022-03-02 Thread Stefan Hajnoczi
On Tue, Mar 01, 2022 at 09:21:08AM -0500, Emanuele Giuseppe Esposito wrote: > This serie tries to provide a proof of concept and a clear explanation > on why we need to use drains (and more precisely subtree_drains) > to replace the aiocontext lock, especially to protect BlockDriverState > ->childr

Re: [PATCH v6 21/43] hw/cxl/device: Plumb real Label Storage Area (LSA) sizing

2022-03-02 Thread Alex Bennée
Jonathan Cameron writes: > From: Ben Widawsky > > This should introduce no change. Subsequent work will make use of this > new class member. > > Signed-off-by: Ben Widawsky > Signed-off-by: Jonathan Cameron > --- > hw/cxl/cxl-mailbox-utils.c | 3 +++ > hw/mem/cxl_type3.c | 24 +++

Re: [PATCH v6 22/43] hw/cxl/device: Implement get/set Label Storage Area (LSA)

2022-03-02 Thread Alex Bennée
Jonathan Cameron writes: > From: Ben Widawsky > > Implement get and set handlers for the Label Storage Area > used to hold data describing persistent memory configuration > so that it can be ensured it is seen in the same configuration > after reboot. > > Signed-off-by: Ben Widawsky > Signed-

Re: [PATCH V9 mlx5-next 11/15] vfio: Remove migration protocol v1 documentation

2022-03-02 Thread Cornelia Huck
On Thu, Feb 24 2022, Yishai Hadas wrote: > From: Jason Gunthorpe > > v1 was never implemented and is replaced by v2. > > The old uAPI documentation is removed from the header file. > > The old uAPI definitions are still kept in the header file to ease > transition for userspace copying these hea

Re: [PATCH 3/7] dump: Add more offset variables

2022-03-02 Thread Marc-André Lureau
On Tue, Mar 1, 2022 at 6:22 PM Janosch Frank wrote: > > Offset calculations are easy enough to get wrong. Let's add a few > variables to make moving around elf headers and data sections easier. > > Signed-off-by: Janosch Frank Reviewed-by: Marc-André Lureau > --- > dump/dump.c | 34

Re: [PATCH v6 23/43] hw/cxl/component: Implement host bridge MMIO (8.2.5, table 142)

2022-03-02 Thread Alex Bennée
Jonathan Cameron writes: > From: Ben Widawsky > > CXL host bridges themselves may have MMIO. Since host bridges don't have > a BAR they are treated as special for MMIO. This patch includes > i386/pc support. > Also hook up the device reset now that we have have the MMIO > space in which the r

Re: [PATCH 7/7] dump: Consolidate elf note function

2022-03-02 Thread Marc-André Lureau
Hi On Tue, Mar 1, 2022 at 6:22 PM Janosch Frank wrote: > > Just like with the other write functions let's move the 32/64 bit elf > handling to a function to improve readability. > > Signed-off-by: Janosch Frank > --- > dump/dump.c | 24 +--- > 1 file changed, 17 insertions(+

Re: [PATCH v3 7/7] isa: Inline and remove one-line isa_init_irq()

2022-03-02 Thread Gerd Hoffmann
On Tue, Mar 01, 2022 at 11:00:37PM +0100, Bernhard Beschow wrote: > isa_init_irq() has become a trivial one-line wrapper for isa_get_irq(). > It can therefore be removed. > > Signed-off-by: Bernhard Beschow > Reviewed-by: Stefan Berger (tpm_tis_isa) > Acked-by: Corey Minyard (isa_ipmi_bt, > isa

Re: [PULL 00/16] Bsd user preen 2022q1 patches

2022-03-02 Thread Peter Maydell
On Mon, 28 Feb 2022 at 18:11, Warner Losh wrote: > > The following changes since commit fa435db8ce1dff3b15e3f59a12f55f7b3a347b08: > > Merge remote-tracking branch > 'remotes/jsnow-gitlab/tags/python-pull-request' into staging (2022-02-24 > 12:48:14 +) > > are available in the Git repositor

Re: [PATCH RESEND 1/2] hw/vfio/pci-quirks: Resolve redundant property getters

2022-03-02 Thread Bernhard Beschow
Am 1. März 2022 22:52:19 UTC schrieb Bernhard Beschow : >The QOM API already provides getters for uint64 and uint32 values, so reuse >them. > >Signed-off-by: Bernhard Beschow >Reviewed-by: Alistair Francis Meh, I accidently swapped Alistair's Reviewed-by into this patch while dropping it from t

Re: [PATCH] clock-vmstate: Add missing END_OF_LIST

2022-03-02 Thread Dr. David Alan Gilbert
* Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > From: "Dr. David Alan Gilbert" > > Add the missing VMSTATE_END_OF_LIST to vmstate_muldiv Queued > > Fixes: 99abcbc7600 ("clock: Provide builtin multiplier/divider") > Signed-off-by: Dr. David Alan Gilbert > --- > hw/core/clock-vms

[RESEND] qga: Introduce NVMe disk bus type

2022-03-02 Thread zhenwei pi
Assigning a NVMe disk by VFIO or emulating a NVMe controller by QEMU, a NVMe disk get exposed in guest side. Support NVMe disk bus type and implement posix version. Test PCI passthrough case: ~#virsh qemu-agent-command buster '{"execute":"guest-get-disks"}' | jq ... { "name": "/dev/nvm

Re: [PATCH] virtiofsd: Let meson check for statx.stx_mnt_id

2022-03-02 Thread Dr. David Alan Gilbert
* Hanna Reitz (hre...@redhat.com) wrote: > In virtiofsd, we assume that the presence of the STATX_MNT_ID macro > implies existence of the statx.stx_mnt_id field. Unfortunately, that is > not necessarily the case: glibc has introduced the macro in its commit > 88a2cf6c4bab6e94a65e9c0db8813709372e91

[PULL 08/87] target/ppc: moved vector even and odd multiplication to decodetree

2022-03-02 Thread Cédric Le Goater
From: "Lucas Mateus Castro (alqotel)" Moved the instructions vmulesb, vmulosb, vmuleub, vmuloub, vmulesh, vmulosh, vmuleuh, vmulouh, vmulesw, vmulosw, muleuw and vmulouw from legacy to decodetree. Implemented the instructions vmulesd, vmulosd, vmuleud, vmuloud. Reviewed-by: Richard Henderson Si

Re: [RFC PATCH 0/5] Removal of AioContext lock, bs->parents and ->children: proof of concept

2022-03-02 Thread Vladimir Sementsov-Ogievskiy
01.03.2022 17:21, Emanuele Giuseppe Esposito wrote: This serie tries to provide a proof of concept and a clear explanation on why we need to use drains (and more precisely subtree_drains) to replace the aiocontext lock, especially to protect BlockDriverState ->children and ->parent lists. Just a

[PULL 04/87] target/ppc: finalize pre-EBB PMU logic

2022-03-02 Thread Cédric Le Goater
From: Daniel Henrique Barboza There are still PMU exclusive bits to handle in fire_PMC_interrupt() before implementing the EBB support. Let's finalize it now to avoid dealing with PMU and EBB logic at the same time in the next patches. fire_PMC_interrupt() will fire an Performance Monitor alert

[PULL 00/87] ppc queue

2022-03-02 Thread Cédric Le Goater
The following changes since commit 09591fcf6eb3157ab9c50a9fbbef5f8a567fb49f: Merge remote-tracking branch 'remotes/rth-gitlab/tags/pull-tcg-20220228' into staging (2022-03-01 15:55:31 +) are available in the Git repository at: https://github.com/legoater/qemu/ tags/pull-pp

[PULL 01/87] hw/ppc/pnv: Determine ns16550's IRQ number from QOM property

2022-03-02 Thread Cédric Le Goater
From: Bernhard Beschow Determine the IRQ number in the same way as for pnv_dt_ipmi_bt(). This resolves one usage of ISADevice::isairq[] which allows it to be removed eventually. Signed-off-by: Bernhard Beschow Reviewed-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Message-Id: <2022

[PULL 03/87] target/ppc: make power8-pmu.c CONFIG_TCG only

2022-03-02 Thread Cédric Le Goater
From: Daniel Henrique Barboza This is an exclusive TCG helper. Gating it with CONFIG_TCG and changing meson.build accordingly will prevent problems --disable-tcg and --disable-linux-user later on. We're also changing the uses of !kvm_enabled() to tcg_enabled() to avoid adding "defined(CONFIG_TCG

[PULL 19/87] target/ppc: Implement Vector Compare Quadword

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Implement the following PowerISA v3.1 instructions: vcmpsq: Vector Compare Signed Quadword vcmpuq: Vector Compare Unsigned Quadword Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-14-matheus.fe...@eldorado.org.br> Signed-off-b

[PULL 05/87] target/ppc: add PPC_INTERRUPT_EBB and EBB exceptions

2022-03-02 Thread Cédric Le Goater
From: Daniel Henrique Barboza PPC_INTERRUPT_EBB is a new interrupt that will be used to deliver EBB exceptions that had to be postponed because the thread wasn't in problem state at the time the event-based branch was supposed to occur. ISA 3.1 also defines two EBB exceptions: Performance Monito

[PULL 06/87] target/ppc: trigger PERFM EBBs from power8-pmu.c

2022-03-02 Thread Cédric Le Goater
From: Daniel Henrique Barboza This patch adds the EBB exception support that are triggered by Performance Monitor alerts. This happens when a Performance Monitor alert occurs and MMCR0_EBE, BESCR_PME and BESCR_GE are set. fire_PMC_interrupt() will execute the raise_ebb_perfm_exception() helper w

[PULL 07/87] target/ppc: Introduce TRANS*FLAGS macros

2022-03-02 Thread Cédric Le Goater
From: Luis Pires New macros that add FLAGS and FLAGS2 checking were added for both TRANS and TRANS64. Reviewed-by: Richard Henderson Signed-off-by: Luis Pires [ferst: - TRANS_FLAGS2 instead of TRANS_FLAGS_E - Use the new macros in load/store vector insns ] Signed-off-by: Matheus Ferst

[PULL 22/87] target/ppc: implement vclrrb

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-17-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 1 + target/ppc/translate/vmx-impl.c.inc | 32 +-

[PULL 02/87] ppc/pnv: fix default PHB4 QOM hierarchy

2022-03-02 Thread Cédric Le Goater
From: Daniel Henrique Barboza Commit 3f4c369ea63e ("ppc/pnv: make PECs create and realize PHB4s") changed phb4_pec code to create the default PHB4 objects in pnv_pec_default_phb_realize(). In this process the stacks[] PEC array was removed and each PHB4 object is tied together with its PEC via th

[PULL 12/87] target/ppc: Implement vmsumudm instruction

2022-03-02 Thread Cédric Le Goater
From: Víctor Colombo Based on [1] by Lijun Pan , which was never merged into master. [1]: https://lists.gnu.org/archive/html/qemu-ppc/2020-07/msg00419.html Reviewed-by: Richard Henderson Signed-off-by: Víctor Colombo Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-7-matheus.

[PULL 21/87] target/ppc: implement vclrlb

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-16-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 2 ++ target/ppc/translate/vmx-impl.c.inc | 40 +

[PULL 18/87] target/ppc: Implement Vector Compare Greater Than Quadword

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Implement the following PowerISA v3.1 instructions: vcmpgtsq: Vector Compare Greater Than Signed Quadword vcmpgtuq: Vector Compare Greater Than Unsigned Quadword Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-13-matheus.fe...

[PULL 10/87] target/ppc: vmulh* instructions without helpers

2022-03-02 Thread Cédric Le Goater
From: "Lucas Mateus Castro (alqotel)" Changed vmulhuw, vmulhud, vmulhsw, vmulhsd to not use helpers. Signed-off-by: Lucas Mateus Castro (alqotel) Signed-off-by: Matheus Ferst Reviewed-by: Richard Henderson Message-Id: <20220225210936.1749575-5-matheus.fe...@eldorado.org.br> Signed-off-by: Céd

[PULL 20/87] target/ppc: implement vstri[bh][lr]

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-15-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 4 target/ppc/insn32.decode| 10 ++ target/

[PULL 14/87] target/ppc: Implement vextsd2q

2022-03-02 Thread Cédric Le Goater
From: Lucas Coutinho Reviewed-by: Richard Henderson Signed-off-by: Lucas Coutinho Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-9-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 1 + target/ppc/translate/vmx-impl.c.

[PULL 13/87] target/ppc: Move vexts[bhw]2[wd] to decodetree

2022-03-02 Thread Cédric Le Goater
From: Lucas Coutinho Move the following instructions to decodetree: vextsb2w: Vector Extend Sign Byte To Word vextsh2w: Vector Extend Sign Halfword To Word vextsb2d: Vector Extend Sign Byte To Doubleword vextsh2d: Vector Extend Sign Halfword To Doubleword vextsw2d: Vector Extend Sign Word To Doub

[PULL 23/87] target/ppc: implement vcntmb[bhwd]

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-18-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 8 target/ppc/translate/vmx-impl.c.inc | 32 +++

[PULL 15/87] target/ppc: Move Vector Compare Equal/Not Equal/Greater Than to decodetree

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-10-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 30 -- target/ppc/insn32.decode| 24 tar

[PULL 28/87] target/ppc: implement vsraq

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-23-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 1 + target/ppc/translate/vmx-impl.c.inc | 23 +-

[PULL 17/87] target/ppc: Implement Vector Compare Equal Quadword

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Implement the following PowerISA v3.1 instructions: vcmpequq: Vector Compare Equal Quadword Suggested-by: Richard Henderson Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-12-matheus.fe...@eldorado.org.br> Signed-off-by: Cédr

[PULL 24/87] target/ppc: implement vgnb

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Suggested-by: Richard Henderson Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-19-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 5 ++ target/ppc/translate/vmx-imp

[PULL 09/87] target/ppc: Moved vector multiply high and low to decodetree

2022-03-02 Thread Cédric Le Goater
From: "Lucas Mateus Castro (alqotel)" Moved instructions vmulld, vmulhuw, vmulhsw, vmulhud and vmulhsd to decodetree Reviewed-by: Richard Henderson Signed-off-by: Lucas Mateus Castro (alqotel) Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-4-matheus.fe...@eldorado.org.br> Si

[PULL 16/87] target/ppc: Move Vector Compare Not Equal or Zero to decodetree

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-11-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 9 ++-- target/ppc/insn32.decode| 4 ++ target/ppc/int_

[PULL 32/87] target/ppc: implement vrlqnm

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Signed-off-by: Matheus Ferst Reviewed-by: Richard Henderson Message-Id: <20220225210936.1749575-27-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 1 + target/ppc/translate/vmx-impl.c.inc | 81 ++

Re: [PATCH v4 00/18] target/arm: Implement LVA, LPA, LPA2 features

2022-03-02 Thread Peter Maydell
On Tue, 1 Mar 2022 at 22:00, Richard Henderson wrote: > > Changes for v4: > * Add cpu property for lpa2. > * Disable that property for -machine virt-6.2 and previous. > > Changes for v3: > * Update emulation.rst. > * Split out separate update to ID_AA64MMFR0. > * Hack for avocado. > I'v

[PULL 26/87] target/ppc: implement vslq

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-21-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 1 + target/ppc/translate/vmx-impl.c.inc | 40 ++

[PULL 30/87] target/ppc: move vrl[bhwd]nm/vrl[bhwd]mi to decodetree

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Signed-off-by: Matheus Ferst Reviewed-by: Richard Henderson Message-Id: <20220225210936.1749575-25-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 8 +- target/ppc/insn32.decode| 6 ++ target/ppc/int_

[PULL 31/87] target/ppc: implement vrlq

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-26-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 1 + target/ppc/translate/vmx-impl.c.inc | 48 ++

[PULL 27/87] target/ppc: implement vsrq

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-22-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 1 + target/ppc/translate/vmx-impl.c.inc | 40 +-

[PULL 39/87] tcg/tcg-op-gvec.c: Introduce tcg_gen_gvec_4i

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Following the implementation of tcg_gen_gvec_3i, add a four-vector and immediate operand expansion method. Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-34-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater ---

[PULL 29/87] target/ppc: move vrl[bhwd] to decodetree

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-24-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 5 + target/ppc/translate/vmx-impl.c.inc | 13 + tar

[PULL 33/87] target/ppc: implement vrlqmi

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Signed-off-by: Matheus Ferst Reviewed-by: Richard Henderson Message-Id: <20220225210936.1749575-28-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 1 + target/ppc/translate/vmx-impl.c.inc | 21 +

[PULL 34/87] target/ppc: Move vsel and vperm/vpermr to decodetree

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-29-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 5 +-- target/ppc/insn32.decode| 5 +++ target/ppc/int_

[PULL 40/87] target/ppc: Implement xxeval

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Signed-off-by: Matheus Ferst Reviewed-by: Richard Henderson Message-Id: <20220225210936.1749575-35-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 1 + target/ppc/insn64.decode| 8 + target/ppc/int_he

[PULL 25/87] target/ppc: move vs[lr][a][bhwd] to decodetree

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-20-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 17 target/ppc/translate/vmx-impl.c.inc | 41 +++

[PULL 38/87] target/ppc: Implement xxpermx instruction

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-33-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 1 + target/ppc/insn64.decode| 8 target/ppc/i

[PULL 46/87] target/ppc: Refactor VSX_SCALAR_CMP_DP

2022-03-02 Thread Cédric Le Goater
From: Víctor Colombo Refactor VSX_SCALAR_CMP_DP, changing its name to VSX_SCALAR_CMP and prepare the helper to be used for quadword comparisons. Suggested-by: Richard Henderson Signed-off-by: Víctor Colombo Signed-off-by: Matheus Ferst Reviewed-by: Richard Henderson Message-Id: <202202252109

[PULL 36/87] target/ppc: move xxperm/xxpermr to decodetree

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-31-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 2 -- target/ppc/insn32.decode| 5 target/ppc/fpu_

[PULL 37/87] target/ppc: Move xxpermdi to decodetree

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-32-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 4 ++ target/ppc/translate/vsx-impl.c.inc | 71 +

[PULL 52/87] target/ppc: Implement xvcvbf16spn and xvcvspbf16 instructions

2022-03-02 Thread Cédric Le Goater
From: Víctor Colombo Signed-off-by: Víctor Colombo Signed-off-by: Matheus Ferst Reviewed-by: Richard Henderson Message-Id: <20220225210936.1749575-47-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 1 + target/ppc/insn32.decode

[PULL 47/87] target/ppc: Implement xscmp{eq,ge,gt}qp

2022-03-02 Thread Cédric Le Goater
From: Víctor Colombo Reviewed-by: Richard Henderson Signed-off-by: Víctor Colombo Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-42-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 3 +++ target/ppc/insn32.decode

[PULL 42/87] target/ppc: move xs[n]madd[am][ds]p/xs[n]msub[am][ds]p to decodetree

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-37-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 16 - target/ppc/insn32.decode| 22

[PULL 44/87] target/ppc: Implement xvtlsbb instruction

2022-03-02 Thread Cédric Le Goater
From: Víctor Colombo Signed-off-by: Víctor Colombo Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-39-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 7 + target/ppc/translate/vsx-impl.c.inc | 40 ++

[PULL 55/87] target/ppc: implement lxvr[bhwd]/stxvr[bhwd]x

2022-03-02 Thread Cédric Le Goater
From: Lucas Coutinho Implement the following PowerISA v3.1 instuctions: lxvrbx: Load VSX Vector Rightmost Byte Indexed X-form lxvrhx: Load VSX Vector Rightmost Halfword Indexed X-form lxvrwx: Load VSX Vector Rightmost Word Indexed X-form lxvrdx: Load VSX Vector Rightmost Doubleword Indexed X-form

[PULL 41/87] target/ppc: Implement xxgenpcv[bhwd]m instruction

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Signed-off-by: Matheus Ferst Reviewed-by: Richard Henderson Message-Id: <20220225210936.1749575-36-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 16 + target/ppc/insn32.decode| 10 target/ppc/i

[PULL 50/87] target/ppc: Refactor VSX_MAX_MINC helper

2022-03-02 Thread Cédric Le Goater
From: Víctor Colombo Refactor xs{max,min}cdp VSX_MAX_MINC helper to prepare for xs{max,min}cqp implementation. Signed-off-by: Víctor Colombo Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-45-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/fpu_h

[PULL 57/87] ppc/xive2: Introduce a presenter matching routine

2022-03-02 Thread Cédric Le Goater
The VP space is larger in XIVE2 (P10), 24 bits instead of 19bits on XIVE (P9), and the CAM line can use a 7bits or 8bits thread id. For now, we only use 7bits thread ids, same as P9, but because of the change of the size of the VP space, the CAM matching routine is different between P9 and P10. It

[PULL 48/87] target/ppc: Move xscmp{eq,ge,gt}dp to decodetree

2022-03-02 Thread Cédric Le Goater
From: Víctor Colombo Reviewed-by: Richard Henderson Signed-off-by: Víctor Colombo Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-43-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 6 +++--- target/ppc/insn32.decode

[PULL 45/87] target/ppc: Remove xscmpnedp instruction

2022-03-02 Thread Cédric Le Goater
From: Víctor Colombo xscmpnedp was added in ISA v3.0 but removed in v3.0B. This patch removes this instruction as it was not in the final version of v3.0. Signed-off-by: Víctor Colombo Acked-by: Greg Kurz Reviewed-by: Cédric Le Goater Reviewed-by: Richard Henderson Signed-off-by: Matheus Fer

[PULL 35/87] target/ppc: Move xxsel to decodetree

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-30-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/insn32.decode| 6 target/ppc/insn64.decode| 24 t

[PULL 63/87] ppc/psi: Add support for StoreEOI and 64k ESB pages (POWER10)

2022-03-02 Thread Cédric Le Goater
POWER10 adds support for StoreEOI operation and 64K ESB pages on PSIHB to be consistent with the other interrupt sources of the system. Reviewed-by: Daniel Henrique Barboza Signed-off-by: Cédric Le Goater --- hw/ppc/pnv.c | 6 ++ hw/ppc/pnv_psi.c | 30 -- 2

[PULL 53/87] target/ppc: implement plxsd/pstxsd

2022-03-02 Thread Cédric Le Goater
From: Leandro Lupori Implement instructions plxsd/pstxsd and port lxsd/stxsd to decode tree. Reviewed-by: Richard Henderson Signed-off-by: Leandro Lupori Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-48-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- ta

[PULL 69/87] ppc/pnv: add XIVE Gen2 TIMA support

2022-03-02 Thread Cédric Le Goater
Only the CAM line updates done by the hypervisor are specific to POWER10. Instead of duplicating the TM ops table, we handle these commands locally under the PowerNV XIVE2 model. Reviewed-by: Daniel Henrique Barboza Signed-off-by: Cédric Le Goater --- include/hw/ppc/xive2.h | 8 hw/intc/p

[PULL 49/87] target/ppc: Move xs{max, min}[cj]dp to use do_helper_XX3

2022-03-02 Thread Cédric Le Goater
From: Víctor Colombo Also, fixes these instructions not being capitalized. Reviewed-by: Richard Henderson Signed-off-by: Víctor Colombo Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-44-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h

[PULL 43/87] target/ppc: implement xs[n]maddqp[o]/xs[n]msubqp[o]

2022-03-02 Thread Cédric Le Goater
From: Matheus Ferst Implement the following PowerISA v3.0 instuctions: xsmaddqp[o]: VSX Scalar Multiply-Add Quad-Precision [using round to Odd] xsmsubqp[o]: VSX Scalar Multiply-Subtract Quad-Precision [using round to Odd] xsnmaddqp[o]: VSX Scalar Negative Multiply-Add Quad-Precision

[PULL 67/87] ppc/pnv: Add support for PHB5 "Address-based trigger" mode

2022-03-02 Thread Cédric Le Goater
When the Address-Based Interrupt Trigger mode is activated, the PHB maps the interrupt source number into the interrupt command address. The PHB directly triggers the IC ESB page of the interrupt number and not the notify page of the IC anymore. Reviewed-by: Daniel Henrique Barboza Signed-off-by:

[PULL 65/87] ppc/xive: Add support for PQ state bits offload

2022-03-02 Thread Cédric Le Goater
The trigger message coming from a HW source contains a special bit informing the XIVE interrupt controller that the PQ bits have been checked at the source or not. Depending on the value, the IC can perform the check and the state transition locally using its own PQ state bits. The following chang

[PULL 56/87] ppc/xive2: Introduce a XIVE2 core framework

2022-03-02 Thread Cédric Le Goater
The XIVE2 interrupt controller of the POWER10 processor as the same logic as on POWER9 but its SW interface has been largely reworked. The interrupt controller has a new register interface, different BARs, extra VSDs. These will be described when we add the device model for the baremetal machine.

Re: [PATCH 2/2] iotests/303: Check for zstd support

2022-03-02 Thread Hanna Reitz
On 22.02.22 16:55, Vladimir Sementsov-Ogievskiy wrote: 21.02.2022 20:08, Hanna Reitz wrote: 303 runs two test cases, one of which requires zstd support. Unfortunately, given that this is not a unittest-style test, we cannot easily skip that single case, and instead can only skip the whole test.

[PULL 73/87] pnv/xive2: Add support for 8bits thread id

2022-03-02 Thread Cédric Le Goater
Reviewed-by: Daniel Henrique Barboza Signed-off-by: Cédric Le Goater --- include/hw/ppc/xive2.h | 1 + hw/intc/pnv_xive2.c| 5 + hw/intc/xive2.c| 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/hw/ppc/xive2.h b/include/hw/ppc/xive2.h index 296a2d94949

[PULL 58/87] ppc/pnv: Add a XIVE2 controller to the POWER10 chip

2022-03-02 Thread Cédric Le Goater
The XIVE2 interrupt controller of the POWER10 processor follows the same logic than on POWER9 but the HW interface has been largely reviewed. It has a new register interface, different BARs, extra VSDs, new layout for the XIVE2 structures, and a set of new features which are described below. This

[PULL 71/87] xive2: Add a get_config() handler for the router configuration

2022-03-02 Thread Cédric Le Goater
Add GEN1 config even if we don't use it yet in the core framework. Reviewed-by: Daniel Henrique Barboza Signed-off-by: Cédric Le Goater --- include/hw/ppc/xive2.h | 8 hw/intc/pnv_xive2.c| 13 + hw/intc/xive2.c| 7 +++ 3 files changed, 28 insertions(+) di

[PULL 51/87] target/ppc: Implement xs{max,min}cqp

2022-03-02 Thread Cédric Le Goater
From: Víctor Colombo Signed-off-by: Víctor Colombo Signed-off-by: Matheus Ferst Message-Id: <20220225210936.1749575-46-matheus.fe...@eldorado.org.br> Signed-off-by: Cédric Le Goater --- target/ppc/helper.h | 2 ++ target/ppc/insn32.decode| 3 +++ target/ppc/fpu_hel

[PULL 62/87] ppc/pnv: Add a HOMER model to POWER10

2022-03-02 Thread Cédric Le Goater
Reviewed-by: David Gibson Signed-off-by: Cédric Le Goater --- include/hw/ppc/pnv.h | 10 ++ include/hw/ppc/pnv_homer.h | 3 ++ include/hw/ppc/pnv_xscom.h | 3 ++ hw/ppc/pnv.c | 20 hw/ppc/pnv_homer.c | 64 ++ 5 fi

[PULL 76/87] hw/ppc/spapr_caps.c: use g_autofree in spapr_cap_set_string()

2022-03-02 Thread Cédric Le Goater
From: Daniel Henrique Barboza And get rid of the 'out' label since it's now unused. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220228175004.8862-4-danielhb...@gmail.com> [ clg: Fixed typo in commit log ] Signed-off-by: Cédric Le Goater --- hw/pp

[PULL 86/87] hw/ppc/spapr_rtas.c: use g_autofree in rtas_ibm_get_system_parameter()

2022-03-02 Thread Cédric Le Goater
From: Daniel Henrique Barboza Signed-off-by: Daniel Henrique Barboza Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20220228175004.8862-14-danielhb...@gmail.com> Signed-off-by: Cédric Le Goater --- hw/ppc/spapr_rtas.c | 25 - 1 file changed, 12 insertions(+), 13 dele

[PULL 70/87] pnv/xive2: Add support XIVE2 P9-compat mode (or Gen1)

2022-03-02 Thread Cédric Le Goater
The thread interrupt management area (TIMA) is a set of pages mapped in the Hypervisor and in the guest OS address space giving access to the interrupt thread context registers for interrupt management, ACK, EOI, CPPR, etc. XIVE2 changes slightly the TIMA layout with extra bits for the new feature

[PULL 68/87] pnv/xive2: Introduce new capability bits

2022-03-02 Thread Cédric Le Goater
These bits control the availability of interrupt features : StoreEOI, PHB PQ_disable, PHB Address-Based Trigger and the overall XIVE exploitation mode. These bits can be set at early boot time of the system to activate/deactivate a feature for testing purposes. The default value should be '1'. The

[PULL 79/87] hw/ppc/spapr_drc.c: use g_auto in spapr_dt_drc()

2022-03-02 Thread Cédric Le Goater
From: Daniel Henrique Barboza Use g_autoptr() with GArray* and GString* pointers to avoid calling g_free() and the need for the 'out' label. 'drc_name' can also be g_autofreed to avoid a g_free() call at the end of the while() loop. Signed-off-by: Daniel Henrique Barboza Reviewed-by: Philippe

[PULL 59/87] ppc/pnv: Add a OCC model for POWER10

2022-03-02 Thread Cédric Le Goater
Our OCC model is very mininal and POWER10 can simply reuse the OCC model we introduced for POWER9. Reviewed-by: David Gibson Signed-off-by: Cédric Le Goater --- include/hw/ppc/pnv.h | 1 + include/hw/ppc/pnv_occ.h | 2 ++ include/hw/ppc/pnv_xscom.h | 3 +++ hw/ppc/pnv.c

[PULL 66/87] ppc/pnv: Add support for PQ offload on PHB5

2022-03-02 Thread Cédric Le Goater
The PQ_disable configuration bit disables the check done on the PQ state bits when processing new MSI interrupts. When bit 9 is enabled, the PHB forwards any MSI trigger to the XIVE interrupt controller without checking the PQ state bits. The XIVE IC knows from the trigger message that the PQ bits

  1   2   3   4   5   >