[Qemu-devel] [PATCH] virtio-net: fix wild pointer when remove virtio-net queues

2017-04-25 Thread Yunjian Wang
The tx_bh or tx_timer will free in virtio_net_del_queue() function, when removing virtio-net queues if the guest doesn't support multiqueue. But it might be still referenced by virtio_net_set_status(), which needs to be set NULL. And also the tx_waiting needs to be set zero to prevent virtio_net_se

Re: [Qemu-devel] [PULL 0/21] Please pull xen-20170421-tag for 2.10

2017-04-25 Thread Markus Armbruster
Stefano Stabellini writes: > On Tue, 25 Apr 2017, Markus Armbruster wrote: >> Stefano Stabellini writes: [...] >> > diff --git a/hw/9pfs/xen-9pfs.h b/hw/9pfs/xen-9pfs.h >> > new file mode 100644 >> > index 000..6e33d77 >> > --- /dev/null >> > +++ b/hw/9pfs/xen-9pfs.h >> > @@ -0,0 +1,21 @@ >>

Re: [Qemu-devel] [PATCH 2/2] ipmi: don't try to open a NULL filename

2017-04-25 Thread Cédric Le Goater
On 04/26/2017 04:43 AM, David Gibson wrote: > On Tue, Apr 25, 2017 at 04:06:17PM +0200, Cédric Le Goater wrote: >> On 04/25/2017 03:31 PM, Peter Maydell wrote: >>> On 25 April 2017 at 07:51, Cédric Le Goater wrote: Currenlty, the code relies on the fact that open() handles NULL filenames

[Qemu-devel] [PATCH v3 10/10] tb-hash: improve tb_jmp_cache hash function in user mode

2017-04-25 Thread Emilio G. Cota
Optimizations to cross-page chaining and indirect branches make performance more sensitive to the hit rate of tb_jmp_cache. The constraint of reserving some bits for the page number lowers the achievable quality of the hashing function. However, user-mode does not have this requirement. Thus, with

[Qemu-devel] [PATCH v3 05/10] target/arm: optimize cross-page direct jumps in softmmu

2017-04-25 Thread Emilio G. Cota
Instead of unconditionally exiting to the exec loop, use the lookup_and_goto_ptr helper to jump to the target if it is valid. Perf impact: see next commit's log. Signed-off-by: Emilio G. Cota --- target/arm/translate.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tar

[Qemu-devel] [PATCH v3 09/10] target/i386: optimize indirect branches

2017-04-25 Thread Emilio G. Cota
Speed up indirect branches by jumping to the target if it is valid. Softmmu measurements (see later commit for user-mode numbers): Note: baseline (i.e. speedup == 1x) is QEMU v2.9.0. - SPECint06 (test set), x86_64-softmmu (Ubuntu 16.04 guest). Host: Intel i7-4790K @ 4.00GHz 2

[Qemu-devel] [PATCH v3 02/10] tcg: introduce goto_ptr opcode

2017-04-25 Thread Emilio G. Cota
Signed-off-by: Emilio G. Cota --- tcg/aarch64/tcg-target.h | 1 + tcg/arm/tcg-target.h | 1 + tcg/i386/tcg-target.h| 1 + tcg/ia64/tcg-target.h| 1 + tcg/mips/tcg-target.h| 1 + tcg/ppc/tcg-target.h | 1 + tcg/s390/tcg-target.h| 1 + tcg/sparc/tcg-target.h | 1 + tcg/tcg

[Qemu-devel] [PATCH v3 01/10] tcg-runtime: add lookup_tb_ptr helper

2017-04-25 Thread Emilio G. Cota
This paves the way for upcoming work. Reviewed-by: Richard Henderson Signed-off-by: Emilio G. Cota --- tcg-runtime.c | 21 + tcg/tcg-runtime.h | 2 ++ tcg/tcg.h | 1 + 3 files changed, 24 insertions(+) diff --git a/tcg-runtime.c b/tcg-runtime.c index 4c60c96..

[Qemu-devel] [PATCH v3 07/10] target/i386: introduce gen_jr helper to generate lookup_and_goto_ptr

2017-04-25 Thread Emilio G. Cota
This helper will be used by subsequent changes. Signed-off-by: Emilio G. Cota --- target/i386/translate.c | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/target/i386/translate.c b/target/i386/translate.c index 1d1372f..59f6eaa 100644 --- a/target/i3

[Qemu-devel] [PATCH v3 06/10] target/arm: optimize indirect branches

2017-04-25 Thread Emilio G. Cota
Speed up indirect branches by jumping to the target if it is valid. Softmmu measurements (see later commit for user-mode results): Note: baseline (i.e. speedup == 1x) is QEMU v2.9.0. - Impact on Boot time | setup | ARM debian jessie boot+shutdown time | stddev | |+-

[Qemu-devel] [PATCH v3 03/10] tcg: export tcg_gen_lookup_and_goto_ptr

2017-04-25 Thread Emilio G. Cota
Instead of exporting goto_ptr directly to TCG frontends, export tcg_gen_lookup_and_goto_ptr(), which calls goto_ptr with the pointer returned by the lookup_tb_ptr() helper. This is the only use case we have for goto_ptr and lookup_tb_ptr, so having this function is very convenient. Furthermore, it

[Qemu-devel] [PATCH v3 04/10] tcg/i386: implement goto_ptr op

2017-04-25 Thread Emilio G. Cota
Signed-off-by: Emilio G. Cota --- tcg/i386/tcg-target.h | 2 +- tcg/i386/tcg-target.inc.c | 15 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h index 59d9835..73a15f7 100644 --- a/tcg/i386/tcg-target.h +++ b/tcg/i38

[Qemu-devel] [PATCH v3 08/10] target/i386: optimize cross-page direct jumps in softmmu

2017-04-25 Thread Emilio G. Cota
Instead of unconditionally exiting to the exec loop, use the gen_jr helper to jump to the target if it is valid. Perf impact: see next commit's log. Signed-off-by: Emilio G. Cota --- target/i386/translate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/tran

[Qemu-devel] [PATCH v3 00/10] TCG optimizations for 2.10

2017-04-25 Thread Emilio G. Cota
This is the v3 of this series. v2 for context: https://lists.gnu.org/archive/html/qemu-devel/2017-04/msg04342.html Changes from v2 -- all due to Richard's comments: - Inlined tb_from_jmp_cache into the TCG helper; now that this helper is common there is no point in having a separate function

Re: [Qemu-devel] [PULL 00/47] ppc-for-2.10 queue 20170424

2017-04-25 Thread Cédric Le Goater
On 04/26/2017 04:38 AM, David Gibson wrote: > On Mon, Apr 24, 2017 at 02:12:19PM +0100, Peter Maydell wrote: >> On 24 April 2017 at 02:58, David Gibson wrote: >>> The following changes since commit 32c7e0ab755745e961f1772e95cac381cc68769d: >>> >>> Merge remote-tracking branch >>> 'remotes/juanq

Re: [Qemu-devel] [PATCH 2/2] ipmi: don't try to open a NULL filename

2017-04-25 Thread Cédric Le Goater
On 04/26/2017 04:42 AM, David Gibson wrote: > On Tue, Apr 25, 2017 at 08:51:41AM +0200, Cédric Le Goater wrote: >> Currenlty, the code relies on the fact that open() handles NULL >> filenames but that can cause an error with new clang: >> >> hw/core/loader.c:67:15: runtime error: null pointer pas

Re: [Qemu-devel] [PATCH 2/4] hw/ppc: migrating the DRC state of hotplugged devices

2017-04-25 Thread David Gibson
On Tue, Apr 25, 2017 at 05:45:11PM -0500, Michael Roth wrote: > Quoting Daniel Henrique Barboza (2017-04-24 17:08:26) > > In pseries, a firmware abstraction called Dynamic Reconfiguration > > Connector (DRC) is used to assign a particular dynamic resource > > to the guest and provide an interface t

[Qemu-devel] [PATCH V3 4/6] migration: add postcopy downtime into MigrationIncommingState

2017-04-25 Thread Alexey Perevalov
This patch add request to kernel space for UFFD_FEATURE_THREAD_ID, in case when this feature is provided by kernel. DowntimeContext is incapsulated inside migration.c. Signed-off-by: Alexey Perevalov --- include/migration/migration.h | 12 migration/migration.c | 33 +++

[Qemu-devel] [PATCH V3 2/6] migration: pass ptr to MigrationIncomingState into migration ufd_version_check & postcopy_ram_supported_by_host

2017-04-25 Thread Alexey Perevalov
That tiny refactoring is necessary to be able to set UFFD_FEATURE_THREAD_ID while requesting features, and then to create downtime context in case when kernel supports it. Signed-off-by: Alexey Perevalov --- include/migration/postcopy-ram.h | 2 +- migration/migration.c| 2 +- migr

[Qemu-devel] [PATCH V3 5/6] migration: calculate downtime on dst side

2017-04-25 Thread Alexey Perevalov
This patch provides downtime calculation per vCPU, as a summary and as a overlapped value for all vCPUs. This approach was suggested by Peter Xu, as an improvements of previous approch where QEMU kept tree with faulted page address and cpus bitmask in it. Now QEMU is keeping array with faulted pag

[Qemu-devel] [PATCH V3 6/6] migration: trace postcopy total downtime

2017-04-25 Thread Alexey Perevalov
It's not possible to transmit it back to source host, due to RP protocol is not expandable. Signed-off-by: Alexey Perevalov --- migration/postcopy-ram.c | 2 ++ migration/trace-events | 1 + 2 files changed, 3 insertions(+) diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c inde

[Qemu-devel] [PATCH V3 3/6] migration: split ufd_version_check onto receive/request features part

2017-04-25 Thread Alexey Perevalov
This modification is necessary for userfault fd features which are required to be requested from userspace. UFFD_FEATURE_THREAD_ID is a one of such "on demand" feature, which will be introduced in the next patch. QEMU need to use separate userfault file descriptor, due to userfault context has int

[Qemu-devel] [PATCH V3 0/6] calculate downtime for postcopy live migration

2017-04-25 Thread Alexey Perevalov
This is third version of patch set. First version was tagged as RFC, second was without version tag. Difference since previous version (V3 -> V2) - Downtime calculation approach was changed, thanks to Peter Xu - Due to previous point no more need to keep GTree as well as bitmap of cpus. S

[Qemu-devel] [PATCH V3 1/6] userfault: add pid into uffd_msg & update UFFD_FEATURE_*

2017-04-25 Thread Alexey Perevalov
This commit duplicates header of "userfaultfd: provide pid in userfault msg" into linux kernel. Signed-off-by: Alexey Perevalov --- linux-headers/linux/userfaultfd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/linux-headers/linux/userfaultfd.h b/linux-headers/linux/userfaultfd.h in

Re: [Qemu-devel] Subject: [PATCH] target-ppc: Add global timer group A to open-pic.

2017-04-25 Thread David Gibson
On Fri, Apr 21, 2017 at 02:58:23PM -0700, Aaron Larson wrote: > Add global timer group A to open-pic. This patch is still somewhat > dubious because I'm not sure how to determine what QEMU wants for the > timer frequency. Suggestions solicited. > > Signed-off-by: Aaron Larson > --- > hw/intc/o

[Qemu-devel] [PATCH] monitor: Check whether TCG is enabled before running the "info jit" code

2017-04-25 Thread Thomas Huth
The "info jit" command currently aborts on Mac OS X with the message "qemu_mutex_lock: Invalid argument" when running with "-M accel=qtest". We should only call into the TCG code here if TCG has really been enabled and initialized. Signed-off-by: Thomas Huth --- monitor.c | 5 + 1 file chang

[Qemu-devel] [PATCH v15 20/21] file-posix: Add image locking to perm operations

2017-04-25 Thread Fam Zheng
This extends the permission bits of op blocker API to external using Linux OFD locks. Each permission in @perm and @shared_perm is represented by a locked byte in the image file. Requesting a permission in @perm is translated to a shared lock of the corresponding byte; rejecting to share the same

[Qemu-devel] [PATCH v15 14/21] iotests: 172: Use separate images for multiple devices

2017-04-25 Thread Fam Zheng
To avoid image lock failures. Signed-off-by: Fam Zheng --- tests/qemu-iotests/172 | 55 +- tests/qemu-iotests/172.out | 50 + 2 files changed, 56 insertions(+), 49 deletions(-) diff --git a/tests/qemu-iotest

[Qemu-devel] [PATCH v15 21/21] qemu-iotests: Add test case 153 for image locking

2017-04-25 Thread Fam Zheng
Signed-off-by: Fam Zheng --- tests/qemu-iotests/153 | 220 + tests/qemu-iotests/153.out | 390 + tests/qemu-iotests/group | 1 + 3 files changed, 611 insertions(+) create mode 100755 tests/qemu-iotests/153 create mode 1

[Qemu-devel] [PATCH v15 11/21] iotests: 085: Avoid image locking conflict

2017-04-25 Thread Fam Zheng
In the case where we test the expected error when a blockdev-snapshot target already has a backing image, the backing chain is opened multiple times. This will be a problem when we use image locking, so use a different backing file that is not already open. Signed-off-by: Fam Zheng --- tests/qem

[Qemu-devel] [PATCH v15 16/21] file-posix: Add 'locking' option

2017-04-25 Thread Fam Zheng
Making this option available even before implementing it will let converting tests easier: in coming patches they can specify the option already when necessary, before we actually write code to lock the images. Signed-off-by: Fam Zheng --- block/file-posix.c | 5 + 1 file changed, 5 insertio

[Qemu-devel] [PATCH v15 09/21] iotests: 046: Prepare for image locking

2017-04-25 Thread Fam Zheng
The qemu-img info command is executed while VM is running, add -U option to avoid the image locking error. Signed-off-by: Fam Zheng --- tests/qemu-iotests/046 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/046 b/tests/qemu-iotests/046 index e528b67..f2ebec

[Qemu-devel] [PATCH v15 19/21] osdep: Add qemu_lock_fd and qemu_unlock_fd

2017-04-25 Thread Fam Zheng
They are wrappers of POSIX fcntl "file private locking", with a convenient "try lock" wrapper implemented with F_OFD_GETLK. Signed-off-by: Fam Zheng Reviewed-by: Max Reitz --- include/qemu/osdep.h | 3 +++ util/osdep.c | 48 2 files chan

[Qemu-devel] [PATCH v15 18/21] block: Reuse bs as backing hd for drive-backup sync=none

2017-04-25 Thread Fam Zheng
Signed-off-by: Fam Zheng --- blockdev.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/blockdev.c b/blockdev.c index 4927914..4e04dec 100644 --- a/blockdev.c +++ b/blockdev.c @@ -3174,6 +3174,7 @@ static BlockJob *do_drive_backup(DriveBackup *backup, BlockJob

[Qemu-devel] [PATCH v15 13/21] iotests: 091: Quit QEMU before checking image

2017-04-25 Thread Fam Zheng
Signed-off-by: Fam Zheng Reviewed-by: Max Reitz --- tests/qemu-iotests/091 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/qemu-iotests/091 b/tests/qemu-iotests/091 index 32bbd56..10ac4a8 100755 --- a/tests/qemu-iotests/091 +++ b/tests/qemu-iotests/091 @@ -95,7 +95,9 @@ echo "vm2: qe

[Qemu-devel] [PATCH v15 10/21] iotests: 055: Don't attach the target image already for drive-backup

2017-04-25 Thread Fam Zheng
Double attach is not a valid usage of the target image, drive-backup will open the blockdev itself so skip the add_drive call in this case. Signed-off-by: Fam Zheng Reviewed-by: Max Reitz --- tests/qemu-iotests/055 | 32 ++-- 1 file changed, 18 insertions(+), 14 dele

[Qemu-devel] [PATCH v15 17/21] tests: Disable image lock in test-replication

2017-04-25 Thread Fam Zheng
The COLO block replication architecture requires one disk to be shared between primary and secondary, in the test both processes use posix file protocol (instead of over NBD) so it is affected by image locking. Disable the lock. Signed-off-by: Fam Zheng --- tests/test-replication.c | 9 +++--

[Qemu-devel] [PATCH v15 06/21] qemu-img: Update documentation for -U

2017-04-25 Thread Fam Zheng
Signed-off-by: Fam Zheng --- qemu-img-cmds.hx | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/qemu-img-cmds.hx b/qemu-img-cmds.hx index 8ac7822..ae309c0 100644 --- a/qemu-img-cmds.hx +++ b/qemu-img-cmds.hx @@ -10,15 +10,15 @@ STEXI ETEXI

[Qemu-devel] [PATCH v15 12/21] iotests: 087: Don't attach test image twice

2017-04-25 Thread Fam Zheng
The test scenario doesn't require the same image, instead it focuses on the duplicated node-name, so use null-co to avoid locking conflict. Reviewed-by: Max Reitz Signed-off-by: Fam Zheng --- tests/qemu-iotests/087 | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/

[Qemu-devel] [PATCH v15 08/21] iotests: 030: Prepare for image locking

2017-04-25 Thread Fam Zheng
qemu-img and qemu-io commands when guest is running need "-U" option, add it. Signed-off-by: Fam Zheng --- tests/qemu-iotests/030 | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030 index 0d472d5..e00c11b 100755 -

[Qemu-devel] [PATCH v15 15/21] tests: Use null-co:// instead of /dev/null as the dummy image

2017-04-25 Thread Fam Zheng
Signed-off-by: Fam Zheng Reviewed-by: Max Reitz --- tests/drive_del-test.c| 2 +- tests/nvme-test.c | 2 +- tests/usb-hcd-uhci-test.c | 2 +- tests/usb-hcd-xhci-test.c | 2 +- tests/virtio-blk-test.c | 2 +- tests/virtio-scsi-test.c | 5 +++-- 6 files changed, 8 insertions(+), 7 d

[Qemu-devel] [PATCH v15 07/21] qemu-io: Add --force-share option

2017-04-25 Thread Fam Zheng
Add --force-share/-U to program options and -U to open subcommand. Signed-off-by: Fam Zheng --- qemu-io.c | 42 ++ 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/qemu-io.c b/qemu-io.c index 427cbae..cf4b876 100644 --- a/qemu-io.c +++ b/qemu

[Qemu-devel] [PATCH v15 03/21] block: Add, parse and store "force-share" option

2017-04-25 Thread Fam Zheng
Signed-off-by: Fam Zheng --- block.c | 17 + include/block/block.h | 1 + include/block/block_int.h | 1 + qapi/block-core.json | 3 +++ 4 files changed, 22 insertions(+) diff --git a/block.c b/block.c index fce77bf..9db39b6 100644 --- a/block.c +++

[Qemu-devel] [PATCH v15 05/21] qemu-img: Add --force-share option to subcommands

2017-04-25 Thread Fam Zheng
This will force the opened images to allow sharing all permissions with other programs. Signed-off-by: Fam Zheng --- qemu-img.c | 154 ++--- 1 file changed, 118 insertions(+), 36 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index ed24

[Qemu-devel] [PATCH v15 04/21] block: Respect "force-share" in perm propagating

2017-04-25 Thread Fam Zheng
Signed-off-by: Fam Zheng --- block.c | 32 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/block.c b/block.c index 9db39b6..e9f4750 100644 --- a/block.c +++ b/block.c @@ -1430,6 +1430,22 @@ static int bdrv_child_check_perm(BdrvChild *c, uint64_t pe

[Qemu-devel] [PATCH v15 01/21] block: Make bdrv_perm_names public

2017-04-25 Thread Fam Zheng
It can be used outside of block.c for making user friendly messages. Signed-off-by: Fam Zheng --- block.c | 2 +- include/block/block.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index 1e668fb..fce77bf 100644 --- a/block.c +++ b/block.c

[Qemu-devel] [PATCH v15 02/21] block: Define BLK_PERM_MAX

2017-04-25 Thread Fam Zheng
This is the order of the largest possible permission. Signed-off-by: Fam Zheng --- include/block/block.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/block/block.h b/include/block/block.h index eb0565d..a798f10 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -2

[Qemu-devel] [PATCH v15 00/21] block: Image locking series

2017-04-25 Thread Fam Zheng
v15: Rework a number of things, especially around what and how lockings are done. [Kevin] - Map each permission to a locked byte. - Make the new option --force-share-perms, and require read-only=on. - Update test case 153 accordingly. - Only add -U where necessary in iotes

Re: [Qemu-devel] [PULL 00/47] ppc-for-2.10 queue 20170424

2017-04-25 Thread David Gibson
On Mon, Apr 24, 2017 at 02:12:19PM +0100, Peter Maydell wrote: > On 24 April 2017 at 02:58, David Gibson wrote: > > The following changes since commit 32c7e0ab755745e961f1772e95cac381cc68769d: > > > > Merge remote-tracking branch > > 'remotes/juanquintela/tags/migration/20170421' into staging (

Re: [Qemu-devel] Subject: [PATCH] target-ppc: Add global timer group A to open-pic.

2017-04-25 Thread David Gibson
On Sun, Apr 23, 2017 at 07:37:55PM -0500, alar...@ddci.com wrote: > David Gibson wrote on 04/23/2017 06:17:22 > PM: > > > From: David Gibson > > To: Aaron Larson > > Cc: ag...@suse.de, qemu-devel@nongnu.org, qemu-...@nongnu.org > > Date: 04/23/2017 06:54 PM > > Subject: Re: Subject: [PATCH] ta

Re: [Qemu-devel] [PATCH 2/2] ipmi: don't try to open a NULL filename

2017-04-25 Thread David Gibson
On Tue, Apr 25, 2017 at 04:06:17PM +0200, Cédric Le Goater wrote: > On 04/25/2017 03:31 PM, Peter Maydell wrote: > > On 25 April 2017 at 07:51, Cédric Le Goater wrote: > >> Currenlty, the code relies on the fact that open() handles NULL > >> filenames but that can cause an error with new clang: >

Re: [Qemu-devel] [PATCH 2/2] ipmi: don't try to open a NULL filename

2017-04-25 Thread David Gibson
On Tue, Apr 25, 2017 at 08:51:41AM +0200, Cédric Le Goater wrote: > Currenlty, the code relies on the fact that open() handles NULL > filenames but that can cause an error with new clang: > > hw/core/loader.c:67:15: runtime error: null pointer passed as argument 1, > which is declared to never

[Qemu-devel] [PATCH] block: Remove NULL check in bdrv_co_flush

2017-04-25 Thread Fam Zheng
Reported by Coverity. We already use bs in bdrv_inc_in_flight before checking for NULL. It is unnecessary as all callers pass non-NULL bs, so drop it. Signed-off-by: Fam Zheng --- block/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/io.c b/block/io.c index a7142e0

Re: [Qemu-devel] [PATCH 10/21] xen: import ring.h from xen

2017-04-25 Thread Philippe Mathieu-Daudé
On 04/25/2017 03:35 PM, Stefano Stabellini wrote: Do not use the ring.h header installed on the system. Instead, import the header into the QEMU codebase. This avoids problems when QEMU is built against a Xen version too old to provide all the ring macros. Signed-off-by: Stefano Stabellini Revi

Re: [Qemu-devel] [PATCH 25/26] audio: un-export OPLResetChip

2017-04-25 Thread Philippe Mathieu-Daudé
On 04/25/2017 07:37 PM, Juan Quintela wrote: Signed-off-by: Juan Quintela Reviewed-by: Philippe Mathieu-Daudé --- hw/audio/fmopl.c | 2 +- hw/audio/fmopl.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 99d09c5..dc9043c 100644

Re: [Qemu-devel] [PATCH 26/26] audio: Use ARRAY_SIZE from qemu/osdep.h

2017-04-25 Thread Philippe Mathieu-Daudé
On 04/25/2017 07:37 PM, Juan Quintela wrote: Signed-off-by: Juan Quintela Reviewed-by: Philippe Mathieu-Daudé --- hw/audio/fmopl.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index dc9043c..202f752 100644 --- a/hw/audio/fmopl

Re: [Qemu-devel] [PATCH 19/26] audio: GUSsample is int16_t

2017-04-25 Thread Philippe Mathieu-Daudé
Hi Juan, Same here, why not squashing as "Use stdint instead of dead GUSEMU32"? On 04/25/2017 07:37 PM, Juan Quintela wrote: Signed-off-by: Juan Quintela --- hw/audio/gus.c | 2 +- hw/audio/gusemu.h | 12 +--- hw/audio/gusemu_hal.c | 2 +- hw/audio/gusemu_mixer.c |

Re: [Qemu-devel] [PATCH 10/26] audio: Remove INT32

2017-04-25 Thread Philippe Mathieu-Daudé
Hi Juan, is there a benefit in not squashing the previous stdint commits? On 04/25/2017 07:37 PM, Juan Quintela wrote: Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 42 +- hw/audio/fmopl.h | 54 --

Re: [Qemu-devel] [PATCH 05/26] audio: Remove UINT8

2017-04-25 Thread Philippe Mathieu-Daudé
Hi Juan, On 04/25/2017 07:37 PM, Juan Quintela wrote: uint8_t has existed since . all this century? Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 8 hw/audio/fmopl.h | 39 --- 2 files changed, 24 insertions(+), 23 deletions(-) diff --gi

Re: [Qemu-devel] [PATCH v4] qga: Add support network interfacestatistics in

2017-04-25 Thread lu.zhipeng
> + */> +colon = strchr(line, ':')> +if (!colon) {> + continue> +}> +*colon = '\0'> +if (colon - path_len >= line && strcmp(colon - path_len, path) == 0) {colon - path_len > line would imply the current line isn't a matcheither, so i think tha

Re: [Qemu-devel] [PATCH for 2.9 v3 10/10] block: Fix bdrv_co_flush early return

2017-04-25 Thread Fam Zheng
On Tue, 04/25 17:16, Kevin Wolf wrote: > Am 10.04.2017 um 17:05 hat Fam Zheng geschrieben: > > bdrv_inc_in_flight and bdrv_dec_in_flight are mandatory for > > BDRV_POLL_WHILE to work, even for the shortcut case where flush is > > unnecessary. Move the if block to below bdrv_dec_in_flight, and BTW f

Re: [Qemu-devel] [PULL 10/11] block: Fix bdrv_co_flush early return

2017-04-25 Thread Fam Zheng
On Tue, 04/25 16:00, Peter Maydell wrote: > > Coverity points out that there's a problem here -- we call > bdrv_inc_in_flight(bs), which assumes bs is not NULL, before > we do the test for whether bs is NULL. > > Presumably the NULL check needs to be pulled up earlier in > the function? > Yes,

Re: [Qemu-devel] [PATCH v3 3/3] vfio-pci: process non fatal error of AER

2017-04-25 Thread Alex Williamson
On Tue, 25 Apr 2017 23:32:52 +0300 "Michael S. Tsirkin" wrote: > On Tue, Mar 28, 2017 at 08:55:04PM -0600, Alex Williamson wrote: > > On Wed, 29 Mar 2017 02:59:34 +0300 > > "Michael S. Tsirkin" wrote: > > > > > On Tue, Mar 28, 2017 at 10:12:25AM -0600, Alex Williamson wrote: > > > > On Tue,

Re: [Qemu-devel] [PATCH 00/26] Audio Cleanup

2017-04-25 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20170425223739.6703-1-quint...@redhat.com Subject: [Qemu-devel] [PATCH 00/26] Audio Cleanup Type: series === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$(git log --oneline $BA

[Qemu-devel] [PULL 7/8] qga: Add 'guest-get-users' command

2017-04-25 Thread Michael Roth
From: Vinzenz Feenstra A command that will list all currently logged in users, and the time since when they are logged in. Examples: virsh # qemu-agent-command F25 '{ "execute": "guest-get-users" }' {"return":[{"login-time":1490622289.903835,"user":"root"}]} virsh # qemu-agent-command Win2k12r

[Qemu-devel] [PULL 5/8] qga: Add 'guest-get-host-name' command

2017-04-25 Thread Michael Roth
From: Vinzenz Feenstra Retrieving the guest host name is a very useful feature for virtual management systems. This information can help to have more user friendly VM access details, instead of an IP there would be the host name. Also the host name reported can be used to have automated checks fo

[Qemu-devel] [PULL 0/8] qemu-ga patch queue

2017-04-25 Thread Michael Roth
The following changes since commit fe491fa85c4634453b340b18046aae2eaf8147db: Merge remote-tracking branch 'remotes/agraf/tags/signed-s390-for-upstream' into staging (2017-04-25 14:48:55 +0100) are available in the git repository at: git://github.com/mdroth/qemu.git tags/qga-pull-2017-04-25-

[Qemu-devel] [PULL 3/8] qga-win: Fix a bug where qemu-ga service is stuck during stop operation

2017-04-25 Thread Michael Roth
From: Sameeh Jubran After triggering a freeze command without any following thaw command, qemu-ga will not respond to stop operation. This behaviour is wanted on Linux as there is no time limit for a freeze command and we want to prevent quitting in the middle of freeze, on the other hand on Wind

[Qemu-devel] [PULL 6/8] qga: improve fsfreeze documentations

2017-04-25 Thread Michael Roth
From: Marc-André Lureau Some users find the fsfreeze behaviour confusing. Add some notes about invalid mount points and Windows usage. Related to: https://bugzilla.redhat.com/show_bug.cgi?id=1436976 Signed-off-by: Marc-André Lureau Reviewed-by: Vinzenz Feenstra Signed-off-by: Michael Roth --

[Qemu-devel] [PULL 1/8] qemu-ga: Make QGA VSS provider service run only when needed

2017-04-25 Thread Michael Roth
From: Sameeh Jubran Currently the service runs in background on boot even though it is not needed and once it is running it never stops. The service needs to be running only during freeze operation and it should be stopped after executing thaw. Signed-off-by: Sameeh Jubran Signed-off-by: Michae

[Qemu-devel] [PULL 4/8] qga-win: Fix Event Viewer errors caused by qemu-ga

2017-04-25 Thread Michael Roth
From: Sameeh Jubran When the command "guest-fsfreeze-freeze" is executed it causes the VSS service to log the error below in the Event Viewer. This error is caused by an issue in the function "CommitSnapshots" in provider.cpp: * When VSS_TIMEOUT_MSEC expires the funtion returns E_ABORT. This cau

[Qemu-devel] [PULL 2/8] qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply

2017-04-25 Thread Michael Roth
From: Sameeh Jubran The QGA schema states: @can-offline: Whether offlining the VCPU is possible. This member is always filled in by the guest agent when the structure is returned, and always ignored on input (hence it can be omitted then). Currently

[Qemu-devel] [PULL 8/8] qga: Add `guest-get-timezone` command

2017-04-25 Thread Michael Roth
From: Vinzenz Feenstra Adds a new command `guest-get-timezone` reporting the currently configured timezone on the system. The information on what timezone is currently is configured is useful in case of Windows VMs where the offset of the hardware clock is required to have the same offset. This c

Re: [Qemu-devel] [PATCH 3/4] migration: spapr: migrate ccs_list in spapr state

2017-04-25 Thread Michael Roth
Quoting Daniel Henrique Barboza (2017-04-24 17:08:27) > From: Jianjun Duan > > ccs_list in spapr state maintains the device tree related > information on the rtas side for hotplugged devices. In racing > situations between hotplug events and migration operation, a rtas > hotplug event could be mi

[Qemu-devel] [PATCH 25/26] audio: un-export OPLResetChip

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 2 +- hw/audio/fmopl.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 99d09c5..dc9043c 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -1036,7 +1036,7 @@ void YM3812UpdateOn

Re: [Qemu-devel] [PATCH] RFC: vmcoreinfo device

2017-04-25 Thread Eduardo Habkost
On Tue, Apr 25, 2017 at 11:35:23PM +0300, Michael S. Tsirkin wrote: > On Tue, Apr 25, 2017 at 05:29:20PM -0300, Eduardo Habkost wrote: > > On Mon, Apr 24, 2017 at 05:03:55PM +0400, Marc-André Lureau wrote: > > [...] > > > diff --git a/include/hw/compat.h b/include/hw/compat.h > > > index 5d5be91daf

[Qemu-devel] [PATCH 24/26] audio: Remove unused typedefs

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.h | 4 1 file changed, 4 deletions(-) diff --git a/hw/audio/fmopl.h b/hw/audio/fmopl.h index 8410275..f89af08 100644 --- a/hw/audio/fmopl.h +++ b/hw/audio/fmopl.h @@ -4,10 +4,6 @@ #include typedef void (*OPL_TIMERHANDLER)(int channel,doub

Re: [Qemu-devel] [PATCH 4/4] migration: spapr: migrate pending_events of spapr state

2017-04-25 Thread Michael Roth
Quoting Daniel Henrique Barboza (2017-04-24 17:08:28) > From: Jianjun Duan > > In racing situations between hotplug events and migration operation, > a rtas hotplug event could have not yet be delivered to the source > guest when migration is started. In this case the pending_events of > spapr st

[Qemu-devel] [PATCH 21/26] audio: OPLSetUpdateHandler is not used anywhere

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 6 +- hw/audio/fmopl.h | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index f91e700..694a77b 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -1141,11 +1141,7 @@ void OPLSetTim

[Qemu-devel] [PATCH 15/26] audio: GUSbyte is uint8_t

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/gusemu.h | 6 ++--- hw/audio/gusemu_hal.c | 58 - hw/audio/gusemu_mixer.c | 4 ++-- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/hw/audio/gusemu.h b/hw/audio/gusemu.h index 9aec

[Qemu-devel] [PATCH 14/26] audio: Remove unused fields

2017-04-25 Thread Juan Quintela
These were used for the remove stuff. Signed-off-by: Juan Quintela --- hw/audio/fmopl.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/hw/audio/fmopl.h b/hw/audio/fmopl.h index df790a0..8730ead 100644 --- a/hw/audio/fmopl.h +++ b/hw/audio/fmopl.h @@ -76,12 +76,6 @@ typedef struct fm_op

[Qemu-devel] [PATCH 16/26] audio: remove GUSchar

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/gusemu.h | 2 -- hw/audio/gusemu_mixer.c | 8 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/audio/gusemu.h b/hw/audio/gusemu.h index 3a69222..1c1a63c 100644 --- a/hw/audio/gusemu.h +++ b/hw/audio/gusemu.h @@ -30,10 +30,8

Re: [Qemu-devel] [PATCH 2/4] hw/ppc: migrating the DRC state of hotplugged devices

2017-04-25 Thread Michael Roth
Quoting Daniel Henrique Barboza (2017-04-24 17:08:26) > In pseries, a firmware abstraction called Dynamic Reconfiguration > Connector (DRC) is used to assign a particular dynamic resource > to the guest and provide an interface to manage configuration/removal > of the resource associated with it. I

[Qemu-devel] [PATCH 26/26] audio: Use ARRAY_SIZE from qemu/osdep.h

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index dc9043c..202f752 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -34,15 +34,11 @@ #include //#include "driver.h"

[Qemu-devel] [PATCH 12/26] audio: Remove Unused OPL_TYPE_*

2017-04-25 Thread Juan Quintela
Since we removed the previous unused devices, they are not used anymore. Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 16 hw/audio/fmopl.h | 3 --- 2 files changed, 19 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index b1cb4b4..9171001 100644 --- a/hw/a

[Qemu-devel] [PATCH 23/26] audio: UpdateHandler is not used anymore

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 2 -- hw/audio/fmopl.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 5b8a884..99d09c5 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -1147,7 +1147,6 @@ int OPLWrite(FM_OPL *OPL,int a,int

[Qemu-devel] [PATCH 22/26] audio: IRQHandler is not used anymore

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 4 hw/audio/fmopl.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 694a77b..5b8a884 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -260,8 +260,6 @@ static inline void OPL_STATUS_SET(

[Qemu-devel] [PATCH 11/26] audio: Unfold OPLSAMPLE

2017-04-25 Thread Juan Quintela
It was used only once, and now it was always int16_t. Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 2 +- hw/audio/fmopl.h | 11 --- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 8f935f6..b1cb4b4 100644 --- a/hw/audio/fmop

[Qemu-devel] [PATCH 18/26] audio: GUSword is uint16_t

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/gusemu_hal.c | 14 +++--- hw/audio/gusemu_mixer.c | 8 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/audio/gusemu_hal.c b/hw/audio/gusemu_hal.c index 444a2bb..3dd7239 100644 --- a/hw/audio/gusemu_hal.c +++ b/hw/au

[Qemu-devel] [PATCH 10/26] audio: Remove INT32

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 42 +- hw/audio/fmopl.h | 54 -- 2 files changed, 45 insertions(+), 51 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index ebd3dbb..8f93

[Qemu-devel] [PATCH 20/26] audio: OPLSetIRQHandler is not used anywhere

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 5 - hw/audio/fmopl.h | 1 - 2 files changed, 6 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 48db828..f91e700 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -1141,11 +1141,6 @@ void OPLSetTimerHandler(FM_OPL

[Qemu-devel] [PATCH 09/26] audio: remove INT16

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 2 +- hw/audio/fmopl.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 47754e8..ebd3dbb 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -984,7 +984,7 @@ static void OPL_

[Qemu-devel] [PATCH 06/26] audio: remove UINT16

2017-04-25 Thread Juan Quintela
More modernitation. Signed-off-by: Juan Quintela --- hw/audio/fmopl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/audio/fmopl.h b/hw/audio/fmopl.h index 3df8942..1891a22 100644 --- a/hw/audio/fmopl.h +++ b/hw/audio/fmopl.h @@ -10,7 +10,6 @@ /* compiler dependence */ #ifndef OSD_CPU_H

[Qemu-devel] [PATCH 19/26] audio: GUSsample is int16_t

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/gus.c | 2 +- hw/audio/gusemu.h | 12 +--- hw/audio/gusemu_hal.c | 2 +- hw/audio/gusemu_mixer.c | 8 4 files changed, 7 insertions(+), 17 deletions(-) diff --git a/hw/audio/gus.c b/hw/audio/gus.c index 3d08a65..ec103

[Qemu-devel] [PATCH 08/26] audio: Remove INT8

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.h | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/audio/fmopl.h b/hw/audio/fmopl.h index b52f039..bede671 100644 --- a/hw/audio/fmopl.h +++ b/hw/audio/fmopl.h @@ -10,7 +10,6 @@ /* compiler dependence */ #ifndef OSD_CPU_H #define OSD_CPU_H -

[Qemu-devel] [PATCH 17/26] audio: GUSword is uint16_t

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/gusemu.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/audio/gusemu.h b/hw/audio/gusemu.h index 1c1a63c..69dadef 100644 --- a/hw/audio/gusemu.h +++ b/hw/audio/gusemu.h @@ -28,11 +28,9 @@ /* data types (need to be adjusted if neither a VC6 nor a

[Qemu-devel] [PATCH 05/26] audio: Remove UINT8

2017-04-25 Thread Juan Quintela
uint8_t has existed since . all this century? Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 8 hw/audio/fmopl.h | 39 --- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 282662a..3d

[Qemu-devel] [PATCH 04/26] audio: YM3812 was always defined

2017-04-25 Thread Juan Quintela
So, remove the ifdefs. Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 4 hw/audio/fmopl.h | 4 2 files changed, 8 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 1e05efc..282662a 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -30,8 +30,6 @@ * Licens

[Qemu-devel] [PATCH 07/26] audio: remove UINT32

2017-04-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/audio/fmopl.c | 14 +++--- hw/audio/fmopl.h | 17 - 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 3d14b45..47754e8 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -122,

[Qemu-devel] [PATCH 13/26] audio: Remove type field

2017-04-25 Thread Juan Quintela
It was not used anymore as now there is only one type of devices. Signed-off-by: Juan Quintela --- hw/audio/adlib.c | 2 +- hw/audio/fmopl.c | 20 hw/audio/fmopl.h | 7 +-- 3 files changed, 10 insertions(+), 19 deletions(-) diff --git a/hw/audio/adlib.c b/hw/audio/adl

  1   2   3   4   5   >