[Qemu-devel] [PULL 4/8] accel: Remove unused AccelClass::available field

2019-05-02 Thread Thomas Huth
From: Eduardo Habkost The field is not used anymore, we can remove it. Signed-off-by: Eduardo Habkost Message-Id: <20190422210448.2488-4-ehabk...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé [on mingw64] Reviewed-by: Thomas Huth Signed-off-by: Thomas

Re: [Qemu-devel] [PATCH] linux-user: avoid treading on gprof's SIGPROF signals

2019-05-02 Thread Laurent Vivier
On 02/05/2019 16:58, Alex Bennée wrote: > The guest tends to get confused when it receives signals it doesn't > know about. Given the gprof magic has also set up it's own handler we > would do well to avoid stomping on it as well. > > Signed-off-by: Alex Bennée > --- > linux-user/signal.c | 5

[Qemu-devel] [PULL 6/8] configure: Remove old *-config-devices.mak.d files when running configure

2019-05-02 Thread Thomas Huth
When running "make" in a build directory from the pre-Kconfig merge time, the build process currently fails with: make: *** No rule to make target `.../default-configs/pci.mak', needed by `aarch64-softmmu/config-devices.mak'. Stop. To make sure that this problem at least goes away when the

[Qemu-devel] [PULL 1/8] gitlab-ci.yml: Test the TCG interpreter in a CI pipeline

2019-05-02 Thread Thomas Huth
So far we do not have any test coverage for TCI (the TCG interpreter) yet. Thus let's add a CI pipeline that runs at least some basic TCG tests with a TCI build, to make sure that there are no further regressions. Message-Id: <20190410123550.2362-1-th...@redhat.com> Signed-off-by: Thomas Huth

[Qemu-devel] [PULL 3/8] qtest: Don't compile qtest accel on non-POSIX systems

2019-05-02 Thread Thomas Huth
From: Eduardo Habkost qtest_available() will always return 0 on non-POSIX systems. It's simpler to just not compile the accelerator code on those systems instead of relying on the AccelClass::available function. Signed-off-by: Eduardo Habkost Message-Id:

[Qemu-devel] [PULL 7/8] configure: Relax check for libseccomp

2019-05-02 Thread Thomas Huth
From: Helge Deller All major distributions do support libseccomp version >= 2.3.0, so there is no need to special-case on various architectures any longer. Signed-off-by: Helge Deller Message-Id: <20190404183923.ga22...@ls3530.dellerweb.de> Reviewed-by: Thomas Huth Acked-by: Eduardo Otubo

[Qemu-devel] [PULL 5/8] configure: Add -Wno-typedef-redefinition to CFLAGS (for Clang)

2019-05-02 Thread Thomas Huth
Without the -Wno-typedef-redefinition option, clang complains if a typedef gets redefined in gnu99 mode (since this is officially a C11 feature). This used to also happen with older versions of GCC, but since we've bumped our minimum GCC version to 4.8, all versions of GCC that we support do not

Re: [Qemu-devel] [PATCH v4 3/8] hw/acpi: Add ACPI Generic Event Device Support

2019-05-02 Thread Igor Mammedov
On Tue, 9 Apr 2019 11:29:30 +0100 Shameer Kolothum wrote: > From: Samuel Ortiz > > The ACPI Generic Event Device (GED) is a hardware-reduced specific > device[ACPI v6.1 Section 5.6.9] that handles all platform events, > including the hotplug ones.This patch generates the AML code that >

[Qemu-devel] [PULL 0/8] qtest and misc patches

2019-05-02 Thread Thomas Huth
Hi Peter, the following changes since commit 8482ff2eb3bb95020eb2f370a9b3ea26511e41df: Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging (2019-05-02 12:04:51 +0100) are available in the Git repository at: https://gitlab.com/huth/qemu.git

Re: [Qemu-devel] [PATCH] s390/ipl: cast to SCSIDevice directly

2019-05-02 Thread Philippe Mathieu-Daudé
On 5/2/19 5:55 PM, Cornelia Huck wrote: > Coverity notes that the result of object_dynamic_cast() to > SCSIDevice is not checked in s390_gen_initial_iplp(); as > we know that we always have a SCSIDevice in that branch, > we can instead cast via SCSI_DEVICE directly. > > Coverity: CID 1401098 >

Re: [Qemu-devel] [Qemu-arm] [PATCH v2 23/29] target/arm: Use tcg_gen_abs_i64 and tcg_gen_gvec_abs

2019-05-02 Thread Alex Bennée
Richard Henderson writes: > Cc: qemu-...@nongnu.org > Cc: Peter Maydell > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée > --- > target/arm/helper.h| 2 -- > target/arm/neon_helper.c | 5 - > target/arm/translate-a64.c | 41

Re: [Qemu-devel] [PATCH] s390/ipl: cast to SCSIDevice directly

2019-05-02 Thread Thomas Huth
On 02/05/2019 17.55, Cornelia Huck wrote: > Coverity notes that the result of object_dynamic_cast() to > SCSIDevice is not checked in s390_gen_initial_iplp(); as > we know that we always have a SCSIDevice in that branch, > we can instead cast via SCSI_DEVICE directly. > > Coverity: CID 1401098 >

[Qemu-devel] [PATCH] s390/ipl: cast to SCSIDevice directly

2019-05-02 Thread Cornelia Huck
Coverity notes that the result of object_dynamic_cast() to SCSIDevice is not checked in s390_gen_initial_iplp(); as we know that we always have a SCSIDevice in that branch, we can instead cast via SCSI_DEVICE directly. Coverity: CID 1401098 Fixes: 5d8668f4 ("s390 vfio-ccw: Add bootindex

Re: [Qemu-devel] [PATCH v2 22/29] tcg/aarch64: Support vector absolute value

2019-05-02 Thread Alex Bennée
Richard Henderson writes: > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée > --- > tcg/aarch64/tcg-target.h | 2 +- > tcg/aarch64/tcg-target.inc.c | 6 ++ > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/tcg/aarch64/tcg-target.h

Re: [Qemu-devel] [PULL 01/19] s390 vfio-ccw: Add bootindex property and IPLB data

2019-05-02 Thread Cornelia Huck
On Tue, 30 Apr 2019 17:30:09 -0300 Eduardo Habkost wrote: > On Tue, Apr 30, 2019 at 05:54:49PM +0100, Peter Maydell wrote: > > On Thu, 25 Apr 2019 at 14:21, Cornelia Huck wrote: > [...] > > > -SCSIDevice *sd = (SCSIDevice *) > > > object_dynamic_cast(OBJECT(dev_st), > > > -

Re: [Qemu-devel] [PATCH v2 3/5] sockets: avoid string truncation warnings when copying UNIX path

2019-05-02 Thread Daniel P . Berrangé
On Thu, May 02, 2019 at 05:45:30PM +0200, Laurent Vivier wrote: > Dan, > > do you want I take this through the trivial branch queue or do you add > it into the Sockets branch queue? I'm fine with you sending it via trivial queue since there's nothing else pending for the sockets code. Regards,

Re: [Qemu-devel] [PATCH v2 20/29] tcg: Add support for vector absolute value

2019-05-02 Thread Alex Bennée
Richard Henderson writes: > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée > --- > accel/tcg/tcg-runtime.h | 5 +++ > tcg/aarch64/tcg-target.h | 1 + > tcg/i386/tcg-target.h| 1 + > tcg/tcg-op-gvec.h| 2 ++ > tcg/tcg-opc.h| 1 +

Re: [Qemu-devel] [PATCH v2 17/29] tcg: Add gvec expanders for vector shift by scalar

2019-05-02 Thread Richard Henderson
On 5/2/19 7:37 AM, Alex Bennée wrote: >> +void tcg_gen_gvec_shls(unsigned vece, uint32_t dofs, uint32_t aofs, >> + TCGv_i32 shift, uint32_t oprsz, uint32_t maxsz) >> +{ >> +static const TCGOpcode scalar_list[] = { INDEX_op_shls_vec, 0 }; >> +static const TCGOpcode

Re: [Qemu-devel] [PATCH v2 3/5] sockets: avoid string truncation warnings when copying UNIX path

2019-05-02 Thread Laurent Vivier
Dan, do you want I take this through the trivial branch queue or do you add it into the Sockets branch queue? Thanks, Laurent On 12/04/2019 14:16, Daniel P. Berrangé wrote: > In file included from /usr/include/string.h:494, > from include/qemu/osdep.h:101, >

Re: [Qemu-devel] [PATCH v2 13/29] tcg: Add INDEX_op_dup_mem_vec

2019-05-02 Thread Richard Henderson
On 5/2/19 6:30 AM, Alex Bennée wrote: >> +static void do_dup_store(TCGType type, uint32_t dofs, uint32_t oprsz, >> + uint32_t maxsz, TCGv_vec t_vec) >> +{ >> +uint32_t i = 0; >> + >> +switch (type) { >> +case TCG_TYPE_V256: >> +/* >> + * Recall

Re: [Qemu-devel] [PATCH v2 12/29] tcg/aarch64: Implement tcg_out_dupm_vec

2019-05-02 Thread Richard Henderson
On 5/2/19 6:26 AM, Alex Bennée wrote: >> +/* AdvSIMD load/store single structure. */ >> +I3303_LD1R = 0x0d40c000, >> + > > I can't recall where these magic numbers come from again? The (moving) > section numbers of the ARM ARM? They come from the A_a version of the ARM ARM. The

Re: [Qemu-devel] [PATCH v2 09/29] tcg: Manually expand INDEX_op_dup_vec

2019-05-02 Thread Richard Henderson
On 5/2/19 2:42 AM, Alex Bennée wrote: >> +static void tcg_reg_alloc_dup(TCGContext *s, const TCGOp *op) >> +{ >> +const TCGLifeData arg_life = op->life; >> +TCGRegSet dup_out_regs, dup_in_regs; >> +TCGTemp *its, *ots; >> +TCGType itype, vtype; >> +unsigned vece; >> +bool

Re: [Qemu-devel] [PATCH v2 19/29] tcg: Add support for integer absolute value

2019-05-02 Thread Alex Bennée
Richard Henderson writes: > Remove a function of the same name from target/arm/. > Use a branchless implementation of abs gleaned from gcc. > > Reviewed-by: David Hildenbrand > Reviewed-by: Philippe Mathieu-Daudé > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée > --- >

Re: [Qemu-devel] [PATCH 0/2] configure: Fix make check-tcg for ppc64le

2019-05-02 Thread Alex Bennée
Richard Henderson writes: > On 5/2/19 3:47 AM, Alex Bennée wrote: >>> This needs a different set of cleanups. ;-) >> >> I guess this is another use case for softmmu support in linux-user where >> HOST_PAGE != TARGET_PAGE? > > Well, yes, but I was thinking more short-term, wherein we do not

Re: [Qemu-devel] [PATCH v4 3/8] hw/acpi: Add ACPI Generic Event Device Support

2019-05-02 Thread Igor Mammedov
On Thu, 2 May 2019 09:22:35 +0200 Ard Biesheuvel wrote: > On Wed, 1 May 2019 at 13:25, Shameerali Kolothum Thodi > wrote: > > > > Hi Ard, > > > > > -Original Message- > > > From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] > > > Sent: 01 May 2019 12:10 > > > To: Shameerali

Re: [Qemu-devel] [PATCH v4 00/15] tests: acpi: add UEFI (ARM) testing support

2019-05-02 Thread Wei Xu
Hi Ignor, On 5/2/2019 3:51 PM, Igor Mammedov wrote: > Changelog: > - from v3: > * reshaffle patch order a bit > * move out acpi_parse_rsdp_table() hunk to > "tests: acpi: make pointer to RSDP 64bit" > where it belongs > * move

Re: [Qemu-devel] [PATCH] hw/arm/fsl-imx: move cpus initialization to realize time after smp_cpus check

2019-05-02 Thread Igor Mammedov
On Tue, 30 Apr 2019 10:18:37 +0100 Peter Maydell wrote: > On Tue, 30 Apr 2019 at 09:52, Like Xu wrote: > > > > If "smp_cpus> FSL_IMX6_NUM_CPUS" fails in *_realize(), there is no need to > > initialize the CPUs in *_init(). So it could be better to create all cpus > > after the validity in

Re: [Qemu-devel] [PATCH 2/9] cpu/topology: add general support for machine properties

2019-05-02 Thread Igor Mammedov
On Tue, 30 Apr 2019 15:30:31 +0800 Like Xu wrote: > On 2019/4/4 22:25, Igor Mammedov wrote: > > On Fri, 29 Mar 2019 16:48:38 +0800 > > Like Xu wrote: > > [...] > > The division of responsibility for this case (refactoring > qemu_init_vcpu) seems to be a poisonous apple. > > The

[Qemu-devel] [PATCH v4 15/15] tests: acpi: print error unable to dump ACPI table during rebuild

2019-05-02 Thread Igor Mammedov
Instead of just asserting print the error that lead to assert first. While at it move assert into rebuild branch, which removes redundant check done in case of !rebuild branch is taken (the later is taken care of by g_assert_no_error). Signed-off-by: Igor Mammedov Reviewed-by: Wei Yang

Re: [Qemu-devel] [PATCH 0/2] configure: Fix make check-tcg for ppc64le

2019-05-02 Thread Richard Henderson
On 5/2/19 3:47 AM, Alex Bennée wrote: >> This needs a different set of cleanups. ;-) > > I guess this is another use case for softmmu support in linux-user where > HOST_PAGE != TARGET_PAGE? Well, yes, but I was thinking more short-term, wherein we do not test things that we know will not work.

[Qemu-devel] [PATCH v4 14/15] tests: acpi: refactor rebuild-expected-aml.sh to dump ACPI tables for a specified list of targets

2019-05-02 Thread Igor Mammedov
Make initial list contain aarch64 and x86_64 targets. Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé --- v4: * fix typo (Wei Yang ) v2: * fix up error message (Philippe Mathieu-Daudé ) --- tests/data/acpi/rebuild-expected-aml.sh | 23 +++ 1 file changed,

[Qemu-devel] [PATCH v4 09/15] tests: acpi: add a way to start tests with UEFI firmware

2019-05-02 Thread Igor Mammedov
For testcase to use UEFI firmware, one needs to provide and specify firmware and varstore blob names in test_data { uefi_fl1, uefi_fl2 } fields respectively and RAM start address plus size where to look for test structure signature. Additionally testcase should specify bootable cdrom image from

[Qemu-devel] [PATCH v4 12/15] tests: add expected ACPI tables for arm/virt board

2019-05-02 Thread Igor Mammedov
Signed-off-by: Igor Mammedov Tested-by: Philippe Mathieu-Daudé --- this patch is ahead fo "tests: acpi: add simple arm/virt testcase" to keep 'make check' working during bisection and not to pollute code with binary blobs which are not reviewable. --- tests/data/acpi/virt/APIC | Bin 0 -> 168

[Qemu-devel] [PATCH v4 05/15] tests: acpi: fetch X_DSDT if pointer to DSDT is 0

2019-05-02 Thread Igor Mammedov
that way it would be possible to test a DSDT pointed by 64bit X_DSDT field in FADT. PS: it will allow to enable testing arm/virt board, which sets only newer X_DSDT field. Signed-off-by: Igor Mammedov --- v4: * dropping Reviewed-bys due to acpi_fetch_table() change introduced by earlier

[Qemu-devel] [PATCH v4 13/15] tests: acpi: add simple arm/virt testcase

2019-05-02 Thread Igor Mammedov
adds simple arm/virt test case that starts guest with bios-tables-test.aarch64.iso.qcow2 boot image which initializes UefiTestSupport* structure in RAM once guest is booted. * see commit: tests: acpi: add acpi_find_rsdp_address_uefi() helper Signed-off-by: Igor Mammedov Reviewed-by: Laszlo

[Qemu-devel] [PATCH v4 11/15] tests: acpi: allow to override default accelerator

2019-05-02 Thread Igor Mammedov
By default test cases were run with 'kvm:tcg' accelerators to speed up tests execution. While it works for x86, were change of accelerator doesn't affect ACPI tables, the approach doesn't works for ARM usecase though. In arm/virt case, KVM mode requires using 'host' cpu model, which isn't

[Qemu-devel] [PATCH v4 08/15] tests: acpi: add acpi_find_rsdp_address_uefi() helper

2019-05-02 Thread Igor Mammedov
introduce UEFI specific counterpart to acpi_find_rsdp_address() that will help to find RSDP address when [OA]VMF is used as firmware. It requires guest firmware or other guest app to place 1Mb aligned UefiTestSupport structure (defined in this patch) in RAM with UefiTestSupport::signature_guid set

[Qemu-devel] [PATCH v4 03/15] tests: acpi: make RSDT test routine handle XSDT

2019-05-02 Thread Igor Mammedov
If RSDP revision is more than 0 fetch table pointed by XSDT and fallback to legacy RSDT table otherwise. While at it drop unused acpi_get_xsdt_address(). Signed-off-by: Igor Mammedov --- PS: it doesn't affect existing pc/q35 machines as they use RSDP.revision == 0 but it will be used by

[Qemu-devel] [PATCH v4 10/15] tests: acpi: ignore SMBIOS tests when UEFI firmware is used

2019-05-02 Thread Igor Mammedov
once FW provides a pointer to SMBIOS entry point like it does for RSDP it should be possible to enable this one the same way. Signed-off-by: Igor Mammedov Reviewed-by: Laszlo Ersek --- v3: - add ref to a uefi-test-tools feature req into comment (Laszlo) --- tests/bios-tables-test.c | 11

[Qemu-devel] [PATCH v4 02/15] tests: acpi: make acpi_fetch_table() take size of fetched table pointer

2019-05-02 Thread Igor Mammedov
Currently acpi_fetch_table() assumes 32 bit size of table pointer in ACPI tables. However X_foo variants are 64 bit, prepare acpi_fetch_table() to handle both by adding an argument for addr_ptr pointed entry size. Follow up commits will use that to read XSDT and X_foo entries in ACPI tables.

Re: [Qemu-devel] [PATCH 0/2] tests/uefi-test-tools: report the SMBIOS entry point structures

2019-05-02 Thread Igor Mammedov
On Thu, 25 Apr 2019 12:43:24 +0200 Laszlo Ersek wrote: > Repo: https://github.com/lersek/qemu.git > Branch:smbios_lp_1821884 > Launchpad: https://bugs.launchpad.net/qemu/+bug/1821884 [...] > > Laszlo Ersek (2): > tests/uefi-test-tools: report the SMBIOS entry point structures >

[Qemu-devel] [PATCH v4 04/15] tests: acpi: make pointer to RSDP 64bit

2019-05-02 Thread Igor Mammedov
In case of UEFI, RSDP doesn't have to be located in lowmem, it could be placed at any address. Make sure that test won't break if it is placed above the first 4Gb of address space. PS: While at it cleanup some local variables as we don't really need them. Signed-off-by: Igor Mammedov

Re: [Qemu-devel] [PATCH] linux-user: fix GPROF build failure

2019-05-02 Thread Alex Bennée
Laurent Desnogues writes: > Hello, > > On Thu, May 2, 2019 at 11:31 AM Alex Bennée wrote: >> >> When linux-user/exit was introduced we failed to move the gprof >> include at the same time. The CI didn't notice because it only builds >> system emulation. Fix it for those that still find gprof

[Qemu-devel] [PATCH] linux-user: avoid treading on gprof's SIGPROF signals

2019-05-02 Thread Alex Bennée
The guest tends to get confused when it receives signals it doesn't know about. Given the gprof magic has also set up it's own handler we would do well to avoid stomping on it as well. Signed-off-by: Alex Bennée --- linux-user/signal.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [Qemu-devel] [PATCH v2 17/29] tcg: Add gvec expanders for vector shift by scalar

2019-05-02 Thread Alex Bennée
Richard Henderson writes: > Signed-off-by: Richard Henderson > --- > tcg/tcg-op-gvec.h | 7 ++ > tcg/tcg-op.h | 4 + > tcg/tcg-op-gvec.c | 204 ++ > tcg/tcg-op-vec.c | 54 > 4 files changed, 269 insertions(+) > > diff --git

[Qemu-devel] [PATCH v4 01/15] tests: acpi: rename acpi_parse_rsdp_table() into acpi_fetch_rsdp_table()

2019-05-02 Thread Igor Mammedov
so name would reflect what the function does Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Wei Yang --- v4: * make it as the first patch in series --- tests/acpi-utils.h | 2 +- tests/acpi-utils.c | 2 +- tests/bios-tables-test.c | 2 +-

[Qemu-devel] [PATCH RFC v8 01/12] target/rx: TCG translation

2019-05-02 Thread Yoshinori Sato
This part only supported RXv1 instructions. Instruction manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01us0032ej0120_rxsm.pdf Signed-off-by: Yoshinori Sato --- target/rx/translate.c | 2433 target/rx/insns.decode |

[Qemu-devel] [PATCH v4 07/15] tests: acpi: move boot_sector_init() into x86 tests branch

2019-05-02 Thread Igor Mammedov
boot_sector_init() won't be used by arm/virt board, so move it from global scope to x86 branch that uses it. Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé --- v3: - fix checkpatch errors triggered by moved old code (ident/space/braces) --- tests/bios-tables-test.c | 9

Re: [Qemu-devel] [PATCH v2 0/3] qemu-img: rebase: Improve/optimize rebase operation

2019-05-02 Thread Sam
I see, Thanks > On 2 May 2019, at 17:21, Eric Blake wrote: > > On 5/2/19 8:58 AM, Sam Eiderman wrote: >> This patch series aims to improve the speed of qemu-img rebase. >> >> 1. Mainly by removing unnecessary reads when rebasing on the same >> chain. >> 2. But also by minimizing the number

[Qemu-devel] [PATCH RFC v8 02/12] target/rx: TCG helper

2019-05-02 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- target/rx/helper.h| 31 target/rx/helper.c| 148 target/rx/op_helper.c | 481 ++ 3 files changed, 660 insertions(+) create mode 100644 target/rx/helper.h create mode 100644

[Qemu-devel] [PATCH RFC v8 04/12] target/rx: RX disassembler

2019-05-02 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- include/disas/dis-asm.h |5 + target/rx/disas.c | 1481 +++ 2 files changed, 1486 insertions(+) create mode 100644 target/rx/disas.c diff --git a/include/disas/dis-asm.h b/include/disas/dis-asm.h index

[Qemu-devel] [PATCH v4 06/15] tests: acpi: skip FACS table if board uses hw reduced ACPI profile

2019-05-02 Thread Igor Mammedov
If FADT has HW_REDUCED_ACPI flag set, do not attempt to fetch FACS as it's not provided by the board. Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Wei Yang --- tests/bios-tables-test.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff

[Qemu-devel] [PATCH RFC v8 08/12] hw/char: RX62N serical communication interface (SCI)

2019-05-02 Thread Yoshinori Sato
This module supported only non FIFO type. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato --- include/hw/char/renesas_sci.h | 45 ++ hw/char/renesas_sci.c | 341

[Qemu-devel] [PATCH RFC v8 09/12] hw/rx: RX Target hardware definition

2019-05-02 Thread Yoshinori Sato
rx62n - RX62N cpu. rxqemu - QEMU virtual target. Signed-off-by: Yoshinori Sato --- include/hw/rx/rx.h| 7 ++ include/hw/rx/rx62n.h | 54 hw/rx/rx62n.c | 226 ++ hw/rx/rxqemu.c| 100 ++

[Qemu-devel] [PATCH RFC v8 06/12] hw/intc: RX62N interrupt controller (ICUa)

2019-05-02 Thread Yoshinori Sato
This implementation supported only ICUa. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato --- include/hw/intc/rx_icu.h | 49 +++ hw/intc/rx_icu.c | 373

[Qemu-devel] [PATCH v4 00/15] tests: acpi: add UEFI (ARM) testing support

2019-05-02 Thread Igor Mammedov
Changelog: - from v3: * reshaffle patch order a bit * move out acpi_parse_rsdp_table() hunk to "tests: acpi: make pointer to RSDP 64bit" where it belongs * move acpi_fetch_rsdp_table(s/uint32_t addr/uint64_t addr/) to this patch where it belongs from:

[Qemu-devel] [PATCH RFC v8 00/12] Add RX archtecture support

2019-05-02 Thread Yoshinori Sato
Hello. This patch series is added Renesas RX target emulation. It was corrected because the correspondence to registerfield was insufficient. My git repository is bellow. git://git.pf.osdn.net/gitroot/y/ys/ysato/qemu.git Testing binaries bellow. u-boot Download -

[Qemu-devel] [PATCH RFC v8 11/12] MAINTAINERS: Add RX

2019-05-02 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- MAINTAINERS | 19 +++ 1 file changed, 19 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7dd71e0a2d..e9430b6c0b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -272,6 +272,13 @@ F: include/hw/riscv/ F: linux-user/host/riscv32/ F:

[Qemu-devel] [PATCH RFC v8 12/12] hw/registerfields.h: Add 8bit and 16bit register macros.

2019-05-02 Thread Yoshinori Sato
Some RX peripheral using 8bit and 16bit registers. Added 8bit and 16bit APIs. Signed-off-by: Yoshinori Sato --- include/hw/registerfields.h | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/include/hw/registerfields.h b/include/hw/registerfields.h

Re: [Qemu-devel] [PATCH 1/2] tests/uefi-test-tools: report the SMBIOS entry point structures

2019-05-02 Thread Igor Mammedov
On Thu, 25 Apr 2019 12:43:25 +0200 Laszlo Ersek wrote: > On UEFI systems, the SMBIOS entry point (a.k.a. anchor) structures are > found similarly to the ACPI RSD PTR table(s): by scanning the > ConfigurationTable array in the EFI system table for well-known GUIDs. > > Locate the SMBIOS 2.1

Re: [Qemu-devel] [PATCH v3 11/13] tests: acpi: add simple arm/virt testcase

2019-05-02 Thread Igor Mammedov
On Fri, 26 Apr 2019 19:11:50 +0200 Laszlo Ersek wrote: > On 04/25/19 07:34, Igor Mammedov wrote: > > adds simple arm/virt test case that starts guest with > > bios-tables-test.aarch64.iso.qcow2 boot image which > > initializes UefiTestSupport* structure in RAM once > > guest is booted. > > > >

[Qemu-devel] [PATCH RFC v8 05/12] target/rx: Miscellaneous files

2019-05-02 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- target/rx/gdbstub.c | 112 target/rx/monitor.c | 38 target/rx/Makefile.objs | 11 + 3 files changed, 161 insertions(+) create mode 100644 target/rx/gdbstub.c create mode 100644

Re: [Qemu-devel] [PATCH v3 11/13] tests: acpi: add simple arm/virt testcase

2019-05-02 Thread Laszlo Ersek
On 05/02/19 16:27, Igor Mammedov wrote: > On Fri, 26 Apr 2019 19:11:50 +0200 > Laszlo Ersek wrote: > >> On 04/25/19 07:34, Igor Mammedov wrote: >>> adds simple arm/virt test case that starts guest with >>> bios-tables-test.aarch64.iso.qcow2 boot image which >>> initializes UefiTestSupport*

[Qemu-devel] [PATCH v3 38/40] s390x/tcg: Implement VECTOR SUM ACROSS QUADWORD

2019-05-02 Thread David Hildenbrand
Similar to VECTOR SUM ACROSS DOUBLEWORD, however without a loop and using 128-bit calculations. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 32 2 files changed,

Re: [Qemu-devel] [PATCH v2 0/3] qemu-img: rebase: Improve/optimize rebase operation

2019-05-02 Thread Eric Blake
On 5/2/19 8:58 AM, Sam Eiderman wrote: > This patch series aims to improve the speed of qemu-img rebase. > > 1. Mainly by removing unnecessary reads when rebasing on the same >chain. > 2. But also by minimizing the number of bdrv_open calls rebase >requires. > When sending a v2 series,

[Qemu-devel] [PATCH RFC v8 10/12] Add rx-softmmu

2019-05-02 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- configure | 8 default-configs/rx-softmmu.mak | 7 +++ include/sysemu/arch_init.h | 1 + arch_init.c| 2 ++ hw/Kconfig | 1 + 5 files changed, 19 insertions(+) create mode 100644

[Qemu-devel] [PATCH v3 37/40] s390x/tcg: Implement VECTOR SUM ACROSS DOUBLEWORD

2019-05-02 Thread David Hildenbrand
Perform the calculations without a helper. Only 16 bit or 32 bit values have to be added. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 29 + 2 files changed, 31

[Qemu-devel] [PATCH RFC v8 07/12] hw/timer: RX62N internal timer modules

2019-05-02 Thread Yoshinori Sato
renesas_tmr: 8bit timer modules. renesas_cmt: 16bit compare match timer modules. This part use many renesas's CPU. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato --- include/hw/timer/renesas_cmt.h | 33

[Qemu-devel] [PATCH v3 39/40] s390x/tcg: Implement VECTOR SUM ACROSS WORD

2019-05-02 Thread David Hildenbrand
Similar to VECTOR SUM ACROSS DOUBLEWORD. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 29 + 2 files changed, 31 insertions(+) diff --git a/target/s390x/insn-data.def

[Qemu-devel] [PATCH v3 32/40] s390x/tcg: Implement VECTOR SHIFT RIGHT LOGICAL *

2019-05-02 Thread David Hildenbrand
Similar to VECTOR SHIFT RIGHT ARITHMETICAL. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 1 + target/s390x/insn-data.def | 4 target/s390x/translate_vx.inc.c | 17 + target/s390x/vec_int_helper.c | 6 ++

[Qemu-devel] [PATCH v3 36/40] s390x/tcg: Implement VECTOR SUBTRACT WITH BORROW COMPUTE BORROW INDICATION

2019-05-02 Thread David Hildenbrand
Mostly courtesy of Richard H. Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 34 + 2 files changed, 36 insertions(+) diff --git a/target/s390x/insn-data.def b/target/s390x/insn-data.def index

[Qemu-devel] [PATCH RFC v8 03/12] target/rx: CPU definition

2019-05-02 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato --- target/rx/cpu-qom.h | 52 target/rx/cpu.h | 196 ++ target/rx/cpu.c | 222 3 files changed, 470 insertions(+) create mode 100644

[Qemu-devel] [PATCH v3 34/40] s390x/tcg: Implement VECTOR SUBTRACT COMPUTE BORROW INDICATION

2019-05-02 Thread David Hildenbrand
Let's keep it simple for now and handle 8/16 bit elements via helpers. Especially for 8/16, we could come up with some bit tricks. Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 2 ++ target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 52

[Qemu-devel] [PATCH v3 35/40] s390x/tcg: Implement VECTOR SUBTRACT WITH BORROW INDICATION

2019-05-02 Thread David Hildenbrand
Fairly easy as only 128-bit handling is required. Simply perform the subtraction and then subtract the borrow. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 26 ++ 2 files

[Qemu-devel] [PATCH v3 25/40] s390x/tcg: Implement VECTOR POPULATION COUNT

2019-05-02 Thread David Hildenbrand
Similar to VECTOR COUNT TRAILING ZEROES. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 2 ++ target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 19 +++ target/s390x/vec_int_helper.c | 14

Re: [Qemu-devel] [PATCH v3 11/13] tests: acpi: add simple arm/virt testcase

2019-05-02 Thread Wei Xu
Hi Igor, On 5/2/2019 3:24 PM, Igor Mammedov wrote: > On Fri, 26 Apr 2019 17:28:10 +0100 > Wei Xu wrote: > >> Hi Igor, >> >> On 4/26/2019 12:54 PM, Igor Mammedov wrote: >>> On Fri, 26 Apr 2019 00:51:56 +0800 >>> x00249684 wrote: >>> Hi Igor, +static void test_acpi_virt_tcg(void)

[Qemu-devel] [PATCH v3 31/40] s390x/tcg: Implement VECTOR SHIFT RIGHT ARITHMETIC

2019-05-02 Thread David Hildenbrand
Similar to VECTOR SHIFT LEFT ARITHMETIC. Add s390_vec_sar() similar to s390_vec_shr(). Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 1 + target/s390x/insn-data.def | 4 target/s390x/translate_vx.inc.c | 17 +

[Qemu-devel] [PATCH v3 29/40] s390x/tcg: Implement VECTOR SHIFT LEFT (BY BYTE)

2019-05-02 Thread David Hildenbrand
We can reuse the existing 128-bit shift utility function. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 1 + target/s390x/insn-data.def | 4 target/s390x/translate_vx.inc.c | 20

[Qemu-devel] [PATCH v3 24/40] s390x/tcg: Implement VECTOR OR WITH COMPLEMENT

2019-05-02 Thread David Hildenbrand
Again, vector enhancements facility 1 material. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 7 +++ 2 files changed, 9 insertions(+) diff --git a/target/s390x/insn-data.def

Re: [Qemu-devel] [PATCH v3 11/13] tests: acpi: add simple arm/virt testcase

2019-05-02 Thread Igor Mammedov
On Fri, 26 Apr 2019 17:28:10 +0100 Wei Xu wrote: > Hi Igor, > > On 4/26/2019 12:54 PM, Igor Mammedov wrote: > > On Fri, 26 Apr 2019 00:51:56 +0800 > > x00249684 wrote: > > > >> Hi Igor, > >> > >> +static void test_acpi_virt_tcg(void) > >> +{ > >> +test_data data = { > >> +.machine

[Qemu-devel] [PATCH v3 26/40] s390x/tcg: Implement VECTOR ELEMENT ROTATE LEFT LOGICAL

2019-05-02 Thread David Hildenbrand
Take care of properly taking the modulo of the count. We might later want to come back and create a variant of VERLL where the base register is 0, resulting in an immediate. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 4 +++

[Qemu-devel] [PATCH v3 22/40] s390x/tcg: Implement VECTOR NOT EXCLUSIVE OR

2019-05-02 Thread David Hildenbrand
Again, part of vector enhancement facility 1. The operation corresponds to an bitwise equality check. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 7 +++ 2 files changed, 9 insertions(+) diff

[Qemu-devel] [PATCH v3 28/40] s390x/tcg: Implement VECTOR ELEMENT SHIFT

2019-05-02 Thread David Hildenbrand
We can use all the fancy new vector helpers implemented by Richard. One important thing to take care of is always to properly mask of unused bits from the shift count. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 9

Re: [Qemu-devel] [PATCH v2 16/29] tcg/aarch64: Support vector variable shift opcodes

2019-05-02 Thread Alex Bennée
Richard Henderson writes: > Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée > --- > tcg/aarch64/tcg-target.h | 2 +- > tcg/aarch64/tcg-target.opc.h | 2 ++ > tcg/aarch64/tcg-target.inc.c | 42 > 3 files changed, 45 insertions(+), 1

[Qemu-devel] [PATCH v3 23/40] s390x/tcg: Implement VECTOR OR

2019-05-02 Thread David Hildenbrand
Reuse a gvec helper. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 7 +++ 2 files changed, 9 insertions(+) diff --git a/target/s390x/insn-data.def b/target/s390x/insn-data.def index

[Qemu-devel] [PATCH v3 27/40] s390x/tcg: Implement VECTOR ELEMENT ROTATE AND INSERT UNDER MASK

2019-05-02 Thread David Hildenbrand
Use the new vector expansion for GVecGen3i. Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 2 ++ target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 51 + target/s390x/vec_int_helper.c | 20 + 4 files

[Qemu-devel] [PATCH v3 18/40] s390x/tcg: Implement VECTOR MULTIPLY AND ADD *

2019-05-02 Thread David Hildenbrand
Quite some variants to handle. At least handle some 32-bit element variants via gvec expansion (we could also handle 16/32-bit variants for ODD and EVEN easily via gvec expansion, but let's keep it simple for now). Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand ---

[Qemu-devel] [PATCH v3 40/40] s390x/tcg: Implement VECTOR TEST UNDER MASK

2019-05-02 Thread David Hildenbrand
Let's return the cc value directly via cpu_env. Unfortunately there isn't a simple way to calculate the value lazily - one would have to calculate and store e.g. the population count of the mask and the result so it can be evaluated in a cc helper. But as VTM only sets the cc, we can assume the

[Qemu-devel] [PATCH v3 20/40] s390x/tcg: Implement VECTOR NAND

2019-05-02 Thread David Hildenbrand
Part of vector enhancements facility 1, but easy to implement. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate.c| 1 + target/s390x/translate_vx.inc.c | 7 +++ 3 files changed, 10 insertions(+) diff

[Qemu-devel] [PATCH v3 12/40] s390x/tcg: Implement VECTOR COUNT TRAILING ZEROS

2019-05-02 Thread David Hildenbrand
Implement it similar to VECTOR COUNT LEADING ZEROS. Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 2 ++ target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 28 target/s390x/vec_int_helper.c | 14 ++ 4

[Qemu-devel] [PATCH v3 17/40] s390x/tcg: Implement VECTOR (MAXIMUM|MINIMUM) (LOGICAL)

2019-05-02 Thread David Hildenbrand
Luckily, we already have gvec helpers for all four cases. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 8 target/s390x/translate_vx.inc.c | 31 +++ 2 files changed, 39 insertions(+) diff --git

[Qemu-devel] [PATCH v3 33/40] s390x/tcg: Implement VECTOR SUBTRACT

2019-05-02 Thread David Hildenbrand
We can use tcg_gen_sub2_i64() to do 128-bit subtraction and otherwise existing gvec helpers. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 17 + 2 files changed, 19 insertions(+)

[Qemu-devel] [PATCH v3 19/40] s390x/tcg: Implement VECTOR MULTIPLY *

2019-05-02 Thread David Hildenbrand
Yet another set of variants. Implement it similar to VECTOR MULTIPLY AND ADD *. At least for one variant we have a gvec helper we can reuse. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 16 + target/s390x/insn-data.def | 14

[Qemu-devel] [PATCH v3 11/40] s390x/tcg: Implement VECTOR COUNT LEADING ZEROS

2019-05-02 Thread David Hildenbrand
For 8/16, use the 32 bit variant and properly subtract the added leading zero bits. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/helper.h | 2 ++ target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 31

[Qemu-devel] [PATCH v3 13/40] s390x/tcg: Implement VECTOR EXCLUSIVE OR

2019-05-02 Thread David Hildenbrand
Easy, we can reuse an existing gvec helper. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 7 +++ 2 files changed, 9 insertions(+) diff --git a/target/s390x/insn-data.def

[Qemu-devel] [PATCH v3 30/40] s390x/tcg: Implement VECTOR SHIFT LEFT DOUBLE BY BYTE

2019-05-02 Thread David Hildenbrand
Inline expansion courtesy of Richard H. Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 29 + 2 files changed, 31 insertions(+) diff --git a/target/s390x/insn-data.def b/target/s390x/insn-data.def index

[Qemu-devel] [PATCH v3 16/40] s390x/tcg: Implement VECTOR LOAD POSITIVE

2019-05-02 Thread David Hildenbrand
Similar to VECTOR LOAD COMPLEMENT. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 13 + 2 files changed, 15 insertions(+) diff --git a/target/s390x/insn-data.def

[Qemu-devel] [PATCH v3 09/40] s390x/tcg: Implement VECTOR ELEMENT COMPARE *

2019-05-02 Thread David Hildenbrand
Fairly easy to implement, we can make use of the existing CC helpers cmps64 and cmpu64 - we siply have to sign extend the elements. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 4 target/s390x/translate_vx.inc.c | 20

[Qemu-devel] [PATCH v3 06/40] s390x/tcg: Implement VECTOR AVERAGE

2019-05-02 Thread David Hildenbrand
Handle 32/64-bit elements via gvec expansion and the 8/16 bits via ool helpers. Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/Makefile.objs | 2 +- target/s390x/helper.h | 4 +++ target/s390x/insn-data.def | 2 ++

[Qemu-devel] [PATCH v3 21/40] s390x/tcg: Implement VECTOR NOR

2019-05-02 Thread David Hildenbrand
Reviewed-by: Richard Henderson Signed-off-by: David Hildenbrand --- target/s390x/insn-data.def | 2 ++ target/s390x/translate_vx.inc.c | 7 +++ 2 files changed, 9 insertions(+) diff --git a/target/s390x/insn-data.def b/target/s390x/insn-data.def index bc8b84e1c2..4983867a44 100644 ---

<    1   2   3   4   >