[Qemu-devel] [PATCH v7 2/6] qmp: Create IOThrottle structure

2017-07-04 Thread Pradeep Jagadeesh
This patch enables qmp interfaces for the fsdev devices. This provides two interfaces one for querying info of all the fsdev devices. The second one to set the IO limits for the required fsdev device. Signed-off-by: Pradeep Jagadeesh Reviewed-by: Greg Kurz

[Qemu-devel] [PATCH v7 5/6] fsdev: hmp interface for throttling

2017-07-04 Thread Pradeep Jagadeesh
This patch introduces hmp interfaces for the fsdev devices. Signed-off-by: Pradeep Jagadeesh --- hmp-commands-info.hx | 18 +++ hmp-commands.hx | 19 hmp.c| 62

[Qemu-devel] [PATCH v7 1/6] throttle: factor out duplicate code

2017-07-04 Thread Pradeep Jagadeesh
This patch factor out the duplicate throttle code that was present in block and fsdev devices. Signed-off-by: Pradeep Jagadeesh Reviewed-by: Alberto Garcia --- blockdev.c | 44 +--

[Qemu-devel] [PATCH v7 4/6] hmp: create a throttle initialization function for code reusability

2017-07-04 Thread Pradeep Jagadeesh
This patch creates a throttle initialization function to maximize the code reusability. The same code is also used by fsdev. Acked-by: Dr. David Alan Gilbert Signed-off-by: Pradeep Jagadeesh --- hmp.c | 19 +-- 1 file changed,

[Qemu-devel] [PATCH v7 3/6] throttle: move out function to reuse the code

2017-07-04 Thread Pradeep Jagadeesh
This patch move out the throttle code to util/throttle.c to maximize the reusability of the code.The same code is also used by fsdev. Signed-off-by: Pradeep Jagadeesh --- blockdev.c | 53 +++-

Re: [Qemu-devel] [PATCH v3 03/20] stream: Switch stream_populate() to byte-based

2017-07-04 Thread Kevin Wolf
Am 27.06.2017 um 21:24 hat Eric Blake geschrieben: > We are gradually converting to byte-based interfaces, as they are > easier to reason about than sector-based. Start by converting an > internal function (no semantic change). > > Signed-off-by: Eric Blake > Reviewed-by:

Re: [Qemu-devel] [PATCH v3 06/20] commit: Switch commit_run() to byte-based

2017-07-04 Thread Kevin Wolf
Am 27.06.2017 um 21:24 hat Eric Blake geschrieben: > We are gradually converting to byte-based interfaces, as they are > easier to reason about than sector-based. Change the internal > loop iteration of committing to track by bytes instead of sectors > (although we are still guaranteed that we

Re: [Qemu-devel] [PATCH v3 05/20] commit: Switch commit_populate() to byte-based

2017-07-04 Thread Kevin Wolf
Am 27.06.2017 um 21:24 hat Eric Blake geschrieben: > We are gradually converting to byte-based interfaces, as they are > easier to reason about than sector-based. Start by converting an > internal function (no semantic change). > > Signed-off-by: Eric Blake > Reviewed-by:

Re: [Qemu-devel] [PATCH v3 01/20] blockjob: Track job ratelimits via bytes, not sectors

2017-07-04 Thread Kevin Wolf
Am 27.06.2017 um 21:24 hat Eric Blake geschrieben: > The user interface specifies job rate limits in bytes/second. > It's pointless to have our internal representation track things > in sectors/second, particularly since we want to move away from > sector-based interfaces. > > Fix up a doc typo

Re: [Qemu-devel] [PATCH v3 02/20] trace: Show blockjob actions via bytes, not sectors

2017-07-04 Thread Kevin Wolf
Am 27.06.2017 um 21:24 hat Eric Blake geschrieben: > Upcoming patches are going to switch to byte-based interfaces > instead of sector-based. Even worse, trace_backup_do_cow_enter() > had a weird mix of cluster and sector indices. > > The trace interface is low enough that there are no stability

Re: [Qemu-devel] [PATCH] qemu-doc: Add missing "@c man end" statements

2017-07-04 Thread Paolo Bonzini
On 04/07/2017 16:46, Kevin Wolf wrote: > Am 19.06.2017 um 11:16 hat Thomas Huth geschrieben: >> Since commit 3f2ce724f1f1 ("Move the qemu-ga description into a >> separate chapter"), the qemu.1 man page looks pretty much screwed >> up, e.g. the title was "qemu-ga - QEMU Guest Agent" instead of

Re: [Qemu-devel] [PATCH 3/7] s390x: fix error propagation in kvm-flic's realize

2017-07-04 Thread Halil Pasic
On 07/04/2017 04:46 PM, Halil Pasic wrote: > > > On 07/04/2017 04:31 PM, Cornelia Huck wrote: >> On Tue, 4 Jul 2017 16:07:55 +0200 >> Christian Borntraeger wrote: >> >>> From: Halil Pasic >>> >>> From the moment it was introduced by commit

Re: [Qemu-devel] [PATCH v7 3/4] net/net: Convert parse_host_port() to Error

2017-07-04 Thread Markus Armbruster
Mao Zhongyi writes: > Cc: berra...@redhat.com > Cc: kra...@redhat.com > Cc: pbonz...@redhat.com > Cc: jasow...@redhat.com > Cc: arm...@redhat.com > Cc: ebl...@redhat.com > Signed-off-by: Mao Zhongyi Reviewed-by: Markus Armbruster

Re: [Qemu-devel] [PATCH v3 04/20] stream: Switch stream_run() to byte-based

2017-07-04 Thread Kevin Wolf
Am 27.06.2017 um 21:24 hat Eric Blake geschrieben: > We are gradually converting to byte-based interfaces, as they are > easier to reason about than sector-based. Change the internal > loop iteration of streaming to track by bytes instead of sectors > (although we are still guaranteed that we

Re: [Qemu-devel] [PATCH v7 2/4] net/socket: Convert several helper functions to Error

2017-07-04 Thread Markus Armbruster
Mao Zhongyi writes: > Currently, net_socket_mcast_create(), net_socket_fd_init_dgram() and > net_socket_fd_init() use the function such as fprintf(), perror() to > report an error message. > > Now, convert these functions to Error. > > Cc: jasow...@redhat.com > Cc:

Re: [Qemu-devel] [PATCH 4/7] s390x: fix realize inheritance for kvm-flic

2017-07-04 Thread Halil Pasic
On 07/04/2017 04:37 PM, Cornelia Huck wrote: > On Tue, 4 Jul 2017 16:07:56 +0200 > Christian Borntraeger wrote: > >> From: Halil Pasic >> >> Commit f6f4ce4211 ("s390x: add property adapter_routes_max_batch", >> 2016-12-09) introduces a common

[Qemu-devel] [RISU PATCH 11/11] aarch64.risu: update AdvancedSIMD across lanes

2017-07-04 Thread Alex Bennée
- sorted alphabetically - aligned the instructions patterns - adding half-precision F[MAX|MIN][NMV|V] - add @AdvSIMDAcrossVector group Signed-off-by: Alex Bennée --- aarch64.risu | 90 +--- 1 file changed, 49

[Qemu-devel] [RISU PATCH 08/11] aarch64.risu: document naming conventions

2017-07-04 Thread Alex Bennée
Signed-off-by: Alex Bennée --- aarch64.risu | 10 ++ 1 file changed, 10 insertions(+) diff --git a/aarch64.risu b/aarch64.risu index 2f3341c..bfca45f 100644 --- a/aarch64.risu +++ b/aarch64.risu @@ -7,6 +7,7 @@ # # Contributors: # Claudio Fontana - initial

[Qemu-devel] [RISU PATCH 10/11] aarch64.risu: remove duplicate AdvSIMD scalar 2 reg misc block

2017-07-04 Thread Alex Bennée
While at that also: - sort alphabetically - add to @AdvSIMDScalar2RegMisc group Signed-off-by: Alex Bennée --- aarch64.risu | 114 --- 1 file changed, 39 insertions(+), 75 deletions(-) diff --git a/aarch64.risu

Re: [Qemu-devel] [PATCH 2/5] spapr: Refactor spapr_drc_detach()

2017-07-04 Thread David Gibson
On Thu, Jun 22, 2017 at 11:32:15AM +0200, Greg Kurz wrote: > On Wed, 21 Jun 2017 17:18:45 +0800 > David Gibson wrote: > > > This function has two unused parameters - remove them. > > > > It's ok for the d argument but I'm not sure about errp... Indeed it isn't used

[Qemu-devel] [RISU PATCH 09/11] aarch64.risu: remove duplicate AdvSIMD Scalar 3 same block

2017-07-04 Thread Alex Bennée
A chunk of the AArch64 definitions repeat themselves. Clean that up. Signed-off-by: Alex Bennée --- aarch64.risu | 25 +++-- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/aarch64.risu b/aarch64.risu index bfca45f..609021a 100644 ---

[Qemu-devel] [RISU PATCH 07/11] risugen: support @GroupName in risu files

2017-07-04 Thread Alex Bennée
The existing pattern support is useful but it does get a little tedious when faced with large groups of instructions. This introduces the concept of a @GroupName which can be sprinkled in the risu definition and is attached to all instructions following its definition until the next group or an

[Qemu-devel] [RISU PATCH 02/11] reginfo.c: always return 1 on OP_TESTEND

2017-07-04 Thread Alex Bennée
In the master/apprentice setup the response byte of 1 is returned by write_fn. However when tracing it will happily report 0 as it successfully writes the last bytes. To avoid running of the end when tracing we just always return 1 at this point. Signed-off-by: Alex Bennée

[Qemu-devel] [RISU PATCH 06/11] risugen: fix bad indent

2017-07-04 Thread Alex Bennée
Signed-off-by: Alex Bennée --- risugen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/risugen b/risugen index 8b20425..347cf12 100755 --- a/risugen +++ b/risugen @@ -262,7 +262,7 @@ Valid options: These REs are applied after the

[Qemu-devel] [RISU PATCH 05/11] risu.el: derive from text-mode

2017-07-04 Thread Alex Bennée
As RISU files have copious commentary it seems better to derive from text-mode so we can access things like spell-checker short cuts ;-) Signed-off-by: Alex Bennée --- risu.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/risu.el b/risu.el index

[Qemu-devel] [RISU PATCH 00/11] Misc fixes, documentation and patterns

2017-07-04 Thread Alex Bennée
Hi Peter, A bit of a mixed set of patches here for you to pick from as you will. The first 2 are additional tracing fixes including a fix for segfaulting when generating a trace. The next two are documentation patches as requested. Then two minor tweaks, one to risu.el and a indent failure of

[Qemu-devel] [RISU PATCH 04/11] README: document record/replay support

2017-07-04 Thread Alex Bennée
Signed-off-by: Alex Bennée --- README | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/README b/README index e0bf5c5..5f16f60 100644 --- a/README +++ b/README @@ -107,6 +107,26 @@ mismatch status to its standard output. NB

[Qemu-devel] [RISU PATCH 03/11] README: document --static builds

2017-07-04 Thread Alex Bennée
Signed-off-by: Alex Bennée --- README | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README b/README index 858a349..e0bf5c5 100644 --- a/README +++ b/README @@ -17,7 +17,7 @@ test blobs (which can be run anywhere), and a Linux

[Qemu-devel] [RISU PATCH 01/11] risu: make match status take tracing into account

2017-07-04 Thread Alex Bennée
Signed-off-by: Alex Bennée --- reginfo.c | 14 +- risu.c| 4 ++-- risu.h| 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/reginfo.c b/reginfo.c index 13879d5..d9d37b3 100644 --- a/reginfo.c +++ b/reginfo.c @@ -138,7 +138,7 @@

Re: [Qemu-devel] [PATCH 3/7] s390x: fix error propagation in kvm-flic's realize

2017-07-04 Thread Halil Pasic
On 07/04/2017 04:31 PM, Cornelia Huck wrote: > On Tue, 4 Jul 2017 16:07:55 +0200 > Christian Borntraeger wrote: > >> From: Halil Pasic >> >> From the moment it was introduced by commit a2875e6f98 ("s390x/kvm: >> implement floating-interrupt

Re: [Qemu-devel] [PATCH] qemu-doc: Add missing "@c man end" statements

2017-07-04 Thread Kevin Wolf
Am 19.06.2017 um 11:16 hat Thomas Huth geschrieben: > Since commit 3f2ce724f1f1 ("Move the qemu-ga description into a > separate chapter"), the qemu.1 man page looks pretty much screwed > up, e.g. the title was "qemu-ga - QEMU Guest Agent" instead of > "qemu-doc - QEMU Emulator User

Re: [Qemu-devel] [PATCH v2] blockdev: Print a warning for legacy drive options that belong to -device

2017-07-04 Thread Kevin Wolf
Am 12.05.2017 um 12:33 hat Thomas Huth geschrieben: > We likely do not want to carry these legacy -drive options along forever. > Let's emit a deprecation warning for the -drive options that have a > replacement with the -device option, so that the (hopefully few) remaining > users are aware of

Re: [Qemu-devel] [PATCH 6/7] s390x: return unavailable features via query-cpu-definitions

2017-07-04 Thread Cornelia Huck
On Tue, 4 Jul 2017 16:07:58 +0200 Christian Borntraeger wrote: > From: Viktor Mihajlovski > > The response for query-cpu-definitions didn't include the > unavailable-features field, which is used by libvirt to figure > out whether a certain

Re: [Qemu-devel] [PATCH 4/7] s390x: fix realize inheritance for kvm-flic

2017-07-04 Thread Cornelia Huck
On Tue, 4 Jul 2017 16:07:56 +0200 Christian Borntraeger wrote: > From: Halil Pasic > > Commit f6f4ce4211 ("s390x: add property adapter_routes_max_batch", > 2016-12-09) introduces a common realize (intended to be common for all > the

Re: [Qemu-devel] [PATCH RESEND v6] qga: Add support network interface statistics in guest-network-get-interfaces command

2017-07-04 Thread Marc-André Lureau
Hi On Tue, Jul 4, 2017 at 10:51 AM ZhiPeng Lu wrote: > we can get the network interface statistics inside a virtual machine by > guest-network-get-interfaces command. it is very useful for us to monitor > and analyze network traffic. > > It's nicer if you give

Re: [Qemu-devel] [PATCH 3/7] s390x: fix error propagation in kvm-flic's realize

2017-07-04 Thread Cornelia Huck
On Tue, 4 Jul 2017 16:07:55 +0200 Christian Borntraeger wrote: > From: Halil Pasic > > From the moment it was introduced by commit a2875e6f98 ("s390x/kvm: > implement floating-interrupt controller device", 2013-07-16) the kvm-flic > is not

Re: [Qemu-devel] [PATCH] vhost: fix a memory leak

2017-07-04 Thread Marc-André Lureau
Hi On Tue, Jul 4, 2017 at 4:16 PM Peng Hao wrote: > vhost exists a call for g_file_get_contents, but not call g_free. > > Signed-off-by: Peng Hao > Reviewed-by: Marc-André Lureau --- > hw/virtio/vhost-backend.c | 2 ++

Re: [Qemu-devel] [PATCH 2/7] s390x/3270: fix instruction interception handler

2017-07-04 Thread Cornelia Huck
On Tue, 4 Jul 2017 16:07:54 +0200 Christian Borntraeger wrote: > From: Dong Jia Shi > > Commit bab482d7405f ("s390x/css: ccw translation infrastructure") > introduced instruction interception handler for different types of > subchannels.

[Qemu-devel] [PATCH 0/1] Change mail address

2017-07-04 Thread Cornelia Huck
New employer, new address. Make sure people use the right one. Christian, it's probably quickest if you take this. Cornelia Huck (1): Update my email address MAINTAINERS | 8 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.13.0

Re: [Qemu-devel] postcopy migration hangs while loading virtio state

2017-07-04 Thread Martin Schwidefsky
On Tue, 4 Jul 2017 09:48:11 +0200 Christian Borntraeger wrote: > On 07/03/2017 09:07 PM, Dr. David Alan Gilbert wrote: > > * Michael S. Tsirkin (m...@redhat.com) wrote: > >> On Fri, Jun 30, 2017 at 05:31:39PM +0100, Dr. David Alan Gilbert wrote: > >>> * Christian

[Qemu-devel] [PATCH 1/1] Update my email address

2017-07-04 Thread Cornelia Huck
Signed-off-by: Cornelia Huck --- MAINTAINERS | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 7df088259b..afc2b8b328 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -299,7 +299,7 @@ F: target/ppc/kvm.c S390 M:

[Qemu-devel] [PATCH] audio: st_rate_flow exist a dead loop

2017-07-04 Thread Peng Hao
From: Hao Peng if audio device is opend for a long time in windows vm, there is a uint32_t varaible reversal. It will result to a dead loop. Signed-off-by: Peng Hao Reviewed-by: Liu Yun Reviewed-by: Wang Yechao

Re: [Qemu-devel] [PATCH v3 1/1] virtio-scsi-ccw: use ioeventfd even when KVM is disabled

2017-07-04 Thread Cornelia Huck
On Tue, 4 Jul 2017 10:32:31 +0200 QingFeng Hao wrote: > This patch is based on a similar patch from Stefan Hajnoczi - > commit c324fd0a39c (" virtio-pci: use ioeventfd even when KVM is disabled) > > Do not check kvm_eventfds_enabled() when KVM is disabled since it >

Re: [Qemu-devel] [Xen-devel] [PATCH 2/2 v2] xenfb: Allow vkbd to connect without a DisplayState

2017-07-04 Thread Oleksandr Grytsov
On Mon, Jul 3, 2017 at 4:17 PM, Owen Smith wrote: > If the vkbd device model is registered and the vfb device model > is not registered, the backend will not transition to connected. > If there is no DisplayState, then the absolute coordinates cannot > be scaled, and will

[Qemu-devel] [PATCH] vhost: fix a memory leak

2017-07-04 Thread Peng Hao
vhost exists a call for g_file_get_contents, but not call g_free. Signed-off-by: Peng Hao --- hw/virtio/vhost-backend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/virtio/vhost-backend.c b/hw/virtio/vhost-backend.c index 4e31de1..2c481d6 100644 ---

Re: [Qemu-devel] [RFC 29/29] vhost-user: Claim support for postcopy

2017-07-04 Thread Maxime Coquelin
On 06/28/2017 09:00 PM, Dr. David Alan Gilbert (git) wrote: From: "Dr. David Alan Gilbert" Tell QEMU we understand the protocol features needed for postcopy. Signed-off-by: Dr. David Alan Gilbert --- contrib/libvhost-user/libvhost-user.c | 3 ++-

[Qemu-devel] [PATCH 1/7] s390x: vmstatify config migration for virtio-ccw

2017-07-04 Thread Christian Borntraeger
From: Halil Pasic Let's vmstatify virtio_ccw_save_config and virtio_ccw_load_config for flexibility (extending using subsections) and for fun. To achieve this we need to hack the config_vector, which is VirtIODevice (that is common virtio) state, in the middle of the

[Qemu-devel] [PATCH 0/7] s390x/kvm: pending patches

2017-07-04 Thread Christian Borntraeger
This is what I have queued for s390x. Cornelia Huck (1): s390x/MAINTAINERS: Update my email address Dong Jia Shi (1): s390x/3270: fix instruction interception handler Halil Pasic (3): s390x: vmstatify config migration for virtio-ccw s390x: fix error propagation in kvm-flic's realize

[Qemu-devel] [PATCH 7/7] virtio-scsi-ccw: use ioeventfd even when KVM is disabled

2017-07-04 Thread Christian Borntraeger
From: QingFeng Hao This patch is based on a similar patch from Stefan Hajnoczi - commit c324fd0a39c ("virtio-pci: use ioeventfd even when KVM is disabled") Do not check kvm_eventfds_enabled() when KVM is disabled since it always returns 0. Since commit

[Qemu-devel] [PATCH 6/7] s390x: return unavailable features via query-cpu-definitions

2017-07-04 Thread Christian Borntraeger
From: Viktor Mihajlovski The response for query-cpu-definitions didn't include the unavailable-features field, which is used by libvirt to figure out whether a certain cpu model is usable on the host. The unavailable features are now computed by obtaining the host

[Qemu-devel] [PATCH 5/7] s390x/MAINTAINERS: Update my email address

2017-07-04 Thread Christian Borntraeger
From: Cornelia Huck Signed-off-by: Cornelia Huck Message-Id: <20170704092215.13742-2-coh...@redhat.com> Signed-off-by: Christian Borntraeger --- MAINTAINERS | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH 2/7] s390x/3270: fix instruction interception handler

2017-07-04 Thread Christian Borntraeger
From: Dong Jia Shi Commit bab482d7405f ("s390x/css: ccw translation infrastructure") introduced instruction interception handler for different types of subchannels. For emulated 3270 devices, we should assign the virtual subchannel handler to them during device

[Qemu-devel] [PATCH 4/7] s390x: fix realize inheritance for kvm-flic

2017-07-04 Thread Christian Borntraeger
From: Halil Pasic Commit f6f4ce4211 ("s390x: add property adapter_routes_max_batch", 2016-12-09) introduces a common realize (intended to be common for all the subclasses) for flic, but fails to make sure the kvm-flic which had it's own is actually calling this common

[Qemu-devel] [PATCH 3/7] s390x: fix error propagation in kvm-flic's realize

2017-07-04 Thread Christian Borntraeger
From: Halil Pasic >From the moment it was introduced by commit a2875e6f98 ("s390x/kvm: implement floating-interrupt controller device", 2013-07-16) the kvm-flic is not making realize fail properly in case it's impossible to create the KVM device which basically serves

Re: [Qemu-devel] [PATCH] spapr: Only report host/guest IOMMU page size mismatches on KVM

2017-07-04 Thread Thomas Huth
On 04.07.2017 15:54, David Gibson wrote: > We print a warning if the spapr IOMMU isn't configured to support a page > size matching the host page size backing RAM. When that's the case we need > more complex logic to translate VFIO mappings, which is slower. > > But, it's not so slow that it

Re: [Qemu-devel] [PATCH v4 1/1] virtio-scsi-ccw: use ioeventfd even when KVM is disabled

2017-07-04 Thread Christian Borntraeger
On 07/04/2017 03:23 PM, QingFeng Hao wrote: > This patch is based on a similar patch from Stefan Hajnoczi - > commit c324fd0a39c ("virtio-pci: use ioeventfd even when KVM is disabled") > > Do not check kvm_eventfds_enabled() when KVM is disabled since it > always returns 0. Since commit

[Qemu-devel] [PATCH] spapr: Only report host/guest IOMMU page size mismatches on KVM

2017-07-04 Thread David Gibson
We print a warning if the spapr IOMMU isn't configured to support a page size matching the host page size backing RAM. When that's the case we need more complex logic to translate VFIO mappings, which is slower. But, it's not so slow that it would be at all noticeable against the general

Re: [Qemu-devel] [PATCH v3 2/2] docs: document deprecated features in appendix

2017-07-04 Thread Daniel P. Berrange
On Tue, Jul 04, 2017 at 02:59:27PM +0200, Thomas Huth wrote: > On 04.07.2017 13:14, Daniel P. Berrange wrote: > > The deprecation of features in QEMU is totally adhoc currently, > > with no way for the user to get a list of what is deprecated > > in each release. This adds an appendix to the doc

Re: [Qemu-devel] [PATCH v3 1/2] docs: document support lifetime for features

2017-07-04 Thread Daniel P. Berrange
On Tue, Jul 04, 2017 at 02:43:29PM +0200, Thomas Huth wrote: > On 04.07.2017 13:14, Daniel P. Berrange wrote: > > There is currently no explicit guidance on the duration of support > > for features such as versioned machine types, which have a finite > > useful lifespan. Thus apps / users cannot

Re: [Qemu-devel] [PATCH] qemu-img: delete the -e and -6 options from the 'create' command

2017-07-04 Thread Kashyap Chamarthy
On Tue, Jul 04, 2017 at 11:34:27AM +0100, Daniel P. Berrange wrote: > The '-e' and '-6' options to the 'create' command were "deprecated" > in favour of the more generic '-o' option many years ago: > > commit eec77d9e712bd4157a4e1c0b5a9249d168add738 > Author: Jes Sorensen

[Qemu-devel] [PATCH v4 1/1] virtio-scsi-ccw: use ioeventfd even when KVM is disabled

2017-07-04 Thread QingFeng Hao
This patch is based on a similar patch from Stefan Hajnoczi - commit c324fd0a39c ("virtio-pci: use ioeventfd even when KVM is disabled") Do not check kvm_eventfds_enabled() when KVM is disabled since it always returns 0. Since commit 8c56c1a592b5092d91da8d8943c1d6462a6f ("memory: emulate

[Qemu-devel] [PATCH v4 0/1] virtio-scsi-ccw: fix iotest 068 for s390x

2017-07-04 Thread QingFeng Hao
This commit fixes iotest 068 for s390x as s390x uses virtio-scsi-ccw. It's based on commit c324fd0a39c by Stefan Hajnoczi. Thanks! Change history: v4: Got Cornelia Huck's Reviewed-by and take the comment to change the commit message. v3: Take Christian Borntraeger and Cornelia

Re: [Qemu-devel] [PATCH] qemu-thread: Assert locks are initialized before using

2017-07-04 Thread Philippe Mathieu-Daudé
On Tue, Jul 4, 2017 at 9:23 AM, Fam Zheng wrote: > Not all platforms check whether a lock is initialized before used. In > particular Linux seems to be more permissive than OSX. > > Check initialization state explicitly in our code to catch such bugs > earlier. > >

Re: [Qemu-devel] [PATCH RFC 0/6] q35: add acpi pci hotplug support

2017-07-04 Thread Igor Mammedov
On Mon, 3 Jul 2017 19:34:07 +0300 "Michael S. Tsirkin" wrote: > On Mon, Jul 03, 2017 at 02:27:11PM +0200, Igor Mammedov wrote: > > On Fri, 30 Jun 2017 10:25:05 +0300 > > Marcel Apfelbaum wrote: > > > > [...] > > > > > > So for the modern systems not

Re: [Qemu-devel] [PATCH v4 2/2] target/ppc: move POWER9 DD1 workaround to init_proc_POWER9()

2017-07-04 Thread Thomas Huth
On 04.07.2017 15:02, Greg Kurz wrote: > On Tue, 4 Jul 2017 21:41:51 +1000 > David Gibson wrote: > >> On Tue, Jul 04, 2017 at 01:15:00PM +0200, Greg Kurz wrote: >>> On Tue, 4 Jul 2017 13:01:26 +0200 >>> Laurent Vivier wrote: >>> Commit

Re: [Qemu-devel] [PATCH v3 0/2] Document deprecated features & support lifecycle

2017-07-04 Thread Thomas Huth
On 04.07.2017 14:16, Daniel P. Berrange wrote: > On Tue, Jul 04, 2017 at 01:00:54PM +0100, Peter Maydell wrote: >> On 4 July 2017 at 12:14, Daniel P. Berrange wrote: >>> This is a followup to >>> >>> v1: https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg02390.html

Re: [Qemu-devel] [PATCH v4 2/2] target/ppc: move POWER9 DD1 workaround to init_proc_POWER9()

2017-07-04 Thread Greg Kurz
On Tue, 4 Jul 2017 21:41:51 +1000 David Gibson wrote: > On Tue, Jul 04, 2017 at 01:15:00PM +0200, Greg Kurz wrote: > > On Tue, 4 Jul 2017 13:01:26 +0200 > > Laurent Vivier wrote: > > > > > Commit 5f3066d ("target/ppc: Allow workarounds for

Re: [Qemu-devel] [PATCH v3 2/2] docs: document deprecated features in appendix

2017-07-04 Thread Thomas Huth
On 04.07.2017 13:14, Daniel P. Berrange wrote: > The deprecation of features in QEMU is totally adhoc currently, > with no way for the user to get a list of what is deprecated > in each release. This adds an appendix to the doc that records > when each deprecation was made and provides text

Re: [Qemu-devel] [PULL v1 00/17] Xilinx queue

2017-07-04 Thread Peter Maydell
On 4 July 2017 at 10:54, Edgar E. Iglesias wrote: > From: "Edgar E. Iglesias" > > The following changes since commit fd479c60f5766f7fb247ad146b9e3c33d03d2055: > > Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20170603' into >

Re: [Qemu-devel] [PATCH v3 1/2] docs: document support lifetime for features

2017-07-04 Thread Thomas Huth
On 04.07.2017 13:14, Daniel P. Berrange wrote: > There is currently no explicit guidance on the duration of support > for features such as versioned machine types, which have a finite > useful lifespan. Thus apps / users cannot predict how much time > they might be able to use a feature for,

Re: [Qemu-devel] [PATCH 02/22] configure: early test for supported targets

2017-07-04 Thread Daniel P. Berrange
On Tue, Jul 04, 2017 at 01:11:55PM +0200, Paolo Bonzini wrote: > Check for unsupported targets in target_list, and print an > error early in the configuration process. > > Reviewed-by: Richard Henderson > Signed-off-by: Paolo Bonzini > --- > v2:

Re: [Qemu-devel] [PATCH v3 0/2] Document deprecated features & support lifecycle

2017-07-04 Thread Thomas Huth
On 04.07.2017 14:27, Daniel P. Berrange wrote: > On Tue, Jul 04, 2017 at 02:21:28PM +0200, Thomas Huth wrote: >> On 04.07.2017 13:14, Daniel P. Berrange wrote: >> [...] >>> - Not listing the '-6' and '-e' args to qemu-img create. Those >>>were never deprecations, because the functionality was

Re: [Qemu-devel] [PATCH v2] qemu-img: drop -e and -6 options from the 'create' & 'convert' commands

2017-07-04 Thread Kevin Wolf
Am 04.07.2017 um 14:30 hat Daniel P. Berrange geschrieben: > The '-e' and '-6' options to the 'create' & 'convert' commands were > "deprecated" in favour of the more generic '-o' option many years ago: > > commit eec77d9e712bd4157a4e1c0b5a9249d168add738 > Author: Jes Sorensen

[Qemu-devel] [PATCH v2] qemu-img: drop -e and -6 options from the 'create' & 'convert' commands

2017-07-04 Thread Daniel P. Berrange
The '-e' and '-6' options to the 'create' & 'convert' commands were "deprecated" in favour of the more generic '-o' option many years ago: commit eec77d9e712bd4157a4e1c0b5a9249d168add738 Author: Jes Sorensen Date: Tue Dec 7 17:44:34 2010 +0100 qemu-img:

Re: [Qemu-devel] [PATCH v3 0/2] Document deprecated features & support lifecycle

2017-07-04 Thread Daniel P. Berrange
On Tue, Jul 04, 2017 at 02:21:28PM +0200, Thomas Huth wrote: > On 04.07.2017 13:14, Daniel P. Berrange wrote: > [...] > > - Not listing the '-6' and '-e' args to qemu-img create. Those > >were never deprecations, because the functionality was > >immediately turned into a fatal error. >

[Qemu-devel] [PATCH] qemu-thread: Assert locks are initialized before using

2017-07-04 Thread Fam Zheng
Not all platforms check whether a lock is initialized before used. In particular Linux seems to be more permissive than OSX. Check initialization state explicitly in our code to catch such bugs earlier. Signed-off-by: Fam Zheng --- include/qemu/thread-posix.h | 4

Re: [Qemu-devel] [PATCH v3 0/2] Document deprecated features & support lifecycle

2017-07-04 Thread Thomas Huth
On 04.07.2017 13:14, Daniel P. Berrange wrote: [...] > - Not listing the '-6' and '-e' args to qemu-img create. Those >were never deprecations, because the functionality was >immediately turned into a fatal error. How did you come to that conclusion? As far as I can see, the -6 option has

[Qemu-devel] [PATCH] virtio-scsi: finalize IOMMU support

2017-07-04 Thread Jason Wang
After converting to use DMA api for virtio devices, we should use dma_as instead of address_space_memory. Otherwise it won't work if IOMMU is enabled. Fixes: commit 8607f5c3072c ("virtio: convert to use DMA api") Cc: qemu-sta...@nongnu.org Signed-off-by: Jason Wang ---

Re: [Qemu-devel] [PATCH] qemu-img: delete the -e and -6 options from the 'create' command

2017-07-04 Thread Daniel P. Berrange
On Tue, Jul 04, 2017 at 02:16:06PM +0200, Kevin Wolf wrote: > Am 04.07.2017 um 12:34 hat Daniel P. Berrange geschrieben: > > The '-e' and '-6' options to the 'create' command were "deprecated" > > in favour of the more generic '-o' option many years ago: > > > > commit

Re: [Qemu-devel] [PATCH RFC 0/6] q35: add acpi pci hotplug support

2017-07-04 Thread Marcel Apfelbaum
On 04/07/2017 4:00, Alexander Bezzubikov wrote: That is why I think we can consider a possibility of forgetting about ACPI hot plug in pcie-pci bridge and use only SHPC (with some correcting work). Especially since q35 is used only for 'modern' Windows guests and there're no big problems with

Re: [Qemu-devel] [PATCH v3 0/2] Document deprecated features & support lifecycle

2017-07-04 Thread Daniel P. Berrange
On Tue, Jul 04, 2017 at 01:00:54PM +0100, Peter Maydell wrote: > On 4 July 2017 at 12:14, Daniel P. Berrange wrote: > > This is a followup to > > > > v1: https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg02390.html > > v2:

Re: [Qemu-devel] [PATCH] qemu-img: delete the -e and -6 options from the 'create' command

2017-07-04 Thread Kevin Wolf
Am 04.07.2017 um 12:34 hat Daniel P. Berrange geschrieben: > The '-e' and '-6' options to the 'create' command were "deprecated" > in favour of the more generic '-o' option many years ago: > > commit eec77d9e712bd4157a4e1c0b5a9249d168add738 > Author: Jes Sorensen >

Re: [Qemu-devel] [PATCH v3] s390: return unavailable features via query-cpu-definitions

2017-07-04 Thread Christian Borntraeger
On 07/03/2017 01:48 PM, Viktor Mihajlovski wrote: > The response for query-cpu-definitions didn't include the > unavailable-features field, which is used by libvirt to figure > out whether a certain cpu model is usable on the host. > > The unavailable features are now computed by obtaining the

Re: [Qemu-devel] [PULL 00/21] pc, acpi, pci, virtio: fixes, cleanups, features, tests

2017-07-04 Thread Peter Maydell
On 3 July 2017 at 20:44, Michael S. Tsirkin wrote: > The following changes since commit fd479c60f5766f7fb247ad146b9e3c33d03d2055: > > Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20170603' into > staging (2017-07-03 09:54:32 +0100) > > are available in the git

Re: [Qemu-devel] [PATCH v3] s390: return unavailable features via query-cpu-definitions

2017-07-04 Thread Viktor Mihajlovski
On 04.07.2017 13:22, Viktor Mihajlovski wrote: > On 04.07.2017 11:35, David Hildenbrand wrote: >>> + >>> static void create_cpu_model_list(ObjectClass *klass, void *opaque) >>> { >>> -CpuDefinitionInfoList **cpu_list = opaque; >>> +struct CpuDefinitionInfoListData *cpu_list_data =

Re: [Qemu-devel] [PATCH v3 0/2] Document deprecated features & support lifecycle

2017-07-04 Thread Peter Maydell
On 4 July 2017 at 12:14, Daniel P. Berrange wrote: > This is a followup to > > v1: https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg02390.html > v2: https://lists.gnu.org/archive/html/qemu-devel/2017-06/msg01286.html > > The goal is to clarify to users & app

Re: [Qemu-devel] [PATCH v4 2/2] target/ppc: move POWER9 DD1 workaround to init_proc_POWER9()

2017-07-04 Thread David Gibson
On Tue, Jul 04, 2017 at 01:15:00PM +0200, Greg Kurz wrote: > On Tue, 4 Jul 2017 13:01:26 +0200 > Laurent Vivier wrote: > > > Commit 5f3066d ("target/ppc: Allow workarounds for POWER9 DD1") > > disables compatibility mode for POWER9 DD1 to allow to > > boot on POWER9 DD1 host

Re: [Qemu-devel] [PATCH v4 2/2] target/ppc: move POWER9 DD1 workaround to init_proc_POWER9()

2017-07-04 Thread Laurent Vivier
On 04/07/2017 13:15, Greg Kurz wrote: > On Tue, 4 Jul 2017 13:01:26 +0200 > Laurent Vivier wrote: > >> Commit 5f3066d ("target/ppc: Allow workarounds for POWER9 DD1") >> disables compatibility mode for POWER9 DD1 to allow to >> boot on POWER9 DD1 host with KVM. >> >> As the

[Qemu-devel] [PATCH v3 2/2] docs: document deprecated features in appendix

2017-07-04 Thread Daniel P. Berrange
The deprecation of features in QEMU is totally adhoc currently, with no way for the user to get a list of what is deprecated in each release. This adds an appendix to the doc that records when each deprecation was made and provides text explaining what to use instead, if anything. Since there has

[Qemu-devel] [PATCH v3 1/2] docs: document support lifetime for features

2017-07-04 Thread Daniel P. Berrange
There is currently no explicit guidance on the duration of support for features such as versioned machine types, which have a finite useful lifespan. Thus apps / users cannot predict how much time they might be able to use a feature for, before it is removed (if ever). This adds a new appendix

Re: [Qemu-devel] [PATCH qemu v8 2/2] memory/iommu: introduce IOMMUMemoryRegionClass

2017-07-04 Thread David Gibson
On Wed, Jun 28, 2017 at 02:19:57PM +1000, Alexey Kardashevskiy wrote: > On 21/06/17 17:26, David Gibson wrote: > > On Wed, Jun 21, 2017 at 12:05:08PM +1000, Alexey Kardashevskiy wrote: > >> On 14/06/17 16:36, Alexey Kardashevskiy wrote: > >>> This finishes QOM'fication of IOMMUMemoryRegion by

[Qemu-devel] [PATCH v3 0/2] Document deprecated features & support lifecycle

2017-07-04 Thread Daniel P. Berrange
This is a followup to v1: https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg02390.html v2: https://lists.gnu.org/archive/html/qemu-devel/2017-06/msg01286.html The goal is to clarify to users & app developers what they can expect from QEMU in terms of feature lifecycle & any

Re: [Qemu-devel] [RFC PATCH v2 16/15] block: Add .bdrv_co_block_status() callback

2017-07-04 Thread Fam Zheng
On Mon, 07/03 17:20, Eric Blake wrote: > We are gradually moving away from sector-based interfaces, towards > byte-based. Now that the block layer exposes byte-based allocation, > it's time to tackle the drivers. Add a new callback that operates > on as small as byte boundaries. Subsequent

Re: [Qemu-devel] [PATCH v4 2/2] target/ppc: move POWER9 DD1 workaround to init_proc_POWER9()

2017-07-04 Thread Laurent Vivier
On 04/07/2017 13:21, Laurent Vivier wrote: > On 04/07/2017 13:15, Greg Kurz wrote: >> On Tue, 4 Jul 2017 13:01:26 +0200 >> Laurent Vivier wrote: >> >>> Commit 5f3066d ("target/ppc: Allow workarounds for POWER9 DD1") >>> disables compatibility mode for POWER9 DD1 to allow to

[Qemu-devel] [PATCH 21/22] target/i386: add the CONFIG_TCG into Makefiles

2017-07-04 Thread Paolo Bonzini
From: Yang Zhong Add the CONFIG_TCG for frontend and backend's files in the related Makefiles. Signed-off-by: Yang Zhong Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- v2: compile out

Re: [Qemu-devel] [RFC PATCH 1/3] vmstate: error hint for failed equal checks

2017-07-04 Thread Halil Pasic
On 07/04/2017 08:42 AM, Markus Armbruster wrote: > Halil Pasic writes: > >> On 07/03/2017 03:52 PM, Markus Armbruster wrote: >>> Halil Pasic writes: >>> On 06/30/2017 04:54 PM, Eric Blake wrote: > On 06/30/2017 09:41 AM, Halil Pasic

Re: [Qemu-devel] [Qemu-ppc] [RFC v3 2/2] target/ppc: move POWER9 DD1 workaround to ppc_cpu_initfn

2017-07-04 Thread Thomas Huth
On 04.07.2017 11:27, David Gibson wrote: > On Tue, Jul 04, 2017 at 10:17:18AM +0200, Thomas Huth wrote: >> On 03.07.2017 15:14, Laurent Vivier wrote: >>> Commit 5f3066d ("target/ppc: Allow workarounds for POWER9 DD1") >>> disables compatibility mode for POWER9 DD1 to allow to >>> boot on POWER9

[Qemu-devel] [PATCH 17/22] target/i386: make cpu_get_fp80()/cpu_set_fp80() static

2017-07-04 Thread Paolo Bonzini
From: Yang Zhong Move cpu_get_fp80()/cpu_set_fp80() from fpu_helper.c to machine.c because fpu_helper.c will be disabled if tcg is disabled in the build. Signed-off-by: Yang Zhong Reviewed-by: Richard Henderson Signed-off-by: Paolo

[Qemu-devel] [PATCH 12/22] tcg: move tb_lock out of translate-all.h

2017-07-04 Thread Paolo Bonzini
Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- bsd-user/main.c | 1 - include/exec/exec-all.h | 4 tcg/tcg.h | 4 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bsd-user/main.c

[Qemu-devel] [PATCH 19/22] target/i386: move TLB refill function out of helper.c

2017-07-04 Thread Paolo Bonzini
This function calls tlb_set_page_with_attrs, which is not available when TCG is disabled. Move it to excp_helper.c. Reviewed-by: Richard Henderson Signed-off-by: Paolo Bonzini --- target/i386/excp_helper.c | 343

<    1   2   3   4   >