Re: [PATCH] replay: synchronize on every virtual timer callback

2020-05-19 Thread Pavel Dovgalyuk
On 19.05.2020 18:42, Philippe Mathieu-Daudé wrote: On 5/19/20 12:38 PM, Pavel Dovgalyuk wrote: On 19.05.2020 13:32, Alex Bennée wrote: Pavel Dovgalyuk writes: On 19.05.2020 11:11, Alex Bennée wrote: Pavel Dovgalyuk writes: On 18.05.2020 18:56, Alex Bennée wrote: Philippe Mathieu-Daud

Re: [PATCH] arm/aspeed: Compute the number of CPUs from the SoC definition

2020-05-19 Thread Cédric Le Goater
On 5/20/20 8:27 AM, Markus Armbruster wrote: > I figure this replaces my "[PATCH 05/24] aspeed: Don't create unwanted > "cortex-a7-arm-cpu" devices". Correct? > > Let's mention it gets rid of unrealized CPUs then. Let me try. > > Cédric Le Goater writes: > >> Commit ece09beec457 ("aspeed: int

Re: [PATCH 00/55] qdev: Rework how we plug into the parent bus

2020-05-19 Thread Paolo Bonzini
On 19/05/20 16:54, Markus Armbruster wrote: > Paolo recently suggested "to move the bus argument (and thus > qdev_set_parent_bus) to qdev_init"[1], and that it "would be quite > large but hopefully scriptable"[2]. Nerd sniped! > > The series is big, but at least the bigger patches are all mechani

Re: [PATCH 51/55] qdev: Make qdev_realize() support bus-less devices

2020-05-19 Thread Paolo Bonzini
On 19/05/20 16:55, Markus Armbruster wrote: > So far, qdev_realize() supports only devices that plug into a bus: > argument @bus cannot be null. Extend it to support bus-less devices, > too. > > qdev_realize_and_unref() remains restricted, because its reference > counting would become rather conf

Re: [PATCH] arm/aspeed: Rework NIC attachment

2020-05-19 Thread Markus Armbruster
Cédric Le Goater writes: > The AST2400 and AST2500 SoCs have two MACs but only the first MAC0 is > active on the Aspeed machines using these SoCs. The AST2600 has four > MACs. The AST2600 EVB machine activates MAC1, MAC2 and MAC3 and the > Tacoma BMC machine activates MAC2. > > Introduce a bit-fi

Re: [PATCH 08/55] qdev: Convert uses of qdev_create() with Coccinelle

2020-05-19 Thread Paolo Bonzini
On 19/05/20 16:55, Markus Armbruster wrote: > expression bus, type_name, dev; > @@ > -dev = qdev_create(bus, type_name); > +dev = qdev_new(type_name); > ... > -qdev_init_nofail(dev); > +qdev_realize_and_unref(dev, bus, &error_fatal); > > The first

Re: [PATCH] arm/aspeed: Compute the number of CPUs from the SoC definition

2020-05-19 Thread Markus Armbruster
I figure this replaces my "[PATCH 05/24] aspeed: Don't create unwanted "cortex-a7-arm-cpu" devices". Correct? Let's mention it gets rid of unrealized CPUs then. Let me try. Cédric Le Goater writes: > Commit ece09beec457 ("aspeed: introduce a configurable number of CPU > per machine") was a co

Re: [PATCH 07/55] qdev: Convert to qdev_unrealize() manually

2020-05-19 Thread Paolo Bonzini
On 19/05/20 16:55, Markus Armbruster wrote: > @@ -493,6 +493,11 @@ bool qdev_realize(DeviceState *dev, BusState *bus, Error > **errp) > return !err; > } > > +void qdev_unrealize(DeviceState *dev) > +{ > +object_property_set_bool(OBJECT(dev), false, "realized", &error_abort); > +} > + >

Re: [PATCH 03/55] qdev: New qdev_new(), qdev_realize(), etc.

2020-05-19 Thread Paolo Bonzini
On 19/05/20 16:54, Markus Armbruster wrote: > + > +object_ref(OBJECT(dev)); > +object_property_set_bool(OBJECT(dev), true, "realized", &err); > +if (err) { > +error_propagate_prepend(errp, err, > +"Initialization of device %s failed: ", > +

Re: [PATCH v2 1/5] block/io: fix bdrv_co_block_status_above

2020-05-19 Thread Vladimir Sementsov-Ogievskiy
20.05.2020 00:48, Eric Blake wrote: On 5/19/20 4:13 PM, Vladimir Sementsov-Ogievskiy wrote: 19.05.2020 23:41, Eric Blake wrote: On 5/19/20 2:54 PM, Vladimir Sementsov-Ogievskiy wrote: bdrv_co_block_status_above has several problems with handling short backing files: 1. With want_zeros=true, i

Re: QEMU 5.1: Can we require each new device/machine to provided a test?

2020-05-19 Thread Thomas Huth
On 20/05/2020 01.06, John Snow wrote: > > > On 5/19/20 5:04 AM, Daniel P. Berrangé wrote: >> On Mon, May 18, 2020 at 03:56:36PM -0400, John Snow wrote: >>> >>> >>> On 5/15/20 6:23 AM, Daniel P. Berrangé wrote: On Fri, May 15, 2020 at 12:11:17PM +0200, Thomas Huth wrote: > On 07/04/2020 1

Re: [PATCH v3 8/9] riscv/opentitan: Connect the UART device

2020-05-19 Thread Philippe Mathieu-Daudé
On 5/19/20 11:31 PM, Alistair Francis wrote: Signed-off-by: Alistair Francis Reviewed-by: Bin Meng --- include/hw/riscv/opentitan.h | 13 + hw/riscv/opentitan.c | 24 ++-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/include/hw/risc

Re: [PATCH v3 7/9] riscv/opentitan: Connect the PLIC device

2020-05-19 Thread Philippe Mathieu-Daudé
On 5/19/20 11:31 PM, Alistair Francis wrote: Signed-off-by: Alistair Francis Reviewed-by: Bin Meng --- include/hw/riscv/opentitan.h | 3 +++ hw/riscv/opentitan.c | 19 +-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/include/hw/riscv/opentitan.h b

Re: [PATCH v3 1/9] riscv/boot: Add a missing header include

2020-05-19 Thread Philippe Mathieu-Daudé
On 5/19/20 11:31 PM, Alistair Francis wrote: Currently every c file that includes boot.h also includes loader.h before it. Which is why the build works fine. We should be able to include just boot.h though so this is a small fixup to allow that. What about: 'As the functions declared in this h

Re: [PATCH 2/2] linux-user: Adjust guest page protection for the host

2020-05-19 Thread Philippe Mathieu-Daudé
On 5/19/20 8:56 PM, Richard Henderson wrote: Executable guest pages are never directly executed by the host, but do need to be readable for translation. Signed-off-by: Richard Henderson --- linux-user/mmap.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linux-user/

Re: [PATCH 1/7] colo-compare: Fix memory leak in packet_enqueue()

2020-05-19 Thread Philippe Mathieu-Daudé
On 5/19/20 10:02 PM, Zhang Chen wrote: From: Derek Su The patch is to fix the "pkt" memory leak in packet_enqueue(). The allocated "pkt" needs to be freed if the colo compare primary or secondary queue is too big. Replace the error_report of full queue with a trace event. Signed-off-by: Derek

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

2020-05-19 Thread Paul Zimmerman
On Mon, May 18, 2020 at 8:34 AM Peter Maydell wrote: > On Tue, 12 May 2020 at 07:50, Paul Zimmerman wrote: > > > > > +static void dwc2_reset(DeviceState *dev) > > +{ > > +DWC2State *s = DWC2_USB(dev); > > +int i; > > + > > +trace_usb_dwc2_reset(); > > +timer_del(s->frame_timer);

Re: [RFC PATCH 2/8] riscv: Generate payload scripts

2020-05-19 Thread Richard Henderson
On 5/19/20 7:37 PM, LIU Zhiwei wrote: > On 2020/5/12 1:40, Richard Henderson wrote: >> On 4/30/20 12:21 AM, LIU Zhiwei wrote: >>> +    # sequence of li rd, 0x1234567887654321 >>> +    # >>> +    #  0:   002471b7    lui rd,0x247 >>> +    #  4:   8ad1819b    addiw   rd,rd,

Re: [RFC PATCH 1/8] riscv: Add RV64I instructions description

2020-05-19 Thread Richard Henderson
On 5/19/20 7:41 PM, LIU Zhiwei wrote: >> Since all of sp, gp, tp are not in risu's control, why is rs1 only excluding >> sp, and not gp and tp as well? > When I test the patch set, I find gp and tp will be the same in slave and > master, > so they can be used as source register. Ah, try again wit

Re: [PATCH 3/7] chardev/char.c: Use qemu_co_sleep_ns if in coroutine

2020-05-19 Thread Philippe Mathieu-Daudé
On 5/19/20 10:02 PM, Zhang Chen wrote: From: Lukas Straub This will be needed in the next patch. Can you reword to something clearer, maybe: "To be able to convert compare_chr_send to a coroutine in the next commit, use qemu_co_sleep_ns if in coroutine." Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH 03/55] qdev: New qdev_new(), qdev_realize(), etc.

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 9:26 PM Markus Armbruster wrote: > > Alistair Francis writes: > > > On Tue, May 19, 2020 at 8:11 AM Markus Armbruster wrote: > >> > >> We commonly plug devices into their bus right when we create them, > >> like this: > >> > >> dev = qdev_create(bus, type_name); > >>

Re: [PATCH v8 74/74] cputlb: queue async flush jobs without the BQL

2020-05-19 Thread Emilio G. Cota
On Mon, May 18, 2020 at 09:46:36 -0400, Robert Foley wrote: > We re-ran the numbers with the latest re-based series. > > We used an aarch64 ubuntu VM image with a host CPU: > Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz, 2 CPUs, 10 cores/CPU, > 20 Threads/CPU. 40 cores total. > > For the bare hard

Re: [PATCH 0/7] Latest COLO tree queued patches

2020-05-19 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200519200207.17773-1-chen.zh...@intel.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 ex

Re: [PATCH 03/55] qdev: New qdev_new(), qdev_realize(), etc.

2020-05-19 Thread Markus Armbruster
Alistair Francis writes: > On Tue, May 19, 2020 at 8:11 AM Markus Armbruster wrote: >> >> We commonly plug devices into their bus right when we create them, >> like this: >> >> dev = qdev_create(bus, type_name); >> >> Note that @dev is a weak reference. The reference from @bus to @dev >> is

Re: kvm_buf_set_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed.

2020-05-19 Thread Li Feng
Hi, Any update about this issue? Thanks, Feng Li Li Feng 于2020年5月14日周四 下午11:49写道: > > Dr. David Alan Gilbert 于2020年5月14日周四 下午11:31写道: > > > > * Li Feng (fen...@smartx.com) wrote: > > > Dr. David Alan Gilbert 于2020年5月14日周四 下午11:16写道: > > > > > > > > * Li Feng (fen...@smartx.com) wrote: > > > >

Re: [PATCH V2] Add a new PIIX option to control global PCI hot-plugging

2020-05-19 Thread Ani Sinha
@igor Did you get a chance to look? On May 15, 2020, 22:57 +0530, Ani Sinha , wrote: > A new option "acpi-pci-hotplug" is introduced for PIIX which will > globally disable hot-plugging of both hot plugged and > cold plugged PCI devices. This will prevent > hot-plugging and hot un-plugging of device

Re: [PATCH QEMU v22 09/18] vfio: Add save state functions to SaveVMHandlers

2020-05-19 Thread Yan Zhao
On Mon, May 18, 2020 at 11:43:09AM +0530, Kirti Wankhede wrote: <...> > + > +static int vfio_save_buffer(QEMUFile *f, VFIODevice *vbasedev) > +{ > +VFIOMigration *migration = vbasedev->migration; > +VFIORegion *region = &migration->region; > +uint64_t data_offset = 0, data_size = 0; >

Re: [PATCH Kernel v22 0/8] Add UAPIs to support migration for VFIO devices

2020-05-19 Thread Yan Zhao
On Tue, May 19, 2020 at 10:58:04AM -0600, Alex Williamson wrote: > Hi folks, > > My impression is that we're getting pretty close to a workable > implementation here with v22 plus respins of patches 5, 6, and 8. We > also have a matching QEMU series and a proposal for a new i40e > consumer, as we

Re: [PATCH 0/7] Latest COLO tree queued patches

2020-05-19 Thread Jason Wang
On 2020/5/20 上午4:02, Zhang Chen wrote: From: Zhang Chen Hi Jason, this series include latest COLO related patches. I have finish basic test and review. If no other comments, please check and merge this series. Applied. Thanks Derek Su (1): colo-compare: Fix memory leak in packet_en

Re: [RFC PATCH 1/8] riscv: Add RV64I instructions description

2020-05-19 Thread LIU Zhiwei
On 2020/5/12 0:39, Richard Henderson wrote: On 4/30/20 12:21 AM, LIU Zhiwei wrote: +LUI RISCV imm:20 rd:5 0110111 \ +!constraints { $rd != 2 && $rd != 3 && $rd != 4 } I think it would be helpful to add a function for this. e.g. greg($rd) and gbase($rs1) (including $0). It would keep the co

Re: [RFC PATCH 2/8] riscv: Generate payload scripts

2020-05-19 Thread LIU Zhiwei
On 2020/5/12 1:40, Richard Henderson wrote: On 4/30/20 12:21 AM, LIU Zhiwei wrote: +# sequence of li rd, 0x1234567887654321 +# +# 0: 002471b7lui rd,0x247 +# 4: 8ad1819baddiw rd,rd,-1875 +# 8: 00c19193sllird,rd

Re: [RFC PATCH 6/8] riscv: Add configure script

2020-05-19 Thread LIU Zhiwei
On 2020/5/20 9:45, LIU Zhiwei wrote: On 2020/5/12 2:06, Richard Henderson wrote: On 4/30/20 12:21 AM, LIU Zhiwei wrote: +++ b/configure @@ -58,6 +58,8 @@ guess_arch() {   ARCH="m68k"   elif check_define __powerpc64__ ; then   ARCH="ppc64" +    elif check_define __riscv ;

[PATCH v4 2/5] target/i386: add fast short REP MOV support

2020-05-19 Thread Chenyi Qiang
For CPUs support fast short REP MOV[CPUID.(EAX=7,ECX=0):EDX(bit4)], e.g Icelake and Tigerlake, expose it to the guest VM. Signed-off-by: Chenyi Qiang --- target/i386/cpu.c | 2 +- target/i386/cpu.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i

[PATCH v4 1/5] target/i386: add missing vmx features for several CPU models

2020-05-19 Thread Chenyi Qiang
Add some missing VMX features in Skylake-Server, Cascadelake-Server and Icelake-Server CPU models based on the output of Paolo's script. Signed-off-by: Chenyi Qiang --- target/i386/cpu.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.

[PATCH v4 0/5] modify CPU model info

2020-05-19 Thread Chenyi Qiang
Add the missing VMX features in Skylake-Server, Cascadelake-Server and Icelake-Server CPU models. In Icelake-Server CPU model, it lacks sha_ni, avx512ifma, rdpid and fsrm. The model number of Icelake-Server also needs to be fixed. Remove the Icelake-Client CPU model due to no Icelake Desktop produc

[PATCH v4 5/5] target/i386: remove Icelake-Client CPU model

2020-05-19 Thread Chenyi Qiang
There are no Icelake Desktop products in the market. Remove the Icelake-Client CPU model. Signed-off-by: Chenyi Qiang --- hw/i386/pc.c | 1 - target/i386/cpu.c | 113 -- 2 files changed, 114 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c

[PATCH v4 4/5] target/i386: modify Icelake-Server CPU model number

2020-05-19 Thread Chenyi Qiang
According to the Intel Icelake family list, Icelake-Server uses model number 106(0x6A). Signed-off-by: Chenyi Qiang --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index b4697b0148..d59698710e 100644 --- a/target/i38

[PATCH v4 3/5] target/i386: add the missing features for Icelake-Server CPU model

2020-05-19 Thread Chenyi Qiang
Add the missing features(sha-ni, avx512ifma, rdpid, fsrm) in the Icelake-Server CPU model. Signed-off-by: Chenyi Qiang --- target/i386/cpu.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 52f5aa5418..b4697b0148 100644 --- a/target/i386

[Bug 1879425] Re: The thread of "CPU 0 /KVM" keeping 99.9%CPU

2020-05-19 Thread cliff chen
one changes: Guest VM is Red Hat Enterprise Linux 8.1 (Ootpa). there is no issue once guest VM is RHEL7.6. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1879425 Title: The thread of "CPU 0 /KVM" ke

[PATCH 1/2] Revert "9p: init_in_iov_from_pdu can truncate the size"

2020-05-19 Thread Stefano Stabellini
From: Stefano Stabellini This reverts commit 16724a173049ac29c7b5ade741da93a0f46edff7. It causes https://bugs.launchpad.net/bugs/1877688. Signed-off-by: Stefano Stabellini --- hw/9pfs/9p.c | 33 +++-- hw/9pfs/9p.h | 2 +- hw/9pfs/virtio-

[PATCH 2/2] xen/9pfs: yield when there isn't enough room on the ring

2020-05-19 Thread Stefano Stabellini
From: Stefano Stabellini Instead of truncating replies, which is problematic, wait until the client reads more data and frees bytes on the reply ring. Do that by calling qemu_coroutine_yield(). The corresponding qemu_coroutine_enter_if_inactive() is called from xen_9pfs_bh upon receiving the nex

[PATCH 0/2] revert 9pfs reply truncation, wait for free room to reply

2020-05-19 Thread Stefano Stabellini
Hi all, This short series reverts commit 16724a173049ac29c7b5ade741da93a0f46edff becauses it is the cause for https://bugs.launchpad.net/bugs/1877688. The original issue addressed by 16724a173049ac29c7b5ade741da93a0f46edff is solved differently in this series by using qemu_coroutine_yield() to wa

Re: [RFC PATCH 6/8] riscv: Add configure script

2020-05-19 Thread LIU Zhiwei
On 2020/5/12 2:06, Richard Henderson wrote: On 4/30/20 12:21 AM, LIU Zhiwei wrote: +++ b/configure @@ -58,6 +58,8 @@ guess_arch() { ARCH="m68k" elif check_define __powerpc64__ ; then ARCH="ppc64" +elif check_define __riscv ; then +ARCH="riscv64" else

[Bug 1879590] [NEW] Using qemu-system-sparc64 no network interface seems to exist

2020-05-19 Thread chris pugmire
Public bug reported: Using boot command: qemu-system-sparc64 -M niagara -L /home/chrisp/sparc/S10image/ -nographic -m 256 -drive if=pflash,readonly=on,file=/home/chrisp/sparc/S10image/disk.s10hw2 After I log into solaris system I see no network devices other than the loopback device. All the do

[Bug 1879587] Re: Register number in ESR is incorrect for certain banked registers when switching from AA32 to AA64

2020-05-19 Thread Julien Freche
This is with qemu-system-aarch64 - forgot to mention it explicitly. So, it will only affect qemu for ARM 64-bit. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1879587 Title: Register number in ESR

[Bug 1879587] [NEW] Register number in ESR is incorrect for certain banked registers when switching from AA32 to AA64

2020-05-19 Thread Julien Freche
Public bug reported: I am running into a situation where I have: - A hypervisor running in EL2, AA64 - A guest running in EL1, AA32 We trap certain accesses to special registers such as DACR (via HCR.TVM). One instruction that is trapped is: ee03ef10 ->mcr 15, 0, lr, cr3, cr0, {0} The

Re: [PATCH v6 4/5] crypto: Add tls-cipher-suites object

2020-05-19 Thread Laszlo Ersek
On 05/19/20 20:20, Philippe Mathieu-Daudé wrote: > Example of use to dump: > > $ qemu-system-x86_64 -S \ > -object tls-cipher-suites,id=mysuite,priority=@SYSTEM,verbose=yes > Cipher suites for @SYSTEM: > - TLS_AES_256_GCM_SHA3840x13, 0x02 > TLS1.3 >

Re: [PATCH v6 10/16] floppy: move cmos_get_fd_drive_type() from pc

2020-05-19 Thread John Snow
On 5/19/20 10:51 AM, Philippe Mathieu-Daudé wrote: > Missing "Signed-off-by: Gerd Hoffmann ", > otherwise: > > Reviewed-by: Philippe Mathieu-Daudé > > On 5/15/20 5:04 PM, Gerd Hoffmann wrote: If you add the S-O-B: Acked-by: John Snow >> --- >>   include/hw/block/fdc.h |  1 + >>   include/

Re: QEMU 5.1: Can we require each new device/machine to provided a test?

2020-05-19 Thread John Snow
On 5/19/20 5:04 AM, Daniel P. Berrangé wrote: > On Mon, May 18, 2020 at 03:56:36PM -0400, John Snow wrote: >> >> >> On 5/15/20 6:23 AM, Daniel P. Berrangé wrote: >>> On Fri, May 15, 2020 at 12:11:17PM +0200, Thomas Huth wrote: On 07/04/2020 12.59, Philippe Mathieu-Daudé wrote: > Hello,

Re: [PATCH v6 5/5] crypto/tls-cipher-suites: Product fw_cfg consumable blob

2020-05-19 Thread Laszlo Ersek
On 05/19/20 20:20, Philippe Mathieu-Daudé wrote: > Since our format is consumable by the fw_cfg device, > we can implement the FW_CFG_DATA_GENERATOR interface. > > Signed-off-by: Philippe Mathieu-Daudé > --- > crypto/tls-cipher-suites.c | 19 +++ > 1 file changed, 19 insertions(+

Re: [RFC PATCH v6 3/5] softmmu/vl: Allow -fw_cfg 'blob_id' option to set any file pathname

2020-05-19 Thread Laszlo Ersek
On 05/19/20 20:20, Philippe Mathieu-Daudé wrote: > This is to silent: > > $ qemu-system-x86_64 \ > -object tls-cipher-suites,id=ciphersuite0,priority=@SYSTEM \ > -fw_cfg name=etc/edk2/https/ciphers,blob_id=ciphersuite0 > qemu-system-x86_64: -fw_cfg > name=etc/edk2/https/ciphers,blob_i

Re: [PATCH v6 2/5] softmmu/vl: Let -fw_cfg option take a 'blob_id' argument

2020-05-19 Thread Laszlo Ersek
On 05/19/20 20:20, Philippe Mathieu-Daudé wrote: > The 'blob_id' argument refers to a QOM object able to produce > data consumable by the fw_cfg device. The producer object must > implement the FW_CFG_DATA_GENERATOR interface. OK, this answers my OBJECT_CHECK() question under patch #1 (in the nega

Re: [PATCH 01/24] arm/stm32f405: Fix realization of "stm32f2xx-adc" devices

2020-05-19 Thread Alistair Francis
On Mon, May 18, 2020 at 10:08 PM Markus Armbruster wrote: > > Alistair Francis writes: > > > On Sun, May 17, 2020 at 10:06 PM Markus Armbruster > > wrote: > >> > >> stm32f405_soc_initfn() creates six such devices, but > >> stm32f405_soc_realize() realizes only one. Affects machine > >> netduin

Re: [PULL 00/10] softfloat misc cleanups

2020-05-19 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20200519164957.26920-1-richard.hender...@linaro.org/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200519164957.26920-1-richard.hender...@linaro.org Subject: [PULL 00/10] softfloat misc clea

RE: [EXTERNAL] Re: [PATCH] WHPX: Assigning maintainer for Windows Hypervisor Platform

2020-05-19 Thread Sunil Muthuswamy
> -Original Message- > From: Stefan Weil > Sent: Thursday, February 20, 2020 11:54 PM > To: Justin Terry (SF) ; Philippe Mathieu-Daudé > ; Sunil Muthuswamy > ; Eduardo Habkost ; Paolo > Bonzini ; Richard > Henderson > Cc: qemu-devel@nongnu.org > Subject: Re: [EXTERNAL] Re: [PATCH] WHP

Re: [PATCH v6 1/5] hw/nvram/fw_cfg: Add the FW_CFG_DATA_GENERATOR interface

2020-05-19 Thread Laszlo Ersek
On 05/19/20 20:20, Philippe Mathieu-Daudé wrote: > The FW_CFG_DATA_GENERATOR allow any object to product (1) I suggest: s/allow/allows/ s/product/produce/ > blob of data consumable by the fw_cfg device. > > Signed-off-by: Philippe Mathieu-Daudé > --- > include/hw/nvram/fw_cfg.h | 49 +

Re: [PATCH v2 10/10] hw/semihosting: Make the feature depend of TCG, and allow to disable it

2020-05-19 Thread Richard Henderson
On 5/15/20 10:08 AM, Philippe Mathieu-Daudé wrote: > +++ b/hw/semihosting/Kconfig > @@ -1,3 +1,5 @@ > > +# default is 'n' > config SEMIHOSTING > - bool > +bool > +depends on TCG > diff --git a/target/arm/Kconfig b/target/arm/Kconfig > new file mode 100644 > index 00..3224ca

Re: [PATCH v2 09/10] Makefile: Allow target-specific optional Kconfig

2020-05-19 Thread Richard Henderson
On 5/15/20 10:08 AM, Philippe Mathieu-Daudé wrote: > Allow use of target-specific Kconfig file. > > Signed-off-by: Philippe Mathieu-Daudé > --- > Makefile | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Richard Henderson r~

Re: [PATCH v2 5/5] iotests: add commit top->base cases to 274

2020-05-19 Thread Eric Blake
On 5/19/20 4:25 PM, Vladimir Sementsov-Ogievskiy wrote: $ ./qemu-img map --output=json top.qcow2 [{ "start": 0, "length": 1048576, "depth": 2, "zero": false, "data": true, "offset": 327680}, { "start": 1048576, "length": 1048576, "depth": 0, "zero": true, "data": false}] I think what we real

Re: [PATCH v2 04/10] accel/tcg: Add stub for probe_access()

2020-05-19 Thread Richard Henderson
On 5/15/20 10:07 AM, Philippe Mathieu-Daudé wrote: > From: Philippe Mathieu-Daudé > > The TCG helpers where added in b92e5a22ec3 in softmmu_template.h. > probe_write() was added in there in 3b4afc9e75a to be moved out > to accel/tcg/cputlb.c in 3b08f0a9254, and was later refactored > as probe_acc

Re: [PATCH v2 1/5] block/io: fix bdrv_co_block_status_above

2020-05-19 Thread Eric Blake
On 5/19/20 4:13 PM, Vladimir Sementsov-Ogievskiy wrote: 19.05.2020 23:41, Eric Blake wrote: On 5/19/20 2:54 PM, Vladimir Sementsov-Ogievskiy wrote: bdrv_co_block_status_above has several problems with handling short backing files: 1. With want_zeros=true, it may return ret with BDRV_BLOCK_ZERO

[PATCH v3 9/9] target/riscv: Use a smaller guess size for no-MMU PMP

2020-05-19 Thread Alistair Francis
Signed-off-by: Alistair Francis --- target/riscv/pmp.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/target/riscv/pmp.c b/target/riscv/pmp.c index 0e6b640fbd..607a991260 100644 --- a/target/riscv/pmp.c +++ b/target/riscv/pmp.c @@ -233,12 +233,16 @@ bool pmp_ha

[PATCH v3 8/9] riscv/opentitan: Connect the UART device

2020-05-19 Thread Alistair Francis
Signed-off-by: Alistair Francis Reviewed-by: Bin Meng --- include/hw/riscv/opentitan.h | 13 + hw/riscv/opentitan.c | 24 ++-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/include/hw/riscv/opentitan.h b/include/hw/riscv/opentitan.h index

[PATCH v3 7/9] riscv/opentitan: Connect the PLIC device

2020-05-19 Thread Alistair Francis
Signed-off-by: Alistair Francis Reviewed-by: Bin Meng --- include/hw/riscv/opentitan.h | 3 +++ hw/riscv/opentitan.c | 19 +-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/include/hw/riscv/opentitan.h b/include/hw/riscv/opentitan.h index 15a3d87ed0..8d

[PATCH v3 5/9] hw/char: Initial commit of Ibex UART

2020-05-19 Thread Alistair Francis
This is the initial commit of the Ibex UART device. Serial TX is working, while RX has been implemeneted but untested. This is based on the documentation from: https://docs.opentitan.org/hw/ip/uart/doc/ Signed-off-by: Alistair Francis --- include/hw/char/ibex_uart.h | 110 hw/char/ibex

[PATCH v3 3/9] target/riscv: Add the lowRISC Ibex CPU

2020-05-19 Thread Alistair Francis
Ibex is a small and efficient, 32-bit, in-order RISC-V core with a 2-stage pipeline that implements the RV32IMC instruction set architecture. For more details on lowRISC see here: https://github.com/lowRISC/ibex Signed-off-by: Alistair Francis Reviewed-by: Bin Meng --- target/riscv/cpu.h | 1

[PATCH v3 6/9] hw/intc: Initial commit of lowRISC Ibex PLIC

2020-05-19 Thread Alistair Francis
The Ibex core contains a PLIC that although similar to the RISC-V spec is not RISC-V spec compliant. This patch implements a Ibex PLIC in a somewhat generic way. As the current RISC-V PLIC needs tidying up, my hope is that as the Ibex PLIC move towards spec compliance this PLIC implementation can

[PATCH v3 1/9] riscv/boot: Add a missing header include

2020-05-19 Thread Alistair Francis
Currently every c file that includes boot.h also includes loader.h before it. Which is why the build works fine. We should be able to include just boot.h though so this is a small fixup to allow that. Signed-off-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Bin Meng ---

[PATCH v3 4/9] riscv: Initial commit of OpenTitan machine

2020-05-19 Thread Alistair Francis
This adds a barebone OpenTitan machine to QEMU. Signed-off-by: Alistair Francis Reviewed-by: Bin Meng --- default-configs/riscv32-softmmu.mak | 1 + default-configs/riscv64-softmmu.mak | 11 +- include/hw/riscv/opentitan.h| 63 +++ hw/riscv/opentitan.c| 169 +

[PATCH v3 2/9] target/riscv: Don't overwrite the reset vector

2020-05-19 Thread Alistair Francis
The reset vector is set in the init function don't set it again in realize. Signed-off-by: Alistair Francis --- target/riscv/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 059d71f2c7..5eb3c02735 100644 --- a/target/riscv/

[PATCH v3 0/9] RISC-V Add the OpenTitan Machine

2020-05-19 Thread Alistair Francis
OpenTitan is an open source silicon Root of Trust (RoT) project. This series adds initial support for the OpenTitan machine to QEMU. This series add the Ibex CPU to the QEMU RISC-V target. It then adds the OpenTitan machine, the Ibex UART and the Ibex PLIC. The UART has been tested sending and re

Re: [PATCH 53/55] qdev: Convert bus-less devices to qdev_realize() with Coccinelle

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:29 AM Markus Armbruster wrote: > > All remaining conversions to qdev_realize() are for bus-less devices. > Coccinelle script: > > // only correct for bus-less @dev! > > @@ > expression errp; > expression dev; > @@ > -qdev_init_nofail(dev); >

Re: [PATCH 45/55] sysbus: Convert qdev_set_parent_bus() use with Coccinelle, part 1

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:22 AM Markus Armbruster wrote: > > I'm converting from qdev_set_parent_bus()/realize to qdev_realize(); > recent commit "qdev: Convert uses of qdev_set_parent_bus() with > Coccinelle" explains why. > > sysbus_init_child_obj() is a wrapper around > object_initialize_child_

Re: [PATCH 1/4] hw/riscv: Allow creating multiple instances of CLINT

2020-05-19 Thread Alistair Francis
On Fri, May 15, 2020 at 11:39 PM Anup Patel wrote: > > We extend CLINT emulation to allow multiple instances of CLINT in > a QEMU RISC-V machine. To achieve this, we remove first HART id > zero assumption from CLINT emulation. > > Signed-off-by: Anup Patel Reviewed-by: Alistair Francis Alistai

Re: [PATCH 0/4] RISC-V multi-socket support

2020-05-19 Thread Alistair Francis
On Fri, May 15, 2020 at 11:40 PM Anup Patel wrote: > > This series adds multi-socket support for RISC-V virt machine and > RISC-V spike machine. The multi-socket support will help us improve > various RISC-V operating systems, firmwares, and bootloader to > support RISC-V NUMA systems. > > These p

Re: [PATCH v2 5/5] iotests: add commit top->base cases to 274

2020-05-19 Thread Vladimir Sementsov-Ogievskiy
20.05.2020 00:13, Eric Blake wrote: On 5/19/20 2:55 PM, Vladimir Sementsov-Ogievskiy wrote: These cases are fixed by previous patches around block_status and is_allocated. Signed-off-by: Vladimir Sementsov-Ogievskiy ---   tests/qemu-iotests/274 | 20   tests/qemu-iotests/274.ou

Re: [PATCH 43/55] sysbus: Convert to sysbus_realize() etc. with Coccinelle

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:25 AM Markus Armbruster wrote: > > Convert from qdev_realize(), qdev_realize_and_unref() with null @bus > argument to sysbus_realize(), sysbus_realize_and_unref(). > > Coccinelle script: > > @@ > expression dev, errp; > @@ > -qdev_realize(DEVICE(dev),

[PATCH v3 2/2] target/arm: Use clear_vec_high more effectively

2020-05-19 Thread Richard Henderson
Do not explicitly store zero to the NEON high part when we can pass !is_q to clear_vec_high. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 53 +++--- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/targ

Re: [PATCH 34/55] qom: Less verbose object_initialize_child()

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:04 AM Markus Armbruster wrote: > > All users of object_initialize_child() pass the obvious child size > argument. Almost all pass &error_abort and no properties. Tiresome. > > Rename object_initialize_child() to > object_initialize_child_with_props() to free the name.

[PATCH v3 1/2] target/arm: Use tcg_gen_gvec_mov for clear_vec_high

2020-05-19 Thread Richard Henderson
The 8-byte store for the end a !is_q operation can be merged with the other stores. Use a no-op vector move to trigger the expand_clr portion of tcg_gen_gvec_mov. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 10 ++ 1 file changed, 2 inserti

[PATCH v3 0/2] target/arm: vector tail cleanups

2020-05-19 Thread Richard Henderson
Version 3 fixes the reported bug in EXT. I should make sure I have fixed the bug wherein RISU prints a mismatch and still exits with success, which hid this problem in the scrollback. r~ Richard Henderson (2): target/arm: Use tcg_gen_gvec_mov for clear_vec_high target/arm: Use clear_vec_hi

Re: [PATCH 33/55] qom: Tidy up a few object_initialize_child() calls

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:04 AM Markus Armbruster wrote: > > The callers of object_initialize_child() commonly pass either > &child, sizeof(child), or pchild, sizeof(*pchild). Tidy up the few > that don't, mostly to keep the next commit simpler. > > Signed-off-by: Markus Armbruster Reviewed-by

Re: [PATCH v2 0/3] RTISC-V: Remove deprecated ISA, CPUs and machines

2020-05-19 Thread Alistair Francis
On Thu, May 7, 2020 at 12:19 PM Alistair Francis wrote: > > v2: > - Remove the CPUs and ISA seperatley > > Alistair Francis (3): > hw/riscv: spike: Remove deprecated ISA specific machines > target/riscv: Remove the deprecated CPUs > target/riscv: Drop support for ISA spec version 1.09.1 An

Re: [PATCH 24/55] ssi: ssi_create_slave_no_init() is now unused, drop

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:06 AM Markus Armbruster wrote: > > Cc: Alistair Francis > Signed-off-by: Markus Armbruster Reviewed-by: Alistair Francis Alistair > --- > include/hw/ssi/ssi.h | 1 - > hw/ssi/ssi.c | 5 - > 2 files changed, 6 deletions(-) > > diff --git a/include/hw/ssi

Re: [RISU v2 14/17] Add magic and size to the trace header

2020-05-19 Thread Richard Henderson
On 5/18/20 7:53 PM, Richard Henderson wrote: > +if (master_header.magic != RISU_MAGIC || > +master_header.risu_op != op || > +master_header.size != extra_size) { > +res = RES_MISMATCH_HEAD; > +goto fail_header; > } Hmm. This isn't ideal. Consider e.g. an

Re: [PATCH 21/55] ssi: ssi_auto_connect_slaves() never does anything, drop

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:14 AM Markus Armbruster wrote: > > ssi_auto_connect_slaves(parent, cs_line, bus) iterates over @parent's > QOM children @dev of type TYPE_SSI_SLAVE. It puts these on @bus, and > sets cs_line[] to qdev_get_gpio_in_named(dev, SSI_GPIO_CS, 0). > > Suspicious: there is no pr

Re: [PATCH 22/55] ssi: Convert uses of ssi_create_slave_no_init() with Coccinelle

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:19 AM Markus Armbruster wrote: > > Replace > > dev = ssi_create_slave_no_init(bus, type_name); > ... > qdev_init_nofail(dev); > > by > > dev = qdev_new(type_name); > ... > qdev_realize_and_unref(dev, bus, &error_fatal); > > Recent commit "qdev: New

Re: [PATCH v2 5/5] iotests: add commit top->base cases to 274

2020-05-19 Thread Eric Blake
On 5/19/20 2:55 PM, Vladimir Sementsov-Ogievskiy wrote: These cases are fixed by previous patches around block_status and is_allocated. Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/274 | 20 tests/qemu-iotests/274.out | 65 ++

Re: [PATCH v2 1/5] block/io: fix bdrv_co_block_status_above

2020-05-19 Thread Vladimir Sementsov-Ogievskiy
19.05.2020 23:41, Eric Blake wrote: On 5/19/20 2:54 PM, Vladimir Sementsov-Ogievskiy wrote: bdrv_co_block_status_above has several problems with handling short backing files: 1. With want_zeros=true, it may return ret with BDRV_BLOCK_ZERO but without BDRV_BLOCK_ALLOCATED flag, when actually sho

Re: [PATCH 03/55] qdev: New qdev_new(), qdev_realize(), etc.

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:11 AM Markus Armbruster wrote: > > We commonly plug devices into their bus right when we create them, > like this: > > dev = qdev_create(bus, type_name); > > Note that @dev is a weak reference. The reference from @bus to @dev > is the only strong one. > > We realize

Re: [PATCH 23/55] ssi: Convert last use of ssi_create_slave_no_init() manually

2020-05-19 Thread Alistair Francis
On Tue, May 19, 2020 at 8:03 AM Markus Armbruster wrote: > > Same transformation as in the previous commit. Manual, because > convincing Coccinelle to transform this case is not worthwhile. > > Cc: Alistair Francis > Signed-off-by: Markus Armbruster Looks sane. Acked-by: Alistair Francis Al

Re: [PATCH v2 4/5] block/io: fix bdrv_is_allocated_above

2020-05-19 Thread Eric Blake
On 5/19/20 2:55 PM, Vladimir Sementsov-Ogievskiy wrote: bdrv_is_allocated_above wrongly handles short backing files: it reports after-EOF space as UNALLOCATED which is wrong, You haven't convinced me of that claim. as on read the data is generated on the level of short backing file (if all ov

Re: [PATCH v2 1/5] block/io: fix bdrv_co_block_status_above

2020-05-19 Thread Eric Blake
On 5/19/20 2:54 PM, Vladimir Sementsov-Ogievskiy wrote: bdrv_co_block_status_above has several problems with handling short backing files: 1. With want_zeros=true, it may return ret with BDRV_BLOCK_ZERO but without BDRV_BLOCK_ALLOCATED flag, when actually short backing file which produces these

[Bug 1856335] Re: Cache Layout wrong on many Zen Arch CPUs

2020-05-19 Thread Heiko Sieger
Thanks Jan. I had some new hardware/software issues combined with the QEMU 5.0.. issues that had my Windows VM crash after some minutes. I totally overlooked the following: So I guess you posted to answer to this: https://www.reddit.com/r/VFIO/comments/erwzrg/think_i_found_a_workaround_

Re: [PATCH v2 0/5] fix & merge block_status_above and is_allocated_above

2020-05-19 Thread Vladimir Sementsov-Ogievskiy
19.05.2020 23:21, Eric Blake wrote: On 5/19/20 2:54 PM, Vladimir Sementsov-Ogievskiy wrote: This leads to the following effect: ./qemu-img create -f qcow2 base.qcow2 2M ./qemu-io -c "write -P 0x1 0 2M" base.qcow2 ./qemu-img create -f qcow2 -b base.qcow2 mid.qcow2 1M ./qemu-img create -f qcow2

Re: [PATCH v2 0/5] fix & merge block_status_above and is_allocated_above

2020-05-19 Thread Eric Blake
On 5/19/20 2:54 PM, Vladimir Sementsov-Ogievskiy wrote: This leads to the following effect: ./qemu-img create -f qcow2 base.qcow2 2M ./qemu-io -c "write -P 0x1 0 2M" base.qcow2 ./qemu-img create -f qcow2 -b base.qcow2 mid.qcow2 1M ./qemu-img create -f qcow2 -b mid.qcow2 top.qcow2 2M Region 1M

[PATCH 5/7] net/colo-compare.c: Only hexdump packets if tracing is enabled

2020-05-19 Thread Zhang Chen
From: Lukas Straub Else the log will be flooded if there is a lot of network traffic. Signed-off-by: Lukas Straub Reviewed-by: Zhang Chen Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Zhang Chen --- net/colo-compare.c | 10 ++ 1 file changed,

Re: Question: How do I discard any changes for the device which is set by blockdev option?

2020-05-19 Thread Masayoshi Mizuma
On Tue, May 19, 2020 at 01:41:08PM -0500, Eric Blake wrote: > On 5/19/20 12:56 PM, Masayoshi Mizuma wrote: > > Hello, > > > > I would like to discard any changes while the qemu guest OS is done. > > I can do that with snapshot and drive option. > > However, snapshot option doesn't work for the dev

[PATCH 1/7] colo-compare: Fix memory leak in packet_enqueue()

2020-05-19 Thread Zhang Chen
From: Derek Su The patch is to fix the "pkt" memory leak in packet_enqueue(). The allocated "pkt" needs to be freed if the colo compare primary or secondary queue is too big. Replace the error_report of full queue with a trace event. Signed-off-by: Derek Su Reviewed-by: Zhang Chen Signed-off-

[PATCH 7/7] net/colo-compare.c: Correct ordering in complete and finalize

2020-05-19 Thread Zhang Chen
From: Lukas Straub In colo_compare_complete, insert CompareState into net_compares only after everything has been initialized. In colo_compare_finalize, remove CompareState from net_compares before anything is deinitialized. Signed-off-by: Lukas Straub Reviewed-by: Zhang Chen Signed-off-by: Zh

  1   2   3   4   >