Re: Questionable aspects of QEMU Error's design

2020-04-27 Thread Vladimir Sementsov-Ogievskiy
27.04.2020 18:36, Markus Armbruster wrote: Markus Armbruster writes: Markus Armbruster writes: QEMU's Error was patterned after GLib's GError. Differences include: [...] * Return value conventions Common: non-void functions return a distinct error value on failure when such a

Re: [PATCH v4 0/7] dwc-hsotg (aka dwc2) USB host controller emulation

2020-04-27 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200428022232.18875-1-pauld...@gmail.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH v4 0/7] dwc-hsotg (aka dwc2) USB host controller emulation Message-id:

Re: [PATCH] hax: Dynamic allocate vcpu state structure

2020-04-27 Thread Colin Xu
And this one. 3 patches for HAX. Thanks in advance. -- Best Regards, Colin Xu On Mon, 20 Apr 2020, Colin Xu wrote: Looks good to me. Reviewed-by: Colin Xu -- Best Regards, Colin Xu On Mon, 6 Apr 2020, WangBowen wrote: Dynamic allocating vcpu state structure according to smp value to

Re: [PATCH] hax: Add hax max vcpu IOCTL and support 64 vcpu

2020-04-27 Thread Colin Xu
Hi Paolo, Would you also help queue this one for PULL? -- Best Regards, Colin Xu On Mon, 20 Apr 2020, Colin Xu wrote: Looks good to me. Reviewed-by: Colin Xu -- Best Regards, Colin Xu On Fri, 10 Apr 2020, WangBowen wrote: This commit tried to obtain max vcpu of haxm driver by calling

Re: [PATCH v2] [Qemu-devel] target/i386: HAX: Enable ROM/ROM device memory region support

2020-04-27 Thread Colin Xu
Hi Paolo, Would you please queue this one? -- Best Regards, Colin Xu On Mon, 30 Mar 2020, Colin Xu wrote: Looks good to me. Reviewed-by: Colin Xu On 2020-03-30 11:25, hang.y...@linux.intel.com wrote: From: Hang Yuan Add ROM and ROM device memory region support in HAX. Their memory

Re: [PATCH 0/3] account for NVDIMM nodes during SRAT generation

2020-04-27 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200428012810.10877-1-vishal.l.ve...@intel.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH 0/3] account for NVDIMM nodes during SRAT generation Message-id:

[PATCH v4 5/7] usb: add short-packet handling to usb-storage driver

2020-04-27 Thread Paul Zimmerman
The dwc-hsotg (dwc2) USB host depends on a short packet to indicate the end of an IN transfer. The usb-storage driver currently doesn't provide this, so fix it. I have tested this change rather extensively using a PC emulation with xhci, ehci, and uhci controllers, and have not observed any

[PATCH v4 7/7] raspi2 acceptance test: add test for dwc-hsotg (dwc2) USB host

2020-04-27 Thread Paul Zimmerman
Add a check for functional dwc-hsotg (dwc2) USB host emulation to the Raspi 2 acceptance test Signed-off-by: Paul Zimmerman --- tests/acceptance/boot_linux_console.py | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/boot_linux_console.py

[PATCH v4 4/7] dwc-hsotg (dwc2) USB host controller emulation

2020-04-27 Thread Paul Zimmerman
Add the dwc-hsotg (dwc2) USB host controller emulation code. Based on hw/usb/hcd-ehci.c and hw/usb/hcd-ohci.c. Note that to use this with the dwc-otg driver in the Raspbian kernel, you must pass the option "dwc_otg.fiq_fsm_enable=0" on the kernel command line. Emulation of slave mode and of

[PATCH v4 6/7] wire in the dwc-hsotg (dwc2) USB host controller emulation

2020-04-27 Thread Paul Zimmerman
Wire the dwc-hsotg (dwc2) emulation into Qemu Signed-off-by: Paul Zimmerman --- hw/arm/bcm2835_peripherals.c | 21 - include/hw/arm/bcm2835_peripherals.h | 3 ++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/hw/arm/bcm2835_peripherals.c

[PATCH v4 2/7] dwc-hsotg (dwc2) USB host controller register definitions

2020-04-27 Thread Paul Zimmerman
Import the dwc-hsotg (dwc2) register definitions file from the Linux kernel. This is a copy of drivers/usb/dwc2/hw.h from the mainline Linux kernel, the only changes being two instances of 'u32' changed to 'uint32_t' to allow it to compile. Signed-off-by: Paul Zimmerman ---

[PATCH v4 3/7] dwc-hsotg (dwc2) USB host controller state definitions

2020-04-27 Thread Paul Zimmerman
Add the dwc-hsotg (dwc2) USB host controller state definitions. Mostly based on hw/usb/hcd-ehci.h. Signed-off-by: Paul Zimmerman --- hw/usb/hcd-dwc2.h | 173 ++ 1 file changed, 173 insertions(+) create mode 100644 hw/usb/hcd-dwc2.h diff --git

[PATCH v4 0/7] dwc-hsotg (aka dwc2) USB host controller emulation

2020-04-27 Thread Paul Zimmerman
This patch series adds emulation for the dwc-hsotg USB controller, which is used on the Raspberry Pi 3 and earlier, as well as a number of other development boards. The main benefit for Raspberry Pi is that this enables networking on these boards, since the network adapter is attached via USB.

[PATCH v4 1/7] raspi: add BCM2835 SOC MPHI emulation

2020-04-27 Thread Paul Zimmerman
Add BCM2835 SOC MPHI (Message-based Parallel Host Interface) emulation. It is very basic, only providing the FIQ interrupt needed to allow the dwc-otg USB host controller driver in the Raspbian kernel to function. Signed-off-by: Paul Zimmerman --- hw/arm/bcm2835_peripherals.c | 17 +++

[virtio-comment] Request vote for the patch: Cross-device resource sharing

2020-04-27 Thread David Stevens
Request for a vote. Fixes: https://github.com/oasis-tcs/virtio-spec/issues/76 Thanks, David On Fri, Mar 20, 2020 at 3:41 PM Gerd Hoffmann wrote: > > On Thu, Mar 19, 2020 at 11:18:21AM +0900, David Stevens wrote: > > Hi all, > > > > This is the next iteration of patches for adding support for

[PATCH 3/3] tests/acpi: update expected SRAT files

2020-04-27 Thread Vishal Verma
Update the expected SRAT files for the change to account for NVDIMM numa nodes in the SRAT. AML Diff: --- /tmp/asl-V49YJ0.dsl 2020-04-27 18:50:52.680043327 -0600 +++ /tmp/asl-48AZJ0.dsl 2020-04-27 18:50:52.679043344 -0600 @@ -3,7 +3,7 @@ * AML/ASL+ Disassembler version

[PATCH 1/3] diffs-allowed: add the SRAT AML to diffs-allowed

2020-04-27 Thread Vishal Verma
In anticipation of a change to the SRAT generation in qemu, add the AML file to diffs-allowed. Signed-off-by: Vishal Verma --- tests/qtest/bios-tables-test-allowed-diff.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h

[PATCH 2/3] hw/acpi-build: account for NVDIMM numa nodes in SRAT

2020-04-27 Thread Vishal Verma
NVDIMMs can belong to their own proximity domains, as described by the NFIT. In such cases, the SRAT needs to have Memory Affinity structures in the SRAT for these NVDIMMs, otherwise Linux doesn't populate node data structures properly during NUMA initialization. See the following for an example

[PATCH 0/3] account for NVDIMM nodes during SRAT generation

2020-04-27 Thread Vishal Verma
On the command line, one can specify a NUMA node for NVDIMM devices. If we set up the topology to give NVDIMMs their own nodes, i.e. not containing any CPUs or regular memory, qemu doesn't populate SRAT memory affinity structures for these nodes. However the NFIT does reference those proximity

Re: [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration

2020-04-27 Thread Yan Zhao
On Mon, Apr 27, 2020 at 11:37:43PM +0800, Dr. David Alan Gilbert wrote: > * Yan Zhao (yan.y.z...@intel.com) wrote: > > On Sat, Apr 25, 2020 at 03:10:49AM +0800, Dr. David Alan Gilbert wrote: > > > * Yan Zhao (yan.y.z...@intel.com) wrote: > > > > On Tue, Apr 21, 2020 at 08:08:49PM +0800, Tian,

[PATCH v23 QEMU 5/5] virtio-balloon: Provide an interface for free page reporting

2020-04-27 Thread Alexander Duyck
From: Alexander Duyck Add support for free page reporting. The idea is to function very similar to how the balloon works in that we basically end up madvising the page as not being used. However we don't really need to bother with any deflate type logic since the page will be faulted back into

[PATCH v23 QEMU 4/5] virtio-balloon: Implement support for page poison reporting feature

2020-04-27 Thread Alexander Duyck
From: Alexander Duyck We need to make certain to advertise support for page poison reporting if we want to actually get data on if the guest will be poisoning pages. Add a value for reporting the poison value being used if page poisoning is enabled in the guest. With this we can determine if we

[PATCH v23 QEMU 2/5] linux-headers: update to contain virito-balloon free page reporting

2020-04-27 Thread Alexander Duyck
From: Alexander Duyck Sync the latest upstream changes for free page reporting. To be replaced by a full linux header sync. Signed-off-by: Alexander Duyck --- include/standard-headers/linux/virtio_balloon.h |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v23 QEMU 3/5] virtio-balloon: Replace free page hinting references to 'report' with 'hint'

2020-04-27 Thread Alexander Duyck
From: Alexander Duyck In an upcoming patch a feature named Free Page Reporting is about to be added. In order to avoid any confusion we should drop the use of the word 'report' when referring to Free Page Hinting. So what this patch does is go through and replace all instances of 'report' with

[PATCH v23 QEMU 0/5] virtio-balloon: add support for page poison reporting and free page reporting

2020-04-27 Thread Alexander Duyck
This series provides an asynchronous means of reporting free guest pages to QEMU through virtio-balloon so that the memory associated with those pages can be dropped and reused by other processes and/or guests on the host. Using this it is possible to avoid unnecessary I/O to disk and greatly

[PATCH v23 QEMU 1/5] linux-headers: Update to allow renaming of free_page_report_cmd_id

2020-04-27 Thread Alexander Duyck
From: Alexander Duyck Sync to the latest upstream changes for free page hinting. To be replaced by a full linux header sync. Signed-off-by: Alexander Duyck --- include/standard-headers/linux/virtio_balloon.h | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v1 08/11] hw/arm: versal: Add support for SD

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 11:23 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Add support for SD. > > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > hw/arm/xlnx-versal.c | 31 +++ >

Re: [PATCH v1 07/11] hw/arm: versal: Embedd the APUs into the SoC type

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 11:20 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Embedd the APUs into the SoC type. > > Suggested-by: Peter Maydell > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > hw/arm/xlnx-versal-virt.c| 4 ++-- >

Re: [PATCH v1 06/11] hw/arm: versal: Embedd the ADMAs into the SoC type

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 11:22 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Embedd the ADMAs into the SoC type. > > Suggested-by: Peter Maydell > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > hw/arm/xlnx-versal.c | 14

Re: [PATCH v1 03/11] hw/arm: versal-virt: Fix typo xlnx-ve -> xlnx-versal

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 11:20 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Fix typo xlnx-ve -> xlnx-versal. > > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > hw/arm/xlnx-versal-virt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v1 05/11] hw/arm: versal: Embedd the GEMs into the SoC type

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 11:20 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Embedd the GEMs into the SoC type. > > Suggested-by: Peter Maydell > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > hw/arm/xlnx-versal.c | 15

Re: [PATCH v1 04/11] hw/arm: versal: Embedd the UARTs into the SoC type

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 11:17 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Embedd the UARTs into the SoC type. > > Suggested-by: Peter Maydell > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > hw/arm/xlnx-versal.c | 12 ++--

Re: [PATCH 1/1] target/riscv: fix VS interrupts forwarding to HS

2020-04-27 Thread Alistair Francis
On Sat, Apr 18, 2020 at 11:01 AM Jose Martins wrote: > > When vs interrupts (2, 6, 10) are enabled, pending and not delegated > in hideleg, they are not always forwarded to hs mode after a return to > vs mode. This happens independently of the state of spie and sie on > the hs-level sstatus

[PATCH RFC v3 1/3] target/arm: Implement SVE2 AESMC, AESIMC

2020-04-27 Thread Stephen Long
Signed-off-by: Stephen Long --- target/arm/crypto_helper.c | 36 +--- target/arm/sve.decode | 10 ++ target/arm/translate-sve.c | 20 3 files changed, 51 insertions(+), 15 deletions(-) diff --git a/target/arm/crypto_helper.c

[PATCH RFC v3 3/3] target/arm: Implement SVE2 SM4EKEY, RAX1

2020-04-27 Thread Stephen Long
Signed-off-by: Stephen Long --- target/arm/crypto_helper.c | 12 target/arm/helper-sve.h| 1 + target/arm/helper.h| 2 ++ target/arm/sve.decode | 4 target/arm/sve_helper.c| 8 target/arm/translate-sve.c | 30 ++ 6

[PATCH RFC v3 2/3] target/arm: Implement SVE2 AESE, AESD, SM4E

2020-04-27 Thread Stephen Long
Signed-off-by: Stephen Long --- target/arm/cpu.h | 5 + target/arm/crypto_helper.c | 38 ++ target/arm/helper-sve.h| 2 ++ target/arm/sve.decode | 6 ++ target/arm/sve_helper.c| 8 target/arm/translate-sve.c | 14

[PATCH RFC v3 0/3] target/arm: Implement SVE2 Crypto Extensions

2020-04-27 Thread Stephen Long
Modified some of the crypto functions in crypto_helper.c to take in a desc parameter. Didn't add a desc parameter to SM4E and SM4EKEY since it is used in translate-a64.c and the functions in there need crypto_sm4e and crypto_sm4ekey to stay the same type (i.e. take 2 or 3 parameters) Stephen

Re: About hardfloat in ppc

2020-04-27 Thread Yonggang Luo
I am confusing why only inexact are set then we can use hard-float. And PPC always clearing inexact flag before calling to soft-float funcitons. so we can not optimize it with hard-float. I need some resouces about ineact flag and why always clearing inexcat in PPC FP simualtion. I am looking

Re: [PATCH] linux-user/riscv: Fix target_ucontext and target_sigcontext

2020-04-27 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200427201120.1500504-1-aman...@gmail.com/ Hi, This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bin/bash

Re: [PATCH] linux-user/riscv: Fix target_ucontext and target_sigcontext

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 1:11 PM Amanieu d'Antras wrote: > > These now match the field layout used by the kernel. > > Signed-off-by: Amanieu d'Antras Thanks for the patch! Unfortunately this fixed has already been applied to the RISC-V tree

Re: [PATCH 0/2] virt: Set tpm-tis-device ppi property to off by default

2020-04-27 Thread Stefan Berger
On 4/27/20 10:31 AM, Eric Auger wrote: Instead of using a compat in the mach-virt machine to force PPI off for all virt machines (PPI not supported by the tpm-tis-device device), let's simply change the default value in the sysbus device. There is no change in behavior on any arm machine due

Re: [PATCH v1 02/11] hw/arm: versal: Move misplaced comment

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 11:25 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Move misplaced comment. > > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > hw/arm/xlnx-versal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

Re: [PATCH v1 01/11] hw/arm: versal: Remove inclusion of arm_gicv3_common.h

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 11:17 AM Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > Remove inclusion of arm_gicv3_common.h, this already gets > included via xlnx-versal.h. > > Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Alistair > --- > hw/arm/xlnx-versal.c | 1 -

[PATCH] linux-user/riscv: Fix target_ucontext and target_sigcontext

2020-04-27 Thread Amanieu d'Antras
These now match the field layout used by the kernel. Signed-off-by: Amanieu d'Antras --- linux-user/riscv/signal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux-user/riscv/signal.c b/linux-user/riscv/signal.c index 83ecc6f799..2b15e32a7b 100644 ---

Re: [PATCH v2 0/2] hw/pci/pcie: Forbid hot-plug if it's disabled on the slot

2020-04-27 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200427182440.92433-1-jus...@redhat.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN ===

Re: [PATCH v20 3/4] qcow2: add zstd cluster compression

2020-04-27 Thread Denis Plotnikov
On 27.04.2020 15:35, Max Reitz wrote: On 21.04.20 10:11, Denis Plotnikov wrote: zstd significantly reduces cluster compression time. It provides better compression performance maintaining the same level of the compression ratio in comparison with zlib, which, at the moment, is the only

Re: [RFC PATCH] qom: Implement qom-get HMP command

2020-04-27 Thread Dr. David Alan Gilbert
* Cédric Le Goater (c...@kaod.org) wrote: > From: "Dr. David Alan Gilbert" > > Reimplement it based on qmp_qom_get() to avoid converting QObjects back > to strings. I'd love to see this or something similar in; what does it's output look like for structures - I think that was the main problem

Re: [RFC PATCH v1 20/26] kvm: vmi: intercept live migration

2020-04-27 Thread Dr. David Alan Gilbert
* Adalbert Lazăr (ala...@bitdefender.com) wrote: > From: Marian Rotariu > > It is possible that the introspection tool has made some changes inside > the introspected VM which can make the guest crash if the introspection > connection is suddenly closed. > > When the live migration starts, for

Re: [PATCH v3 13/18] target/arm: Update contiguous first-fault and no-fault loads

2020-04-27 Thread Peter Maydell
On Mon, 27 Apr 2020 at 17:45, Richard Henderson wrote: > We *can* indicate fault from MemSingleNF for any reason whatsoever, or no > reason whatsoever. > > > // Implementation may suppress NF load for any reason > > if ConstrainUnpredictableBool(Unpredictable_NONFAULT) then > > return

[PATCH v2 2/2] hw/pci/pcie: Replace PCI_DEVICE() casts with existing variable

2020-04-27 Thread Julia Suvorova
A little cleanup is possible because of hotplug_pdev introduction. Signed-off-by: Julia Suvorova --- hw/pci/pcie.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c index 6b48d04d2c..abc99b6eff 100644 --- a/hw/pci/pcie.c +++ b/hw/pci/pcie.c

[PATCH v1 11/11] hw/arm: versal-virt: Add support for the RTC

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Add support for the RTC. Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal-virt.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/hw/arm/xlnx-versal-virt.c b/hw/arm/xlnx-versal-virt.c index 0afee48672..7e749e1926 100644 ---

[PATCH v2 1/2] hw/pci/pcie: Forbid hot-plug if it's disabled on the slot

2020-04-27 Thread Julia Suvorova
Raise an error when trying to hot-plug/unplug a device through QMP to a device with disabled hot-plug capability. This makes the device behaviour more consistent and provides an explanation of the failure in the case of asynchronous unplug. Signed-off-by: Julia Suvorova --- v2: * Change

[PATCH v2 0/2] hw/pci/pcie: Forbid hot-plug if it's disabled on the slot

2020-04-27 Thread Julia Suvorova
Julia Suvorova (2): hw/pci/pcie: Forbid hot-plug if it's disabled on the slot hw/pci/pcie: Replace PCI_DEVICE() casts with existing variable hw/pci/pcie.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) -- 2.25.3

[PATCH v1 02/11] hw/arm: versal: Move misplaced comment

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Move misplaced comment. Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/xlnx-versal.c b/hw/arm/xlnx-versal.c index c73b2fe755..cc696e44c0 100644 --- a/hw/arm/xlnx-versal.c +++

[PATCH v1 10/11] hw/arm: versal-virt: Add support for SD

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Add support for SD. Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal-virt.c | 46 +++ 1 file changed, 46 insertions(+) diff --git a/hw/arm/xlnx-versal-virt.c b/hw/arm/xlnx-versal-virt.c index d7be1ad494..0afee48672 100644

[PATCH v1 06/11] hw/arm: versal: Embedd the ADMAs into the SoC type

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Embedd the ADMAs into the SoC type. Suggested-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal.c | 14 +++--- include/hw/arm/xlnx-versal.h | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git

[PATCH v1 08/11] hw/arm: versal: Add support for SD

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Add support for SD. Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal.c | 31 +++ include/hw/arm/xlnx-versal.h | 12 2 files changed, 43 insertions(+) diff --git a/hw/arm/xlnx-versal.c b/hw/arm/xlnx-versal.c

[PATCH v1 09/11] hw/arm: versal: Add support for the RTC

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" hw/arm: versal: Add support for the RTC. Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal.c | 21 + include/hw/arm/xlnx-versal.h | 8 2 files changed, 29 insertions(+) diff --git a/hw/arm/xlnx-versal.c

[PATCH v1 05/11] hw/arm: versal: Embedd the GEMs into the SoC type

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Embedd the GEMs into the SoC type. Suggested-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal.c | 15 --- include/hw/arm/xlnx-versal.h | 3 ++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git

[PATCH v1 03/11] hw/arm: versal-virt: Fix typo xlnx-ve -> xlnx-versal

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Fix typo xlnx-ve -> xlnx-versal. Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal-virt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/xlnx-versal-virt.c b/hw/arm/xlnx-versal-virt.c index 878a275140..8a608074d1 100644 ---

[PATCH v1 07/11] hw/arm: versal: Embedd the APUs into the SoC type

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Embedd the APUs into the SoC type. Suggested-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal-virt.c| 4 ++-- hw/arm/xlnx-versal.c | 19 +-- include/hw/arm/xlnx-versal.h | 2 +- 3 files changed, 8 insertions(+),

[PATCH v1 04/11] hw/arm: versal: Embedd the UARTs into the SoC type

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Embedd the UARTs into the SoC type. Suggested-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal.c | 12 ++-- include/hw/arm/xlnx-versal.h | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git

[PATCH v1 00/11] hw/arm: versal: Add SD and the RTC

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" This series starts with some basic cleaning, continues with embedding devices into the Versal SoC (as suggested by Peter in another review). We then connect SD and the RTC to the Versal SoC and hook it all up into the Versal Virt board. Cheers, Edgar Edgar E. Iglesias

[PATCH v1 01/11] hw/arm: versal: Remove inclusion of arm_gicv3_common.h

2020-04-27 Thread Edgar E. Iglesias
From: "Edgar E. Iglesias" Remove inclusion of arm_gicv3_common.h, this already gets included via xlnx-versal.h. Signed-off-by: Edgar E. Iglesias --- hw/arm/xlnx-versal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/arm/xlnx-versal.c b/hw/arm/xlnx-versal.c index 94460f2343..c73b2fe755

Re: [PATCH v4 24/30] qcow2: Clear the L2 bitmap when allocating a compressed cluster

2020-04-27 Thread Alberto Garcia
On Mon 27 Apr 2020 09:49:00 AM CEST, Max Reitz wrote: >> The point is this: Consider 'write -P 0xff 0 64k', then 'write -z 16k >> 16k', then 'read 0 64k'. For normal clusters, we can just do a >> scatter-gather iov read of read 0-16k and 32-64k, plus a memset of >> 16-32k. But for compressed

Re: [PATCH] e1000e: Added ICR clearing by corresponding IMS bit.

2020-04-27 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200427152148.283771-1-and...@daynix.com/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN ===

Re: [PATCH] virtiofsd: Show submounts

2020-04-27 Thread Dr. David Alan Gilbert
* Max Reitz (mre...@redhat.com) wrote: > Currently, setup_mounts() bind-mounts the shared directory without > MS_REC. This makes all submounts disappear. > > Pass MS_REC so that the guest can see submounts again. Thanks! > Fixes: 3ca8a2b1c83eb185c232a4e87abbb65495263756 Should this actually

Re: [PATCH] e1000e: Added ICR clearing by corresponding IMS bit.

2020-04-27 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200427152148.283771-1-and...@daynix.com/ Hi, This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bin/bash

Re: [PATCH v3 13/18] target/arm: Update contiguous first-fault and no-fault loads

2020-04-27 Thread Richard Henderson
On 4/27/20 9:32 AM, Peter Maydell wrote: + * From this point on, all memory operations are MemSingleNF. + * + * Per the MemSingleNF pseudocode, a no-fault load from Device memory + * must not actually hit the bus -- it returns (UNKNOWN, FAULT) instead.

Re: [PATCH v3 13/18] target/arm: Update contiguous first-fault and no-fault loads

2020-04-27 Thread Peter Maydell
On Mon, 27 Apr 2020 at 17:16, Richard Henderson wrote: > > On 4/27/20 4:03 AM, Peter Maydell wrote: > > On Wed, 22 Apr 2020 at 05:33, Richard Henderson > > wrote: > >> > >> With sve_cont_ldst_pages, the differences between first-fault and no-fault > >> are minimal, so unify the routines. With

Re: [PATCH v3 13/18] target/arm: Update contiguous first-fault and no-fault loads

2020-04-27 Thread Richard Henderson
On 4/27/20 4:03 AM, Peter Maydell wrote: > On Wed, 22 Apr 2020 at 05:33, Richard Henderson > wrote: >> >> With sve_cont_ldst_pages, the differences between first-fault and no-fault >> are minimal, so unify the routines. With cpu_probe_watchpoint, we are able >> to make progress through pages

Re: [PATCH 0/4] arm: Implement ARMv8.2-TTS2UXN

2020-04-27 Thread Edgar E. Iglesias
On Mon, Mar 30, 2020 at 10:03:56PM +0100, Peter Maydell wrote: > This is obviously not 5.0 material, but I figured it would be better > to push it out for review now rather than hang on to it and forget... > > TTS2UXN is an ARMv8.2 extension which changes the 'XN' field in stage > 2 translation

Re: [PATCH v3 04/18] accel/tcg: Add probe_access_flags

2020-04-27 Thread Richard Henderson
On 4/27/20 3:48 AM, Peter Maydell wrote: > probe_access() handles watchpoints. Why doesn't probe_access_flags() > have to do that? Because we are explicitly deferring that work to the caller. That's a good fraction of the point of the new interface. >> +/* Handle clean RAM pages. */ >>

Re: [PATCH v22 QEMU 3/5] virtio-balloon: Replace free page hinting references to 'report' with 'hint'

2020-04-27 Thread David Hildenbrand
On 27.04.20 17:57, Alexander Duyck wrote: > On Mon, Apr 27, 2020 at 8:11 AM David Hildenbrand wrote: >> >> On 27.04.20 17:08, Alexander Duyck wrote: >>> On Mon, Apr 27, 2020 at 1:15 AM David Hildenbrand wrote: There is only one wrong comment remaining I think. Something like

Re: [PATCH v22 QEMU 3/5] virtio-balloon: Replace free page hinting references to 'report' with 'hint'

2020-04-27 Thread Alexander Duyck
On Mon, Apr 27, 2020 at 8:11 AM David Hildenbrand wrote: > > On 27.04.20 17:08, Alexander Duyck wrote: > > On Mon, Apr 27, 2020 at 1:15 AM David Hildenbrand wrote: > >> > >> There is only one wrong comment remaining I think. Something like > >> > >> diff --git a/hw/virtio/virtio-balloon.c

Re: [PATCH v7 00/10] block: Fix resize (extending) of short overlays

2020-04-27 Thread Kevin Wolf
Am 24.04.2020 um 14:54 hat Kevin Wolf geschrieben: > v7: > - Allocate smaller zero buffer [Vladimir] > - Added missing error_setg_errno() [Max] > - Code cleanup in the iotest, enabled mapping for 'metadata' [Vladimir] > - Don't assign to errp twice [Eric] Thanks for the review, applied to the

Re: [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration

2020-04-27 Thread Dr. David Alan Gilbert
* Yan Zhao (yan.y.z...@intel.com) wrote: > On Sat, Apr 25, 2020 at 03:10:49AM +0800, Dr. David Alan Gilbert wrote: > > * Yan Zhao (yan.y.z...@intel.com) wrote: > > > On Tue, Apr 21, 2020 at 08:08:49PM +0800, Tian, Kevin wrote: > > > > > From: Yan Zhao > > > > > Sent: Tuesday, April 21, 2020 10:37

Re: Questionable aspects of QEMU Error's design

2020-04-27 Thread Markus Armbruster
Markus Armbruster writes: > Markus Armbruster writes: > >> QEMU's Error was patterned after GLib's GError. Differences include: > [...] >> * Return value conventions >> >> Common: non-void functions return a distinct error value on failure >> when such a value can be defined. Patterns: >>

[PATCH RFC v2 3/3] target/arm: Implement SVE2 SM4EKEY, RAX1

2020-04-27 Thread Stephen Long
Signed-off-by: Stephen Long --- target/arm/helper-sve.h| 3 +++ target/arm/sve.decode | 4 target/arm/sve_helper.c| 20 target/arm/translate-sve.c | 30 ++ 4 files changed, 57 insertions(+) diff --git a/target/arm/helper-sve.h

[PATCH RFC v2 1/3] target/arm: Implement SVE2 AESMC, AESIMC

2020-04-27 Thread Stephen Long
Signed-off-by: Stephen Long --- target/arm/helper-sve.h| 3 +++ target/arm/sve.decode | 10 ++ target/arm/sve_helper.c| 15 +++ target/arm/translate-sve.c | 18 ++ 4 files changed, 46 insertions(+) diff --git a/target/arm/helper-sve.h

[PATCH RFC v2 0/3] target/arm: Implement SVE2 Crypto Extensions

2020-04-27 Thread Stephen Long
Used one macro to cover the helper functions for SVE2 AESC, AESIMC, AESE, AESD. No macro was used to implement the helper functions for SM4E, SM4EKEY, RAX1. Stephen Long (3): target/arm: Implement SVE2 AESMC, AESIMC target/arm: Implement SVE2 AESE, AESD, SM4E target/arm: Implement SVE2

[PATCH RFC v2 2/3] target/arm: Implement SVE2 AESE, AESD, SM4E

2020-04-27 Thread Stephen Long
Signed-off-by: Stephen Long --- target/arm/cpu.h | 5 + target/arm/helper-sve.h| 4 target/arm/sve.decode | 6 ++ target/arm/sve_helper.c| 11 +++ target/arm/translate-sve.c | 16 5 files changed, 42 insertions(+) diff --git

Re: [PATCH 0/5] QEMU Gating CI

2020-04-27 Thread Daniel P . Berrangé
On Mon, Apr 27, 2020 at 04:41:38PM +0200, Philippe Mathieu-Daudé wrote: > On 4/27/20 4:28 PM, Cleber Rosa wrote: > > On Mon, 27 Apr 2020 12:51:36 +0200 > > Philippe Mathieu-Daudé wrote: > > > > > On 4/27/20 7:12 AM, Cleber Rosa wrote: > > > > On Thu, 23 Apr 2020 23:28:21 +0200 > > > > Philippe

Re: [PATCH 0/5] QEMU Gating CI

2020-04-27 Thread Cleber Rosa
On Mon, 27 Apr 2020 16:41:38 +0200 Philippe Mathieu-Daudé wrote: > On 4/27/20 4:28 PM, Cleber Rosa wrote: > > > > What I mean is: would you blame such a developer for *not* having a > > machine himself/herself that he/she can try to reproduce the > > failure? And would you consider a "Raspberry

Re: [PATCH v3 0/3] RISC-V Spike machine improvements

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 1:07 AM Anup Patel wrote: > > This series improves QEMU Spike machine to: > 1. Allow loading OpenBI firmware using -bios option > 2. Allow more than one CPUs > > Changes since v2: > - Rebased on QEMU v5.0-rc4 > > Changes since v1: > - Rebased on QEMU master (commit

Re: [PATCH v3 1/3] hw/riscv: Add optional symbol callback ptr to riscv_load_firmware()

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 1:09 AM Anup Patel wrote: > > This patch adds an optional function pointer, "sym_cb", to > riscv_load_firmware() which provides the possibility to access > the symbol table during kernel loading. > > The pointer is ignored, if supplied with flat (non-elf) firmware image. >

Re: [virtio-dev] Re: [PATCH v22 QEMU 0/5] virtio-balloon: add support for page poison reporting and free page reporting

2020-04-27 Thread Alexander Duyck
On Mon, Apr 27, 2020 at 1:21 AM David Hildenbrand wrote: > > Except one minor nit, looks good to me. We'll have to take care of > compat handling regarding patch #4 as soon as we have 5.0 compat > machines in place. I will clean up the one comment and submit later today if there is no other

Re: [PATCH v22 QEMU 3/5] virtio-balloon: Replace free page hinting references to 'report' with 'hint'

2020-04-27 Thread David Hildenbrand
On 27.04.20 17:08, Alexander Duyck wrote: > On Mon, Apr 27, 2020 at 1:15 AM David Hildenbrand wrote: >> >> There is only one wrong comment remaining I think. Something like >> >> diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c >> index a1d6fb52c8..1b2127c04c 100644 >> ---

Re: [PATCH v3 2/3] hw/riscv/spike: Allow loading firmware separately using -bios option

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 1:08 AM Anup Patel wrote: > > This patch extends Spike machine support to allow loading OpenSBI > firmware (fw_jump.elf) separately using -bios option. > > Signed-off-by: Anup Patel Reviewed-by: Alistair Francis Alistair > --- > hw/riscv/spike.c | 24

Re: [PATCH v3 3/3] hw/riscv/spike: Allow more than one CPUs

2020-04-27 Thread Alistair Francis
On Mon, Apr 27, 2020 at 1:09 AM Anup Patel wrote: > > Currently, the upstream Spike ISA simulator allows more than > one CPUs so we update QEMU Spike machine on similar lines to > allow more than one CPUs. > > The maximum number of CPUs for QEMU Spike machine is kept > same as QEMU Virt machine.

Re: [PATCH v22 QEMU 3/5] virtio-balloon: Replace free page hinting references to 'report' with 'hint'

2020-04-27 Thread Alexander Duyck
On Mon, Apr 27, 2020 at 1:15 AM David Hildenbrand wrote: > > There is only one wrong comment remaining I think. Something like > > diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c > index a1d6fb52c8..1b2127c04c 100644 > --- a/hw/virtio/virtio-balloon.c > +++

[PATCH] e1000e: Added ICR clearing by corresponding IMS bit.

2020-04-27 Thread andrew
From: Andrew Melnychenko Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1707441 Added ICR clearing if there is IMS bit - according to the note by section 13.3.27 of the 8257X developers manual. Signed-off-by: Andrew Melnychenko --- hw/net/e1000e_core.c | 9 + hw/net/trace-events

[PATCH v2 2/9] block/io: refactor bdrv_co_ioctl: move aio stuff to corresponding block

2020-04-27 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Stefan Hajnoczi --- block/io.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/block/io.c b/block/io.c index 94ab8eaa0f..880871e691 100644 --- a/block/io.c +++ b/block/io.c @@ -3125,31 +3125,38

[PATCH v2 7/9] block/io: add bdrv_do_pwrite_zeroes

2020-04-27 Thread Vladimir Sementsov-Ogievskiy
We'll need a bdrv_co_pwrite_zeroes version without inc/dec in_flight to be used in further implementation of bdrv_make_zero. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Stefan Hajnoczi --- block/io.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-)

[PATCH v2 4/9] block/io: move bdrv_rw_co_entry and friends down

2020-04-27 Thread Vladimir Sementsov-Ogievskiy
We are going to use bdrv_co_pwritev_part and bdrv_co_preadv_part in bdrv_rw_co_entry, so move it down. Note: Comment formatting was changed to conform to coding style and function order was changed. Otherwise the code is unmodified. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by:

[PATCH v2 9/9] block/io: expand in_flight inc/dec section: bdrv_make_zero

2020-04-27 Thread Vladimir Sementsov-Ogievskiy
It's safer to expand in_flight request to start before enter to coroutine in synchronous wrappers and end after BDRV_POLL_WHILE loop. Note that qemu_coroutine_enter may only schedule the coroutine in some circumstances. bdrv_make_zero update includes refactoring: move the whole loop into

Re: [PATCH 0/5] QEMU Gating CI

2020-04-27 Thread Philippe Mathieu-Daudé
On 4/27/20 4:28 PM, Cleber Rosa wrote: On Mon, 27 Apr 2020 12:51:36 +0200 Philippe Mathieu-Daudé wrote: On 4/27/20 7:12 AM, Cleber Rosa wrote: On Thu, 23 Apr 2020 23:28:21 +0200 Philippe Mathieu-Daudé wrote: [...] In some cases custom runners are acceptable. These runners won't be

[PATCH v2 6/9] block/io: expand in_flight inc/dec section: block-status

2020-04-27 Thread Vladimir Sementsov-Ogievskiy
It's safer to expand in_flight request to start before enter to coroutine in synchronous wrappers and end after BDRV_POLL_WHILE loop. Note that qemu_coroutine_enter may only schedule the coroutine in some circumstances. block-status requests are complex, they involve querying different block

[PATCH v2 0/9] block/io: safer inc/dec in_flight sections

2020-04-27 Thread Vladimir Sementsov-Ogievskiy
Hi all! This is inspired by Kevin's "block: Fix blk->in_flight during blk_wait_while_drained()" series. So, like it's now done for block-backends, let's expand in_flight-protected sections for bdrv_ interfaces, including coroutine_enter and BDRV_POLL_WHILE loop into these sections. v2: 01: drop

Re: [PATCH 04/11] s390x/pci: Fix harmless mistake in zpci's property fid's setter

2020-04-27 Thread Markus Armbruster
Matthew Rosato writes: > On 4/24/20 3:20 PM, Markus Armbruster wrote: >> s390_pci_set_fid() sets zpci->fid_defined to true even when >> visit_type_uint32() failed. Reproducer: "-device zpci,fid=junk". >> Harmless in practice, because qdev_device_add() then fails, throwing >> away @zpci. Fix it

  1   2   3   >