Re: [Qemu-devel] [PATCH v10 06/13] block: Add bdrv_copy_dirty_bitmap and bdrv_clear_dirty_bitmap

2015-01-09 Thread John Snow
On 12/30/2014 08:47 AM, Vladimir Sementsov-Ogievskiy wrote: I'm sorry if it was already discussed, but I think it is inconsistent to have "size" in sectors and "granularity" in bytes in one structure. I've misused these fields because of this in my current work. At least, I think there should

Re: [Qemu-devel] [PATCH 0/4] qemu-timer: introduce usable pointer-free API

2015-01-09 Thread Fam Zheng
On Fri, 01/09 10:07, Paolo Bonzini wrote: > > > On 09/01/2015 03:10, Fam Zheng wrote: > > On Thu, 01/08 11:03, Paolo Bonzini wrote: > >> The current pointer free API for timers is very low level. Introduce > >> a new API that matches timer_new_ns/us/ms and also a new API timer_deinit > >> that c

Re: [Qemu-devel] [PATCH] Allow the use of X11 from a non standard location.

2015-01-09 Thread Paolo Bonzini
On 09/01/2015 20:08, Jeremy White wrote: > Signed-off-by: Jeremy White > --- > configure| 24 +++- > hw/display/Makefile.objs |1 + > 2 files changed, 20 insertions(+), 5 deletions(-) > > diff --git a/configure b/configure > index cae588c..6c698ed 1007

Re: [Qemu-devel] Patch Round-up for stable 2.1.3, freeze on 2015-01-14

2015-01-09 Thread Paolo Bonzini
On 09/01/2015 18:27, Marcel Apfelbaum wrote: >> >> >> Please respond here or CC qemu-sta...@nongnu.org on any patches you >> think should be included in the release. > I think that also this patch should be added: > [Qemu-devel] [PATCH v3] vl.c: fix regression when reading machine > type from

[Qemu-devel] [PULL 05/10] tcg: Put opcodes in a linked list

2015-01-09 Thread Richard Henderson
The previous setup required ops and args to be completely sequential, and was error prone when it came to both iteration and optimization. Signed-off-by: Richard Henderson --- include/exec/gen-icount.h | 22 ++- tcg/optimize.c| 286 ++- tcg/tcg-op.c

[Qemu-devel] [PULL 09/10] tcg: Optimize muls2_i32

2015-01-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/optimize.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tcg/optimize.c b/tcg/optimize.c index 067917c..c674fe2 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -1160,15 +1160,22 @@ static void tcg_constant_folding(TCGConte

[Qemu-devel] [PULL 07/10] tcg: Implement insert_op_before

2015-01-09 Thread Richard Henderson
Rather reserving space in the op stream for optimization, let the optimizer add ops as necessary. Signed-off-by: Richard Henderson --- tcg/optimize.c | 57 +++-- tcg/tcg-op.c | 21 - tcg/tcg-op.h | 1 - 3 files changed,

[Qemu-devel] [PULL 08/10] tcg: Remove unused opcodes

2015-01-09 Thread Richard Henderson
We no longer need INDEX_op_end to terminate the list, nor do we need 5 forms of nop, since we just remove the TCGOp instead. Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- tcg/tcg-opc.h | 9 - tcg/tcg.c | 7 ++- tci.c | 13 - 3 files c

[Qemu-devel] [PULL 04/10] tcg: Introduce tcg_op_buf_count and tcg_op_buf_full

2015-01-09 Thread Richard Henderson
The method by which we count the number of ops emitted is going to change. Abstract that away into some inlines. Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- target-alpha/translate.c | 14 +++--- target-arm/translate-a64.c| 9 +++-- target-arm/tran

[Qemu-devel] [PULL 10/10] tcg: Further optimizations for add2 and sub2_i32

2015-01-09 Thread Richard Henderson
Notice when the low parts of the operation cannot cause overflow, and thus reduce the high part to a simple add/sub. Signed-off-by: Richard Henderson --- tcg/optimize.c | 83 +++--- 1 file changed, 62 insertions(+), 21 deletions(-) diff --git

[Qemu-devel] [PULL 03/10] tcg: Move emit of INDEX_op_end into gen_tb_end

2015-01-09 Thread Richard Henderson
Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- include/exec/gen-icount.h | 2 ++ target-alpha/translate.c | 2 +- target-arm/translate-a64.c| 1 - target-arm/translate.c| 1 - target-cris/translate.c | 2 +- target-i386/translate.c | 2 +- t

[Qemu-devel] [PULL 00/10] Linked list for tcg ops

2015-01-09 Thread Richard Henderson
2014-12-23 15:05:22 +) are available in the git repository at: git://github.com/rth7680/qemu.git tags/tcg-pull-20150109 for you to fetch changes up to 62c2b6e35e872c87a111856a2798c21c458a68ab: tcg: Further optimizations for add2 and sub2_i32 (2015-01-05 12:2

[Qemu-devel] [PULL 02/10] tcg: Reduce ifdefs in tcg-op.c

2015-01-09 Thread Richard Henderson
Almost completely eliminates the ifdefs in this file, improving confidence in the lesser used 32-bit builds. Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- tcg/tcg-op.c | 449 +++ 1 file changed, 207 insertions(+), 24

[Qemu-devel] [PULL 06/10] tcg: Remove opcodes instead of noping them out

2015-01-09 Thread Richard Henderson
With the linked list scheme we need not leave nops in the stream that we need to process later. Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- tcg/optimize.c | 14 +++--- tcg/tcg.c | 28 tcg/tcg.h | 1 + 3 files changed, 32 i

Re: [Qemu-devel] [PATCH] x86_64: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Richard Henderson
On 01/09/2015 01:53 AM, Frediano Ziglio wrote: > As this platform can do multiply/divide using 128 bit precision use > these instruction to implement it. > > Signed-off-by: Frediano Ziglio > --- > include/qemu-common.h | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/incl

[Qemu-devel] [Bug 1406016] Re: qemu-system-arm hangs at start on OS X

2015-01-09 Thread Joel Gallun
Thanks for the quick response. Being a total mac n00b I just followed the directions in the top google link for installing qemu on os x and I ended up where I did. I replaced the old version of the qemu formula in my brew library with the current one and re-installed and all is well, running qemu 2

Re: [Qemu-devel] [PATCH v2 0/8] qemu: guest agent: implement guest-exec command for Linux

2015-01-09 Thread Michael Roth
Quoting Denis V. Lunev (2015-01-09 12:09:10) > On 09/01/15 20:06, Michael Roth wrote: > > Quoting Denis V. Lunev (2014-12-31 07:06:46) > >> hese patches for guest-agent add the functionality to execute commands on > >> a guest UNIX machine. > > Hi Denis, > > > > Glad to see these getting picked up.

Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option

2015-01-09 Thread Don Slutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/09/15 13:02, Don Slutz wrote: > Sigh. Will look into this. -Don Slutz > Here is what I said (un-encrypeted): On 01/08/15 11:41, Eric Blake wrote: > On 01/08/2015 07:40 AM, Peter Maydell wrote: >> On 8 January 2015 at 14:30, Don Slutz >> wro

[Qemu-devel] [PATCH] Allow the use of X11 from a non standard location.

2015-01-09 Thread Jeremy White
Signed-off-by: Jeremy White --- configure| 24 +++- hw/display/Makefile.objs |1 + 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/configure b/configure index cae588c..6c698ed 100755 --- a/configure +++ b/configure @@ -2034,6 +2034,15 @@

Re: [Qemu-devel] [PULL] rng: fix parameter validation

2015-01-09 Thread Peter Maydell
On 5 January 2015 at 08:36, Amit Shah wrote: > The following changes since commit ab0302ee764fd702465aef6d88612cdff4302809: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20141223' into staging (2014-12-23 > 15:05:22 +) > > are available in the git repository at:

Re: [Qemu-devel] [PATCH 2/9] block-migration: fix pending() return value

2015-01-09 Thread Dr. David Alan Gilbert
* John Snow (js...@redhat.com) wrote: > > > On 12/11/2014 09:17 AM, Vladimir Sementsov-Ogievskiy wrote: > >Because of wrong return value of .save_live_pending() in > >block-migration, migration finishes before the whole disk > >is transferred. Such situation occures when the migration > (occurs)

Re: [Qemu-devel] [PULL] virtio-serial migration fix on bi-endian targets

2015-01-09 Thread Peter Maydell
On 5 January 2015 at 07:31, Amit Shah wrote: > The following changes since commit ab0302ee764fd702465aef6d88612cdff4302809: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20141223' into staging (2014-12-23 > 15:05:22 +) > > are available in the git repository at:

Re: [Qemu-devel] [PATCH v2 0/8] qemu: guest agent: implement guest-exec command for Linux

2015-01-09 Thread Denis V. Lunev
On 09/01/15 20:06, Michael Roth wrote: Quoting Denis V. Lunev (2014-12-31 07:06:46) hese patches for guest-agent add the functionality to execute commands on a guest UNIX machine. Hi Denis, Glad to see these getting picked up. I did at some point hack up a rewrite of the original code though w

Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option

2015-01-09 Thread Don Slutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sigh. Will look into this. -Don Slutz On 01/09/15 11:13, Eric Blake wrote: > On 01/09/2015 08:28 AM, Don Slutz wrote: > > [an encrypted message] > > Oops, you probably want to fix your Thunderbird/Enigmail settings > to sign but not encrypt when

Re: [Qemu-devel] [PULL 0/9] Misc changes for 2015-01-03 (icount, migration, iscsi, sdhci-pci)

2015-01-09 Thread Peter Maydell
On 3 January 2015 at 08:45, Paolo Bonzini wrote: > The following changes since commit c95f3901b4ead79f3fe2c641fda7d2c70fc84c72: > > Merge remote-tracking branch 'remotes/kraxel/tags/pull-sdl-20141219-1' into > staging (2014-12-21 23:17:00 +) > > are available in the git repository at: > > >

[Qemu-devel] [Bug 1406016] Re: qemu-system-arm hangs at start on OS X

2015-01-09 Thread Peter Maydell
> brew install qemu --env=std --cc=gcc-4.2 Aha. Don't do that, that's an ancient gcc. Use the system 'clang' (which configure should pick by default). -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/14

Re: [Qemu-devel] [PATCH] WIP: add GCoroutine support

2015-01-09 Thread Peter Maydell
On 9 January 2015 at 17:19, Marc-André Lureau wrote: > Learn to use the GCoroutine library instead of qemu own coroutine > implementation. > > GCoroutine is hosted on github: > https://github.com/elmarco/gcoroutine > > This allows to share the same coroutine implementation between various > projec

Re: [Qemu-devel] Patch Round-up for stable 2.1.3, freeze on 2015-01-14

2015-01-09 Thread Marcel Apfelbaum
On 01/08/2015 07:33 PM, Michael Roth wrote: Hi everyone, The following new patches are queued for QEMU stable v2.1.3: https://github.com/mdroth/qemu/commits/stable-2.1-staging The release is planned for 2015-01-21: http://wiki.qemu.org/Planning/2.1 Please respond here or CC qemu-sta...

[Qemu-devel] [Bug 1406016] Re: qemu-system-arm hangs at start on OS X

2015-01-09 Thread Joel Gallun
Peter, the bug occurs when mounting the rootfs. I can reproduce this bug too, with a kernel that works perfectly on QEMU on linux, windows and linux running on the same mac under vmware. In the case where I ran it under vmware on the mac the raspi kernel is the same file shared between the host

[Qemu-devel] [PATCH] WIP: add GCoroutine support

2015-01-09 Thread Marc-André Lureau
Learn to use the GCoroutine library instead of qemu own coroutine implementation. GCoroutine is hosted on github: https://github.com/elmarco/gcoroutine This allows to share the same coroutine implementation between various projects (gtk-vnc and spice-gtk). It is related to the effort to push coro

Re: [Qemu-devel] Block filter status

2015-01-09 Thread Farr, Kaitlin M.
Hello, Is anyone working on block filters? If so, can you please tell me what the current progress is? I am referring to item "BlockFilter and dynamic reconfiguration of the BDS graph" on the to-do list [1]. Thanks for your time, Kaitlin Farr Software Engineer JHU/APL 1. http://qemu-projec

Re: [Qemu-devel] [PATCH v2 0/8] qemu: guest agent: implement guest-exec command for Linux

2015-01-09 Thread Eric Blake
On 01/09/2015 10:06 AM, Michael Roth wrote: > The other one worth considering is allowing cmdline to simply be a string, > to parse it into arguments using g_shell_parse_argv(), which should also > be cross-platform. Please no. Passing an unparsed string and asking for platform-specific rules to

[Qemu-devel] [PATCH] tcg-arm: more instruction execution control

2015-01-09 Thread Andrew Jones
Cleanup XN/PXN handling in get_phys_addr_lpae, and implement all but EL2 support of the following ARMv8 sections D4.5.1 Memory access control: Access permissions for instruction execution G4.7.2 Execute-never restrictions on instruction fetching G4.7.2 matches the ARMv7 section B3.7.

Re: [Qemu-devel] [PATCH v2 0/8] qemu: guest agent: implement guest-exec command for Linux

2015-01-09 Thread Michael Roth
Quoting Denis V. Lunev (2014-12-31 07:06:46) > hese patches for guest-agent add the functionality to execute commands on > a guest UNIX machine. Hi Denis, Glad to see these getting picked up. I did at some point hack up a rewrite of the original code though which has some elements might be worth

Re: [Qemu-devel] [PATCH v4] block: add event when disk usage exceeds threshold

2015-01-09 Thread Eric Blake
On 12/04/2014 01:59 AM, Francesco Romani wrote: > Managing applications, like oVirt (http://www.ovirt.org), make extensive > use of thin-provisioned disk images. > To let the guest run smoothly and be not unnecessarily paused, oVirt sets > a disk usage threshold (so called 'high water mark') based

Re: [Qemu-devel] [PATCH for 2.3 v2 1/1] xen-hvm: increase maxmem before calling xc_domain_populate_physmap

2015-01-09 Thread Don Slutz
Ping On 12/23/14 09:35, Don Slutz wrote: > Ping. > > On 12/03/14 08:15, Don Slutz wrote: >> From: Stefano Stabellini >> >> Increase maxmem before calling xc_domain_populate_physmap_exact to >> avoid the risk of running out of guest memory. This way we can also >> avoid complex memory calculation

[Qemu-devel] [PULL 2/2] vfio-pci: Fix interrupt disabling

2015-01-09 Thread Alex Williamson
When disabling MSI/X interrupts the disable functions will leave the device in INTx mode (when available). This matches how hardware operates, INTx is enabled unless MSI/X is enabled (DisINTx is handled separately). Therefore when we really want to disable all interrupts, such as when removing th

[Qemu-devel] [PULL 1/2] vfio-pci: Fix BAR size overflow

2015-01-09 Thread Alex Williamson
We use an unsigned int when working with the PCI BAR size, which can obviously overflow if the BAR is 4GB or larger. This needs to change to a fixed length uint64_t. A similar issue is possible, though even more unlikely, when mapping the region above an MSI-X table. The start of the MSI-X vecto

[Qemu-devel] [PULL 0/2] vfio-pci fixes

2015-01-09 Thread Alex Williamson
The following changes since commit 59a0419856c9ed24e9ecd033db092b2e8f81a728: hw/ppc/mac_newworld: simplify usb controller creation logic (2015-01-08 17:32:27 +) are available in the git repository at: git://github.com/awilliam/qemu-vfio.git tags/vfio-update-20150109.0 for you to fetch

Re: [Qemu-devel] [PULL RESEND 0/2] lm32: milkymist fixes and MAINTAINERS update

2015-01-09 Thread Peter Maydell
On 30 December 2014 at 17:03, Michael Walle wrote: > Hi Peter, > > please pull these two commits which were posted to the ML some time ago. > > --- > > The following changes since commit ab0302ee764fd702465aef6d88612cdff4302809: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-tar

[Qemu-devel] [PATCH v2] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-09 Thread Programmingkid
This patch fixes the Mac OS X guest color problem on Mac OS X hosts. Tested using Mac OS 10.2 and Debian Linux 5 operating systems for the guest on qemu-system-ppc. Also tested using Windows XP as a guest in qemu-system-i386. Signed-off-by: John Arbuckle --- v2: Eliminated the -display-endian-

Re: [Qemu-devel] [PATCH v2 1/1] qemu-img: Add QEMU_PKGVERSION to QEMU_IMG_VERSION

2015-01-09 Thread Eric Blake
On 01/09/2015 08:17 AM, Don Slutz wrote: > This is the same way vl.c handles this. > > Signed-off-by: Don Slutz > --- > qemu-img.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake > > diff --git a/qemu-img.c b/qemu-img.c > index 7876258..b6e9220 100644 > --- a/

Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option

2015-01-09 Thread Eric Blake
On 01/09/2015 08:28 AM, Don Slutz wrote: [an encrypted message] Oops, you probably want to fix your Thunderbird/Enigmail settings to sign but not encrypt when a list is involved. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.

Re: [Qemu-devel] [PATCH 2/2] qemu-common.h: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Peter Maydell
On 9 January 2015 at 16:08, Frediano Ziglio wrote: > I agree (after some digging) we are not sure we won't get that > overflow. Agree to drop the second patch. However I would retain the > first. Compiler can use it to optimize much easier. For instance if > compiler understand that the multiplica

Re: [Qemu-devel] [PATCH 2/2] qemu-common.h: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Frediano Ziglio
2015-01-09 15:52 GMT+00:00 Peter Maydell : > On 9 January 2015 at 15:41, Frediano Ziglio wrote: >> 2015-01-09 12:22 GMT+00:00 Peter Maydell : +/* Optimised x64 version. This assume that a*b/c fits in 64 bit */ >>> >>> This assumption isn't necessarily true, and this implementation >>> will du

Re: [Qemu-devel] [PATCH 2/2] qemu-common.h: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Peter Maydell
On 9 January 2015 at 15:41, Frediano Ziglio wrote: > 2015-01-09 12:22 GMT+00:00 Peter Maydell : >>> +/* Optimised x64 version. This assume that a*b/c fits in 64 bit */ >> >> This assumption isn't necessarily true, and this implementation >> will dump core on overflow. > Yes, I know, it was meant

Re: [Qemu-devel] [PATCH 2/2] qemu-common.h: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Frediano Ziglio
2015-01-09 12:22 GMT+00:00 Peter Maydell : > On 9 January 2015 at 11:25, Frediano Ziglio wrote: >> As this platform can do multiply/divide using 128 bit precision use >> these instructions to implement it. >> >> Signed-off-by: Frediano Ziglio >> --- >> include/qemu-common.h | 14 +- >

Re: [Qemu-devel] Nested KVM L2 guest hangs

2015-01-09 Thread Ariel Zeitlin
Thanks, will try that ‏בתאריך יום שישי, 9 בינואר 2015, Paolo Bonzini כתב: > > > On 09/01/2015 16:30, Ariel Zeitlin wrote: > > Hi, Paolo > > We are using a pretty new kernel 3.13.0-43 as part of Ubuntu14.04. > > > > What version would you recommend? > > At least 3.16. > > 3.13 is about a year old

Re: [Qemu-devel] Nested KVM L2 guest hangs

2015-01-09 Thread Paolo Bonzini
On 09/01/2015 16:30, Ariel Zeitlin wrote: > Hi, Paolo > We are using a pretty new kernel 3.13.0-43 as part of Ubuntu14.04. > > What version would you recommend? At least 3.16. 3.13 is about a year old, and nested virtualization is a very new feature. > Do we need the upgrade on L0, L1 or bot

Re: [Qemu-devel] Nested KVM L2 guest hangs

2015-01-09 Thread Ariel Zeitlin
Hi, Paolo We are using a pretty new kernel 3.13.0-43 as part of Ubuntu14.04. What version would you recommend? Do we need the upgrade on L0, L1 or both? Thanks, Ariel ‏בתאריך יום שישי, 9 בינואר 2015, Paolo Bonzini כתב: > > > On 09/01/2015 15:08, Ariel Zeitlin wrote: > > > > At the time of the

Re: [Qemu-devel] [PATCH 08/12] pci: allow 0 address for PCI IO regions

2015-01-09 Thread Michael Roth
Quoting Claudio Fontana (2015-01-09 08:57:39) > Hello, > > resurrecting an old thread.. I incurred in the same issue being > discussed before, > where QEMU silently ignores PCI BAR address programming attempts where > the I/O space offset is 0 (zero). > > I think that from a QEMU "user" standpoin

Re: [Qemu-devel] [PATCH 1/1] qemu-img: Add --pkgversion common option

2015-01-09 Thread Don Slutz
binjhymGgf_MN.bin Description: PGP/MIME version identification encrypted.asc Description: OpenPGP encrypted message

[Qemu-devel] [PATCH v2 1/1] qemu-img: Add QEMU_PKGVERSION to QEMU_IMG_VERSION

2015-01-09 Thread Don Slutz
This is the same way vl.c handles this. Signed-off-by: Don Slutz --- qemu-img.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-img.c b/qemu-img.c index 7876258..b6e9220 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -35,7 +35,7 @@ #include "block/qapi.h" #include -#de

[Qemu-devel] [PATCH v2 0/1] qemu-img: Add QEMU_PKGVERSION to QEMU_IMG_VERSION (was qemu-img: Add --pkgversion common option)

2015-01-09 Thread Don Slutz
Changes v1 to v2: Added a cover letter because subject changed. Peter Maydell & Eric Blake Switch to be consistent with both linux-user and the softmmu emulators --- Just a little backgound. --version was added to qemu-img: 5f6979cb (Jeff Cody 2014-04-28 14:37:18 -04

Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue.

2015-01-09 Thread Programmingkid
On Jan 9, 2015, at 3:58 AM, Gerd Hoffmann wrote: > On Do, 2015-01-08 at 12:07 -0500, Programmingkid wrote: >> On Jan 8, 2015, at 4:02 AM, Gerd Hoffmann wrote: >> >>> Hi, >>> VGA: Using shared surface for depth=32 swap=1 >>> >>> Ok, 32bpp. byteswapping needed. >>> >>> I guess the host is

Re: [Qemu-devel] [PATCH 08/12] pci: allow 0 address for PCI IO regions

2015-01-09 Thread Claudio Fontana
Hello, resurrecting an old thread.. I incurred in the same issue being discussed before, where QEMU silently ignores PCI BAR address programming attempts where the I/O space offset is 0 (zero). I think that from a QEMU "user" standpoint, beside this particular issue, which can be easily worked ar

Re: [Qemu-devel] Nested KVM L2 guest hangs

2015-01-09 Thread Paolo Bonzini
On 09/01/2015 15:08, Ariel Zeitlin wrote: > > At the time of the hanging this line is added: > > nested_vmx_run: VMCS MSR_{LOAD,STORE} unsupported You have to try with a newer kernel. Paolo

Re: [Qemu-devel] vhost-user: migration?

2015-01-09 Thread Zhang Haoyu
Hi, what's the status of migration support for vhost-user? Thanks, Zhang Haoyu On 2014-06-18 22:07:49, Michael S. Tsirkin wrote: > On Wed, Jun 18, 2014 at 04:37:57PM +0300, Nikolay Nikolaev wrote: > > > > > > > > On Wed, Jun 18, 2014 at 3:35 PM, Michael S

[Qemu-devel] [PATCH] x86_64: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Frediano Ziglio
As this platform can do multiply/divide using 128 bit precision use these instruction to implement it. Signed-off-by: Frediano Ziglio --- include/qemu-common.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/qemu-common.h b/include/qemu-common.h index f862214..5366220

[Qemu-devel] Nested KVM L2 guest hangs

2015-01-09 Thread Ariel Zeitlin
Hi, all I am trying to use nested virtualization setup and experiencing L2 guest (Windows) hanging during boot. I have seen some threads about it, but did not manage to make sense of how can I work around it. Would appreciate any guidance for a solution or workaround. Thanks, Ariel Some details

[Qemu-devel] a question for control queue

2015-01-09 Thread Ouyang, Changchun
Hi all, I have a question about the control queue in qemu, When the qemu have configured the control queue, and guest also negotiated the control queue successfully with qemu, Will the qemu will let vhost know guest try to use control queue to send some commands? Or could the vhost also setup t

[Qemu-devel] qemu is freezing in rebooting after CPU hot-unplug.

2015-01-09 Thread Paulo Vital
Hi I'm doing some tests on CPU hot-unplug using as base the mentioned patch set in [1] and I'm facing some problems while executing a reboot (via 'shutdown -r now' command in guest's command line or QMP system_reset command) after unplug one CPU. After execute (2 times) the loop related to reset t

[Qemu-devel] [PATCH 1/2] qemu-common.h: optimise muldiv64 if int128 is available

2015-01-09 Thread Frediano Ziglio
Let compiler do the job to optimise the function. Signed-off-by: Frediano Ziglio --- include/qemu-common.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/qemu-common.h b/include/qemu-common.h index f862214..f3033ae 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.

Re: [Qemu-devel] cpu hotplug and windows guest (win2012r2)

2015-01-09 Thread Andrey Korolyov
On Fri, Jan 9, 2015 at 1:26 PM, Alexandre DERUMIER wrote: > Hi, > > I'm currently testing cpu hotplug with a windows 2012R2 standard guest, > > and I can't get it too work. (works fine with linux guest). > > host kernel : rhel7 3.10 kernel > qemu 2.2 > > > qemu command line : -smp cpus=1,sockets=2

Re: [Qemu-devel] [RFC PATCH] spapr_vio/spapr_iommu: Move VIO bypass where it belongs

2015-01-09 Thread Paolo Bonzini
On 09/01/2015 13:53, Alexey Kardashevskiy wrote: >> > I think the minimum version should be 2 as well, because migrating from >> > version 1 will not set the bypass field correctly. > This why the patch is "RFC" :) > > I can keep the flag in TCETable which would be a bit ugly but won't break > m

Re: [Qemu-devel] [RFC PATCH] spapr_vio/spapr_iommu: Move VIO bypass where it belongs

2015-01-09 Thread Alexey Kardashevskiy
On 01/09/2015 09:05 PM, Paolo Bonzini wrote: > > > On 09/01/2015 02:02, Alexey Kardashevskiy wrote: >> @@ -100,7 +98,7 @@ static const VMStateDescription vmstate_spapr_tce_table = >> { >> VMSTATE_UINT32_EQUAL(nb_table, sPAPRTCETable), >> >> /* IOMMU state */ >> -VMSTA

Re: [Qemu-devel] [PATCH 2/2] qemu-common.h: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Peter Maydell
On 9 January 2015 at 11:25, Frediano Ziglio wrote: > As this platform can do multiply/divide using 128 bit precision use > these instructions to implement it. > > Signed-off-by: Frediano Ziglio > --- > include/qemu-common.h | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) >

Re: [Qemu-devel] [PATCH 2/2] qemu-common.h: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Frediano Ziglio
2015-01-09 11:43 GMT+00:00 Paolo Bonzini : > > > On 09/01/2015 12:25, Frediano Ziglio wrote: >> /* compute with 96 bit intermediate result: (a*b)/c */ >> -#ifdef CONFIG_INT128 >> +#if defined(CONFIG_INT128) && !defined(__x86_64__) >> static inline uint64_t muldiv64(uint64_t a, uint32_t b, uint32_

Re: [Qemu-devel] [PATCH] x86_64: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Frediano Ziglio
2015-01-09 11:24 GMT+00:00 Paolo Bonzini : > > > On 09/01/2015 12:04, Frediano Ziglio wrote: >> 2015-01-09 10:35 GMT+00:00 Paolo Bonzini : >>> >>> >>> On 09/01/2015 11:27, Frediano Ziglio wrote: Signed-off-by: Frediano Ziglio --- include/qemu-common.h | 13 +

Re: [Qemu-devel] [PATCH 1/2] qemu-common.h: optimise muldiv64 if int128 is available

2015-01-09 Thread Peter Maydell
On 9 January 2015 at 11:25, Frediano Ziglio wrote: > Let compiler do the job to optimise the function. > > Signed-off-by: Frediano Ziglio > --- > include/qemu-common.h | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/include/qemu-common.h b/include/qemu-common.h > index f862214..f

Re: [Qemu-devel] [PATCH 0/3 V3] add PCI support for the s390 platform

2015-01-09 Thread Cornelia Huck
On Fri, 9 Jan 2015 09:04:37 +0100 Frank Blaschka wrote: > This set of patches implemets PCI support for the s390 platform. > Now it is possible to run virtio-net-pci and potentially all > virtual pci devices conforming to s390 platform constrains. > > V1 added lot of feedback from Alex Graf >

Re: [Qemu-devel] [PATCH 1/3 V3] s390: Add PCI bus support

2015-01-09 Thread Cornelia Huck
On Fri, 9 Jan 2015 09:04:38 +0100 Frank Blaschka wrote: > +static IOMMUTLBEntry s390_translate_iommu(MemoryRegion *iommu, hwaddr addr, > + bool is_write) > +{ > +uint64_t pte; > +uint32_t flags; > +S390PCIBusDevice *pbdev = container_of(iommu

Re: [Qemu-devel] Question and probable bug in qemu spice's parameters

2015-01-09 Thread Fabio Fantoni
Il 09/01/2015 12:23, Gerd Hoffmann ha scritto: On Fr, 2015-01-09 at 11:30 +0100, Fabio Fantoni wrote: In qemu docs seems that spice streaming video is default to "filter" but after this patch seems default to "off" without updating qemu-options.hx file: http://git.qemu.org/?p=qemu.git;a=commitdi

Re: [Qemu-devel] [PATCH 2/2] qemu-common.h: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Paolo Bonzini
On 09/01/2015 12:25, Frediano Ziglio wrote: > /* compute with 96 bit intermediate result: (a*b)/c */ > -#ifdef CONFIG_INT128 > +#if defined(CONFIG_INT128) && !defined(__x86_64__) > static inline uint64_t muldiv64(uint64_t a, uint32_t b, uint32_t c) > { > return (__int128)a * b / c; > } >

Re: [Qemu-devel] [PATCH] x86_64: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Peter Maydell
On 9 January 2015 at 11:24, Paolo Bonzini wrote: > On 09/01/2015 12:04, Frediano Ziglio wrote: >> I think that I'll write two patches. One implementing using the int128 >> as you suggested (which is much easier to read that current one and >> assembly ones) that another for x86_64 optimization. >

[Qemu-devel] Publish QEMU tech talks on our Google+ page

2015-01-09 Thread Stefan Hajnoczi
Dear QEMU community, If you have a QEMU tech talk you'd like to give, don't wait for a conference. Videos can be streamed on our Google+ page and recorded to YouTube. Share your knowledge with others! Relevant topic areas include: * End-user best practices * Debugging and performance analysis

[Qemu-devel] [PATCH 2/2] qemu-common.h: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Frediano Ziglio
As this platform can do multiply/divide using 128 bit precision use these instructions to implement it. Signed-off-by: Frediano Ziglio --- include/qemu-common.h | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/qemu-common.h b/include/qemu-common.h index

[Qemu-devel] [PATCH 1/2] qemu-common.h: optimise muldiv64 if int128 is available

2015-01-09 Thread Frediano Ziglio
Let compiler do the job to optimise the function. Signed-off-by: Frediano Ziglio --- include/qemu-common.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/qemu-common.h b/include/qemu-common.h index f862214..f3033ae 100644 --- a/include/qemu-common.h +++ b/include/qemu-common.

Re: [Qemu-devel] [PATCH] x86_64: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Paolo Bonzini
On 09/01/2015 12:04, Frediano Ziglio wrote: > 2015-01-09 10:35 GMT+00:00 Paolo Bonzini : >> >> >> On 09/01/2015 11:27, Frediano Ziglio wrote: >>> >>> Signed-off-by: Frediano Ziglio >>> --- >>> include/qemu-common.h | 13 + >>> 1 file changed, 13 insertions(+) >>> >>> diff --git a/in

Re: [Qemu-devel] Question and probable bug in qemu spice's parameters

2015-01-09 Thread Gerd Hoffmann
On Fr, 2015-01-09 at 11:30 +0100, Fabio Fantoni wrote: > In qemu docs seems that spice streaming video is default to "filter" but > after this patch seems default to "off" without updating qemu-options.hx > file: > http://git.qemu.org/?p=qemu.git;a=commitdiff;h=f1d3e586f069e17f83b669842bc02d60d5

Re: [Qemu-devel] [PATCH] x86_64: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Frediano Ziglio
2015-01-09 10:35 GMT+00:00 Paolo Bonzini : > > > On 09/01/2015 11:27, Frediano Ziglio wrote: >> >> Signed-off-by: Frediano Ziglio >> --- >> include/qemu-common.h | 13 + >> 1 file changed, 13 insertions(+) >> >> diff --git a/include/qemu-common.h b/include/qemu-common.h >> index f8622

Re: [Qemu-devel] [PATCH 2/4] qemu-timer: add timer_init and timer_init_ns/us/ms

2015-01-09 Thread Paolo Bonzini
On 09/01/2015 03:19, Fam Zheng wrote: >> > /** >> > + * timer_init: >> > + * @clock: the clock to associate with the timer > s/@clock/@type/ > > And similarly below. Doh, cut-and-paste error (it's also in timer_new and friends). >> > + * @scale: the scale value for the timer >> > + * @cb: the

Re: [Qemu-devel] [PATCH v4] block: add event when disk usage exceeds threshold

2015-01-09 Thread Francesco Romani
ping - Original Message - > From: "Francesco Romani" > To: qemu-devel@nongnu.org > Cc: kw...@redhat.com, mdr...@linux.vnet.ibm.com, stefa...@redhat.com, > lcapitul...@redhat.com > Sent: Monday, December 15, 2014 12:19:44 PM > Subject: Re: [Qemu-devel] [PATCH v4] block: add event when dis

Re: [Qemu-devel] [PATCH] x86_64: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Paolo Bonzini
On 09/01/2015 11:27, Frediano Ziglio wrote: > > Signed-off-by: Frediano Ziglio > --- > include/qemu-common.h | 13 + > 1 file changed, 13 insertions(+) > > diff --git a/include/qemu-common.h b/include/qemu-common.h > index f862214..5366220 100644 > --- a/include/qemu-common.h > ++

[Qemu-devel] [PATCH] x86_64: optimise muldiv64 for x86_64 architecture

2015-01-09 Thread Frediano Ziglio
As this platform can do multiply/divide using 128 bit precision use these instruction to implement it. Signed-off-by: Frediano Ziglio --- include/qemu-common.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/qemu-common.h b/include/qemu-common.h index f862214..5366220

[Qemu-devel] Question and probable bug in qemu spice's parameters

2015-01-09 Thread Fabio Fantoni
In qemu docs seems that spice streaming video is default to "filter" but after this patch seems default to "off" without updating qemu-options.hx file: http://git.qemu.org/?p=qemu.git;a=commitdiff;h=f1d3e586f069e17f83b669842bc02d60d509daca What is the correct default actually? If I specify spi

[Qemu-devel] [PULL 25/26] MAINTAINERS: Add migration/block* to block subsystem

2015-01-09 Thread Stefan Hajnoczi
From: Fam Zheng We are moving block-migration.c to the separated migration directory, keep this file watched by block maintainers is a good idea. Signed-off-by: Fam Zheng Signed-off-by: Stefan Hajnoczi --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINE

[Qemu-devel] cpu hotplug and windows guest (win2012r2)

2015-01-09 Thread Alexandre DERUMIER
Hi, I'm currently testing cpu hotplug with a windows 2012R2 standard guest, and I can't get it too work. (works fine with linux guest). host kernel : rhel7 3.10 kernel qemu 2.2 qemu command line : -smp cpus=1,sockets=2,cores=1,maxcpus=2 Started with 1cpu, topogoly is 2sockets with 1cores. T

[Qemu-devel] [PULL 20/26] block: limited request size in write zeroes unsupported path

2015-01-09 Thread Stefan Hajnoczi
From: Peter Lieven If bs->bl.max_write_zeroes is large and we end up in the unsupported path we might allocate a lot of memory for the iovector and/or even generate an oversized requests. Fix this by limiting the request by the minimum of the reported maximum transfer size or 16MB (32768 sectors

[Qemu-devel] [PULL 23/26] nvme: Fix get/set number of queues feature

2015-01-09 Thread Stefan Hajnoczi
From: Alex Friedman According to the specification, the low 16 bits should contain the number of I/O submission queues, and the high 16 bits should contain the number of I/O completion queues. Signed-off-by: Alex Friedman Acked-by: Keith Busch Signed-off-by: Stefan Hajnoczi --- hw/block/nvme

[Qemu-devel] [PULL 22/26] ide: Implement VPD response for ATAPI

2015-01-09 Thread Stefan Hajnoczi
From: John Snow SCSI devices have multiple kinds of queries they need to respond to, as defined in the "cmd inquiry" section in MMC-6 and SPC-3. Relevent sections: MMC-6 revision 2g: Non-VPD response data and pointer to SPC-3; Section 6.8 "Inquiry Command" SPC-3 revision 23: In

[Qemu-devel] [PULL 16/26] QSLIST: add lock-free operations

2015-01-09 Thread Stefan Hajnoczi
From: Paolo Bonzini These operations are trivial to implement and do not have ABA problems. They are enough to implement simple multiple-producer, single consumer lock-free lists or, as in the next patch, the multiple consumers can steal a whole batch of elements and process them at their leisure

[Qemu-devel] [PULL 24/26] MAINTAINERS: Update email addresses for Chrysostomos Nanakos

2015-01-09 Thread Stefan Hajnoczi
From: Chrysostomos Nanakos Remove first email address and let the one from which I am contributing. Signed-off-by: Chrysostomos Nanakos Signed-off-by: Stefan Hajnoczi --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 01cfb05..e7a59ff 100644 ---

[Qemu-devel] [PULL 19/26] coroutine: try harder not to delete coroutines

2015-01-09 Thread Stefan Hajnoczi
From: Peter Lieven Placing coroutines on the global pool should be preferrable, because it can help all threads. But if the global pool is full, we can still try to save some allocations by stashing completed coroutines on the local pool. This is quite cheap too, because it does not require ato

[Qemu-devel] [PULL 26/26] NVMe: Set correct VS Value for 1.1 Compliant Controllers

2015-01-09 Thread Stefan Hajnoczi
From: Anubhav Rakshit According to NVMe specifications Bits 15:08 represent Minor Version number. Signed-off-by: Anubhav Rakshit Signed-off-by: Stefan Hajnoczi --- hw/block/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 4f70f

[Qemu-devel] [PULL 14/26] qemu-thread: add per-thread atexit functions

2015-01-09 Thread Stefan Hajnoczi
From: Paolo Bonzini Destructors are the main additional feature of pthread TLS compared to __thread. If we were using C++ (hint, hint!) we could have used thread-local objects with a destructor. Since we are not, instead, we add a simple Notifier-based API. Note that the notifier must be per-t

[Qemu-devel] [PULL 15/26] test-coroutine: avoid overflow on 32-bit systems

2015-01-09 Thread Stefan Hajnoczi
From: Paolo Bonzini unsigned long is not large enough to represent 10 * duration there. Just use floating point. Signed-off-by: Paolo Bonzini Reviewed-by: Fam Zheng Message-id: 1417518350-6167-4-git-send-email-pbonz...@redhat.com Signed-off-by: Stefan Hajnoczi --- tests/test-coroutin

[Qemu-devel] [PULL 12/26] qemu-iotests: Add supported os parameter for python tests

2015-01-09 Thread Stefan Hajnoczi
From: Fam Zheng If I understand correctly, qemu-iotests never meant to be portable. We only support Linux for all the shell cases, but didn't specify it for python tests. Now add this and default all the python tests as Linux only. If we cares enough later, we can override the parameter in indivi

[Qemu-devel] [PULL 17/26] coroutine: rewrite pool to avoid mutex

2015-01-09 Thread Stefan Hajnoczi
From: Paolo Bonzini This patch removes the mutex by using fancy lock-free manipulation of the pool. Lock-free stacks and queues are not hard, but they can suffer from the ABA problem so they are better avoided unless you have some deferred reclamation scheme like RCU. Otherwise you have to stic

[Qemu-devel] [PULL 08/26] .gitignore: Ignore generated "common.env"

2015-01-09 Thread Stefan Hajnoczi
From: Fam Zheng Signed-off-by: Fam Zheng Signed-off-by: Stefan Hajnoczi --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index e32a584..090f974 100644 --- a/.gitignore +++ b/.gitignore @@ -109,3 +109,4 @@ cscope.* tags TAGS *~ +/tests/qemu-iotests/c

  1   2   >