Re: [Qemu-devel] [PATCH 4/6] hmp: Add info commands for preconfig

2018-06-07 Thread Markus Armbruster
"Dr. David Alan Gilbert" writes: > * Markus Armbruster (arm...@redhat.com) wrote: >> "Dr. David Alan Gilbert" writes: >> >> > * Markus Armbruster (arm...@redhat.com) wrote: >> >> Peter Xu writes: >> >> >> >> > On Tue, Jun 05, 2018 at 01:26:34PM +0100, Dr. David Alan Gilbert (git) >> >> >

Re: [Qemu-devel] [PATCH] slirp: Add Samuel Thibault's staging tree for slirp

2018-06-07 Thread Thomas Huth
On 06.06.2018 15:14, Samuel Thibault wrote: > Ping? I'm not sure who I am supposed to get a review from, or if I have > to have one at all? > > Samuel > > Samuel Thibault, le jeu. 31 mai 2018 21:48:43 +0200, a ecrit: >> Signed-off-by: Samuel Thibault >> --- >> MAINTAINERS | 1 + >> 1 file

Re: [Qemu-devel] [PATCH] chardev: Restore CR,LF on stdio

2018-06-07 Thread Thomas Huth
On 07.06.2018 23:08, Philippe Mathieu-Daudé wrote: > Remove the 'stair-step output' on stdio. > > This partially reverts commit 12fb0ac05, which was correct > on the mailing list but got corrupted by the maintainer :p > > Introduced-by: 3b876140-c035-dd39-75d0-d54c48128...@redhat.com >

Re: [Qemu-devel] [RFC v2 09/12] Add vhost-input-pci

2018-06-07 Thread Gerd Hoffmann
On Fri, Jun 08, 2018 at 12:22:38AM +0200, Marc-André Lureau wrote: > Hi > > On Mon, Jun 4, 2018 at 10:58 AM, Gerd Hoffmann wrote: > >> +#define TYPE_VHOST_USER_INPUT_PCI "vhost-user-input-pci" > > > > Patch $subject mismatch. > > > >> +struct VHostUserInput { > >> +VirtIOInput

Re: [Qemu-devel] [PATCH 4/6] hmp: Add info commands for preconfig

2018-06-07 Thread Markus Armbruster
Igor Mammedov writes: > On Thu, 07 Jun 2018 14:22:34 +0200 > Markus Armbruster wrote: > >> Peter Xu writes: >> >> > On Tue, Jun 05, 2018 at 01:26:34PM +0100, Dr. David Alan Gilbert (git) >> > wrote: >> >> From: "Dr. David Alan Gilbert" >> >> >> >> Allow a bunch of the info commands to be

Re: [Qemu-devel] [qemu PATCH 3/5] hw/i386: Update SSDT table used by "make check"

2018-06-07 Thread Thomas Huth
On 08.06.2018 00:31, Ross Zwisler wrote: > This commit: > > commit aa78a16d8645 ("hw/i386: Rename 2.13 machine types to 3.0") > > updated the name used to create the q35 machine, which in turn changed the > SSDT table which is generated when we run "make check": > > acpi-test: Warning! SSDT

Re: [Qemu-devel] [PATCH v10 5/7] monitor: remove event_clock_type

2018-06-07 Thread Markus Armbruster
Peter Xu writes: > Instead, use a dynamic function to detect which clock we'll use. The > problem is that the old code will let monitor initialization depend on > configure_accelerator() (that's where qtest_enabled() start to take > effect). After this change, we don't have such a dependency

Re: [Qemu-devel] [qemu PATCH 4/5] machine: fix some misspelled words

2018-06-07 Thread Thomas Huth
On 08.06.2018 00:31, Ross Zwisler wrote: > Normally this might not be worth fixing, but several of these are strings > which are displayed to users. > > Signed-off-by: Ross Zwisler > --- > hw/core/machine.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git

Re: [Qemu-devel] [PATCH v2 8/8] qapi: query-blockstat: add driver specific file-posix stats

2018-06-07 Thread Markus Armbruster
Eric Blake writes: > On 06/07/2018 10:23 AM, Anton Nefedov wrote: If we introduce BlockdevDriver as a discriminator as Markus suggests above, we need some way to define its value. I guess one would be to check blk->bs->drv->format_name but it won't always work; often it's

Re: [Qemu-devel] [qemu PATCH 2/5] acpi: "make check" should fail on asl mismatch

2018-06-07 Thread Thomas Huth
On 08.06.2018 01:09, Michael S. Tsirkin wrote: > On Thu, Jun 07, 2018 at 04:31:08PM -0600, Ross Zwisler wrote: >> Currently if "make check" detects a mismatch in the ASL generated during >> testing, we print an error such as: >> >> acpi-test: Warning! SSDT mismatch. Actual

Re: [Qemu-devel] [Qemu-block] Some question about savem/qcow2 incremental snapshot

2018-06-07 Thread He, Junyan
Dear all: I just switched from graphic/media field to virtualization at the end of the last year, so I am sorry that though I have already try my best but I still feel a little dizzy about your previous discussion about NVDimm via block layer:) In today's qemu, we use the SaveVMHandlers

Re: [Qemu-devel] [PATCH] monitor: postpone monitor_qmp_cleanup_queues

2018-06-07 Thread Peter Xu
On Thu, Jun 07, 2018 at 01:53:01PM +0200, Markus Armbruster wrote: > Peter Xu writes: > > > Previously we cleanup the queues when we got CLOSED event. It was used > > we clean up > > > to make sure we won't leftover replies/events of a old client to a new > > we won't send leftover

Re: [Qemu-devel] [PATCH v2 2/4] hw/ppc/spapr_drc: Replace error_setg(_abort) by abort()

2018-06-07 Thread David Gibson
On Fri, Jun 08, 2018 at 12:54:36AM -0300, Philippe Mathieu-Daudé wrote: > Hi David, > > On 06/08/2018 12:03 AM, David Gibson wrote: > > On Thu, Jun 07, 2018 at 11:46:43AM -0300, Philippe Mathieu-Daudé wrote: > >> Use abort() instead of error_setg(_abort), > >> as suggested by the "qapi/error.h"

Re: [Qemu-devel] [PATCH v1 7/8] spapr: handle cpu core unplug via hotplug handler chain

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 06:52:17PM +0200, David Hildenbrand wrote: > Let's handle it via hotplug_handler_unplug() to make plug/unplug code > look symmetrical. > > Acked-by: Igor Mammedov > Signed-off-by: David Hildenbrand Acked-by: David Gibson > --- > hw/ppc/spapr.c | 12 +++- > 1

Re: [Qemu-devel] [PATCH v1 5/8] spapr: introduce machine unplug handler

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 06:52:15PM +0200, David Hildenbrand wrote: > We'll be handling unplug of e.g. CPUs and PCDIMMs via the general > hotplug handler soon, so let's add that handler function. > > Signed-off-by: David Hildenbrand Acked-by: David Gibson > --- > hw/ppc/spapr.c | 6 ++ >

Re: [Qemu-devel] [PATCH v1 2/8] spapr: no need to verify the node

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 06:52:12PM +0200, David Hildenbrand wrote: > The node property can always be queried and the value has already been > verified in pc_dimm_realize(). > > Signed-off-by: David Hildenbrand Acked-by: David Gibson > --- > hw/ppc/spapr.c | 9 + > 1 file changed, 1

Re: [Qemu-devel] [PATCH v1 4/8] spapr: local error handling in hotplug handler functions

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 06:52:14PM +0200, David Hildenbrand wrote: > Let's introduce and use local error variables in the hotplug handler > functions. > > Signed-off-by: David Hildenbrand Acked-by: David Gibson > --- > hw/ppc/spapr.c | 29 - > 1 file changed, 20

Re: [Qemu-devel] [PATCH v1 3/8] spapr: move all DIMM checks into spapr_memory_plug

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 06:52:13PM +0200, David Hildenbrand wrote: > Let's clean the hotplug handler up by moving everything into > spapr_memory_plug(). > > Signed-off-by: David Hildenbrand Acked-by: David Gibson > --- > hw/ppc/spapr.c | 23 ++- > 1 file changed, 10

Re: [Qemu-devel] [PATCH v1 6/8] spapr: handle pc-dimm unplug via hotplug handler chain

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 06:52:16PM +0200, David Hildenbrand wrote: > Let's handle it via hotplug_handler_unplug(). E.g. necessary to hotplug/ > unplug memory devices (which a pc-dimm is) later. > > Signed-off-by: David Hildenbrand Acked-by: David Gibson > --- > hw/ppc/spapr.c | 18

[Qemu-devel] [PATCH v10 4/7] monitor: fix comment for monitor_lock

2018-06-07 Thread Peter Xu
Fix typo in d622cb5879c. Meanwhile move these variables close to each other. monitor_qapi_event_state can be declared static, add that. Reported-by: Markus Armbruster Reviewed-by: Stefan Hajnoczi Reviewed-by: Markus Armbruster Signed-off-by: Peter Xu --- monitor.c | 7 +++ 1 file

[Qemu-devel] [PATCH v10 7/7] monitor: add lock to protect mon_fdsets

2018-06-07 Thread Peter Xu
Introduce a new global big lock for mon_fdsets. Take it where needed. The monitor_fdset_get_fd() handling is a bit tricky: now we need to call qemu_mutex_unlock() which might pollute errno, so we need to make sure the correct errno be passed up to the callers. To make things simpler, we let

[Qemu-devel] [PATCH v10 6/7] monitor: move init global earlier

2018-06-07 Thread Peter Xu
Before this patch, monitor fd helpers might be called even earlier than monitor_init_globals(). This can be problematic. After previous work, now monitor_init_globals() does not depend on accelerator initialization any more. Call it earlier (before CLI parsing; that's where the monitor APIs

[Qemu-devel] [PATCH v10 3/7] monitor: more comments on lock-free elements

2018-06-07 Thread Peter Xu
Add some explicit comments for both Readline and cpu_set/cpu_get helpers that they do not need the mon_lock protection. Reviewed-by: Stefan Hajnoczi Reviewed-by: Markus Armbruster Signed-off-by: Peter Xu --- monitor.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PATCH v10 0/7] monitor: let Monitor be thread safe

2018-06-07 Thread Peter Xu
v10: - collect r-bs - comment/renice the function monitor_get_clock(), add some commit message [Stefan, Markus] v9: - two more patches to implement Markus's idea to init monitor earlier (which are patch 5 & 6) - touch up patch 7 to init the fdset lock in monitor_init_globals() v8: - some

[Qemu-devel] [PATCH v10 1/7] monitor: rename out_lock to mon_lock

2018-06-07 Thread Peter Xu
The out_lock is protecting a few Monitor fields. In the future the monitor code will start to run in multiple threads. We are going to turn it into a bigger lock to protect not only the out buffer but also most of the rest. Since at it, rearrange the Monitor struct a bit. Reviewed-by: Stefan

[Qemu-devel] [PATCH v10 5/7] monitor: remove event_clock_type

2018-06-07 Thread Peter Xu
Instead, use a dynamic function to detect which clock we'll use. The problem is that the old code will let monitor initialization depend on configure_accelerator() (that's where qtest_enabled() start to take effect). After this change, we don't have such a dependency any more. We just need to

Re: [Qemu-devel] [PATCH v2 2/4] hw/ppc/spapr_drc: Replace error_setg(_abort) by abort()

2018-06-07 Thread Philippe Mathieu-Daudé
Hi David, On 06/08/2018 12:03 AM, David Gibson wrote: > On Thu, Jun 07, 2018 at 11:46:43AM -0300, Philippe Mathieu-Daudé wrote: >> Use abort() instead of error_setg(_abort), >> as suggested by the "qapi/error.h" documentation: >> >> Please don't error_setg(_fatal, ...), use error_report() and

Re: [Qemu-devel] [PATCH v9 5/7] monitor: remove event_clock_type

2018-06-07 Thread Peter Xu
On Thu, Jun 07, 2018 at 04:32:54PM +0200, Markus Armbruster wrote: > Peter Xu writes: > > > Instead, use a dynamic function to detect which clock we'll use. The > > problem is that the old code will let monitor initialization depends on > > qtest_enabled(). After this change, we don't have

[Qemu-devel] [PATCH v10 2/7] monitor: protect mon->fds with mon_lock

2018-06-07 Thread Peter Xu
mon->fds were protected by BQL. Now protect it by mon_lock so that it can even be used in monitor iothread. Reviewed-by: Stefan Hajnoczi Reviewed-by: Markus Armbruster Signed-off-by: Peter Xu --- monitor.c | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff

Re: [Qemu-devel] [PATCH 4/4] hw/sd/omap_mmc: Reset SD card on controller reset

2018-06-07 Thread Philippe Mathieu-Daudé
Hi Peter, On 01/09/2018 11:01 AM, Peter Maydell wrote: > Since omap_mmc is still using the legacy SD card API, the SD > card created by sd_init() is not plugged into any bus. This > means that the controller has to reset it manually. > > Failing to do this mostly didn't affect the guest since

Re: [Qemu-devel] [PATCH v7 4/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-06-07 Thread Peter Xu
On Fri, Jun 08, 2018 at 05:49:26AM +0300, Michael S. Tsirkin wrote: > On Fri, Jun 08, 2018 at 10:34:25AM +0800, Peter Xu wrote: > > On Fri, Jun 08, 2018 at 04:58:21AM +0300, Michael S. Tsirkin wrote: > > > On Fri, Jun 08, 2018 at 09:37:23AM +0800, Peter Xu wrote: > > > > > > Asked since I see this

Re: [Qemu-devel] [PATCH v2] target/ppc: extend eieio for POWER9

2018-06-07 Thread David Gibson
On Wed, Jun 06, 2018 at 09:33:53AM +0200, Cédric Le Goater wrote: > POWER9 introduced a new variant of the eieio instruction using bit 6 > as a hint to tell the CPU it is a store-forwarding barrier. > > The usage of this eieio extension was recently added in Linux 4.17 > which activated the

Re: [Qemu-devel] [PATCH v2 2/4] hw/ppc/spapr_drc: Replace error_setg(_abort) by abort()

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 11:46:43AM -0300, Philippe Mathieu-Daudé wrote: > Use abort() instead of error_setg(_abort), > as suggested by the "qapi/error.h" documentation: > > Please don't error_setg(_fatal, ...), use error_report() and > exit(), because that's more obvious. > Likewise,

Re: [Qemu-devel] [PATCH v2 4/4] device_tree: Replace error_setg(_fatal) by error_report() + exit()

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 11:46:45AM -0300, Philippe Mathieu-Daudé wrote: > Use error_report() + exit() instead of error_setg(_fatal), > as suggested by the "qapi/error.h" documentation: > >Please don't error_setg(_fatal, ...), use error_report() and >exit(), because that's more obvious. >

[Qemu-devel] [PATCH] cpu hot-del: leak fix by free the relevant members

2018-06-07 Thread liujunjie
THese leaks are found by ASAN with CPU hot-add and hot-del actions, such as: ==14127==ERROR: LeakSanitizer: detected memory leaks Direct leak of 4096 byte(s) in 1 object(s) allocated from: #0 0x7fc321cb6ec0 in posix_memalign (/usr/local/gcc-6-4/lib64/libasan.so.3+0xc7ec0) #1 0xf756b9 in

Re: [Qemu-devel] [PATCH v7 4/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-06-07 Thread Michael S. Tsirkin
On Fri, Jun 08, 2018 at 10:34:25AM +0800, Peter Xu wrote: > On Fri, Jun 08, 2018 at 04:58:21AM +0300, Michael S. Tsirkin wrote: > > On Fri, Jun 08, 2018 at 09:37:23AM +0800, Peter Xu wrote: > > > > > Asked since I see this in virtio spec (v1.0, though I guess it won't > > > > > change) in chapter

[Qemu-devel] [PATCH V6 RESEND 7/7] migration/ram: ensure write persistence on loading all data to PMEM.

2018-06-07 Thread junyan . he
From: Junyan He Because we need to make sure the pmem kind memory data is synced after migration, we choose to call pmem_persist() when the migration finish. This will make sure the data of pmem is safe and will not lose if power is off. Signed-off-by: Junyan He --- include/qemu/pmem.h | 1 +

Re: [Qemu-devel] [PATCH v7 4/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-06-07 Thread Peter Xu
On Fri, Jun 08, 2018 at 04:58:21AM +0300, Michael S. Tsirkin wrote: > On Fri, Jun 08, 2018 at 09:37:23AM +0800, Peter Xu wrote: > > > > Asked since I see this in virtio spec (v1.0, though I guess it won't > > > > change) in chapter "2.2.1 Driver Requirements: Feature Bits": > > > > > > > > "The

Re: [Qemu-devel] [PATCH v7 4/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-06-07 Thread Peter Xu
On Thu, Jun 07, 2018 at 07:59:22PM +0800, Wei Wang wrote: > On 06/07/2018 02:32 PM, Peter Xu wrote: > > On Thu, Jun 07, 2018 at 01:24:29PM +0800, Wei Wang wrote: > > > On 06/06/2018 07:02 PM, Peter Xu wrote: > > > > On Wed, Jun 06, 2018 at 06:04:23PM +0800, Wei Wang wrote: > > > > > On 06/06/2018

Re: [Qemu-devel] [PATCH 0/4] cuda/mos6522 migration fixes

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 06:17:47PM +0100, Mark Cave-Ayland wrote: > Whilst performing a random migration test for the Mac machines I noticed > a regression (patch 1) which prevented the loadvm from completing > successfully. A big thank you to Peter and David on IRC who pointed me > in the right

Re: [Qemu-devel] [PATCH 2/4] cuda: embed mos6522_cuda device directly rather than using QOM object link

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 06:17:49PM +0100, Mark Cave-Ayland wrote: > Examining the migration stream it can be seen that the mos6522 device state is > being stored separately rather than as part of the CUDA device which is > incorrect (and likely to cause issues if another mos6522 device is added to

Re: [Qemu-devel] [PATCH 0/3] ppc: trivial Mac fixes

2018-06-07 Thread David Gibson
On Thu, Jun 07, 2018 at 05:59:52PM +0100, Mark Cave-Ayland wrote: > Here are some trivial Mac fixes taken from various working branches in my > local git repository. Since they should need minimal review it seems > worthwhile to send them separately. > > Signed-off-by: Mark Cave-Ayland Applied

Re: [Qemu-devel] [PATCH v7 4/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-06-07 Thread Peter Xu
On Fri, Jun 08, 2018 at 09:37:23AM +0800, Peter Xu wrote: [...] > > > Asked since I see this in virtio spec (v1.0, though I guess it won't > > > change) in chapter "2.2.1 Driver Requirements: Feature Bits": > > > > > > "The driver MUST NOT accept a feature which the device did not offer" > > >

Re: [Qemu-devel] [PATCH v7 4/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-06-07 Thread Michael S. Tsirkin
On Fri, Jun 08, 2018 at 09:37:23AM +0800, Peter Xu wrote: > > > Asked since I see this in virtio spec (v1.0, though I guess it won't > > > change) in chapter "2.2.1 Driver Requirements: Feature Bits": > > > > > > "The driver MUST NOT accept a feature which the device did not offer" > > > > > >

Re: [Qemu-devel] [PATCH v7 4/5] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-06-07 Thread Peter Xu
On Thu, Jun 07, 2018 at 08:01:42PM +0800, Wei Wang wrote: > On 06/07/2018 02:58 PM, Peter Xu wrote: > > On Thu, Jun 07, 2018 at 01:29:22PM +0800, Wei Wang wrote: > > > > > > [...] > > > > > > > +static const VMStateDescription > > > > > > > vmstate_virtio_balloon_free_page_report = { > > > > > >

Re: [Qemu-devel] [PATCH] hw/arm/smmuv3: fix smmu emulation when guest smmu is in passthrough mode

2018-06-07 Thread Jia He
Hi Eric On 6/8/2018 1:06 AM, Auger Eric Wrote: > Hi Jia, > > On 06/07/2018 03:38 PM, Jia He wrote: >> There is an exception when I passes iommu.passthrough=1 to guest's >> kernel boot parameter(host QDF2400 kernel 4.17, guest kernel 4.14). >> The guest will be hang when booting up. >> >> When

Re: [Qemu-devel] [PATCH] kvm: support -realtime cpu-pm=on|off

2018-06-07 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180608000540.276617-1-...@redhat.com Subject: [Qemu-devel] [PATCH] kvm: support -realtime cpu-pm=on|off === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git

[Qemu-devel] [PATCH] kvm: support -realtime cpu-pm=on|off

2018-06-07 Thread Michael S. Tsirkin
With this flag, kvm allows guest to control host CPU power state. This increases latency for other processes using same host CPU in an unpredictable way, but if decreases idle entry/exit times for the running VCPU. Follow-up patches will expose this capability to guest (using mwait leaf). Based

Re: [Qemu-devel] [qemu PATCH 3/5] hw/i386: Update SSDT table used by "make check"

2018-06-07 Thread Michael S. Tsirkin
On Thu, Jun 07, 2018 at 04:31:09PM -0600, Ross Zwisler wrote: > This commit: > > commit aa78a16d8645 ("hw/i386: Rename 2.13 machine types to 3.0") > > updated the name used to create the q35 machine, which in turn changed the > SSDT table which is generated when we run "make check": > >

Re: [Qemu-devel] [qemu PATCH 2/5] acpi: "make check" should fail on asl mismatch

2018-06-07 Thread Michael S. Tsirkin
On Thu, Jun 07, 2018 at 04:31:08PM -0600, Ross Zwisler wrote: > Currently if "make check" detects a mismatch in the ASL generated during > testing, we print an error such as: > > acpi-test: Warning! SSDT mismatch. Actual [asl:/tmp/asl-QZDWJZ.dsl, > aml:/tmp/aml-T8JYJZ], Expected

[Qemu-devel] [qemu PATCH 5/5] nvdimm: make persistence option symbolic

2018-06-07 Thread Ross Zwisler
Replace the "nvdimm-cap" option which took numeric arguments such as "2" with a more user friendly "nvdimm-persistence" option which takes symbolic arguments "cpu" or "mem-ctrl". Signed-off-by: Ross Zwisler Suggested-by: Michael S. Tsirkin Suggested-by: Dan Williams --- docs/nvdimm.txt

Re: [Qemu-devel] [RFC v2 04/12] Add vhost-user-backend

2018-06-07 Thread Marc-André Lureau
Hi On Mon, Jun 4, 2018 at 11:36 AM, Daniel P. Berrangé wrote: > On Fri, Jun 01, 2018 at 06:27:41PM +0200, Marc-André Lureau wrote: >> Create a vhost-user-backend object that holds a connection to a >> vhost-user backend and can be referenced from virtio devices that >> support it. See later

[Qemu-devel] [qemu PATCH 1/5] gitignore: ignore generated qapi job files

2018-06-07 Thread Ross Zwisler
With a fully built QEMU I currently see the following with "git status": Untracked files: (use "git add ..." to include in what will be committed) qapi/qapi-commands-job.c qapi/qapi-commands-job.h qapi/qapi-events-job.c qapi/qapi-events-job.h

[Qemu-devel] [qemu PATCH 3/5] hw/i386: Update SSDT table used by "make check"

2018-06-07 Thread Ross Zwisler
This commit: commit aa78a16d8645 ("hw/i386: Rename 2.13 machine types to 3.0") updated the name used to create the q35 machine, which in turn changed the SSDT table which is generated when we run "make check": acpi-test: Warning! SSDT mismatch. Actual [asl:/tmp/asl-QZDWJZ.dsl,

[Qemu-devel] [qemu PATCH 2/5] acpi: "make check" should fail on asl mismatch

2018-06-07 Thread Ross Zwisler
Currently if "make check" detects a mismatch in the ASL generated during testing, we print an error such as: acpi-test: Warning! SSDT mismatch. Actual [asl:/tmp/asl-QZDWJZ.dsl, aml:/tmp/aml-T8JYJZ], Expected [asl:/tmp/asl-DTWVJZ.dsl, aml:tests/acpi-test-data/q35/SSDT.dimmpxm]. but the

[Qemu-devel] [qemu PATCH 4/5] machine: fix some misspelled words

2018-06-07 Thread Ross Zwisler
Normally this might not be worth fixing, but several of these are strings which are displayed to users. Signed-off-by: Ross Zwisler --- hw/core/machine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/core/machine.c b/hw/core/machine.c index 617e5f8d75..a21269fa39

Re: [Qemu-devel] [RFC v2 09/12] Add vhost-input-pci

2018-06-07 Thread Marc-André Lureau
Hi On Mon, Jun 4, 2018 at 10:58 AM, Gerd Hoffmann wrote: >> +#define TYPE_VHOST_USER_INPUT_PCI "vhost-user-input-pci" > > Patch $subject mismatch. > >> +struct VHostUserInput { >> +VirtIOInput parent_obj; >> + >> +VhostUserBackend *vhost; >> +}; > >

Re: [Qemu-devel] [PATCH v1 0/2] memory: fix alignment checks/asserts

2018-06-07 Thread Michael S. Tsirkin
On Thu, Jun 07, 2018 at 05:47:03PM +0200, David Hildenbrand wrote: > We can currently hit two asserts. Let's fix those. > > Patch nr. 1 is a result from: > "[PATCH v4 00/14] MemoryDevice: use multi stage hotplug handlers" > > We treat right now any alignment > 1GB as a violation, as it would

Re: [Qemu-devel] storing machine data in qcow images?

2018-06-07 Thread Michael S. Tsirkin
On Wed, Jun 06, 2018 at 07:06:27PM +0200, Max Reitz wrote: > On 2018-06-06 17:09, Michael S. Tsirkin wrote: > > On Wed, Jun 06, 2018 at 04:51:39PM +0200, Max Reitz wrote: > >> On 2018-06-06 16:31, Dr. David Alan Gilbert wrote: > >>> * Max Reitz (mre...@redhat.com) wrote: > On 2018-06-06

Re: [Qemu-devel] [RFC PATCH 00/19] block: Configuration fixes and rbd authentication

2018-06-07 Thread Jeff Cody
On Thu, Jun 07, 2018 at 08:25:40AM +0200, Markus Armbruster wrote: > This series is RFC because: > > * It clashes with parts of Max's "[PATCH 00/13] block: Try to create > well typed json:{} filenames". I missed that one until too late, > sorry. > > - I stole "[PATCH 06/13] block: Add

Re: [Qemu-devel] storing machine data in qcow images?

2018-06-07 Thread Michael S. Tsirkin
On Thu, Jun 07, 2018 at 12:54:33PM +0200, Andrea Bolognani wrote: > On Thu, 2018-06-07 at 11:36 +0100, Daniel P. Berrangé wrote: > > On Thu, Jun 07, 2018 at 11:32:18AM +0100, Richard W.M. Jones wrote: > > > Another problem which Laszlo mentioned is the varstore isn't portable > > > between UEFI

Re: [Qemu-devel] storing machine data in qcow images?

2018-06-07 Thread Michael S. Tsirkin
On Thu, Jun 07, 2018 at 11:36:20AM +0100, Daniel P. Berrangé wrote: > On Thu, Jun 07, 2018 at 11:32:18AM +0100, Richard W.M. Jones wrote: > > On Thu, Jun 07, 2018 at 12:02:29PM +0200, Andrea Bolognani wrote: > > > Something that I haven't seen mentioned in the thread - and this > > > looks like as

Re: [Qemu-devel] [PATCH 0/4] cuda/mos6522 migration fixes

2018-06-07 Thread Philippe Mathieu-Daudé
On 06/07/2018 05:17 PM, Peter Maydell wrote: > On 7 June 2018 at 20:18, Philippe Mathieu-Daudé wrote: >> You forgot patch 5 "vmstate: Remove VMSTATE_TIMER_PTR_TEST" :) > > It's a generic macro that might have utility in future, > and it fits into a slot in the matrix of possible VMSTATE >

[Qemu-devel] [PATCH] chardev: Restore CR,LF on stdio

2018-06-07 Thread Philippe Mathieu-Daudé
Remove the 'stair-step output' on stdio. This partially reverts commit 12fb0ac05, which was correct on the mailing list but got corrupted by the maintainer :p Introduced-by: 3b876140-c035-dd39-75d0-d54c48128...@redhat.com Reported-by: BALATON Zoltan Suggested-by: Thomas Huth Tested-by: Laurent

[Qemu-devel] [Bug 1775702] [NEW] High host CPU load and slower guest after upgrade guest OS Windows 10 to ver 1803

2018-06-07 Thread Giovanni Panozzo
Public bug reported: After upgrading Windows 10 guest to version 1803, guests VM runs slower and there is high host CPU load even when guest is almost idle. Did not happened with windows 10 up to version 1709. See my 1st report here:

Re: [Qemu-devel] [PATCH] Improve file-backed RAM

2018-06-07 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20180606205629.66987-1-...@google.com Subject: [Qemu-devel] [PATCH] Improve file-backed RAM === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under the git checkout with

Re: [Qemu-devel] storing machine data in qcow images?

2018-06-07 Thread Gerd Hoffmann
Hi, > > I could be wrong, but I feel like it's significantly less likely > > that a random QEMU binary won't like a random EFI ROM than it is > > for a random EFI ROM to not like a random EFI NVRAM. > > True, but it's not that rare to find SeaBIOS+qemu version problems; Hmm? Any recent

Re: [Qemu-devel] [PATCH v1.1 0/9] target/m68k: Convert to TranslatorOps

2018-06-07 Thread Laurent Vivier
Le 12/05/2018 à 07:02, Richard Henderson a écrit : > [ Ho, hum. I didn't clear out my scratch directory before sending v1.0. ] > > FYI, I've only tested this with linux-user-test-0.3 and > our qemu coldfire testing kernel. > > > r~ > > > Richard Henderson (9): > target/m68k: Use

Re: [Qemu-devel] [PATCH 0/4] cuda/mos6522 migration fixes

2018-06-07 Thread Peter Maydell
On 7 June 2018 at 20:18, Philippe Mathieu-Daudé wrote: > You forgot patch 5 "vmstate: Remove VMSTATE_TIMER_PTR_TEST" :) It's a generic macro that might have utility in future, and it fits into a slot in the matrix of possible VMSTATE macros, so I wouldn't bother. (It's kind of irritating that we

Re: [Qemu-devel] [PATCH 0/4] linux-user: syscall number fixes

2018-06-07 Thread Laurent Vivier
Le 07/06/2018 à 20:56, no-re...@patchew.org a écrit : ... > === OUTPUT BEGIN === > Checking PATCH 1/4: linux-user/alpha: Fix epoll syscalls... > ERROR: code indent should never use tabs > #22: FILE: linux-user/alpha/syscall_nr.h:346: > +#define TARGET_NR_epoll_create^I^I407$ > > ERROR: code

Re: [Qemu-devel] [PATCH 4/4] linux-user/sparc64: Add inotify_rm_watch and tee syscalls

2018-06-07 Thread Laurent Vivier
Le 07/06/2018 à 20:48, Richard Henderson a écrit : > Signed-off-by: Richard Henderson > --- > linux-user/sparc64/syscall_nr.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/linux-user/sparc64/syscall_nr.h b/linux-user/sparc64/syscall_nr.h > index

Re: [Qemu-devel] [PATCH 3/4] linux-user/microblaze: Fix typo in accept4 syscall

2018-06-07 Thread Laurent Vivier
Le 07/06/2018 à 20:48, Richard Henderson a écrit : > Signed-off-by: Richard Henderson > --- > linux-user/microblaze/syscall_nr.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-user/microblaze/syscall_nr.h > b/linux-user/microblaze/syscall_nr.h > index

Re: [Qemu-devel] [PATCH 2/4] linux-user/hppa: Fix typo in mknodat syscall

2018-06-07 Thread Laurent Vivier
Le 07/06/2018 à 20:48, Richard Henderson a écrit : > Signed-off-by: Richard Henderson > --- > linux-user/hppa/syscall_nr.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-user/hppa/syscall_nr.h b/linux-user/hppa/syscall_nr.h > index 55bdf71d50..9c1d0a195d 100644 >

Re: [Qemu-devel] [PATCH 1/4] linux-user/alpha: Fix epoll syscalls

2018-06-07 Thread Laurent Vivier
Le 07/06/2018 à 20:48, Richard Henderson a écrit : > These were named incorrectly, going so far as to invade strace.list. > > Signed-off-by: Richard Henderson > --- > linux-user/alpha/syscall_nr.h | 6 +++--- > linux-user/strace.list| 9 - > 2 files changed, 3 insertions(+), 12

Re: [Qemu-devel] [PATCH 0/4] linux-user: syscall number fixes

2018-06-07 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180607184844.30126-1-richard.hender...@linaro.org Subject: [Qemu-devel] [PATCH 0/4] linux-user: syscall number fixes === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1

Re: [Qemu-devel] storing machine data in qcow images?

2018-06-07 Thread Laszlo Ersek
On 06/07/18 12:51, Andrea Bolognani wrote: > On Thu, 2018-06-07 at 11:32 +0100, Richard W.M. Jones wrote: >> On Thu, Jun 07, 2018 at 12:02:29PM +0200, Andrea Bolognani wrote: >>> Something that I haven't seen mentioned in the thread - and this >>> looks like as good a point as any to jump in - is

Re: [Qemu-devel] [PATCH 3/4] linux-user/microblaze: Fix typo in accept4 syscall

2018-06-07 Thread Philippe Mathieu-Daudé
On 06/07/2018 03:48 PM, Richard Henderson wrote: > Signed-off-by: Richard Henderson 04 since '09: 8dfbe4e839e. Reviewed-by: Philippe Mathieu-Daudé > --- > linux-user/microblaze/syscall_nr.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [Qemu-devel] [PATCH 4/4] mos6522: convert VMSTATE_TIMER_PTR_TEST to VMSTATE_TIMER_PTR

2018-06-07 Thread Peter Maydell
On 7 June 2018 at 18:17, Mark Cave-Ayland wrote: > The timers are configured in the mos6522 init function and therefore will > always exist, so the function can never return false. > > Peter also pointed out that this is the only remaining user of > VMSTATE_TIMER_PTR_TEST in the codebase, so we

Re: [Qemu-devel] [PATCH 2/4] linux-user/hppa: Fix typo in mknodat syscall

2018-06-07 Thread Philippe Mathieu-Daudé
On 06/07/2018 03:48 PM, Richard Henderson wrote: > Signed-off-by: Richard Henderson mknodat is not at 8ee78dece0d. Reviewed-by: Philippe Mathieu-Daudé > --- > linux-user/hppa/syscall_nr.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux-user/hppa/syscall_nr.h

Re: [Qemu-devel] storing machine data in qcow images?

2018-06-07 Thread Laszlo Ersek
On 06/07/18 12:54, Andrea Bolognani wrote: > On Thu, 2018-06-07 at 11:36 +0100, Daniel P. Berrangé wrote: >> On Thu, Jun 07, 2018 at 11:32:18AM +0100, Richard W.M. Jones wrote: >>> Another problem which Laszlo mentioned is the varstore isn't portable >>> between UEFI implementations, or if the

Re: [Qemu-devel] [PATCH 0/4] cuda/mos6522 migration fixes

2018-06-07 Thread Philippe Mathieu-Daudé
On 06/07/2018 02:17 PM, Mark Cave-Ayland wrote: > Whilst performing a random migration test for the Mac machines I noticed > a regression (patch 1) which prevented the loadvm from completing > successfully. A big thank you to Peter and David on IRC who pointed me > in the right direction in order

Re: [Qemu-devel] [PATCH v3 00/10] New block driver: blklogwrites

2018-06-07 Thread Ari Sundholm
On 06/07/2018 09:59 PM, Eric Blake wrote: On 06/07/2018 01:28 PM, Ari Sundholm wrote: On 06/07/2018 07:13 PM, no-re...@patchew.org wrote: Hi, This series failed build test on s390x host. Please find the details below. /var/tmp/patchew-tester-tmp-8bz4jnox/src/block/blklogwrites.c: In

Re: [Qemu-devel] [PATCH v2 00/11] NBD reconnect

2018-06-07 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20180607171441.64079-1-vsement...@virtuozzo.com Subject: [Qemu-devel] [PATCH v2 00/11] NBD reconnect === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under the git

Re: [Qemu-devel] [PATCH v3 00/10] New block driver: blklogwrites

2018-06-07 Thread Eric Blake
On 06/07/2018 01:28 PM, Ari Sundholm wrote: On 06/07/2018 07:13 PM, no-re...@patchew.org wrote: Hi, This series failed build test on s390x host. Please find the details below. /var/tmp/patchew-tester-tmp-8bz4jnox/src/block/blklogwrites.c: In function ‘blk_log_writes_refresh_filename’:

Re: [Qemu-devel] [PATCH v3 02/10] block: Add blklogwrites

2018-06-07 Thread Eric Blake
On 06/07/2018 10:38 AM, Ari Sundholm wrote: From: Aapo Vienamo Implements a block device write logging system, similar to Linux kernel device mapper dm-log-writes. The write operations that are performed on a block device are logged to a file or another block device. The write log format is

[Qemu-devel] [PATCH 4/4] linux-user/sparc64: Add inotify_rm_watch and tee syscalls

2018-06-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/sparc64/syscall_nr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/sparc64/syscall_nr.h b/linux-user/sparc64/syscall_nr.h index 9391645598..0b91b896da 100644 --- a/linux-user/sparc64/syscall_nr.h +++

[Qemu-devel] [PATCH 0/4] linux-user: syscall number fixes

2018-06-07 Thread Richard Henderson
Found while removing some ifdefs that should have been always true. r~ Richard Henderson (4): linux-user/alpha: Fix epoll syscalls linux-user/hppa: Fix typo in mknodat syscall linux-user/microblaze: Fix typo in accept4 syscall linux-user/sparc64: Add inotify_rm_watch and tee syscalls

[Qemu-devel] [PATCH 1/4] linux-user/alpha: Fix epoll syscalls

2018-06-07 Thread Richard Henderson
These were named incorrectly, going so far as to invade strace.list. Signed-off-by: Richard Henderson --- linux-user/alpha/syscall_nr.h | 6 +++--- linux-user/strace.list| 9 - 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/linux-user/alpha/syscall_nr.h

[Qemu-devel] [PATCH 2/4] linux-user/hppa: Fix typo in mknodat syscall

2018-06-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/hppa/syscall_nr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/hppa/syscall_nr.h b/linux-user/hppa/syscall_nr.h index 55bdf71d50..9c1d0a195d 100644 --- a/linux-user/hppa/syscall_nr.h +++

[Qemu-devel] [PATCH 3/4] linux-user/microblaze: Fix typo in accept4 syscall

2018-06-07 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/microblaze/syscall_nr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/microblaze/syscall_nr.h b/linux-user/microblaze/syscall_nr.h index 0704449bae..761208e9e6 100644 --- a/linux-user/microblaze/syscall_nr.h +++

Re: [Qemu-devel] [PATCH v2 02/10] block: Add blklogwrites

2018-06-07 Thread Ari Sundholm
On 06/07/2018 09:32 PM, Eric Blake wrote: On 06/07/2018 09:40 AM, Ari Sundholm wrote: From: Aapo Vienamo Implements a block device write logging system, similar to Linux kernel device mapper dm-log-writes. The write operations that are performed on a block device are logged to a file or

Re: [Qemu-devel] [PATCH v2 8/8] qapi: query-blockstat: add driver specific file-posix stats

2018-06-07 Thread Eric Blake
On 06/07/2018 10:23 AM, Anton Nefedov wrote: If we introduce BlockdevDriver as a discriminator as Markus suggests above, we need some way to define its value. I guess one would be to check blk->bs->drv->format_name but it won't always work; often it's even blk->bs == NULL. There is no blk->bs,

Re: [Qemu-devel] [PATCH v2 02/10] block: Add blklogwrites

2018-06-07 Thread Eric Blake
On 06/07/2018 09:40 AM, Ari Sundholm wrote: From: Aapo Vienamo Implements a block device write logging system, similar to Linux kernel device mapper dm-log-writes. The write operations that are performed on a block device are logged to a file or another block device. The write log format is

Re: [Qemu-devel] [PATCH v3 00/10] New block driver: blklogwrites

2018-06-07 Thread Ari Sundholm
On 06/07/2018 07:13 PM, no-re...@patchew.org wrote: Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 1528385894-19434-1-git-send-email-...@tuxera.com Subject: [Qemu-devel] [PATCH v3 00/10] New block driver: blklogwrites === TEST SCRIPT

Re: [Qemu-devel] [Qemu-block] storing machine data in qcow images?

2018-06-07 Thread Kashyap Chamarthy
On Wed, Jun 06, 2018 at 03:36:53PM -0300, Eduardo Habkost wrote: > On Wed, Jun 06, 2018 at 08:33:39PM +0200, Michal Suchánek wrote: > [...] > > Lastly we are missing a developer of a management layer committed to > > support such appliances. > > This is important. Without developers of

[Qemu-devel] [RFC PATCH v2 7/7] hw/sd/ssi-sd: Force cards connected in SPI mode to use Spec v1.10

2018-06-07 Thread Philippe Mathieu-Daudé
Due to physical restriction in SPI mode the maximum transfer speed is limited. All the extensions added after Spec v3 are simply not supported in SPI mode: 7.1 Introduction The SPI mode consists of a secondary communication protocol that is offered by Flash-based SD Memory Cards. This

[Qemu-devel] [PATCH v2 4/7] sdcard: Disable SEND_IF_COND (CMD8) for Spec v1

2018-06-07 Thread Philippe Mathieu-Daudé
CMD8 is "Reserved" in Spec v1.10. Spec v2.00 introduces the SEND_IF_COND command: 6.4.1 Power Up CMD8 is newly added in the Physical Layer Specification Version 2.00 to support multiple voltage ranges and used to check whether the card supports supplied voltage. The version 2.00

[Qemu-devel] [PATCH v2 2/7] sdcard: Allow commands valid in SPI mode

2018-06-07 Thread Philippe Mathieu-Daudé
>From the "Physical Layer Simplified Specification Version 1.10" Chapter 7.3 "SPI Mode Transaction Packets" Table 57: "Commands and arguments" Signed-off-by: Philippe Mathieu-Daudé Acked-by: Alistair Francis --- hw/sd/sd.c | 14 -- 1 file changed, 14 deletions(-) diff --git

Re: [Qemu-devel] [PATCH v2 0/7] sdcard: cleanup the SD_SPEC version

2018-06-07 Thread Philippe Mathieu-Daudé
On 06/07/2018 03:06 PM, Philippe Mathieu-Daudé wrote: > Since v2: > - heavy documentation improvements > - squashed previous 3+4 "add spec_version property default to v2" for > atomicity > - SSI/SD patch downgraded to RFC > - added Alistair R-b tags Patches missing review: #1 and #4 (#6 being

[Qemu-devel] [PATCH v2 1/7] sdcard: Update the Configuration Register (SCR) to Spec Version 1.10

2018-06-07 Thread Philippe Mathieu-Daudé
The initial implementation is based on the Specs v1.10 (see a1bb27b1e98). However the SCR is anouncing the card being v1.01. The new chapters added in version 1.10 are: 4.3.10 Switch function command Switch function command (CMD6) 1 is used to switch or expand memory card

  1   2   3   4   5   >