[Qemu-devel] [PULL 17/19] macio: move unaligned DMA read code into separate pmac_dma_read() function

2015-05-22 Thread John Snow
From: Mark Cave-Ayland This considerably helps simplify the complexity of the macio read routines and by switching macio CDROM accesses to use the new code, fixes the issue with the CDROM device being detected intermittently by Darwin/OS X. [Maintainer edit: printf format codes adjusted for 32/6

[Qemu-devel] [PATCH 3/4] iotests: add timestamp skip feature

2015-05-22 Thread John Snow
Like a makefile, try to skip tests if we know they have already been executed using the current set of external dependencies. If a user passes the -ts option to ./check, if a test or its output or its dependencies (qemu, qemu-nbd, qemu-io, qemu-img, socket-scm-helper) have been modified, the test

[Qemu-devel] [PATCH 4/4] iotests: clarify help text

2015-05-22 Thread John Snow
Split the help text to highlight the groups of options a little better, carving out a clear "format" and "protocols" section. Signed-off-by: John Snow --- tests/qemu-iotests/common | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/common b/tests/qemu-iot

Re: [Qemu-devel] [PATCH 22/23] userfaultfd: avoid mmap_sem read recursion in mcopy_atomic

2015-05-22 Thread Andrew Morton
On Thu, 14 May 2015 19:31:19 +0200 Andrea Arcangeli wrote: > If the rwsem starves writers it wasn't strictly a bug but lockdep > doesn't like it and this avoids depending on lowlevel implementation > details of the lock. > > ... > > @@ -229,13 +246,33 @@ static __always_inline ssize_t __mcopy_at

[Qemu-devel] [PATCH 0/4] iotests: skip tests with unchanged dependencies

2015-05-22 Thread John Snow
This patchset is a little off the beaten path, but: Add the ability to skip tests that have already been run whose external dependencies have remained unchanged since the last test run. This is useful for, say, re-running a test set to see if a failure was a one-off or is reproducible by just re-

[Qemu-devel] [PATCH 1/4] iotests: fix exclusion option

2015-05-22 Thread John Snow
If you are running out-of-tree, the -x option to exclude a certain iotest is broken. Replace porcelain usage of ls with a sturdier grep command. Signed-off-by: John Snow --- tests/qemu-iotests/common | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/common

[Qemu-devel] [PATCH 2/4] iotests: Add dependency info to groups list

2015-05-22 Thread John Snow
Add a few external dependency groups to the iotests groups list, such as "qemu", "nbd", and "scm". This will assist us in knowing which tests need to be re-run when those dependencies are updated, or by helping us to avoid tests that we know are broken for a certain file. qemu-img and qemu-io are

Re: [Qemu-devel] [PATCH v4 3/8] mirror: Do zero write on target if sectors not allocated

2015-05-22 Thread Eric Blake
On 05/21/2015 09:40 PM, Fam Zheng wrote: > If guest discards a source cluster, mirroring with bdrv_aio_readv is overkill. > Some protocols do zero upon discard, where it's best to use > bdrv_aio_write_zeroes, otherwise, bdrv_aio_discard will be enough. > > Signed-off-by: Fam Zheng > --- > block/

Re: [Qemu-devel] [PATCH v4 4/8] block: Fix dirty bitmap in bdrv_co_discard

2015-05-22 Thread Eric Blake
On 05/21/2015 09:40 PM, Fam Zheng wrote: > Unsetting dirty globally with discard is not very correct. The discard may > zero > out sectors (depending on can_write_zeroes_with_unmap), we should replicate > this change to destinition side to make sure that the guest sees the same > data. s/destini

Re: [Qemu-devel] [PATCH v6 3/4] cpu/apic: drop icc bus/bridge

2015-05-22 Thread Andreas Färber
Am 22.05.2015 um 18:56 schrieb Eduardo Habkost: > On Fri, May 22, 2015 at 03:44:53PM +0800, Chen Fan wrote: >> static void x86_cpu_apic_realize(X86CPU *cpu, Error **errp) >> @@ -2801,8 +2793,6 @@ static void x86_cpu_realizefn(DeviceState *dev, Error >> **errp) >> } >> >> #ifndef CONFIG_USER_

Re: [Qemu-devel] [PATCH 1/4] iotests: fix exclusion option

2015-05-22 Thread Eric Blake
On 05/22/2015 02:17 PM, John Snow wrote: > If you are running out-of-tree, the -x option to exclude > a certain iotest is broken. > > Replace porcelain usage of ls with a sturdier grep command. > > Signed-off-by: John Snow > --- > tests/qemu-iotests/common | 3 ++- > 1 file changed, 2 insertion

Re: [Qemu-devel] [PATCH 1/4] iotests: fix exclusion option

2015-05-22 Thread John Snow
On 05/22/2015 04:31 PM, Eric Blake wrote: > On 05/22/2015 02:17 PM, John Snow wrote: >> If you are running out-of-tree, the -x option to exclude a >> certain iotest is broken. >> >> Replace porcelain usage of ls with a sturdier grep command. >> >> Signed-off-by: John Snow --- >> tests/qemu-io

[Qemu-devel] [PULL 15/19] libqos/ahci: Swap memread/write with bufread/write

2015-05-22 Thread John Snow
Where it makes sense, use the new faster primitives. For generally small reads/writes such as for the PRDT and FIS packets, stick with the more wasteful but easier to debug memread/memwrite. For ahci-test (before migration tests): With this patch: real0m3.675s user0m2.582s sys 0m1.718s

[Qemu-devel] [PULL 16/19] qtest: pre-buffer hex nibs

2015-05-22 Thread John Snow
Instead of converting each byte one-at-a-time and then sending each byte over the wire, use sprintf() to pre-compute all of the hex nibs into a single buffer, then send the entire buffer all at once. This gives a moderate speed boost to memread() and memwrite() functions. Signed-off-by: John Snow

Re: [Qemu-devel] [PATCH 01/20] monitor: Drop broken, unused asynchronous command interface

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > The asynchronous monitor command interface goes back to commit 940cc30 > (Jan 2010). Added a third case to command execution. The hope back > then according to the commit message was that all commands get > converted to the asynchronous interface

Re: [Qemu-devel] [PATCH 22/23] userfaultfd: avoid mmap_sem read recursion in mcopy_atomic

2015-05-22 Thread Andrew Morton
There's a more serious failure with i386 allmodconfig: fs/userfaultfd.c:145:2: note: in expansion of macro 'BUILD_BUG_ON' BUILD_BUG_ON(sizeof(struct uffd_msg) != 32); I'm surprised the feature is even reachable on i386 builds?

Re: [Qemu-devel] [PATCH 02/20] monitor: Clean up after previous commit

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- Commit message is sparse; I would have mentioned [1] and [2]. > monitor.c | 40 +++- > 1 file changed, 11 insertions(+), 29 deletions(-) > > > -static void handler_au

Re: [Qemu-devel] [PATCH 03/20] monitor: Improve and document client_migrate_info protocol error

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Protocol must be spice, vnc isn't implemented. Fix up documentation. > > Attempts to use vnc or any other unknown protocol yield the misleading > error message "Invalid parameter 'protocol'". Improve it to > "Parameter 'protocol' expects spice".

Re: [Qemu-devel] [PATCH 04/20] monitor: Convert client_migrate_info to QAPI

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > hmp-commands.hx | 3 +-- > hmp.c| 17 + > hmp.h| 1 + > monitor.c| 42 ++ > qapi-schema.json | 20

Re: [Qemu-devel] [PATCH 05/20] monitor: Use traditional command interface for HMP drive_del

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > All QMP commands use the "new" handler interface (mhandler.cmd_new). > Most HMP commands still use the traditional interface (mhandler.cmd), > but a few use the "new" one. Complicates handle_user_command() for no > gain, so I'm converting these to

[Qemu-devel] [PATCH] arch_init: Use stateless configuration for default target_${target}.conf

2015-05-22 Thread Ikey Doherty
The goal of stateless, and thus this change, is to separate OS configuration from system administrator configuration. With this change we will read the default configuration data from /usr/share/defaults/qemu, in the absence of an overriding site administrator configuration in /etc/qemu. A key adv

Re: [Qemu-devel] ABNT2 keys again

2015-05-22 Thread Joao Luis Meloni Assirati
> 22.05.2015 13:01, Gerd Hoffmann wrote: [...] The solution appears to be trivial (see also some background at http://blog.nielshorn.net/2011/03/qemu-and-brazilian-keyboards/ ), but the problem is definitely still here. This is the patch that works: --- ui/x_keymap.c~ +++ ui/x_ke

Re: [Qemu-devel] How Qemu timer interrupts code emulation?

2015-05-22 Thread Nguyen Anh Quynh
On Sat, May 23, 2015 at 12:13 AM, Peter Maydell wrote: > On 22 May 2015 at 16:36, Jun Koi wrote: > > In general, we would have timer & code execution run in parallel, > > No code has to actually run when there's an active timer; > the event loop thread mostly sits blocked waiting for > something

Re: [Qemu-devel] ABNT2 keys again

2015-05-22 Thread Joao Luis Meloni Assirati
>> > Anyone having such a keyboard and willing to run some tests? [...] > (c) Then use 'input-events ' to get a input event log > printed to the terminal. Type each missing key once. > > (d) Send me the log (with annotation which key is which). There are two missing keys: / (which is also ?

Re: [Qemu-devel] [PATCH 22/23] userfaultfd: avoid mmap_sem read recursion in mcopy_atomic

2015-05-22 Thread Andrea Arcangeli
On Fri, May 22, 2015 at 01:18:22PM -0700, Andrew Morton wrote: > On Thu, 14 May 2015 19:31:19 +0200 Andrea Arcangeli > wrote: > > > If the rwsem starves writers it wasn't strictly a bug but lockdep > > doesn't like it and this avoids depending on lowlevel implementation > > details of the lock.

Re: [Qemu-devel] [PATCH 06/20] monitor: Use traditional command interface for HMP device_add

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > All QMP commands use the "new" handler interface (mhandler.cmd_new). > Most HMP commands still use the traditional interface (mhandler.cmd), > but a few use the "new" one. Complicates handle_user_command() for no > gain, so I'm converting these to

Re: [Qemu-devel] [PATCH] arch_init: Use stateless configuration for default target_${target}.conf

2015-05-22 Thread Eric Blake
On 05/22/2015 09:42 AM, Ikey Doherty wrote: meta-comment: > 1.9.1 > > - > Intel Corporation (UK) Limited > Registered No. 1134945 (England) > Registered Office: Pipers Way, Swindon SN3 1RJ > VAT No: 860 2173 47 > > This e-mail

Re: [Qemu-devel] [PATCH 07/20] monitor: Use trad. command interface for HMP pcie_aer_inject_error

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > All QMP commands use the "new" handler interface (mhandler.cmd_new). > Most HMP commands still use the traditional interface (mhandler.cmd), > but a few use the "new" one. Complicates handle_user_command() for no > gain, so I'm converting these to

Re: [Qemu-devel] [PATCH 08/20] monitor: Drop unused "new" HMP command interface

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > monitor.c | 22 +- > 1 file changed, 1 insertion(+), 21 deletions(-) > Goodbye! Nice knowing you! (For how many incomplete conversions we have scattered throughout the tree, it's in

Re: [Qemu-devel] [PATCH 09/20] monitor: Propagate errors through qmp_check_client_args()

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > monitor.c | 65 > --- > 1 file changed, 33 insertions(+), 32 deletions(-) > Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1

Re: [Qemu-devel] [PATCH 10/20] monitor: Propagate errors through qmp_check_input_obj()

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > monitor.c | 19 ++- > 1 file changed, 10 insertions(+), 9 deletions(-) > > @@ -4948,27 +4948,27 @@ static QDict *qmp_check_input_obj(QObject *input_obj) > } > } els

Re: [Qemu-devel] [PATCH 11/20] monitor: Wean monitor_protocol_emitter() off mon->error

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Move mon->error handling to its caller handle_qmp_command(). > > Signed-off-by: Markus Armbruster > --- > monitor.c | 13 +++-- > 1 file changed, 7 insertions(+), 6 deletions(-) > Reviewed-by: Eric Blake -- Eric Blake eblake redha

Re: [Qemu-devel] [PATCH 12/20] monitor: Inline monitor_has_error() into its only caller

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > monitor.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/monitor.c b/monitor.c > index c732203..71ca03f 100644 > --- a/monitor.c > +++ b/monitor.c > @@ -377,11 +377,6 @@ st

Re: [Qemu-devel] [PATCH v4 06/11] block: add refcount to Job object

2015-05-22 Thread John Snow
On 05/20/2015 05:27 AM, Stefan Hajnoczi wrote: > On Tue, May 19, 2015 at 06:15:23PM -0400, John Snow wrote: >> On 05/18/2015 11:45 AM, Stefan Hajnoczi wrote: >>> On Mon, May 11, 2015 at 07:04:21PM -0400, John Snow wrote: If we want to get at the job after the life of the job, we'll need

Re: [Qemu-devel] [PATCH 13/20] monitor: Limit QError use to command handlers

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > The previous commits narrowed use of QError to handle_qmp_command() > and its helpers monitor_protocol_emitter(), build_qmp_error_dict(). > Narrow it further to just the command handler call: instead of > converting Error to QError throughout handl

Re: [Qemu-devel] [PATCH 14/20] monitor: Rename handle_user_command() to handle_hmp_command()

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > monitor.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvir

Re: [Qemu-devel] [PATCH 15/20] monitor: Rename monitor_control_read(), monitor_control_event()

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > ... to monitor_qmp_read(), monitor_qmp_event(). > > Signed-off-by: Markus Armbruster > --- > monitor.c | 14 -- > 1 file changed, 4 insertions(+), 10 deletions(-) Not a trivial rename based on diffstat, but... > > diff --git a/mon

Re: [Qemu-devel] [PATCH 1/4] iotests: fix exclusion option

2015-05-22 Thread John Snow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 05/22/2015 04:31 PM, Eric Blake wrote: > On 05/22/2015 02:17 PM, John Snow wrote: >> If you are running out-of-tree, the -x option to exclude a >> certain iotest is broken. >> >> Replace porcelain usage of ls with a sturdier grep command. >> >

Re: [Qemu-devel] [PATCH 16/20] monitor: Unbox Monitor member mc and rename to qmp

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > While there, rename its type as well, from MonitorControl to > MonitorQMP. > > Signed-off-by: Markus Armbruster > --- > monitor.c | 35 --- > 1 file changed, 16 insertions(+), 19 deletions(-) > > @@ -5255,14 +52

Re: [Qemu-devel] [PATCH 17/20] monitor: Drop do_qmp_capabilities()'s superfluous QMP check

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Superfluous since commit 30f5041 removed it from HMP. > > Signed-off-by: Markus Armbruster > --- > monitor.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301

Re: [Qemu-devel] [PATCH 18/20] monitor: Turn int command_mode into bool in_command_mode

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > monitor.c | 23 --- > 1 file changed, 12 insertions(+), 11 deletions(-) > Might be worth mentioning in the commit message that... > > -static inline int qmp_cmd_mode(const Monitor

Re: [Qemu-devel] [PATCH 20/20] monitor: Change return type of monitor_cur_is_qmp() to bool

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > Signed-off-by: Markus Armbruster > --- > include/monitor/monitor.h | 2 +- > monitor.c | 6 -- > stubs/mon-is-qmp.c| 2 +- > 3 files changed, 6 insertions(+), 4 deletions(-) > > +++ b/stubs/mon-is-qmp.c > @@ -1,7 +1,

Re: [Qemu-devel] [PATCH 19/20] monitor: Rename monitor_ctrl_mode() to monitor_is_qmp()

2015-05-22 Thread Eric Blake
On 05/22/2015 05:36 AM, Markus Armbruster wrote: > ... and change return type to bool. > > Signed-off-by: Markus Armbruster > --- > monitor.c | 12 +++- > 1 file changed, 7 insertions(+), 5 deletions(-) > See also my review on 16 about a usage in monitor_init(). Reviewed-by: Eric Blak

Re: [Qemu-devel] How Qemu timer interrupts code emulation?

2015-05-22 Thread Bastian Koppelmann
On 05/22/2015 06:26 PM, Nguyen Anh Quynh wrote: On Sat, May 23, 2015 at 12:13 AM, Peter Maydell mailto:peter.mayd...@linaro.org>> wrote: On 22 May 2015 at 16:36, Jun Koi mailto:junkoi2...@gmail.com>> wrote: > In general, we would have timer & code execution run in parallel, No

Re: [Qemu-devel] Announcing qboot, a minimal x86 firmware for QEMU

2015-05-22 Thread Kevin O'Connor
On Thu, May 21, 2015 at 03:51:43PM +0200, Paolo Bonzini wrote: > Some of you may have heard about the "Clear Containers" initiative from > Intel, which couple KVM with various kernel tricks to create extremely > lightweight virtual machines. The experimental Clear Containers setup > requires only

Re: [Qemu-devel] [PATCH 22/23] userfaultfd: avoid mmap_sem read recursion in mcopy_atomic

2015-05-22 Thread Andrea Arcangeli
On Fri, May 22, 2015 at 02:18:30PM -0700, Andrew Morton wrote: > > There's a more serious failure with i386 allmodconfig: > > fs/userfaultfd.c:145:2: note: in expansion of macro 'BUILD_BUG_ON' > BUILD_BUG_ON(sizeof(struct uffd_msg) != 32); > > I'm surprised the feature is even reachable on i38

Re: [Qemu-devel] [RFC/RFT PATCH v2 1/3] arm/arm64: pageattr: add set_memory_nc

2015-05-22 Thread Mario Smarduch
On 05/18/2015 08:53 AM, Catalin Marinas wrote: > On Thu, May 14, 2015 at 02:46:44PM +0100, Andrew Jones wrote: >> On Thu, May 14, 2015 at 01:05:09PM +0200, Christoffer Dall wrote: >>> On Wed, May 13, 2015 at 01:31:52PM +0200, Andrew Jones wrote: Provide a method to change normal, cacheable mem

Re: [Qemu-devel] Announcing qboot, a minimal x86 firmware for QEMU

2015-05-22 Thread Kevin O'Connor
On Fri, May 22, 2015 at 07:23:27PM -0400, Kevin O'Connor wrote: > On Thu, May 21, 2015 at 03:51:43PM +0200, Paolo Bonzini wrote: > > Some of you may have heard about the "Clear Containers" initiative from > > Intel, which couple KVM with various kernel tricks to create extremely > > lightweight vir

[Qemu-devel] [Bug 1458121] [NEW] USB2 is five times slower than native on qemu-kvm

2015-05-22 Thread Toddandmargo-n
Public bug reported: Dear Qemu, Spice told me to report this over here. Scientific Linux 6.6 $ uname -r 2.6.32-504.16.2.el6.x86_64 $ cat /etc/redhat-release Scientific Linux release 6.6 (Carbon) $ rpm -qa qemu\* qemu-img-0.12.1.2-2.448.el6_6.3.x86_64 qemu-kvm-0.12.1.2-2.448.el6_6.3.x86_64 I

<    1   2   3