[Qemu-devel] [PULL 30/53] hw/isa/superio: Fix inconsistent use of Chardev->be

2018-05-31 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé 4c3119a6e3e and cd9526ab7c0 introduced an incorrect and inconsistent use of Chardev->be. Also, this CharBackend member is private and is not supposed to be accessible. Fix it by removing the inconsistent check. Cc: qemu-sta...@nongnu.org Reported-by: Marc-André Lur

[Qemu-devel] [PULL 25/53] qom: support orphan objects in object_get_canonical_path

2018-05-31 Thread Paolo Bonzini
Mostly a rewrite, in order to keep the loop simple. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- qom/object.c | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/qom/object.c b/qom/object.c index 0fc972030e..cb7a8cd589 10064

[Qemu-devel] [PULL 31/53] mux: fix ctrl-a b again

2018-05-31 Thread Paolo Bonzini
From: Marc-André Lureau Commit fb5e19d2e1472e96d72d5e4d89c20033f8ab345c originally fixed the regression, but was inadvertently broken again in merge commit 2d6752d38d8acda. Fixes: https://bugs.launchpad.net/qemu/+bug/1654137 Cc: qemu-sta...@nongnu.org Signed-off-by: Marc-André Lureau Reviewed-

[Qemu-devel] [PULL 26/53] virtio: free MemoryRegionCache when initialization fails

2018-05-31 Thread Paolo Bonzini
--- hw/virtio/virtio.c | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 1debb0147b..d4e4d98b59 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -123,11 +123,22 @@ static void virtio_fre

[Qemu-devel] [PULL 51/53] qdev: Remove DeviceClass::init() and ::exit()

2018-05-31 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Since no devices use it, we can safely remove it. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180419212727.26095-5-f4...@amsat.org> Reviewed-by: Markus Armbruster [Removal of DeviceClass::init() moved from previous patch, missing documentation updates supp

[Qemu-devel] [PULL 22/53] hw/ide: Remove unused include

2018-05-31 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé There is no need to include pci.h in this file. (Continue f23c81073a cleanup). Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180528232719.4721-21-f4...@amsat.org> Acked-by: Michael S. Tsirkin Signed-off-by: Paolo Bonzini --- hw/ide/core.c | 1 - 1 file cha

[Qemu-devel] [PULL 39/53] ipmi: Use proper struct reference for KCS vmstate

2018-05-31 Thread Paolo Bonzini
From: Corey Minyard The vmstate for isa_ipmi_kcs was referencing into the kcs structure, instead create a kcs structure separate and use that. There were also some issues in the state transfer. The inlen field was not being transferred, so if a transaction was in process during the transfer it

[Qemu-devel] [PULL 27/53] memory.h: Fix typo in documentation comment

2018-05-31 Thread Paolo Bonzini
From: Peter Maydell Signed-off-by: Peter Maydell Message-Id: <20180515134835.3409-1-peter.mayd...@linaro.org> Signed-off-by: Paolo Bonzini --- include/exec/memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/exec/memory.h b/include/exec/memory.h index 525619a5f

[Qemu-devel] [PULL 41/53] gdbstub: Prevent fd leakage

2018-05-31 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Since 2f652224f7, we now check if socket_set_nodelay() errored, but forgot to close the socket before reporting an error. Fixes: Coverity CID 1391290 (RESOURCE_LEAK) Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180524223458.5651-1-f4...@amsat.org> Reviewed-b

[Qemu-devel] [PULL 44/53] scripts/update-linux-headers: Handle kernel license no longer being one file

2018-05-31 Thread Paolo Bonzini
From: Peter Maydell The kernel has changed its license documentation, so instead of COPYING being a stand-alone file that defines the license, it refers to various other files under LICENSES/. This means we need to copy not just COPYING but also these other files to our copy of the kernel headers

[Qemu-devel] [PULL 35/53] WHPX: fix some compiler warnings

2018-05-31 Thread Paolo Bonzini
From: Lucian Petrut This patch fixes a few compiler warnings, especially in case of x86 targets, where the number of registers was not properly handled and could cause an overflow. Signed-off-by: Alessandro Pilotti Signed-off-by: Justin Terry (VM) Signed-off-by: Lucian Petrut Message-Id: <152

[Qemu-devel] [PULL 53/53] memory: Make operations using MemoryRegionIoeventfd struct pass by pointer.

2018-05-31 Thread Paolo Bonzini
From: Tristan Burgess This changes the functions memory_region_ioeventfd_equal, memory_region_ioeventfd_before, and their callers, to pass the MemoryRegionIoeventfd struct via pointer, instead of directly passing the struct. This saves on stack space and is considered safe practice. Signed-off

[Qemu-devel] [PULL 40/53] docs/interop: add "firmware.json"

2018-05-31 Thread Paolo Bonzini
From: Laszlo Ersek Add a schema that describes the different uses and properties of virtual machine firmware. Each firmware executable installed on a host system should come with at least one JSON file that conforms to this schema. Each file informs the management applications about - the firmwa

[Qemu-devel] [PULL 46/53] Update Linux headers to 4.17-rc6

2018-05-31 Thread Paolo Bonzini
From: Peter Maydell Update our copy of the Linux headers to upstream 4.17-rc6 (kernel commit 771c577c23bac90597c68). Signed-off-by: Peter Maydell Message-Id: <20180525132755.21839-6-peter.mayd...@linaro.org> Reviewed-by: Michael S. Tsirkin Signed-off-by: Paolo Bonzini --- include/standard-he

[Qemu-devel] [PULL 38/53] vmstate: Add a VSTRUCT type

2018-05-31 Thread Paolo Bonzini
From: Corey Minyard The VMS_STRUCT has no way to specify which version of a structure to use. Add a type and a new field to allow the specific version of a structure to be used. Signed-off-by: Corey Minyard Message-Id: <1524670052-28373-2-git-send-email-miny...@acm.org> Signed-off-by: Paolo Bo

[Qemu-devel] [PULL 49/53] hw/i2c: Use DeviceClass::realize instead of I2CSlaveClass::init

2018-05-31 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé I2CSlaveClass::init is no more used, remove it. Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20180419212727.26095-3-f4...@amsat.org> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster Message-Id: <20180528144509.15812-3-arm...@redhat.com> Signed

Re: [Qemu-devel] [PATCH 03/13] 9p: Move a couple xattr functions to 9p-util

2018-05-31 Thread Greg Kurz
On Thu, 31 May 2018 12:14:30 -0400 Keno Fischer wrote: > > I'm ok with this move, but if the functions need to have distinct > > implementations, and they really do according to patch 10, then > > I'd rather have distinct files and rely on conditional building in > > the makefile. Maybe rename th

[Qemu-devel] [PULL 50/53] qdev: Simplify the SysBusDeviceClass::init path

2018-05-31 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Instead of using SysBusDeviceClass::realize -> DeviceClass::realize -> DeviceClass::init -> sysbus_device_init -> SysBusDeviceClass::init Simplify the path by directly calling SysBusDeviceClass::init in SysBusDeviceClass::realize:

[Qemu-devel] [PULL 52/53] char: Remove unwanted crlf conversion

2018-05-31 Thread Paolo Bonzini
From: Patryk Olszewski This patch fixes a bug in serial that made it almost impossible for guest to communicate with devices through host's serial. OPOST flag in c_oflag enables output processing letting other flags in c_oflag take effect. Usually in c_oflag ONLCR flag is also set, which causes

[Qemu-devel] [PATCH] tests: fix tpm-crb tpm-tis tests race

2018-05-31 Thread Stefan Berger
Please apply the following commit to QEMU 2.12: commit 7647d5c6b5e3b3f36a6e0441c81ae3fe797eb233 Author: Marc-André Lureau Date:   Tue May 8 11:29:35 2018 -0400     tests: fix tpm-crb tpm-tis tests race     No need to close the TPM data socket on the emulator end, qemu will     close it after

[Qemu-devel] [PULL 37/53] tcg: remove softfloat from --disable-tcg builds

2018-05-31 Thread Paolo Bonzini
Even though the presence of softfloat does not cause --disable-tcg builds to fail, it is the single largest .o file in them. Remove it, since TCG is the only client. Acked-by: Richard Henderson Signed-off-by: Paolo Bonzini --- Makefile.target | 2 +- 1 file changed, 1 insertion(+), 1 deletio

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

2018-05-31 Thread Michael S. Tsirkin
On Thu, May 31, 2018 at 10:27:00AM +0800, Wei Wang wrote: > On 05/30/2018 08:47 PM, Michael S. Tsirkin wrote: > > On Wed, May 30, 2018 at 05:12:09PM +0800, Wei Wang wrote: > > > On 05/29/2018 11:24 PM, Michael S. Tsirkin wrote: > > > > On Tue, Apr 24, 2018 at 02:13:47PM +0800, Wei Wang wrote: > > >

[Qemu-devel] [Bug 1766904] Re: Creating high hdd load (with constant fsyncs) on a SATA disk leads to freezes and errors in guest dmesg

2018-05-31 Thread John Snow
Jake, can you try the fix I posted in https://bugs.launchpad.net/qemu/+bug/1769189 ? I'm not actually confident it's the same bug, but it might be worth a shot. It fixes a bug that was made more prominent inbetween 2.11 and 2.12, so it fits the timeline presented here. -- You received this bug no

Re: [Qemu-devel] [PATCH 03/13] 9p: Move a couple xattr functions to 9p-util

2018-05-31 Thread Keno Fischer
> Oops you're right... so we indeed need to handle this conflicting APIs, > but fgetxattr_follow() is inapropriate, because fgetxattr() has nothing > to follow since it already has an fd... The same goes with Darwin's > version actually. The "nofollow" thingy only makes sense for those calls > that

Re: [Qemu-devel] [PATCH 13/13] 9p: darwin: configure: Allow VirtFS on Darwin

2018-05-31 Thread Keno Fischer
>> +elif test "$darwin" = yes; then >>virtfs=yes >> - tools="$tools fsdev/virtfs-proxy-helper\$(EXESUF)" > > So, no proxy helper on Darwin ? Why ? The limitation should be mentioned in > the changelog at least. I just had no use for it. I'll try to build it and see what happens.

Re: [Qemu-devel] [PULL 00/53] Misc patches for 2018-05-31

2018-05-31 Thread Peter Maydell
On 31 May 2018 at 18:12, Paolo Bonzini wrote: > The following changes since commit 5a5c383b1373aeb6c87a0d6060f6c3dc7c53082b: > > Merge remote-tracking branch > 'remotes/vivier2/tags/linux-user-for-2.13-pull-request' into staging > (2018-05-25 10:04:36 +0100) > > are available in the Git reposi

Re: [Qemu-devel] [PULL 30/53] hw/isa/superio: Fix inconsistent use of Chardev->be

2018-05-31 Thread Philippe Mathieu-Daudé
Hi Paolo, something messed with UTF-8... On 05/31/2018 02:12 PM, Paolo Bonzini wrote: > From: Philippe Mathieu-Daudé > > 4c3119a6e3e and cd9526ab7c0 introduced an incorrect and inconsistent > use of Chardev->be. Also, this CharBackend member is private and is > not supposed to be accessible. >

Re: [Qemu-devel] [PATCH v2 0/3] slirp: NC-SI enhancements

2018-05-31 Thread Samuel Thibault
Hello, Cédric Le Goater, le mer. 30 mai 2018 08:10:32 +0200, a ecrit: > Here is a couple of enhancements and fixes for the NC-SI backend used > on the Aspeed SoC when soldered on OpenPOWER boards. Applied to my tree, thanks! (my train is 2h late, so I'll probably have the time to pull-request i

Re: [Qemu-devel] [PATCH 23/67] slirp: add include directory headers

2018-05-31 Thread Samuel Thibault
Hello, Michael S. Tsirkin, le jeu. 03 mai 2018 22:51:01 +0300, a ecrit: > +#include_next "../slirp/ip6.h" Mmm, this is the first time #include_next would be used in qemu, and I don't think this is a standard thing... Samuel

[Qemu-devel] [Bug 1766904] Re: Creating high hdd load (with constant fsyncs) on a SATA disk leads to freezes and errors in guest dmesg

2018-05-31 Thread Jake
@John Snow Thanks! After applying that patch, I couldn't reproduce this anymore. At least for me it seems that these two issues refer to the same bug. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/176

Re: [Qemu-devel] [PULL 40/53] docs/interop: add "firmware.json"

2018-05-31 Thread Eric Blake
On 05/31/2018 12:15 PM, Paolo Bonzini wrote: From: Laszlo Ersek Add a schema that describes the different uses and properties of virtual machine firmware. Each firmware executable installed on a host system should come with at least one JSON file that conforms to this schema. Each file informs

[Qemu-devel] [PULL 1/3] xen/hvm: correct reporting of modified memory under physmap during migration

2018-05-31 Thread Stefano Stabellini
From: Igor Druzhinin When global_log_dirty is enabled VRAM modification tracking never worked correctly. The address that is passed to xen_hvm_modified_memory() is not the effective PFN but RAM block address which is not the same for VRAM. We need to make a translation for this address into PFN

[Qemu-devel] [PULL 2/3] xen-hvm: try to use xenforeignmemory_map_resource() to map ioreq pages

2018-05-31 Thread Stefano Stabellini
From: Paul Durrant Xen 4.11 has a new API to directly map guest resources. Among the resources that can be mapped using this API are ioreq pages. This patch modifies QEMU to attempt to use the new API should it exist, falling back to the previous mechanism if it is unavailable. Signed-off-by: P

[Qemu-devel] [PULL 0/3] xen-20180531-tag

2018-05-31 Thread Stefano Stabellini
The following changes since commit c181ddaa176856b3cd2dfd12bbcf25fa9c884a97: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20180531-1' into staging (2018-05-31 17:00:55 +0100) are available in the git repository at: http://xenbits.xenproject.org/git-h

[Qemu-devel] [PULL 3/3] xen-hvm: stop faking I/O to access PCI config space

2018-05-31 Thread Stefano Stabellini
From: Paul Durrant This patch removes the current hackery where IOREQ_TYPE_PCI_CONFIG requests are handled by faking PIO to 0xcf8 and 0xcfc and replaces it with direct calls to pci_host_config_read/write_common(). Doing so necessitates mapping BDFs to PCIDevices but maintaining a simple QLIST in

[Qemu-devel] [Bug 1766904] Re: Creating high hdd load (with constant fsyncs) on a SATA disk leads to freezes and errors in guest dmesg

2018-05-31 Thread John Snow
*** This bug is a duplicate of bug 1769189 *** https://bugs.launchpad.net/bugs/1769189 Great, thank you so much for helping! ** This bug has been marked a duplicate of bug 1769189 Issue with qemu 2.12.0 + SATA -- You received this bug notification because you are a member of qemu- devel-

[Qemu-devel] [Bug 1769189] Re: Issue with qemu 2.12.0 + SATA

2018-05-31 Thread John Snow
** Changed in: qemu Status: New => Confirmed ** Changed in: qemu Assignee: (unassigned) => John Snow (jnsnow) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1769189 Title: Issue with qe

Re: [Qemu-devel] [PATCH 05/13] 9p: darwin: Handle struct dirent differences

2018-05-31 Thread Greg Kurz
On Thu, 31 May 2018 12:20:28 -0400 Keno Fischer wrote: > >> diff --git a/hw/9pfs/9p-synth.c b/hw/9pfs/9p-synth.c > >> index eb68b42..3c0a6d8 100644 > >> --- a/hw/9pfs/9p-synth.c > >> +++ b/hw/9pfs/9p-synth.c > >> @@ -221,7 +221,11 @@ static void synth_direntry(V9fsSynthNode *node, > >> { > >>

[Qemu-devel] [PULL 6/9] slirp: Send window updates to guest after window was closed

2018-05-31 Thread Samuel Thibault
From: James Clarke If the receive window presented to the guest closes, slirp should send a window update once the window reopens sufficiently, rather than forcing the guest to send a window probe, which can take several seconds. Signed-off-by: James Clarke Signed-off-by: Samuel Thibault ---

[Qemu-devel] [PULL 8/9] slirp/ncsi: add a "Get Parameters" response

2018-05-31 Thread Samuel Thibault
From: Cédric Le Goater Command 0x17 'Get Parameters' is used to get configuration parameter values currently in effect on the controller and it is mandatory in the NS-CI specification. Provide a minimum response to exercise the kernel. Signed-off-by: Cédric Le Goater Reviewed-by: Philippe Math

[Qemu-devel] [PULL 5/9] net/slirp: Convert atoi to qemu_strtoi to allow error checking

2018-05-31 Thread Samuel Thibault
From: Nia Alarie Signed-off-by: Nia Alarie Signed-off-by: Samuel Thibault --- net/slirp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/slirp.c b/net/slirp.c index 005c2675e6..1e14318b4d 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -492,7 +492,9 @@ void hmp_hostfw

[Qemu-devel] [PULL 4/9] slirp/debug: Print IP addresses in human readable form

2018-05-31 Thread Samuel Thibault
From: Alexey Kardashevskiy Signed-off-by: Alexey Kardashevskiy Signed-off-by: Samuel Thibault --- slirp/arp_table.c | 4 ++-- slirp/socket.c| 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/slirp/arp_table.c b/slirp/arp_table.c index bac608f97f..f81963bb88 100644 ---

[Qemu-devel] [PULL 7/9] slirp/ncsi: fix "Get Version ID" payload length

2018-05-31 Thread Samuel Thibault
From: Cédric Le Goater Signed-off-by: Cédric Le Goater Reviewed-by: Philippe Mathieu-Daudé Tested-by: Joel Stanley Signed-off-by: Samuel Thibault --- slirp/ncsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slirp/ncsi.c b/slirp/ncsi.c index d12ba3e494..02d0e9def3 1006

[Qemu-devel] [PULL 1/9] slirp: Add domainname option to slirp's DHCP server

2018-05-31 Thread Samuel Thibault
From: Benjamin Drung This patch will allow the user to include the domainname option in replies from the built-in DHCP server. Signed-off-by: Benjamin Drung Signed-off-by: Samuel Thibault --- net/slirp.c | 12 +--- qapi/net.json| 4 qemu-options.hx | 7 +-- slirp/

[Qemu-devel] [PULL 2/9] slirp: disable Nagle in outgoing connections

2018-05-31 Thread Samuel Thibault
From: Andreas Gustafsson When setting up an outgoing user mode networking TCP connection, disable the Nagle algorithm in the host-side connection. Either the guest is already doing Nagle, in which case there is no point in doing it twice, or it has chosen to disable it, in which case we should r

[Qemu-devel] [PULL 0/9] slirp updates

2018-05-31 Thread Samuel Thibault
The following changes since commit c181ddaa176856b3cd2dfd12bbcf25fa9c884a97: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20180531-1' into staging (2018-05-31 17:00:55 +0100) are available in the Git repository at: http://people.debian.org/~sthibault/qem

Re: [Qemu-devel] [PATCH 06/13] 9p: darwin: Address minor differences

2018-05-31 Thread Greg Kurz
On Thu, 31 May 2018 12:27:35 -0400 Keno Fischer wrote: > >> --- a/hw/9pfs/9p-local.c > >> +++ b/hw/9pfs/9p-local.c > >> @@ -67,7 +67,10 @@ int local_open_nofollow(FsContext *fs_ctx, const char > >> *path, int flags, > >> assert(*path != '/'); > >> > >> head = g_strdup(path); >

Re: [Qemu-devel] [PATCH 06/13] 9p: darwin: Address minor differences

2018-05-31 Thread Keno Fischer
Well, I do have the patch already to switch this and the other patterns, so let me know if you want it or not ;). On Thu, May 31, 2018 at 3:22 PM, Greg Kurz wrote: > On Thu, 31 May 2018 12:27:35 -0400 > Keno Fischer wrote: > >> >> --- a/hw/9pfs/9p-local.c >> >> +++ b/hw/9pfs/9p-local.c >> >> @@

[Qemu-devel] [PULL 3/9] slirp: disable Nagle in ingoing connections

2018-05-31 Thread Samuel Thibault
This follows 3929766fb3e4 ('slirp: disable Nagle in outgoing connections'): for the same reasons, ingoing connections should have the Nagle algorithm disabled. Signed-off-by: Samuel Thibault Reviewed-by: Philippe Mathieu-Daudé --- slirp/socket.c | 2 ++ 1 file changed, 2 insertions(+) diff --

[Qemu-devel] [PATCH] slirp: Fix spurious error report when sending directly

2018-05-31 Thread Samuel Thibault
When DEBUG is enabled, len needs to be updated. Signed-off-by: Samuel Thibault --- slirp/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slirp/socket.c b/slirp/socket.c index e2a71c9b04..3182477ff5 100644 --- a/slirp/socket.c +++ b/slirp/socket.c @@ -351,7 +351,7 @@

[Qemu-devel] [PULL 9/9] slirp/ncsi: add checksum support

2018-05-31 Thread Samuel Thibault
From: Cédric Le Goater The checksum field of a NC-SI packet contains a value that may be included in each command and response. The verification is optional but the Linux driver does so when a non-zero value is provided. Let's extend the model to compute the checksum value and exercise a little m

Re: [Qemu-devel] [PATCH 23/67] slirp: add include directory headers

2018-05-31 Thread Michael S. Tsirkin
On Thu, May 31, 2018 at 08:50:32PM +0200, Samuel Thibault wrote: > Hello, > > Michael S. Tsirkin, le jeu. 03 mai 2018 22:51:01 +0300, a ecrit: > > +#include_next "../slirp/ip6.h" > > Mmm, this is the first time #include_next would be used in qemu, and I > don't think this is a standard thing... >

Re: [Qemu-devel] [PATCH] slirp: Fix spurious error report when sending directly

2018-05-31 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180531192419.4592-1-samuel.thiba...@ens-lyon.org Subject: [Qemu-devel] [PATCH] slirp: Fix spurious error report when sending directly === TEST SCRIPT BEGIN === #!/bin/bash

Re: [Qemu-devel] [PULL 0/9] slirp updates

2018-05-31 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180531192237.3994-1-samuel.thiba...@ens-lyon.org Subject: [Qemu-devel] [PULL 0/9] slirp updates === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git log --oneli

Re: [Qemu-devel] [PULL 1/9] slirp: Add domainname option to slirp's DHCP server

2018-05-31 Thread Eric Blake
On 05/31/2018 02:22 PM, Samuel Thibault wrote: From: Benjamin Drung This patch will allow the user to include the domainname option in replies from the built-in DHCP server. Signed-off-by: Benjamin Drung Signed-off-by: Samuel Thibault --- net/slirp.c | 12 +--- qapi/net.json

Re: [Qemu-devel] [PATCH 07/13] 9p: darwin: Properly translate AT_REMOVEDIR flag

2018-05-31 Thread Greg Kurz
On Thu, 31 May 2018 12:25:49 -0400 Keno Fischer wrote: > >> +errno = EINVAL; > >> +return -1; > > > > ... I'm more concerned about this new error path. How can this happen ? > > > > As far as I can tell, the flags come from the client without any > intermediate error > checki

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

2018-05-31 Thread Samuel Thibault
Signed-off-by: Samuel Thibault --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 41cd3736a9..8822ae9b70 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1675,6 +1675,7 @@ S: Maintained F: slirp/ F: net/slirp.c F: include/net/slirp.h +T: git http:

Re: [Qemu-devel] [PATCH 06/13] 9p: darwin: Address minor differences

2018-05-31 Thread Greg Kurz
On Thu, 31 May 2018 15:23:45 -0400 Keno Fischer wrote: > Well, I do have the patch already to switch this and the other patterns, > so let me know if you want it or not ;). > Post it then and we'll see if people are happy with that :) > On Thu, May 31, 2018 at 3:22 PM, Greg Kurz wrote: > > On

[Qemu-devel] [PATCH 1/4] bus: do not unref the added child bus on realize

2018-05-31 Thread Marc-André Lureau
When the parent bus removes the child property, it takes care of removing the added reference, in object_finalize_child_property(). Signed-off-by: Marc-André Lureau --- hw/core/bus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/core/bus.c b/hw/core/bus.c index 4651f24486..ad0c9df335 100

[Qemu-devel] [PATCH 2/4] object: fix OBJ_PROP_LINK_UNREF_ON_RELEASE ambivalence

2018-05-31 Thread Marc-André Lureau
A link property can be set during creation, with object_property_add_link() and later with object_property_set_link(). add_link() doesn't add a reference to the target object, while set_link() does. Furthemore, OBJ_PROP_LINK_UNREF_ON_RELEASE flags, set during add_link, says whether a reference mu

[Qemu-devel] [PATCH 0/4] Fix usb-ccid hotplug regression

2018-05-31 Thread Marc-André Lureau
Hi, The following series fixes the usb-ccid hotplug regression introduced by commit 675f22c6d3b0: the plugged device is not completely removed on device_del anymore, due to an extra reference added when doing set_link(). It turns out the memory management of qdev bus/child is a bit weird, this is

[Qemu-devel] [PATCH 3/4] usb-ccid: fix bus leak

2018-05-31 Thread Marc-André Lureau
qbus_create_inplace() creates a new reference in realize(), it must be released in unrealize(). Signed-off-by: Marc-André Lureau --- hw/usb/dev-smartcard-reader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index f7451923f4..a

Re: [Qemu-devel] [PATCH] slirp: Fix spurious error report when sending directly

2018-05-31 Thread Philippe Mathieu-Daudé
Hi Samuel, On 05/31/2018 04:24 PM, Samuel Thibault wrote: > When DEBUG is enabled, len needs to be updated. > > Signed-off-by: Samuel Thibault > --- > slirp/socket.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/slirp/socket.c b/slirp/socket.c > index e2a71c9b04..318

[Qemu-devel] [PATCH 4/4] usb-hcd-xhci-test: add a test for ccid hotplug

2018-05-31 Thread Marc-André Lureau
Signed-off-by: Marc-André Lureau --- tests/usb-hcd-xhci-test.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tests/usb-hcd-xhci-test.c b/tests/usb-hcd-xhci-test.c index 9c14e3053a..5b1b681bf2 100644 --- a/tests/usb-hcd-xhci-test.c +++ b/tests/usb-hcd-xhci-test.c @@ -35,6 +35,15

Re: [Qemu-devel] [PATCH 11/13] 9p: darwin: Mark mknod as unsupported

2018-05-31 Thread Greg Kurz
On Thu, 31 May 2018 12:37:56 -0400 Keno Fischer wrote: > >> +#ifdef CONFIG_DARWIN > >> +/* Darwin doesn't have mknodat and it's unlikely to work anyway, > > > > What's unlikely to work ? > > > > My concern was that allowing this would cause unexpected > behavior, since the device numbers

[Qemu-devel] [PATCH] slirp: fix domainname version availability

2018-05-31 Thread Samuel Thibault
The change missed the 2.12 deadline. Signed-off-by: Samuel Thibault --- qapi/net.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/net.json b/qapi/net.json index 32681a1af7..6b7d93cb59 100644 --- a/qapi/net.json +++ b/qapi/net.json @@ -161,7 +161,7 @@ # t

Re: [Qemu-devel] [PATCH 13/13] 9p: darwin: configure: Allow VirtFS on Darwin

2018-05-31 Thread Greg Kurz
On Thu, 31 May 2018 13:46:29 -0400 Keno Fischer wrote: > >> +elif test "$darwin" = yes; then > >>virtfs=yes > >> - tools="$tools fsdev/virtfs-proxy-helper\$(EXESUF)" > > > > So, no proxy helper on Darwin ? Why ? The limitation should be mentioned in > > the changelog at least.

Re: [Qemu-devel] [PATCH] slirp: fix domainname version availability

2018-05-31 Thread Eric Blake
On 05/31/2018 02:52 PM, Samuel Thibault wrote: The change missed the 2.12 deadline. Signed-off-by: Samuel Thibault --- qapi/net.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake diff --git a/qapi/net.json b/qapi/net.json index 32681a1af7..6b7d93cb59 100

Re: [Qemu-devel] Recording I/O activity after KVM does a VMEXIT

2018-05-31 Thread Arnabjyoti Kalita
Dear Pavel, Thank you for your answer. I am not being able to understand the difference between CPU I/Os and VM I/Os. Would any network packet that comes into the Guest OS from the outside be a part of VM I/O or CPU I/O ? I am only interested in "recording" and "replaying" those network packets th

Re: [Qemu-devel] [PATCH v1 4/8] docker: update Travis docker image

2018-05-31 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Hi Alex, > > On 05/30/2018 08:06 AM, Alex Bennée wrote: >> This is still poorly documented by Travis but according to: >> >> >> https://docs.travis-ci.com/user/common-build-problems/#Running-a-Container-Based-Docker-Image-Locally >> >> their reference images

Re: [Qemu-devel] [RFC v2 5/6] hw/arm: ACPI SRAT changes to accommodate non-contiguous mem

2018-05-31 Thread Auger Eric
Hi Shameer, On 05/28/2018 07:02 PM, Andrew Jones wrote: > On Wed, May 16, 2018 at 04:20:25PM +0100, Shameer Kolothum wrote: >> This is in preparation for the next patch where initial ram is split >> into a non-pluggable chunk and a pc-dimm modeled mem if the vaild >> iova regions are non-contiguo

Re: [Qemu-devel] [PATCH v5 13/14] travis: improve python version test coverage

2018-05-31 Thread Alex Bennée
Daniel P. Berrange writes: > Currently travis declares ancient python 2.4 is desired. Update that to > 2.6 which is the oldest version any targetted distros still needs. If we > just list a python 3 version at the top level this will double the > number of travis jobs we run which is unreasonab

[Qemu-devel] [PATCHv2] slirp: Fix spurious error report when sending directly

2018-05-31 Thread Samuel Thibault
Move check to where it actually is useful, and reduce scope of 'len' variable along the way. Signed-off-by: Samuel Thibault --- Difference from v1: - move check instead of initializing len. slirp/socket.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/slirp/

Re: [Qemu-devel] [PATCHv2] slirp: Fix spurious error report when sending directly

2018-05-31 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180531203110.17203-1-samuel.thiba...@ens-lyon.org Subject: [Qemu-devel] [PATCHv2] slirp: Fix spurious error report when sending directly === TEST SCRIPT BEGIN === #!/bin/b

Re: [Qemu-devel] [PATCH v3 15/22] target/arm: Add ARM_FEATURE_V7VE for v7 Virtualization Extensions

2018-05-31 Thread Aaron Lindsay
On May 31 15:18, Peter Maydell wrote: > On 17 May 2018 at 20:31, Aaron Lindsay wrote: > > On Apr 17 16:00, Peter Maydell wrote: > >> So, the underlying issue here is that there's a QEMU specific > >> fudge going on. Architecturally, if the CPU implements the > >> Virtualization Extensions, then: >

Re: [Qemu-devel] [PATCH] Fix hang with -L and symlink loop

2018-05-31 Thread Evan Green
On Thu, May 31, 2018 at 9:44 AM Peter Maydell wrote: > > On 31 May 2018 at 17:32, Richard Henderson > wrote: > > On 05/31/2018 08:26 AM, Peter Maydell wrote: > >> On 30 May 2018 at 21:50, Richard Henderson > >> wrote: > >>> On 05/29/2018 04:44 PM, Evan Green wrote: > When using -L with Li

[Qemu-devel] [PATCH v2 5/8] qcow: Switch to a byte-based driver

2018-05-31 Thread Eric Blake
We are gradually moving away from sector-based interfaces, towards byte-based. The qcow driver is now ready to fully utilize the byte-based callback interface, as long as we override the default alignment to still be 512 (needed at least for asserts present because of encryption, but easier to do

[Qemu-devel] [PATCH v2 1/8] parallels: Switch to byte-based calls

2018-05-31 Thread Eric Blake
We are gradually moving away from sector-based interfaces, towards byte-based. Make the change for the last few sector-based calls into the block layer from the parallels driver. Ideally, the parallels driver should switch to doing everything byte-based, but that's a more invasive change that req

[Qemu-devel] [PATCH v2 2/8] qcow: Switch get_cluster_offset to be byte-based

2018-05-31 Thread Eric Blake
We are gradually moving away from sector-based interfaces, towards byte-based. Make the change for the internal helper function get_cluster_offset(), by changing n_start and n_end to by byte offsets rather than sector indices within the cluster being allocated. However, assert that these values a

[Qemu-devel] [PATCH v2 0/8] block: more byte-based cleanups: vectored I/O

2018-05-31 Thread Eric Blake
My quest continues. I spent some time pruning sector-based usage out of qcow as far as possible (and was dismayed at how long it took to prove no iotests regressions); so for the other drivers, I did the bare minimum to get rid of an interface, but will leave it to those file owners if they want t

[Qemu-devel] [PATCH v2 3/8] qcow: Switch qcow_co_readv to byte-based calls

2018-05-31 Thread Eric Blake
We are gradually moving away from sector-based interfaces, towards byte-based. Make the change for the internals of the qcow driver read function, by iterating over offset/bytes instead of sector_num/nb_sectors, and with a rename of index_in_cluster and repurposing of n to track bytes instead of s

[Qemu-devel] [PATCH v2 6/8] replication: Switch to byte-based calls

2018-05-31 Thread Eric Blake
We are gradually moving away from sector-based interfaces, towards byte-based. Make the change for the last few sector-based calls into the block layer from the replication driver. Ideally, the replication driver should switch to doing everything byte-based, but that's a more invasive change that

[Qemu-devel] [PATCH v2 4/8] qcow: Switch qcow_co_writev to byte-based calls

2018-05-31 Thread Eric Blake
We are gradually moving away from sector-based interfaces, towards byte-based. Make the change for the internals of the qcow driver write function, by iterating over offset/bytes instead of sector_num/nb_sectors, and with a rename of index_in_cluster and repurposing of n to track bytes instead of

[Qemu-devel] [PATCH v2 8/8] block: Remove unused sector-based vectored I/O

2018-05-31 Thread Eric Blake
We are gradually moving away from sector-based interfaces, towards byte-based. Now that all callers of vectored I/O have been converted to use our preferred byte-based bdrv_co_p{read,write}v(), we can delete the unused bdrv_co_{read,write}v(). Furthermore, this gets rid of the signature differenc

[Qemu-devel] [PATCH v2 7/8] vhdx: Switch to byte-based calls

2018-05-31 Thread Eric Blake
We are gradually moving away from sector-based interfaces, towards byte-based. Make the change for the last few sector-based calls into the block layer from the vhdx driver. Ideally, the vhdx driver should switch to doing everything byte-based, but that's a more invasive change that requires a bi

[Qemu-devel] [PATCH 3/5] hw/scsi/scsi-disk: Always apply block configuration to block driver

2018-05-31 Thread Ari Sundholm
This is an example of what all block devices should ideally do in their realization functions to convey the block configuration to the block driver. Signed-off-by: Ari Sundholm --- hw/scsi/scsi-disk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c i

[Qemu-devel] [PATCH 2/5] block: Add a mechanism for passing a block driver a block configuration

2018-05-31 Thread Ari Sundholm
A block driver may need to know about the block configuration, most critically the sector sizes, of a block backend for alignment purposes or for some other reason. It doesn't seem like qemu has an existing mechanism for a block backend to convey the required information to the relevant block drive

[Qemu-devel] [PATCH 4/5] block/blklogwrites: Use block limits from the backend block configuration

2018-05-31 Thread Ari Sundholm
This is to ensure that writes are aligned properly for logging writes to the virtual block device. This is important because the dm-log-writes log format has a granularity of one sector for both the offset and the size of each write. By using the logical sector size for alignment, the log records t

[Qemu-devel] [PATCH 5/5] block/blklogwrites: Use the block device logical sector size when logging writes

2018-05-31 Thread Ari Sundholm
The guest OS may perform writes which are aligned to the logical sector size instead of the physical one, so logging at this granularity records the writes performed on the block device most faithfully. Signed-off-by: Ari Sundholm --- block/blklogwrites.c | 43 ++-

Re: [Qemu-devel] [PATCH v2 34/40] job: Introduce qapi/job.json

2018-05-31 Thread Eric Blake
On 05/18/2018 08:21 AM, Kevin Wolf wrote: This adds a separate schema file for all job-related definitions that aren't tied to the block layer. For a start, move the enums JobType, JobStatus and JobVerb. Signed-off-by: Kevin Wolf --- qapi/block-core.json | 90 +--

[Qemu-devel] [PATCH 1/5] block: Add blklogwrites

2018-05-31 Thread Ari Sundholm
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 identical to the dm-log-writes format. Currently,

[Qemu-devel] [PATCH] block: Ignore generated job QAPI files

2018-05-31 Thread Eric Blake
Commit bf42508f introduced new generated files; make sure they don't get accidentally committed from an in-tree build. Signed-off-by: Eric Blake --- .gitignore | 4 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 81e1f2fb0f1..9da3b3e6267 100644 --- a/.gitignore +

Re: [Qemu-devel] [PATCH 2/3] pc-bios/s390-ccw/net: Add support for pxelinux-style config files

2018-05-31 Thread Farhan Ali
On 05/30/2018 05:16 AM, Thomas Huth wrote: Since it is quite cumbersome to manually create a combined kernel with initrd image for network booting, we now support loading via pxelinux configuration files, too. In these files, the kernel, initrd and command line parameters can be specified sepe

Re: [Qemu-devel] [Qemu-block] [PATCH] block: Ignore generated job QAPI files

2018-05-31 Thread Jeff Cody
On Thu, May 31, 2018 at 04:24:35PM -0500, Eric Blake wrote: > Commit bf42508f introduced new generated files; make sure they > don't get accidentally committed from an in-tree build. > > Signed-off-by: Eric Blake Reviewed-by: Jeff Cody > --- > .gitignore | 4 > 1 file changed, 4 insertio

Re: [Qemu-devel] [qemu PATCH v4 0/4] support NFIT platform capabilities

2018-05-31 Thread Ross Zwisler
On Fri, May 25, 2018 at 08:51:22PM +0300, Michael S. Tsirkin wrote: > On Mon, May 21, 2018 at 10:31:59AM -0600, Ross Zwisler wrote: > > Changes since v3: > > * Updated the text in docs/nvdimm.txt to make it clear that the value > >being passed in on the command line in an integer made up of va

[Qemu-devel] [PATCH v2 06/16] ahci: modify ahci_port_write to use register numbers

2018-05-31 Thread John Snow
Signed-off-by: John Snow --- hw/ide/ahci.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 476841df58..efecf849a9 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -282,30 +282,32 @@ static int ahci_cond_st

[Qemu-devel] [PATCH v2 07/16] ahci: make port write traces more descriptive

2018-05-31 Thread John Snow
Signed-off-by: John Snow --- hw/ide/ahci.c | 8 +++- hw/ide/trace-events | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index efecf849a9..01463f0f51 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -27,6 +27,7 @@ #include "hw/pci/

[Qemu-devel] [PATCH v2 08/16] ahci: delete old port register address definitions

2018-05-31 Thread John Snow
They're now unused. Signed-off-by: John Snow --- hw/ide/ahci_internal.h | 18 -- 1 file changed, 18 deletions(-) diff --git a/hw/ide/ahci_internal.h b/hw/ide/ahci_internal.h index eb7e1eefc0..db00c9aa39 100644 --- a/hw/ide/ahci_internal.h +++ b/hw/ide/ahci_internal.h @@ -102,24

[Qemu-devel] [PATCH v2 05/16] ahci: combine identical clauses in port write

2018-05-31 Thread John Snow
Signed-off-by: John Snow --- hw/ide/ahci.c | 4 1 file changed, 4 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 92780990a3..476841df58 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -330,11 +330,7 @@ static void ahci_port_write(AHCIState *s, int port, int offset, uint32_

[Qemu-devel] [PATCH v2 04/16] ahci: fix spacing damage on ahci_port_write

2018-05-31 Thread John Snow
Churn. Signed-off-by: John Snow --- hw/ide/ahci.c | 142 +- 1 file changed, 71 insertions(+), 71 deletions(-) diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c index 5b5ab823f4..92780990a3 100644 --- a/hw/ide/ahci.c +++ b/hw/ide/ahci.c @@ -279,85

<    1   2   3   4   >