Re: [Qemu-devel] virsh dump (qemu guest memory dump?): KASLR enabled linux guest support

2016-11-09 Thread Dave Young
On 11/09/16 at 03:42pm, Wen Congyang wrote: > On 11/09/2016 01:02 PM, Dave Young wrote: > > On 11/09/16 at 11:58am, Wen Congyang wrote: > >> On 11/09/2016 11:17 AM, Dave Young wrote: > >>> Drop qiaonuohan, seems the mail address is wrong.. > >>> > >>> On 11/09/16 at 11:01am, Dave Young wrote: > >>>

Re: [Qemu-devel] [virtio-comment] Re: [PATCH v1] docs/vhost-user: extend the vhost-user protocol to support the vhost-pci based inter-vm communication

2016-11-09 Thread Wei Wang
On 11/08/2016 08:17 PM, Marc-André Lureau wrote: > > Message Specification > - > > Note that all numbers are in the machine native byte order. A > vhost-user message > -consists of 3 header fields and a payload: > +consis

Re: [Qemu-devel] [kvm-unit-tests PATCH v4 10/11] arm/arm64: gicv3: add an IPI test

2016-11-09 Thread Andrew Jones
Argh. I forgot to compile/test arm32/gicv3... Just did now and found a copy+paste error. On Tue, Nov 08, 2016 at 09:21:38PM +0100, Andrew Jones wrote: [...] > diff --git a/lib/arm/asm/arch_gicv3.h b/lib/arm/asm/arch_gicv3.h > index 81a1e5f6c29c..cbcec024a2a6 100644 > --- a/lib/arm/asm/arch_gicv3.

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Cornelia Huck
On Tue, 8 Nov 2016 21:10:19 +0100 Samuel Thibault wrote: > Cornelia Huck, on Tue 08 Nov 2016 12:34:49 +0100, wrote: > > > diff --git a/configure b/configure > > > index fd6f898..e200aa8 100755 > > > --- a/configure > > > +++ b/configure > > > @@ -2926,7 +2926,7 @@ if test "$curses" != "no" ; then

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Samuel Thibault
Hello, Cornelia Huck, on Wed 09 Nov 2016 09:58:59 +0100, wrote: > On Tue, 8 Nov 2016 21:10:19 +0100 > Samuel Thibault wrote: > > Cornelia Huck, on Tue 08 Nov 2016 12:34:49 +0100, wrote: > > “ > > configure test passed without -Werror but failed with -Werror. > > This is probably a bug in the conf

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Cornelia Huck
On Wed, 9 Nov 2016 10:04:02 +0100 Samuel Thibault wrote: > Please post config.log so we can have a clue about what is going > wrong. All these error messages are meant to be reported verbatim, not > reinterpreted :) Well, no error here - just curses=no. config.log attached. The difference seem

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Samuel Thibault
Hello, Cornelia Huck, on Wed 09 Nov 2016 10:12:36 +0100, wrote: > On Wed, 9 Nov 2016 10:04:02 +0100 > Samuel Thibault wrote: > > Please post config.log so we can have a clue about what is going > > wrong. All these error messages are meant to be reported verbatim, not > > reinterpreted :) > > W

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Cornelia Huck
On Wed, 9 Nov 2016 10:28:35 +0100 Samuel Thibault wrote: > > cc -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > > -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings > > -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv > > -Wendif-labels -Wmissing-i

[Qemu-devel] [PATCH V10] fsdev: add IO throttle support to fsdev devices

2016-11-09 Thread Pradeep Jagadeesh
Uses throttling APIs to limit I/O bandwidth and number of operations on the devices which use 9p-local driver. Signed-off-by: Pradeep Jagadeesh --- fsdev/Makefile.objs | 2 +- fsdev/file-op-9p.h | 3 ++ fsdev/qemu-fsdev-opts.c | 77 - fsdev/

Re: [Qemu-devel] BdrvDirtyBitmap and bdrv_snapshot_goto

2016-11-09 Thread Kevin Wolf
Am 08.11.2016 um 17:48 hat Vladimir Sementsov-Ogievskiy geschrieben: > 08.11.2016 15:18, Kevin Wolf wrote: > >Am 08.11.2016 um 12:08 hat Vladimir Sementsov-Ogievskiy geschrieben: > >>08.11.2016 14:05, Kevin Wolf wrote: > >>>Am 07.11.2016 um 17:10 hat Max Reitz geschrieben: > On 07.11.2016 16:24

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Samuel Thibault
Hello, Cornelia Huck, on Wed 09 Nov 2016 10:40:28 +0100, wrote: > Still curses=no... log attached. Oops, sorry, I misplaced my code, and it somehow worked in my case. Could you give a try at the attached patch instead? Thanks, Samuel commit cc8965eb848f53599895a650a6e062319189be1f Author: Samuel

Re: [Qemu-devel] [Qemu-block] [PATCH] Added iopmem device emulation

2016-11-09 Thread Stefan Hajnoczi
On Tue, Nov 08, 2016 at 09:46:47AM -0700, Logan Gunthorpe wrote: > On 08/11/16 08:58 AM, Stefan Hajnoczi wrote: > > My concern with the current implementation is that a PCI MMIO access > > invokes a synchronous blk_*() call. That can pause vcpu execution while > > I/O is happening and therefore le

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Cornelia Huck
On Wed, 9 Nov 2016 10:52:38 +0100 Samuel Thibault wrote: > Hello, > > Cornelia Huck, on Wed 09 Nov 2016 10:40:28 +0100, wrote: > > Still curses=no... log attached. > > Oops, sorry, I misplaced my code, and it somehow worked in my case. > Could you give a try at the attached patch instead? Work

Re: [Qemu-devel] [Bug 1639394] Re: Unable to boot Solaris 8/9 x86 under Fedora 24

2016-11-09 Thread xtrondo
yes, 10/11/12 beta work without a problem(and really fast), 8/9 have been reported to work at least since 0.6.0. with the "ide" fix committed to that version. The problem seems related with "ide" emulation and real mode drivers, so I don't think an older BSD can reproduce. I will test if an older

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Sergey Smolov
On 09.11.2016 13:04, Cornelia Huck wrote: On Wed, 9 Nov 2016 10:52:38 +0100 Samuel Thibault wrote: Hello, Cornelia Huck, on Wed 09 Nov 2016 10:40:28 +0100, wrote: Still curses=no... log attached. Oops, sorry, I misplaced my code, and it somehow worked in my case. Could you give a try at th

[Qemu-devel] [PATCH] cipher: fix leak on initialization error

2016-11-09 Thread Marc-André Lureau
If ctx->blocksize != XTS_BLOCK_SIZE, ctx will be leaked. Assign ctx earler, and call qcrypto_cipher_free() on error. Spotted thanks to ASAN. Signed-off-by: Marc-André Lureau --- crypto/cipher-nettle.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/crypto/cip

Re: [Qemu-devel] [PATCH] cipher: fix leak on initialization error

2016-11-09 Thread Daniel P. Berrange
On Wed, Nov 09, 2016 at 02:18:15PM +0400, Marc-André Lureau wrote: > If ctx->blocksize != XTS_BLOCK_SIZE, ctx will be leaked. > Assign ctx earler, and call qcrypto_cipher_free() on error. > > Spotted thanks to ASAN. > > Signed-off-by: Marc-André Lureau > --- > crypto/cipher-nettle.c | 15 ++

Re: [Qemu-devel] [PATCH V10] fsdev: add IO throttle support to fsdev devices

2016-11-09 Thread Alberto Garcia
On Wed 09 Nov 2016 10:50:40 AM CET, Pradeep Jagadeesh wrote: > Uses throttling APIs to limit I/O bandwidth and number of operations > on the devices which use 9p-local driver. > > Signed-off-by: Pradeep Jagadeesh It looks good now, thanks! > +void fsdev_throttle_parse_opts(QemuOpts *opts, FsThr

Re: [Qemu-devel] [PATCH] cipher: fix leak on initialization error

2016-11-09 Thread Marc-André Lureau
Hi - Original Message - > On Wed, Nov 09, 2016 at 02:18:15PM +0400, Marc-André Lureau wrote: > > If ctx->blocksize != XTS_BLOCK_SIZE, ctx will be leaked. > > Assign ctx earler, and call qcrypto_cipher_free() on error. > > > > Spotted thanks to ASAN. > > > > Signed-off-by: Marc-André Lure

Re: [Qemu-devel] [PATCH] Fix legacy ncurses detection.

2016-11-09 Thread Samuel Thibault
Sergey Smolov, on Wed 09 Nov 2016 13:15:18 +0300, wrote: > Is it planned to publish this patch into master? Yes. Samuel

[Qemu-devel] [PATCHv2] cipher: fix leak on initialization error

2016-11-09 Thread Marc-André Lureau
On error path, ctx may be leaked. Assign ctx earlier, and call qcrypto_cipher_free() on error. Spotted thanks to ASAN. Signed-off-by: Marc-André Lureau --- crypto/cipher-nettle.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crypto/cipher-nettle.c b/crypto/cipher-nett

[Qemu-devel] [PATCH] Fix cursesw detection

2016-11-09 Thread Samuel Thibault
On systems which do not provide ncursesw.pc and whose /usr/include/curses.h does not include wide support, we should not only try with no -I, i.e. /usr/include, but also with -I/usr/include/ncursesw. To properly detect for wide support with and without -Werror, we need to check for the presence of

Re: [Qemu-devel] [PATCHv2] cipher: fix leak on initialization error

2016-11-09 Thread Daniel P. Berrange
On Wed, Nov 09, 2016 at 02:28:18PM +0400, Marc-André Lureau wrote: > On error path, ctx may be leaked. Assign ctx earlier, and call > qcrypto_cipher_free() on error. > > Spotted thanks to ASAN. > > Signed-off-by: Marc-André Lureau > --- > crypto/cipher-nettle.c | 5 ++--- > 1 file changed, 2 in

Re: [Qemu-devel] virsh dump (qemu guest memory dump?): KASLR enabled linux guest support

2016-11-09 Thread Andrew Jones
On Wed, Nov 09, 2016 at 11:01:46AM +0800, Dave Young wrote: > Hi, > > Latest linux kernel enabled kaslr to randomiz phys/virt memory > addresses, we had some effort to support kexec/kdump so that crash > utility can still works in case crashed kernel has kaslr enabled. > > But according to Dave A

[Qemu-devel] [PATCH] test-replication: fix leaks

2016-11-09 Thread Marc-André Lureau
ASAN spotted: SUMMARY: AddressSanitizer: 301990288 byte(s) leaked in 33 allocation(s). Signed-off-by: Marc-André Lureau --- tests/test-replication.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test-replication.c b/tests/test-replication.c index 0997bd8..fac2da3 100644 --- a/test

Re: [Qemu-devel] virtIO question

2016-11-09 Thread zhun...@gmail.com
I want to ask a another question,why a virt_queue in virtio include in_sgs and out_sgs,for example,send_queue of virtIO net driver have in_sgs and out_sgs,when transmit data,It add buffer to out_sgs of send_queue,but how it to use in_sgs?? zhun...@gmail.com From: jitendra kumar khasdev Date

[Qemu-devel] [PATCH] test-uuid: fix leak

2016-11-09 Thread Marc-André Lureau
ASAN spotted: SUMMARY: AddressSanitizer: 74 byte(s) leaked in 2 allocation(s). Signed-off-by: Marc-André Lureau --- tests/test-uuid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-uuid.c b/tests/test-uuid.c index 77dcdc4..d3a2791 100644 --- a/tests/test-uuid.c +++ b/tests/test-u

[Qemu-devel] [Bug 474968] Re: kvm smb server hogs cpu guest freeze

2016-11-09 Thread Thomas Huth
Triaging old bug tickets... Can you still reproduce this behavior with the latest version, or has the problem been fixed now? ** Changed in: qemu Status: Confirmed => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [Qemu-devel] [kvm-unit-tests PATCH v4 03/11] arm/arm64: smp: support more than 8 cpus

2016-11-09 Thread Andre Przywara
Hi, On 08/11/16 20:21, Andrew Jones wrote: > By adding support for launching with gicv3 we can break the 8 vcpu > limit. This patch adds support to smp code and also selects the > vgic model corresponding to the host. The vgic model may also be > manually selected by adding e.g. -machine gic-versi

[Qemu-devel] [Bug 899961] Re: qemu/kvm locks up when run 32bit userspace with 64bit kernel

2016-11-09 Thread Thomas Huth
The bug in Debian has been marked as "Fix released", so I assume this has been fixed in upstream QEMU, too? Or is there still anything left to do here? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is

Re: [Qemu-devel] [RFC PATCH v5 2/2] hw/intc/arm_gicv3_kvm: Implement get/put functions

2016-11-09 Thread Vijay Kilari
On Fri, Oct 7, 2016 at 9:00 PM, Peter Maydell wrote: > On 20 September 2016 at 07:55, wrote: >> From: Vijaya Kumar K >> >> This actually implements pre_save and post_load methods for in-kernel >> vGICv3. >> >> Signed-off-by: Pavel Fedin >> Signed-off-by: Peter Maydell >> Signed-off-by: Vijaya

Re: [Qemu-devel] virsh dump (qemu guest memory dump?): KASLR enabled linux guest support

2016-11-09 Thread Laszlo Ersek
On 11/09/16 11:40, Andrew Jones wrote: > On Wed, Nov 09, 2016 at 11:01:46AM +0800, Dave Young wrote: >> Hi, >> >> Latest linux kernel enabled kaslr to randomiz phys/virt memory >> addresses, we had some effort to support kexec/kdump so that crash >> utility can still works in case crashed kernel ha

Re: [Qemu-devel] Crashing in tcp_close

2016-11-09 Thread Stefan Hajnoczi
On Tue, Nov 08, 2016 at 09:22:25PM +, Brian Candler wrote: > On 07/11/2016 10:42, Stefan Hajnoczi wrote: > > On Mon, Nov 07, 2016 at 08:42:17AM +, Brian Candler wrote: > > > >On 06/11/2016 18:04, Samuel Thibault wrote: > > > > > >Brian, could you run it with > > > > > > > > > > > >export MA

Re: [Qemu-devel] Sphinx for QEMU docs? (and a doc-comment format question)

2016-11-09 Thread Stefan Hajnoczi
On Tue, Nov 08, 2016 at 11:24:21AM -0500, John Snow wrote: > > > On 11/08/2016 11:20 AM, Stefan Hajnoczi wrote: > > On Mon, Nov 07, 2016 at 05:52:37PM -0500, John Snow wrote: > > > On 11/07/2016 08:30 AM, Stefan Hajnoczi wrote: > > > > On Sat, Nov 05, 2016 at 06:42:23PM +, Peter Maydell wrote

Re: [Qemu-devel] virsh dump (qemu guest memory dump?): KASLR enabled linux guest support

2016-11-09 Thread Daniel P. Berrange
On Wed, Nov 09, 2016 at 12:26:17PM +0100, Laszlo Ersek wrote: > On 11/09/16 11:40, Andrew Jones wrote: > > On Wed, Nov 09, 2016 at 11:01:46AM +0800, Dave Young wrote: > >> Hi, > >> > >> Latest linux kernel enabled kaslr to randomiz phys/virt memory > >> addresses, we had some effort to support kexe

Re: [Qemu-devel] virsh dump (qemu guest memory dump?): KASLR enabled linux guest support

2016-11-09 Thread Andrew Jones
On Wed, Nov 09, 2016 at 11:37:35AM +, Daniel P. Berrange wrote: > On Wed, Nov 09, 2016 at 12:26:17PM +0100, Laszlo Ersek wrote: > > On 11/09/16 11:40, Andrew Jones wrote: > > > On Wed, Nov 09, 2016 at 11:01:46AM +0800, Dave Young wrote: > > >> Hi, > > >> > > >> Latest linux kernel enabled kaslr

Re: [Qemu-devel] [kvm-unit-tests PATCH v4 06/11] arm/arm64: add initial gicv2 support

2016-11-09 Thread Andre Przywara
Hi, On 08/11/16 20:21, Andrew Jones wrote: > Add some gicv2 support. This just adds init and enable > functions, allowing unit tests to start messing with it. > > Signed-off-by: Andrew Jones > > --- > v4: > - only take defines from kernel we need now [Andre] > - moved defines to asm/gic.h so

Re: [Qemu-devel] [kvm-unit-tests PATCH v4 03/11] arm/arm64: smp: support more than 8 cpus

2016-11-09 Thread Andrew Jones
On Wed, Nov 09, 2016 at 11:12:03AM +, Andre Przywara wrote: [...] > > diff --git a/lib/arm/setup.c b/lib/arm/setup.c > > index 7e7b39f11dde..b6e2d5815e72 100644 > > --- a/lib/arm/setup.c > > +++ b/lib/arm/setup.c > > @@ -24,12 +24,22 @@ extern unsigned long stacktop; > > extern void io_init(vo

Re: [Qemu-devel] virsh dump (qemu guest memory dump?): KASLR enabled linux guest support

2016-11-09 Thread Daniel P. Berrange
On Wed, Nov 09, 2016 at 12:48:09PM +0100, Andrew Jones wrote: > On Wed, Nov 09, 2016 at 11:37:35AM +, Daniel P. Berrange wrote: > > On Wed, Nov 09, 2016 at 12:26:17PM +0100, Laszlo Ersek wrote: > > > On 11/09/16 11:40, Andrew Jones wrote: > > > > On Wed, Nov 09, 2016 at 11:01:46AM +0800, Dave Y

Re: [Qemu-devel] [kvm-unit-tests PATCH v4 03/11] arm/arm64: smp: support more than 8 cpus

2016-11-09 Thread Andre Przywara
Hi, On 09/11/16 11:57, Andrew Jones wrote: > On Wed, Nov 09, 2016 at 11:12:03AM +, Andre Przywara wrote: > [...] >>> diff --git a/lib/arm/setup.c b/lib/arm/setup.c >>> index 7e7b39f11dde..b6e2d5815e72 100644 >>> --- a/lib/arm/setup.c >>> +++ b/lib/arm/setup.c >>> @@ -24,12 +24,22 @@ extern uns

Re: [Qemu-devel] [RFC 15/17] ppc: Check that CPU model stays consistent across migration

2016-11-09 Thread David Gibson
On Wed, Nov 09, 2016 at 05:06:23PM +1100, Alexey Kardashevskiy wrote: > On 09/11/16 15:24, David Gibson wrote: > > On Tue, Nov 08, 2016 at 05:03:49PM +1100, Alexey Kardashevskiy wrote: > >> On 08/11/16 16:29, David Gibson wrote: > >>> On Fri, Nov 04, 2016 at 06:54:48PM +1100, Alexey Kardashevskiy w

Re: [Qemu-devel] [kvm-unit-tests PATCH v4 06/11] arm/arm64: add initial gicv2 support

2016-11-09 Thread Andrew Jones
On Wed, Nov 09, 2016 at 11:53:39AM +, Andre Przywara wrote: [...] > > diff --git a/lib/arm/asm/gic.h b/lib/arm/asm/gic.h > > new file mode 100644 > > index ..ec92f1064dc0 > > --- /dev/null > > +++ b/lib/arm/asm/gic.h > > @@ -0,0 +1,44 @@ > > +/* > > + * Copyright (C) 2016, Red Hat I

[Qemu-devel] [PATCH 1/2] travis: trim out most clang builds

2016-11-09 Thread Alex Bennée
From: "Daniel P. Berrange" We test with both gcc and clang in order to detect cases where clang issues warnings that gcc misses. To achieve this though we don't need to build QEMU in multiple different configurations. Just a single clang-on-linux build will be sufficient, if we have an "all enabl

[Qemu-devel] [PATCH 2/2] travis: add Trusty with clang stable build

2016-11-09 Thread Alex Bennée
Although we've reduced the matrix to avoid repeating clang builds we can still add an additional clang build to use the latest stable version of clang which will typically be available on current distros. Signed-off-by: Alex Bennée --- .travis.yml | 20 1 file changed, 20 in

Re: [Qemu-devel] [kvm-unit-tests PATCH v4 03/11] arm/arm64: smp: support more than 8 cpus

2016-11-09 Thread Andrew Jones
On Wed, Nov 09, 2016 at 12:01:42PM +, Andre Przywara wrote: > Hi, > > On 09/11/16 11:57, Andrew Jones wrote: > > On Wed, Nov 09, 2016 at 11:12:03AM +, Andre Przywara wrote: > > [...] > >>> diff --git a/lib/arm/setup.c b/lib/arm/setup.c > >>> index 7e7b39f11dde..b6e2d5815e72 100644 > >>> --

[Qemu-devel] [PATCH 0/2] Current Travis patches

2016-11-09 Thread Alex Bennée
Hi, Not much here but since Daniel sped up the build by trimming out most of the clang mirrors of gcc I added one additional clang build which uses the current stable branch. Hopefully this still gives us enough coverage. As this speeds up testing on merges and doesn't affect QEMU code itself I'l

Re: [Qemu-devel] [PULL v3 00/30] Misc patches for 2016-10-31

2016-11-09 Thread Paolo Bonzini
> but then fails the assertion, which means read_sync() is returning 0 in > our particular test (which sort of makes sense: the test is purposefully > truncating the server stream at various points to see how the client > reacts). I'm trying to figure out if always treating early EOF as a > read

Re: [Qemu-devel] [PATCH V10] fsdev: add IO throttle support to fsdev devices

2016-11-09 Thread Pradeep Jagadeesh
On 11/9/2016 11:23 AM, Alberto Garcia wrote: On Wed 09 Nov 2016 10:50:40 AM CET, Pradeep Jagadeesh wrote: Uses throttling APIs to limit I/O bandwidth and number of operations on the devices which use 9p-local driver. Signed-off-by: Pradeep Jagadeesh It looks good now, thanks! +void fsdev_

Re: [Qemu-devel] virsh dump (qemu guest memory dump?): KASLR enabled linux guest support

2016-11-09 Thread Andrew Jones
On Wed, Nov 09, 2016 at 11:58:19AM +, Daniel P. Berrange wrote: > On Wed, Nov 09, 2016 at 12:48:09PM +0100, Andrew Jones wrote: > > On Wed, Nov 09, 2016 at 11:37:35AM +, Daniel P. Berrange wrote: > > > On Wed, Nov 09, 2016 at 12:26:17PM +0100, Laszlo Ersek wrote: > > > > On 11/09/16 11:40,

Re: [Qemu-devel] [PATCH] spapr: Fix migration of PCI host bridges from qemu-2.7

2016-11-09 Thread David Gibson
On Wed, Nov 09, 2016 at 04:14:25PM +1100, Alexey Kardashevskiy wrote: > On 09/11/16 14:45, David Gibson wrote: > > daa2369 "spapr_pci: Add a 64-bit MMIO window" subtly broke migration from > > qemu-2.7 to the current version. It split the device's MMIO window into > > two pieces for 32-bit and 64-

[Qemu-devel] [PATCHv2 3/3] Split ISA and sysbus versions of m48t59 device

2016-11-09 Thread David Gibson
The m48t59 device supports both ISA and direct sysbus attached versions of the device in the one .c file. This can be awkward for some embedded machine types which need the sysbus M48T59, but don't want to pull in the ISA bus code and its other dependencies. Therefore, this patch splits out the c

[Qemu-devel] [PATCHv2 2/3] Allow ISA bus to be configured out

2016-11-09 Thread David Gibson
Currently, the code to handle the legacy ISA bus is always included in qemu. However there are lots of platforms that don't include ISA legacy devies, and quite a few that have never used ISA legacy devices at all. This patch allows the ISA bus code to be disabled in the configuration for platfor

[Qemu-devel] [PATCHv2 1/3] Split serial-isa into its own config option

2016-11-09 Thread David Gibson
At present, the core device model code for 8250-like serial ports (serial.c) and the code for serial ports attached to ISA-style legacy IO (serial-isa.c) are both controlled by the CONFIG_SERIAL variable. There are lots and lots of embedded platforms that have 8250-like serial ports but have never

[Qemu-devel] [PATCHv2 0/3] Allow ISA to be disabled on some platforms

2016-11-09 Thread David Gibson
This is a rebase and revision of a series I wrote quite some time ago. This makes some cleanups that are a start on allowing ISA to be compiled out for platforms which don't use it. Unfortunately, a lot of the pieces here don't have a clear maintainer. So, I'm hoping to get some Acked-bys from the

Re: [Qemu-devel] [PATCH 2/3] target-i386: Add Intel HAX files

2016-11-09 Thread Stefan Hajnoczi
On Tue, Nov 08, 2016 at 04:39:28PM +0100, Vincent Palatin wrote: Please run scripts/checkpatch.pl to verify that the code follows the QEMU coding style. > +hax_fd hax_host_open_vcpu(int vmid, int vcpuid) > +{ > +char *devfs_path = NULL; > +hax_fd fd; > + > +devfs_path = hax_vcpu_devfs

Re: [Qemu-devel] [PATCH v2] docs: add document to explain the usage of vNVDIMM

2016-11-09 Thread Stefan Hajnoczi
On Wed, Nov 09, 2016 at 09:04:48AM +0800, Haozhong Zhang wrote: > Signed-off-by: Haozhong Zhang > Reviewed-by: Xiao Guangrong > Reviewed-by: Stefan Hajnoczi > --- > Changes since v1: > * explicitly state the block window mode is not supported (Stefan Hajnoczi) > * typo fix: label_size ==> label-

Re: [Qemu-devel] [kvm-unit-tests PATCH v4 09/11] arm/arm64: add initial gicv3 support

2016-11-09 Thread Andre Przywara
Hi, On 08/11/16 20:21, Andrew Jones wrote: > Signed-off-by: Andrew Jones > > --- > v4: > - only take defines from kernel we need now [Andre] > - simplify enable by not caring if we reinit the distributor [drew] > v2: > - configure irqs as NS GRP1 > --- > lib/arm/asm/arch_gicv3.h | 42 +

[Qemu-devel] [Bug 1546445] Re: support vhost user without specifying vhostforce

2016-11-09 Thread Louis Bouchard
** Tags removed: sts-sru -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1546445 Title: support vhost user without specifying vhostforce Status in Ubuntu Cloud Archive: Fix Released Status in Ubun

Re: [Qemu-devel] [PATCH] spapr: Fix migration of PCI host bridges from qemu-2.7

2016-11-09 Thread Alexey Kardashevskiy
On 09/11/16 23:19, David Gibson wrote: > On Wed, Nov 09, 2016 at 04:14:25PM +1100, Alexey Kardashevskiy wrote: >> On 09/11/16 14:45, David Gibson wrote: >>> daa2369 "spapr_pci: Add a 64-bit MMIO window" subtly broke migration from >>> qemu-2.7 to the current version. It split the device's MMIO win

Re: [Qemu-devel] [PULL 0/3] Block patches

2016-11-09 Thread Stefan Hajnoczi
On Tue, Nov 08, 2016 at 06:12:39PM +, Stefan Hajnoczi wrote: > The following changes since commit 207faf24c58859f5240f66bf6decc33b87a1776e: > > Merge remote-tracking branch 'pm215/tags/pull-target-arm-20161107' into > staging (2016-11-07 14:02:15 +) > > are available in the git reposit

Re: [Qemu-devel] [PULL 0/1] Tracing patches

2016-11-09 Thread Stefan Hajnoczi
On Tue, Nov 08, 2016 at 06:17:32PM +, Stefan Hajnoczi wrote: > The following changes since commit 207faf24c58859f5240f66bf6decc33b87a1776e: > > Merge remote-tracking branch 'pm215/tags/pull-target-arm-20161107' into > staging (2016-11-07 14:02:15 +) > > are available in the git reposit

[Qemu-devel] [Bug 680758] Re: balloon only resizes by 2M

2016-11-09 Thread Thomas Huth
Triaging old bug tickets ... can you still reproduce this issue with the latest version of QEMU / the latest version of the balloon driver in the guest? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is

Re: [Qemu-devel] [PATCH v7 RFC] block/vxhs: Initial commit to add Veritas HyperScale VxHS block device support

2016-11-09 Thread Paolo Bonzini
On 08/11/2016 16:39, Stefan Hajnoczi wrote: > The current status is: > > 1. virtio-blk and virtio-scsi support multiple queues but these queues >are processed from a single thread today. > > 2. MemoryRegions can be marked with !global_locking so its handler >functions are dispatched wit

[Qemu-devel] [PATCH v2] vhost: Update 'ioeventfd_started' with host notifiers

2016-11-09 Thread Felipe Franciosi
Following the recent refactor of virtio notfiers [1], more specifically the patch that uses virtio_bus_set_host_notifier [2] by default, core virtio code requires 'ioeventfd_started' to be set to true/false when the host notifiers are configured. Because not all vhost devices were update (eg. vhost

[Qemu-devel] [PULL for-2.8 0/1] ipxe: update to 20161108 snapshot.

2016-11-09 Thread Gerd Hoffmann
tags/pull-ipxe-20161109-1 for you to fetch changes up to 129fa54c734f4dbaf8d3bb9ca47283a2add2e4dc: ipxe: update to 20161108 snapshot (2016-11-09 09:49:33 +0100) ipxe: update to 2016110

[Qemu-devel] [Bug 721793] Re: QEMU freezes on startup (100% CPU utilization)

2016-11-09 Thread Thomas Huth
Closing as "Fix released" according to comment #3 ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/721793 Title: QEMU freezes on startup (100% C

[Qemu-devel] [PULL 1/1] ipxe: update to 20161108 snapshot

2016-11-09 Thread Gerd Hoffmann
git shortlog 04186319..b991c67c === Laszlo Ersek (3): [efi] Install the HII config access protocol on a child of the SNP handle [librm] Conditionalize the workaround for the Tivoli VMM's SSE garbling [build] Disable TIVOLI_VMM_WORKAROUND in the qemu co

[Qemu-devel] [Bug 772275] Re: qemu-kvm-0.14.0 + kernel 2.6.35 : win2008r2 virtio nic hanging

2016-11-09 Thread Thomas Huth
Triaging old bug tickets ... can you still reproduce this problem with the latest version of QEMU and the latest version of the virtio-net drivers? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subs

[Qemu-devel] [Bug 881637] Re: QEMU fails to build on OpenBSD/hppa

2016-11-09 Thread Thomas Huth
Do you still have this problem with the latest version of QEMU and a more recent version of GCC? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/881

Re: [Qemu-devel] [PATCH] nbd: Don't inf-loop on early EOF

2016-11-09 Thread Paolo Bonzini
On 07/11/2016 23:45, Eric Blake wrote: > On 11/07/2016 04:22 PM, Max Reitz wrote: >> On 07.11.2016 21:38, Eric Blake wrote: >>> Commit 7d3123e converted a single read_sync() into a while loop >>> that assumed that read_sync() would either make progress or give >>> an error. But when the server ha

Re: [Qemu-devel] [kvm-unit-tests PATCH v4 09/11] arm/arm64: add initial gicv3 support

2016-11-09 Thread Andrew Jones
On Wed, Nov 09, 2016 at 12:35:48PM +, Andre Przywara wrote: [...] > > diff --git a/lib/arm/asm/gic-v3.h b/lib/arm/asm/gic-v3.h > > new file mode 100644 > > index ..03321f8c860f > > --- /dev/null > > +++ b/lib/arm/asm/gic-v3.h > > @@ -0,0 +1,92 @@ > > +/* > > + * All GIC* defines are

[Qemu-devel] [PATCH] vhost: Use vbus var instead of VIRTIO_BUS() macro

2016-11-09 Thread Felipe Franciosi
Recent changes on vhost_dev_enable/disable_notifiers() produced a VirtioBusState vbus variable which can be used instead of the VIRTIO_BUS() macro. This commit just makes the code a little bit cleaner and more consistent. Signed-off-by: Felipe Franciosi --- hw/virtio/vhost.c | 14 ++

Re: [Qemu-devel] [PATCH] vhost: Use vbus var instead of VIRTIO_BUS() macro

2016-11-09 Thread Paolo Bonzini
On 09/11/2016 14:18, Felipe Franciosi wrote: > Recent changes on vhost_dev_enable/disable_notifiers() produced a > VirtioBusState vbus variable which can be used instead of the > VIRTIO_BUS() macro. This commit just makes the code a little bit cleaner > and more consistent. > > Signed-off-by: Fe

Re: [Qemu-devel] [PATCH] vhost: Use vbus var instead of VIRTIO_BUS() macro

2016-11-09 Thread Felipe Franciosi
> On 9 Nov 2016, at 14:22, Paolo Bonzini wrote: > > > > On 09/11/2016 14:18, Felipe Franciosi wrote: >> Recent changes on vhost_dev_enable/disable_notifiers() produced a >> VirtioBusState vbus variable which can be used instead of the >> VIRTIO_BUS() macro. This commit just makes the code a li

[Qemu-devel] [PATCH v2 2/5] target-m68k: Do not cpu_abort on undefined insns

2016-11-09 Thread Richard Henderson
Report this properly via exception and, importantly, allow the disassembler the chance to tell us what insn is not handled. Reviewed-by: Laurent Vivier Signed-off-by: Richard Henderson --- target-m68k/translate.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/target

[Qemu-devel] [PATCH v2 0/5] target-m68k-patches

2016-11-09 Thread Richard Henderson
Changes since v1: * Tweaked local variable decls for movem. * Fixed the bitfield patches such that they work with linux-user-test-0.3. (Along with the whole passle of extra patches required to make that work.) The register bitfield patch still depends on the patches posted here in another

[Qemu-devel] [PATCH v2 3/5] target-m68k: Inline shifts

2016-11-09 Thread Richard Henderson
Also manage word and byte operands and fix the computation of overflow in the case of M68000 arithmetic shifts. Signed-off-by: Laurent Vivier Signed-off-by: Richard Henderson --- target-m68k/helper.c| 52 target-m68k/helper.h| 3 - target-m68k/translate.c | 214 +

Re: [Qemu-devel] [PATCH] hw/input/hid: support alternative sysrq/break scancodes for gtk-vnc

2016-11-09 Thread Gerd Hoffmann
Hi, > Now, it isn't obvious to me which sequence is really "right", but as the > 0x54/0xc6 keycodes are currently unused in hid.c, supporting both seems like > the pragmatic solution to me. The USB HID keyboard boot protocol used by > hid.c doesn't have any other mapping applicable to these key

[Qemu-devel] [PATCH v2 1/5] target-m68k: Implement 680x0 movem

2016-11-09 Thread Richard Henderson
From: Laurent Vivier 680x0 movem can load/store words and long words and can use more addressing modes. Coldfire can only use long words with (Ax) and (d16,Ax) addressing modes. Signed-off-by: Laurent Vivier Signed-off-by: Richard Henderson --- target-m68k/translate.c | 130 +

[Qemu-devel] [PATCH v2 4/5] target-m68k: Implement bitfield ops for registers

2016-11-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/translate.c | 210 1 file changed, 210 insertions(+) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 1b3765f..be59c37 100644 --- a/target-m68k/translate.c +++ b/target-m68k/tran

[Qemu-devel] [PULL for-2.8 0/2] usb: two memory leak fixes.

2016-11-09 Thread Gerd Hoffmann
in the git repository at: git://git.kraxel.org/qemu tags/pull-usb-20161109-1 for you to fetch changes up to f0bf4999eae156142a86290fda45de4094e3e8b4: usbredir: free vm_change_state_handler in usbredir destroy dispatch (2016-11-08 15:0

Re: [Qemu-devel] [Qemu-block] [PATCH for-2.8] block: Let write zeroes fallback work even with small max_transfer

2016-11-09 Thread Stefan Hajnoczi
On Tue, Nov 08, 2016 at 04:52:15PM -0600, Eric Blake wrote: > Commit 443668ca rewrote the write_zeroes logic to guarantee that > an unaligned request never crosses a cluster boundary. But > in the rewrite, the new code assumed that at most one iteration > would be needed to get to an alignment bou

[Qemu-devel] [PATCH v2 5/5] target-m68k: Implement bitfield ops for memory

2016-11-09 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-m68k/cpu.h | 1 + target-m68k/helper.h| 7 ++ target-m68k/op_helper.c | 185 target-m68k/translate.c | 142 - 4 files changed, 333 insertions(+), 2 deleti

[Qemu-devel] [PULL 1/2] usb: ehci: fix memory leak in ehci_init_transfer

2016-11-09 Thread Gerd Hoffmann
From: Li Qiang In ehci_init_transfer function, if the 'cpage' is bigger than 4, it doesn't free the 'p->sgl' once allocated previously thus leading a memory leak issue. This patch avoid this. Signed-off-by: Li Qiang Message-id: 5821c0f4.091c6b0a.e0c92.e...@mx.google.com Signed-off-by: Gerd Hoff

[Qemu-devel] [PULL 2/2] usbredir: free vm_change_state_handler in usbredir destroy dispatch

2016-11-09 Thread Gerd Hoffmann
From: Li Qiang In usbredir destroy dispatch function, it doesn't free the vm change state handler once registered in usbredir_realize function. This will lead a memory leak issue. This patch avoid this. Signed-off-by: Li Qiang Reviewed-by: Marc-André Lureau Message-id: 58216976.d0236b0a.77b99.

Re: [Qemu-devel] [PATCH] test-replication: fix leaks

2016-11-09 Thread Stefan Hajnoczi
On Wed, Nov 09, 2016 at 02:45:47PM +0400, Marc-André Lureau wrote: > ASAN spotted: > SUMMARY: AddressSanitizer: 301990288 byte(s) leaked in 33 allocation(s). > > Signed-off-by: Marc-André Lureau > --- > tests/test-replication.c | 3 +++ > 1 file changed, 3 insertions(+) Thanks, applied to my bl

Re: [Qemu-devel] [PATCH v6 00/10] Convert msix_init() to error

2016-11-09 Thread Marcel Apfelbaum
On 11/05/2016 04:07 AM, Cao jin wrote: v6 changelog: 1. re-spin vfio-pci related code on patch 3: for -ENOTSUP, report & free Error, for other error, propagate the Error. (Marcel) CC: Jiri Pirko CC: Gerd Hoffmann CC: Dmitry Fleytman CC: Jason Wang CC: Michael S. Tsirkin CC: Hannes Reinec

Re: [Qemu-devel] [PATCH 0/2] Current Travis patches

2016-11-09 Thread Stefan Hajnoczi
On Wed, Nov 09, 2016 at 12:11:55PM +, Alex Bennée wrote: > Hi, > > Not much here but since Daniel sped up the build by trimming out most > of the clang mirrors of gcc I added one additional clang build which > uses the current stable branch. Hopefully this still gives us enough > coverage. >

Re: [Qemu-devel] [PATCH V5] docs: add PCIe devices placement guidelines

2016-11-09 Thread Marcel Apfelbaum
On 11/01/2016 03:39 PM, Marcel Apfelbaum wrote: Proposes best practices on how to use PCI Express/PCI device in PCI Express based machines and explain the reasoning behind them. Hi Michael, Can you please apply this doc for 2.8 ? Thanks, Marcel Reviewed-by: Laszlo Ersek Signed-off-by: Ma

Re: [Qemu-devel] virsh dump (qemu guest memory dump?): KASLR enabled linux guest support

2016-11-09 Thread Dave Anderson
- Original Message - > Hi, > > Latest linux kernel enabled kaslr to randomiz phys/virt memory > addresses, we had some effort to support kexec/kdump so that crash > utility can still works in case crashed kernel has kaslr enabled. > > But according to Dave Anderson virsh dump does not w

Re: [Qemu-devel] [PATCH v2 0/5] target-m68k-patches

2016-11-09 Thread Laurent Vivier
Le 09/11/2016 à 14:46, Richard Henderson a écrit : > Changes since v1: > * Tweaked local variable decls for movem. > * Fixed the bitfield patches such that they work with linux-user-test-0.3. > (Along with the whole passle of extra patches required to make that work.) > > The register bitf

Re: [Qemu-devel] virsh dump (qemu guest memory dump?): KASLR enabled linux guest support

2016-11-09 Thread Dave Anderson
- Original Message - > On 11/09/16 at 11:58am, Wen Congyang wrote: > > On 11/09/2016 11:17 AM, Dave Young wrote: > > > Drop qiaonuohan, seems the mail address is wrong.. > > > > > > On 11/09/16 at 11:01am, Dave Young wrote: > > >> Hi, > > >> > > >> Latest linux kernel enabled kaslr to ra

[Qemu-devel] [PULL 2/3] hw/input/hid: support alternative sysrq/break scancodes for gtk-vnc

2016-11-09 Thread Gerd Hoffmann
From: Peter Korsgaard The printscreen/sysrq and pause/break keys currently don't work for guests using -usbdevice keyboard when accessed through vnc with a gtk-vnc based client. The reason for this is a mismatch between gtk-vnc and qemu in how these keys should be mapped to XT keycodes. On the

[Qemu-devel] [PULL 3/3] Fix cursesw detection

2016-11-09 Thread Gerd Hoffmann
From: Samuel Thibault On systems which do not provide ncursesw.pc and whose /usr/include/curses.h does not include wide support, we should not only try with no -I, i.e. /usr/include, but also with -I/usr/include/ncursesw. To properly detect for wide support with and without -Werror, we need to c

[Qemu-devel] [PULL for-2.8 0/3] ui: bugfixes for gtk, curses and hid emulation.

2016-11-09 Thread Gerd Hoffmann
6-11-07 14:02:15 +) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-ui-20161109-1 for you to fetch changes up to ba60f2d18e976ef99238ebce019e26719f2b597c: Fix cursesw detection (2016-11-09 14:3

[Qemu-devel] [PATCH v6 04/19] tcg: rename tcg_current_cpu to tcg_current_rr_cpu

2016-11-09 Thread Alex Bennée
..and make the definition local to cpus. In preparation for MTTCG the concept of a global tcg_current_cpu will no longer make sense. However we still need to keep track of it in the single-threaded case to be able to exit quickly when required. qemu_cpu_kick_no_halt() moves and becomes qemu_cpu_ki

[Qemu-devel] [PULL 1/3] ui/gtk: Fix build with older versions of gtk

2016-11-09 Thread Gerd Hoffmann
From: Thomas Huth GDK_KEY_Delete is only defined with gtk version 2.22 and newer, on older versions this key was called GDK_Delete instead. Since this is the case for all GDK_KEY_* defines, change the already existing preprocessor check there to test for version 2.22, so we know that we can remov

Re: [Qemu-devel] virsh dump (qemu guest memory dump?): KASLR enabled linux guest support

2016-11-09 Thread Daniel P. Berrange
On Wed, Nov 09, 2016 at 09:36:08AM -0500, Dave Anderson wrote: > > > - Original Message - > > On 11/09/16 at 11:58am, Wen Congyang wrote: > > > On 11/09/2016 11:17 AM, Dave Young wrote: > > > > Drop qiaonuohan, seems the mail address is wrong.. > > > > > > > > On 11/09/16 at 11:01am, Dav

[Qemu-devel] [PATCH v6 09/19] tcg: handle EXCP_ATOMIC exception for system emulation

2016-11-09 Thread Alex Bennée
From: Pranith Kumar The patch enables handling atomic code in the guest. This should be preferably done in cpu_handle_exception(), but the current assumptions regarding when we can execute atomic sections cause a deadlock. Signed-off-by: Pranith Kumar [AJB: tweak title] Signed-off-by: Alex Benn

[Qemu-devel] [PATCH v6 00/19] Remaining MTTCG Base patches and ARM enablement

2016-11-09 Thread Alex Bennée
Hi, A chunk of the MTTCG work was merged for 2.8 so this constitutes what is left for the next cycle. The changes are minor except for a new patch to reduce BQL contention on ARM during yield/wfi instructions. I've also taken the time to update the design document which now covers all the solutio

  1   2   3   >