[Qemu-devel] [Bug 1346769] [NEW] /proc/self/maps content returned to 32-bits guest under 64-bits qemu

2014-07-21 Thread Mikhail Ilyin
Public bug reported: Reading /proc/self/maps a user doesn't get a stack record. Not all programs relies on the maps file but some do. The bug found by running 32-bits binaries with address sanitizer (Asan) instrumentations under 64-bit qemu. $ echo "int main() { return 0; }" > /tmp/test.c $ gcc

[Qemu-devel] [PATCH] i386/helper: add cpu dump APIC information

2014-07-21 Thread Chen Fan
When KVM exit reason is KVM_EXIT_SHUTDOWN, there will cause guest to reset, but we can't get any information to fix. we knew KVM handle triple fault will set exit_reason to KVM_EXIT_SHUTDOWN, so we also should dump the APIC information to help to fix. Signed-off-by: Chen Fan --- include/qom/cpu.

Re: [Qemu-devel] [RFC PATCH 0/7] i386: add cpu hot remove support

2014-07-21 Thread Gu Zheng
Hi Igor, Andreas, How about this patchset? Could you please help to review it? Any comment is welcome. Regards, Gu On 07/11/2014 05:59 PM, Gu Zheng wrote: > Via implementing ACPI standard methods _EJ0 in ACPI table, after Guest OS > remove > one vCPU online, the fireware will store removed bitm

Re: [Qemu-devel] [PATCH for-2.1] exec: fix migration with devices that use address_space_rw

2014-07-21 Thread Michael S. Tsirkin
On Mon, Jul 21, 2014 at 05:06:44PM +0200, Paolo Bonzini wrote: > Devices that use address_space_rw to write large areas to memory > (as opposed to address_space_map/unmap) were broken with respect > to migration since fe680d0 (exec: Limit translation limiting in > address_space_translate to xen, 20

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Benoît Canet
The Monday 21 Jul 2014 à 15:12:31 (-0600), Chris Friesen wrote : > On 07/21/2014 01:47 PM, Benoît Canet wrote: > >The Monday 21 Jul 2014 à 09:35:29 (-0600), Chris Friesen wrote : > >>On 07/21/2014 09:15 AM, Benoît Canet wrote: > >>>The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : >

[Qemu-devel] [PATCH v3] virtio-rng: Add human-readable error message for negative max-bytes parameter

2014-07-21 Thread John Snow
If a negative integer is used for the max_bytes parameter, QEMU currently calls abort() and leaves behind a core dump. This patch adds a simple error message to make the reason for the termination clearer. There is an underlying insufficiency in the parameter parsing code of QEMU that renders it u

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Chris Friesen
On 07/21/2014 01:47 PM, Benoît Canet wrote: The Monday 21 Jul 2014 à 09:35:29 (-0600), Chris Friesen wrote : On 07/21/2014 09:15 AM, Benoît Canet wrote: The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : On 07/19/2014 02:45 AM, Benoît Canet wrote: I think in the throttling case

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Samuel Thibault, le Mon 21 Jul 2014 22:30:40 +0200, a écrit : > Vasiliy Tolstov, le Tue 22 Jul 2014 00:19:46 +0400, a écrit : > > 2014-07-22 0:13 GMT+04:00 Samuel Thibault : > > > It is related to the patch. I have fixed it, and pushed a newer > > > tosubmit branch. > > > > Nothing new in tosubmi

Re: [Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-21 Thread Peter Maydell
On 21 July 2014 20:00, Richard Henderson wrote: > On 07/21/2014 12:46 AM, Peter Maydell wrote: >> Q: is this in a released glibc? The generic timers are strictly speaking >> optional, so this seems kind of bogus. Also looking at the glibc sources >> it never reads the counter frequency so what it

Re: [Qemu-devel] [PATCH v2] virtio-rng: Add human-readable error message for negative max-bytes parameter

2014-07-21 Thread Eric Blake
On 07/21/2014 02:13 PM, John Snow wrote: > I can certainly grep through the code to find out who is using unsigned > properties. In the case of uint32, -1 I believe will already wrap around > but then overflow (because we parse as uint64_t) and throw an error, so > I don't expect we will see anyon

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Vasiliy Tolstov, le Tue 22 Jul 2014 00:19:46 +0400, a écrit : > 2014-07-22 0:13 GMT+04:00 Samuel Thibault : > > It is related to the patch. I have fixed it, and pushed a newer > > tosubmit branch. > > Nothing new in tosubmit branch I have regenerated the branch, you need to check it out again.

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
2014-07-22 0:13 GMT+04:00 Samuel Thibault : > It is related to the patch. I have fixed it, and pushed a newer > tosubmit branch. Nothing new in tosubmit branch -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber: v...@selfip.ru

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Vasiliy Tolstov, le Tue 22 Jul 2014 00:12:23 +0400, a écrit : > 2014-07-21 23:49 GMT+04:00 Samuel Thibault : > > There's no current support for this, but that could be useful to add > > indeed. > > > I hit another issue, but may be not related to the patch. In centos 7 > (test another boxes) i ha

Re: [Qemu-devel] [PATCH v2] virtio-rng: Add human-readable error message for negative max-bytes parameter

2014-07-21 Thread John Snow
On 07/21/2014 03:15 PM, Markus Armbruster wrote: John Snow writes: On 07/21/2014 01:33 PM, Markus Armbruster wrote: John Snow writes: On 07/21/2014 03:48 AM, Markus Armbruster wrote: It certainly could check whether the value fits into uint64_t. A quick peek at how string-input-visitor.

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
2014-07-21 23:49 GMT+04:00 Samuel Thibault : > There's no current support for this, but that could be useful to add > indeed. I hit another issue, but may be not related to the patch. In centos 7 (test another boxes) i have running qemu with: /usr/bin/qemu-system-x86_64 -device virtio-scsi-pci,id

[Qemu-devel] [PATCH v2 5/5] block: iotest - update 084 to test static VDI image creation

2014-07-21 Thread Jeff Cody
This updates the VDI corruption test to also test static VDI image creation, as well as the default dynamic image creation. Signed-off-by: Jeff Cody --- tests/qemu-iotests/084 | 16 ++-- tests/qemu-iotests/084.out | 15 +++ 2 files changed, 29 insertions(+), 2 deletio

[Qemu-devel] [PATCH v2 3/5] block: use the standard 'ret' instead of 'result'

2014-07-21 Thread Jeff Cody
Most QEMU code uses 'ret' for function return values. The VDI driver uses a mix of 'result' and 'ret'. This cleans that up, switching over to the standard 'ret' usage. Reviewed-by: Max Reitz Signed-off-by: Jeff Cody --- block/vdi.c | 36 ++-- 1 file changed, 18

[Qemu-devel] [PATCH v2 4/5] block: vpc - use block layer ops in vpc_create, instead of posix calls

2014-07-21 Thread Jeff Cody
Use the block layer to create, and write to, the image file in the VPC .bdrv_create() operation. This has a couple of benefits: Images can now be created over protocols, and hacks such as NOCOW are not needed in the image format driver, and the underlying file protocol appropriate for the host OS

[Qemu-devel] [PATCH v2 2/5] block: vdi - use block layer ops in vdi_create, instead of posix calls

2014-07-21 Thread Jeff Cody
Use the block layer to create, and write to, the image file in the VDI .bdrv_create() operation. This has a couple of benefits: Images can now be created over protocols, and hacks such as NOCOW are not needed in the image format driver, and the underlying file protocol appropriate for the host OS

[Qemu-devel] [PATCH v2 1/5] block: allow bdrv_unref() to be passed NULL pointers

2014-07-21 Thread Jeff Cody
If bdrv_unref() is passed a NULL BDS pointer, it is safe to exit with no operation. This will allow cleanup code to blindly call bdrv_unref() on a BDS that has been initialized to NULL. Reviewed-by: Max Reitz Signed-off-by: Jeff Cody --- block.c | 3 +++ 1 file changed, 3 insertions(+) diff -

[Qemu-devel] [PATCH v2 0/5] Allow VPC and VDI to be created over protocols

2014-07-21 Thread Jeff Cody
Changes from v1 -> v2: * Patch 2: Use'bs' instead of 'bs->file' (Max) * Patch 3: Same as patch 2 (ripple through) * Patch 5: Update VDI test for static image (Kevin) * Added Max's R-b to patches 1,3,4 This allows VPC and VDI to be created over protocols; currently, they use posix

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Vasiliy Tolstov, le Mon 21 Jul 2014 23:22:39 +0400, a écrit : > 2014-07-21 18:52 GMT+04:00 Samuel Thibault : > > For instance, yes, but you probably want to try my patch before. > > > Yes, patch fix issue. And now all works fine. Last question - is that > possible to enable/disable ipv4/ipv6 slir

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Benoît Canet
The Monday 21 Jul 2014 à 09:35:29 (-0600), Chris Friesen wrote : > On 07/21/2014 09:15 AM, Benoît Canet wrote: > >The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : > >>On 07/19/2014 02:45 AM, Benoît Canet wrote: > >> > >>>I think in the throttling case the number of in flight operati

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
2014-07-21 18:52 GMT+04:00 Samuel Thibault : > For instance, yes, but you probably want to try my patch before. Yes, patch fix issue. And now all works fine. Last question - is that possible to enable/disable ipv4/ipv6 slirp stacks? This is very useful feature to check dual stack and single stack

Re: [Qemu-devel] [PATCH v2] virtio-rng: Add human-readable error message for negative max-bytes parameter

2014-07-21 Thread Markus Armbruster
John Snow writes: > On 07/21/2014 01:33 PM, Markus Armbruster wrote: >> John Snow writes: >> >>> On 07/21/2014 03:48 AM, Markus Armbruster wrote: It certainly could check whether the value fits into uint64_t. A quick peek at how string-input-visitor.c uses strtoll() makes me

Re: [Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-21 Thread Richard Henderson
On 07/21/2014 12:46 AM, Peter Maydell wrote: > Q: is this in a released glibc? The generic timers are strictly speaking > optional, so this seems kind of bogus. Also looking at the glibc sources > it never reads the counter frequency so what it is hoping to do with the > timer values I have no idea

Re: [Qemu-devel] [Bug 1344320] [NEW] qemu-aarch64 cannot execute glibc

2014-07-21 Thread Richard Henderson
On 07/19/2014 12:54 AM, Peter Maydell wrote: > On 18 July 2014 21:30, Andreas Schwab wrote: >> qemu: uncaught target signal 4 (Illegal instruction) - core dumped >> Illegal instruction >> $ objdump -d >> /daten/build/build-root/home/abuild/rpmbuild/BUILD/glibc-2.19.90/cc-base/elf/ld-linux-aarch64

Re: [Qemu-devel] [PULL for-2.1 0/1] QOM devices patch queue 2014-07-21

2014-07-21 Thread Peter Maydell
On 21 July 2014 18:04, Andreas Färber wrote: > Hello Peter, > > This is my QOM (devices) patch queue. Please pull. > > Regards, > Andreas > > Cc: Peter Maydell > > The following changes since commit 147fc419734b057b9d9154c2ca0d9d397054104b: > > Merge remote-tracking branch 'remotes/mjt/tags/tri

Re: [Qemu-devel] [PATCH 3/7] spapr: Refactor spapr_populate_memory()

2014-07-21 Thread Nishanth Aravamudan
On 24.06.2014 [16:14:11 +1000], Alexey Kardashevskiy wrote: > > It seems like if neither are present, > > we can just hotplug them later? > > hotplug what? NUMA nodes? Just an FYI, as I didn't realize this, but Jiang Liu recently posted a patchset for NUMA node hotplug issues Intel ran into on

Re: [Qemu-devel] [PATCH v2] virtio-rng: Add human-readable error message for negative max-bytes parameter

2014-07-21 Thread John Snow
On 07/21/2014 01:33 PM, Markus Armbruster wrote: John Snow writes: On 07/21/2014 03:48 AM, Markus Armbruster wrote: It certainly could check whether the value fits into uint64_t. A quick peek at how string-input-visitor.c uses strtoll() makes me cringe. [...] What I meant by that was to s

Re: [Qemu-devel] [PATCH v2 1/2] contrib: add ivshmem client and server

2014-07-21 Thread Markus Armbruster
David Marchand writes: > When using ivshmem devices, notifications between guests can be sent as > interrupts using a ivshmem-server (typical use described in documentation). > The client is provided as a debug tool. [...] > diff --git a/contrib/ivshmem-client/ivshmem-client.c > b/contrib/ivshmem

Re: [Qemu-devel] [PATCH v2] virtio-rng: Add human-readable error message for negative max-bytes parameter

2014-07-21 Thread Markus Armbruster
John Snow writes: > On 07/21/2014 03:48 AM, Markus Armbruster wrote: >> >> It certainly could check whether the value fits into uint64_t. >> >> A quick peek at how string-input-visitor.c uses strtoll() makes me >> cringe. >> >> [...] > > What I meant by that was to say that by the time a value wa

Re: [Qemu-devel] [PATCH v2] machine: replace underscores in machine's property names

2014-07-21 Thread Andreas Färber
Am 18.07.2014 18:32, schrieb Marcel Apfelbaum: > Replaced '_' with '-' to comply with QOM guidelines. > Made the conversion from HMP to QMP in vl.c > > Signed-off-by: Marcel Apfelbaum > --- > v1 -> v2: > - Addressed Peter Maydell's comments: >- Replaced free by g_free to match the allocation

[Qemu-devel] [PULL 1/1] machine: Replace underscores in machine's property names

2014-07-21 Thread Andreas Färber
From: Marcel Apfelbaum Replaced '_' with '-' to comply with QOM guidelines. Made the conversion from command line to QMP in vl.c. Signed-off-by: Marcel Apfelbaum Acked-by: Michael S. Tsirkin Signed-off-by: Andreas Färber --- hw/core/machine.c | 8 vl.c | 12 +++

[Qemu-devel] [PULL for-2.1 0/1] QOM devices patch queue 2014-07-21

2014-07-21 Thread Andreas Färber
Hello Peter, This is my QOM (devices) patch queue. Please pull. Regards, Andreas Cc: Peter Maydell The following changes since commit 147fc419734b057b9d9154c2ca0d9d397054104b: Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-2014-07-18' into staging (2014-07-18 16:59:29 +0100

Re: [Qemu-devel] status for rc3/release

2014-07-21 Thread Paolo Bonzini
Il 21/07/2014 13:15, Gerd Hoffmann ha scritto: > Yep. I have a script[1] doing ping-pong live migration on localhost. > To check out live migration issues I either use a live iso, or do a > fresh install of the guest triggering the issues, with ping-pong live > migration already running during the

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Benoît Canet
The Monday 21 Jul 2014 à 09:35:29 (-0600), Chris Friesen wrote : > On 07/21/2014 09:15 AM, Benoît Canet wrote: > >The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : > >>On 07/19/2014 02:45 AM, Benoît Canet wrote: > >> > >>>I think in the throttling case the number of in flight operati

Re: [Qemu-devel] [PATCH v6 5/5] qemu-iotests: add support for Archipelago protocol

2014-07-21 Thread Stefan Hajnoczi
On Fri, Jun 27, 2014 at 11:24:12AM +0300, Chrysostomos Nanakos wrote: > Signed-off-by: Chrysostomos Nanakos > --- > tests/qemu-iotests/common|6 ++ > tests/qemu-iotests/common.rc |9 - > 2 files changed, 14 insertions(+), 1 deletion(-) Reviewed-by: Stefan Hajnoczi pgpe

Re: [Qemu-devel] [PATCH v6 3/5] block/archipelago: Add support for creating images

2014-07-21 Thread Stefan Hajnoczi
On Fri, Jun 27, 2014 at 11:24:10AM +0300, Chrysostomos Nanakos wrote: > +static int qemu_archipelago_create_volume(Error **errp, const char *volname, > + char *segment_name, > + uint64_t size, xport mportno, > +

Re: [Qemu-devel] [PATCH 2/2] qemu-img: Allow cache mode specification for amend

2014-07-21 Thread Eric Blake
On 07/19/2014 02:35 PM, Max Reitz wrote: > qemu-img amend may extensively modify the target image, depending on the > options to be amended (e.g. conversion to qcow2 compat level 0.10 from > 1.1 for an image with many unallocated zero clusters). Therefore it > makes sense to allow the user to speci

Re: [Qemu-devel] [PATCH v6 2/5] block/archipelago: Implement bdrv_parse_filename()

2014-07-21 Thread Stefan Hajnoczi
On Fri, Jun 27, 2014 at 11:24:09AM +0300, Chrysostomos Nanakos wrote: > VM Image on Archipelago volume can also be specified like this: > > file=archipelago:[/mport=[:vport=][: > segment=]] > > Examples: > > file=archipelago:my_vm_volume > file=archipelago:my_vm_volume/mport=123 > file=archipela

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Benoît Canet
The Monday 21 Jul 2014 à 09:35:29 (-0600), Chris Friesen wrote : > On 07/21/2014 09:15 AM, Benoît Canet wrote: > >The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : > >>On 07/19/2014 02:45 AM, Benoît Canet wrote: > >> > >>>I think in the throttling case the number of in flight operati

Re: [Qemu-devel] [PATCH 1/2] qemu-img: Allow source cache mode specification

2014-07-21 Thread Eric Blake
On 07/19/2014 02:35 PM, Max Reitz wrote: > Many qemu-img subcommands only read the source file(s) once. For these > use cases, a full write-back cache is unnecessary and mainly clutters > host cache memory. Though this is generally no concern as cache memory > is freely available and can be scaled

Re: [Qemu-devel] [PATCH v2] virtio-rng: Add human-readable error message for negative max-bytes parameter

2014-07-21 Thread John Snow
On 07/21/2014 03:48 AM, Markus Armbruster wrote: It certainly could check whether the value fits into uint64_t. A quick peek at how string-input-visitor.c uses strtoll() makes me cringe. [...] What I meant by that was to say that by the time a value was returned to visit_type_uint64, the v

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Chris Friesen
On 07/21/2014 09:15 AM, Benoît Canet wrote: The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : On 07/19/2014 02:45 AM, Benoît Canet wrote: I think in the throttling case the number of in flight operation is limited by the emulated hardware queue. Else request would pile up and th

Re: [Qemu-devel] [PATCH v2 1/2] contrib: add ivshmem client and server

2014-07-21 Thread David Marchand
Hello Eric, On 07/21/2014 04:21 PM, Eric Blake wrote: On 07/20/2014 03:38 AM, David Marchand wrote: +# Copyright 2014 6WIND S.A. +# All rights reserved This file has no other license, and is therefore incompatible with GPLv2. You'll need to resubmit under an appropriately open license. mis

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Benoît Canet
The Monday 21 Jul 2014 à 08:59:45 (-0600), Chris Friesen wrote : > On 07/19/2014 02:45 AM, Benoît Canet wrote: > > >I think in the throttling case the number of in flight operation is limited > >by > >the emulated hardware queue. Else request would pile up and throttling would > >be > >inefectiv

[Qemu-devel] [PATCH for-2.1] exec: fix migration with devices that use address_space_rw

2014-07-21 Thread Paolo Bonzini
Devices that use address_space_rw to write large areas to memory (as opposed to address_space_map/unmap) were broken with respect to migration since fe680d0 (exec: Limit translation limiting in address_space_translate to xen, 2014-05-07). Such devices include IDE CD-ROMs. The reason is that inval

Re: [Qemu-devel] is there a limit on the number of in-flight I/O operations?

2014-07-21 Thread Chris Friesen
On 07/19/2014 02:45 AM, Benoît Canet wrote: I think in the throttling case the number of in flight operation is limited by the emulated hardware queue. Else request would pile up and throttling would be inefective. So this number should be around: #define VIRTIO_PCI_QUEUE_MAX 64 or something l

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Vasiliy Tolstov, le Mon 21 Jul 2014 18:47:00 +0400, a écrit : > 2014-07-21 18:29 GMT+04:00 Samuel Thibault : > > A gdb backtrace would also be useful. > > Can you provide me info how can i get it from running qemu? As i > understand i need to gdb load-symbol and specify debuging simbols (i > have

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Samuel Thibault, le Mon 21 Jul 2014 16:47:09 +0200, a écrit : > Samuel Thibault, le Mon 21 Jul 2014 16:29:34 +0200, a écrit : > > Vasiliy Tolstov, le Mon 21 Jul 2014 18:19:17 +0400, a écrit : > > > 2014-07-21 16:06 GMT+04:00 Samuel Thibault : > > > > I have pushed it to http://dept-info.labri.fr/~t

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Samuel Thibault, le Mon 21 Jul 2014 16:29:34 +0200, a écrit : > Vasiliy Tolstov, le Mon 21 Jul 2014 18:19:17 +0400, a écrit : > > 2014-07-21 16:06 GMT+04:00 Samuel Thibault : > > > I have pushed it to http://dept-info.labri.fr/~thibault/qemu-ipv6 , in > > > the tosubmit branch. > > > > > > Inside

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
2014-07-21 18:29 GMT+04:00 Samuel Thibault : > A gdb backtrace would also be useful. Can you provide me info how can i get it from running qemu? As i understand i need to gdb load-symbol and specify debuging simbols (i have stripped it) after that i need to attach PID... ? -- Vasiliy Tolstov, e

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
2014-07-21 18:29 GMT+04:00 Samuel Thibault : > Uh?! Does the switch statement properly have both AF_INET and AF_INET6 > cases? > > A gdb backtrace would also be useful. I'm compile 2.1.0-rc2 with ./configure --cc=x86_64-pc-linux-gnu-gcc --prefix=/usr --libdir=/usr/lib64 --localstatedir=/var --py

Re: [Qemu-devel] Live migrate, inconsistent machine types - new machine type to fix?

2014-07-21 Thread Alex Bligh
Paolo, On 21 Jul 2014, at 15:11, Paolo Bonzini wrote: > Il 21/07/2014 15:59, Alex Bligh ha scritto: >> My guess is they will take a non-intrusive SRU which provides the >> ability for live migrates to work. However, if not we will just >> maintain it out of tree (like we were doing f

Re: [Qemu-devel] [PATCH v2 1/2] contrib: add ivshmem client and server

2014-07-21 Thread Daniel P. Berrange
On Mon, Jul 21, 2014 at 08:21:21AM -0600, Eric Blake wrote: > On 07/20/2014 03:38 AM, David Marchand wrote: > > When using ivshmem devices, notifications between guests can be sent as > > interrupts using a ivshmem-server (typical use described in documentation). > > The client is provided as a deb

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Vasiliy Tolstov, le Mon 21 Jul 2014 18:19:17 +0400, a écrit : > 2014-07-21 16:06 GMT+04:00 Samuel Thibault : > > I have pushed it to http://dept-info.labri.fr/~thibault/qemu-ipv6 , in > > the tosubmit branch. > > > Inside packer (i'm try to build some centos 7 boxes) i have errors > Qemu stderr:

Re: [Qemu-devel] [PATCH v2 1/2] contrib: add ivshmem client and server

2014-07-21 Thread Eric Blake
On 07/20/2014 03:38 AM, David Marchand wrote: > When using ivshmem devices, notifications between guests can be sent as > interrupts using a ivshmem-server (typical use described in documentation). > The client is provided as a debug tool. > > Signed-off-by: Olivier Matz > Signed-off-by: David Ma

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
2014-07-21 16:06 GMT+04:00 Samuel Thibault : > I have pushed it to http://dept-info.labri.fr/~thibault/qemu-ipv6 , in > the tosubmit branch. Inside packer (i'm try to build some centos 7 boxes) i have errors Qemu stderr: qemu-system-x86_64: slirp/tcp_input.c:1543: tcp_mss: Assertion `0' failed. I

Re: [Qemu-devel] Live migrate, inconsistent machine types - new machine type to fix?

2014-07-21 Thread Paolo Bonzini
Il 21/07/2014 15:59, Alex Bligh ha scritto: >>> >> My guess is they will take a non-intrusive SRU which provides the >>> >> ability for live migrates to work. However, if not we will just >>> >> maintain it out of tree (like we were doing for various other >>> >> qemu bits). >> > >> > Quite frankl

Re: [Qemu-devel] Live migrate, inconsistent machine types - new machine type to fix?

2014-07-21 Thread Paolo Bonzini
Il 21/07/2014 15:59, Alex Bligh ha scritto: > > For my use case I need (effectively) the PIT and piix4 hunks of this: > > http://pkgs.fedoraproject.org/cgit/qemu.git/tree/0001-Fix-migration-from-qemu-kvm.patch?h=f20 > > I was going to put these together into a machine type (e.g. pc-1.0-qemu-kv

Re: [Qemu-devel] Live migrate, inconsistent machine types - new machine type to fix?

2014-07-21 Thread Alex Bligh
Paolo, >> Currently my idea is 'gdb' :-) > > ghex too. Add a printf at the end of every successful section load. I did this and indeed got it to work (see below). >>> You could try rebuilding the patched QEMU sources from CentOS. CentOS >>> 7's rhel6.1.0 or rhel6.2.0 machine types are compara

Re: [Qemu-devel] [PATCH] docs: Make the recommendation for the backing file name position a requirement

2014-07-21 Thread Kevin Wolf
Am 21.07.2014 um 13:16 hat Maria Kustova geschrieben: > The current version of the qcow2 specification recommends to save the backing > file name in the end of the first cluster. It follows that the backing file > name can be saved somewhere in the image, but the first cluster, which > contradicts

Re: [Qemu-devel] [PATCH 2/4] block: vdi - use block layer ops in vdi_create, instead of posix calls

2014-07-21 Thread Kevin Wolf
Am 21.07.2014 um 14:58 hat Jeff Cody geschrieben: > On Sat, Jul 19, 2014 at 03:13:46PM +0200, Max Reitz wrote: > > On 18.07.2014 22:53, Jeff Cody wrote: > > >Use the block layer to create, and write to, the image file in the > > >VDI .bdrv_create() operation. > > > > > >This has a couple of benefit

Re: [Qemu-devel] [PATCH 2/4] block: vdi - use block layer ops in vdi_create, instead of posix calls

2014-07-21 Thread Jeff Cody
On Sat, Jul 19, 2014 at 03:13:46PM +0200, Max Reitz wrote: > On 18.07.2014 22:53, Jeff Cody wrote: > >Use the block layer to create, and write to, the image file in the > >VDI .bdrv_create() operation. > > > >This has a couple of benefits: Images can now be created over protocols, > >and host raw f

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
2014-07-21 16:06 GMT+04:00 Samuel Thibault : > I have pushed it to http://dept-info.labri.fr/~thibault/qemu-ipv6 , in > the tosubmit branch. Thanks! -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber: v...@selfip.ru

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Vasiliy Tolstov, le Mon 21 Jul 2014 15:59:53 +0400, a écrit : > Does it possible to get this patches via git branch or by another way? > As i see i can't get it via email because of html contents =( I have pushed it to http://dept-info.labri.fr/~thibault/qemu-ipv6 , in the tosubmit branch. Samuel

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
Does it possible to get this patches via git branch or by another way? As i see i can't get it via email because of html contents =( 2014-07-21 15:55 GMT+04:00 Vasiliy Tolstov : > 2014-07-21 15:49 GMT+04:00 Samuel Thibault : >> Yes, see the added documentation: >> >> +@item ip6-net=@var{addr}[/@va

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
2014-07-21 15:49 GMT+04:00 Samuel Thibault : > Yes, see the added documentation: > > +@item ip6-net=@var{addr}[/@var{int}] > +Set IPv6 network address the guest will see. Optionally specify the prefix > +size, as number of valid top-most bits. Default is fec0::/64. > + > +@item ip6-host=@var{addr}

[Qemu-devel] KVM call for agenda for 2014-07-22

2014-07-21 Thread Juan Quintela
Hi Please, send any topic that you are interested in covering. Thanks, Juan. Call details: 15:00 CEST 13:00 UTC 09:00 EDT Every two weeks If you need phone number details, contact me privately

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Vasiliy Tolstov, le Mon 21 Jul 2014 15:42:54 +0400, a écrit : > 2014-07-21 15:41 GMT+04:00 Samuel Thibault : > > ? The support was submitted to the list, but not commited. > > You can find the patches on > > http://lists.gnu.org/archive/html/qemu-devel/2014-03/msg05731.html > > and later. > > Unfor

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
2014-07-21 15:41 GMT+04:00 Samuel Thibault : > ? The support was submitted to the list, but not commited. > You can find the patches on > http://lists.gnu.org/archive/html/qemu-devel/2014-03/msg05731.html > and later. > Unfortunately, nobody has yet found the time to review them. > Documentation is

Re: [Qemu-devel] ipv6 slirp network

2014-07-21 Thread Samuel Thibault
Hello, Vasiliy Tolstov, le Mon 21 Jul 2014 15:34:16 +0400, a écrit : > Hello. I have now slirp qemu network with ipv4 address, but for tests > i need also ipv6 addresses in slirp network. How can i provide this > args for qemu via libvirt or (best) via qemu args? > I found some commits about ipv6

[Qemu-devel] ipv6 slirp network

2014-07-21 Thread Vasiliy Tolstov
Hello. I have now slirp qemu network with ipv4 address, but for tests i need also ipv6 addresses in slirp network. How can i provide this args for qemu via libvirt or (best) via qemu args? I found some commits about ipv6 slirp network but can't find args needed to enable it. -- Vasiliy Tolstov, e

[Qemu-devel] [PATCH] docs: Make the recommendation for the backing file name position a requirement

2014-07-21 Thread Maria Kustova
The current version of the qcow2 specification recommends to save the backing file name in the end of the first cluster. It follows that the backing file name can be saved somewhere in the image, but the first cluster, which contradicts the current QEMU implementation. The patch makes the backing

Re: [Qemu-devel] status for rc3/release

2014-07-21 Thread Gerd Hoffmann
On Fr, 2014-07-18 at 23:53 +0200, Paolo Bonzini wrote: > Il 18/07/2014 22:12, Paolo Bonzini ha scritto: > > Il 18/07/2014 19:14, Dr. David Alan Gilbert ha scritto: > >> * Dr. David Alan Gilbert (dgilb...@redhat.com) wrote: > >> (confirmed by running each twice) > >> and : > >> b18a990c - good > >>

[Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-21 Thread Peter Maydell
The kernel folks tell me that the generic timers being userspace accessible is only for the benefit of the kernel's VDSO, and they're not part of the kernel-to-userspace contract. This is therefore a bug in glibc, not QEMU, and we should get glibc fixed. -- You received this bug notification beca

[Qemu-devel] [Bug 1344320] Re: qemu-aarch64 cannot execute glibc

2014-07-21 Thread Peter Maydell
Q: is this in a released glibc? The generic timers are strictly speaking optional, so this seems kind of bogus. Also looking at the glibc sources it never reads the counter frequency so what it is hoping to do with the timer values I have no idea. -- You received this bug notification because you

Re: [Qemu-devel] Live migrate, inconsistent machine types - new machine type to fix?

2014-07-21 Thread Paolo Bonzini
Il 19/07/2014 13:37, Alex Bligh ha scritto: >>> Whilst (per below) your workaround gets past the issue for this ROM, >>> I'm confused about the numbers in the error message, as 64k and >>> 128k do not equal 10,000 or 20,000: >>> Length mismatch: :00:03.0/virtio-net-pci.rom: 1 in != 2 >>

[Qemu-devel] [PATCH V4 3/5] fuzz: Fuzzing functions for qcow2 images

2014-07-21 Thread Maria Kustova
The fuzz submodule of the qcow2 image generator contains fuzzing functions for image fields. Each fuzzing function contains a list of constraints and a call of a helper function that randomly selects a fuzzed value satisfied to one of constraints. For now constraints include only known as invalid o

[Qemu-devel] [PATCH V4 4/5] layout: Generator of fuzzed qcow2 images

2014-07-21 Thread Maria Kustova
The layout submodule of the qcow2 package creates a random valid image, randomly selects some amount of its fields, fuzzes them and write the fuzzed image to the file. Fuzzing process can be controlled by an external configuration. Now only a header, header extensions and a backing file name are g

[Qemu-devel] [PATCH V4 1/5] docs: Specification for the image fuzzer

2014-07-21 Thread Maria Kustova
'Overall fuzzer requirements' chapter contains the current product vision and features done and to be done. This chapter is still in progress. Signed-off-by: Maria Kustova --- tests/image-fuzzer/docs/image-fuzzer.txt | 239 +++ 1 file changed, 239 insertions(+) creat

[Qemu-devel] [PATCH V4 2/5] runner: Tool for fuzz tests execution

2014-07-21 Thread Maria Kustova
The purpose of the test runner is to prepare the test environment (e.g. create a work directory, a test image, etc), execute a program under test with parameters, indicate a test failure if the program was killed during the test execution and collect core dumps, logs and other test artifacts. The

[Qemu-devel] [PATCH V4 5/5] package: Public API for image-fuzzer/runner/runner.py

2014-07-21 Thread Maria Kustova
__init__.py provides the public API required by the test runner Signed-off-by: Maria Kustova --- tests/image-fuzzer/qcow2/__init__.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/image-fuzzer/qcow2/__init__.py diff --git a/tests/image-fuzzer/qcow2/__init__.py b/tests/image-f

[Qemu-devel] [PATCH V4 0/5] tests: Add the image fuzzer with qcow2 support

2014-07-21 Thread Maria Kustova
This patch series introduces the image fuzzer, a tool for stability and reliability testing. Its approach is to run large amount of tests in background. During every test a program (e.g. qemu-img) is called to read or modify an invalid test image. A test image has valid inner structure defined by i

Re: [Qemu-devel] [PULL for-2.1 0/8] Trivial patches for 2014-07-18

2014-07-21 Thread Peter Maydell
On 18 July 2014 15:09, Michael Tokarev wrote: > Since we're close to release, I included only really-really-trivial > and safe changes in this pull request, -- only those which wont > break anything. One good patch is a documentation change mentioning > icmp sockets, plus a series from Stefan Wei

Re: [Qemu-devel] [PATCH] kvm-all: Use 'tmpcpu' instead of 'cpu' in sub-looping to avoid 'cpu' be NULL

2014-07-21 Thread Paolo Bonzini
Il 19/07/2014 03:21, Chen Gang ha scritto: > If kvm_arch_remove_sw_breakpoint() in CPU_FOREACH() always be fail, it > will let 'cpu' NULL. And the next kvm_arch_remove_sw_breakpoint() in > QTAILQ_FOREACH_SAFE() will get NULL parameter for 'cpu'. > > And kvm_arch_remove_sw_breakpoint() can assumes

Re: [Qemu-devel] USB MTP emulation state?

2014-07-21 Thread Paolo Bonzini
Il 21/07/2014 11:12, Gerd Hoffmann ha scritto: > On Fr, 2014-07-18 at 15:25 +0200, Paolo Bonzini wrote: >> I took a quick look at the MTP emulation and the first things I noticed are: >> >> * all I/O is synchronous >> >> I guess this is just a limitation of the code > > Correct. > > USB subs

[Qemu-devel] [PATCH for 2.1] ppc: fix -mem-path failure

2014-07-21 Thread Hu Tao
commit e938ba0c tried to enable -mem-path for ppc but breaked some ppc boards. The problems are: 1. it fails when allocating memory for rom, sram whose sizes are less than huge page size: ./ppc-softmmu/qemu-system-ppc -m 512 -mem-path /hugepages/ \ -kernel /home/hutao/Downloads/vmlinux

Re: [Qemu-devel] [PATCH] pci: Don't deliver MSI/MSI-X messages if bus master support is off

2014-07-21 Thread Paolo Bonzini
Il 20/07/2014 21:48, Michael S. Tsirkin ha scritto: > I guess an alternative is for callers to check before > invoking msi_notify. Please note is this is only option > when using e.g. irqfd, so this has some advantages. > Is there a specific device that is affected by this? > I would expect drivers

[Qemu-devel] [PATCH 1/1] virtio-rng: add some trace events

2014-07-21 Thread Amit Shah
Add some trace events to virtio-rng for easier debugging Signed-off-by: Amit Shah --- hw/virtio/virtio-rng.c | 5 + trace-events | 5 + 2 files changed, 10 insertions(+) diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c index 1356aca..84d4651 100644 --- a/hw/virtio/

Re: [Qemu-devel] USB MTP emulation state?

2014-07-21 Thread Gerd Hoffmann
On Fr, 2014-07-18 at 15:25 +0200, Paolo Bonzini wrote: > I took a quick look at the MTP emulation and the first things I noticed are: > > * all I/O is synchronous > >> I guess this is just a limitation of the code Correct. USB subsystem allows to kick off I/O & return (with the special ret

Re: [Qemu-devel] Any one notice my patch about Support vhd type VHD_DIFFERENCING

2014-07-21 Thread ssdxiao
Sorry for the long time to replay you Thanks for your advice At 2014-07-08 05:25:09, "Brian Jackson" wrote: >On Sunday, July 6, 2014 9:09:47 AM CDT, ssdxiao wrote: >> I have commited a patch about how to read and write type VHD_DIFFERENCING? >> Is any one interesting? > >There are a few do

Re: [Qemu-devel] Any one notice my patch about Support vhd type VHD_DIFFERENCING

2014-07-21 Thread ssdxiao
Sorry for the long time to replay you, I will commit my patch at the QEMU2.2 start At 2014-07-07 05:09:44, "Stefan Hajnoczi" wrote: >On Sun, Jul 06, 2014 at 10:09:47PM +0800, ssdxiao wrote: >> I have commited a patch about how to read and write type VHD_DIFFERENCING? >> Is any one intere

Re: [Qemu-devel] [PATCH v2 2/2] docs: update ivshmem device spec

2014-07-21 Thread Claudio Fontana
On 20.07.2014 11:38, David Marchand wrote: > Add some notes on the parts needed to use ivshmem devices: more specifically, > explain the purpose of an ivshmem server and the basic concept to use the > ivshmem devices in guests. > Move some parts of the documentation and re-organise it. > > Signed-

Re: [Qemu-devel] [PATCH v2] virtio-rng: Add human-readable error message for negative max-bytes parameter

2014-07-21 Thread Markus Armbruster
John Snow writes: > On 07/18/2014 09:16 AM, Markus Armbruster wrote: >> Amit Shah writes: >> >>> On (Fri) 18 Jul 2014 [13:54:01], Markus Armbruster wrote: Amit Shah writes: > On (Fri) 18 Jul 2014 [13:15:18], Markus Armbruster wrote: >> Amit Shah writes: >> >>> On (Fri

Re: [Qemu-devel] [PATCH v2] virtio-rng: Add human-readable error message for negative max-bytes parameter

2014-07-21 Thread Markus Armbruster
John Snow writes: > On 07/18/2014 09:16 AM, Markus Armbruster wrote: >> Amit Shah writes: >> >>> On (Fri) 18 Jul 2014 [13:54:01], Markus Armbruster wrote: Amit Shah writes: > On (Fri) 18 Jul 2014 [13:15:18], Markus Armbruster wrote: >> Amit Shah writes: >> >>> On (Fri