Re: [Qemu-devel] [PATCH qemu v14 17/18] vfio/spapr: Use VFIO_SPAPR_TCE_v2_IOMMU

2016-03-28 Thread David Gibson
On Tue, Mar 29, 2016 at 04:44:04PM +1100, Alexey Kardashevskiy wrote: > On 03/29/2016 04:30 PM, David Gibson wrote: > >On Thu, Mar 24, 2016 at 08:10:44PM +1100, Alexey Kardashevskiy wrote: > >>On 03/24/2016 11:03 AM, Alexey Kardashevskiy wrote: > >>>On 03/23/2016 05:03 PM, David Gibson wrote: > >>>

Re: [Qemu-devel] [Qemu-ppc] [PATCHv2 2/3] target-ppc: Add helpers for updating a CPU's SDR1 and external HPT

2016-03-28 Thread David Gibson
On Fri, Mar 25, 2016 at 10:13:59AM +0100, Greg Kurz wrote: > Hi Laurent, > > On Thu, 24 Mar 2016 09:41:59 +0100 > Laurent Vivier wrote: > > > On 24/03/2016 06:35, David Gibson wrote: > > > On Tue, Mar 22, 2016 at 05:33:45PM +0100, Laurent Vivier wrote: > > >> Hi David, > > >> > > >> using kvm-

Re: [Qemu-devel] [PATCH qemu v14 18/18] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2016-03-28 Thread Alexey Kardashevskiy
On 03/29/2016 04:22 PM, David Gibson wrote: On Thu, Mar 24, 2016 at 01:32:48PM +1100, Alexey Kardashevskiy wrote: On 03/23/2016 05:11 PM, David Gibson wrote: On Wed, Mar 23, 2016 at 02:28:01PM +1100, Alexey Kardashevskiy wrote: On 03/23/2016 01:13 PM, David Gibson wrote: On Mon, Mar 21, 2016

Re: [Qemu-devel] [PATCH qemu v14 17/18] vfio/spapr: Use VFIO_SPAPR_TCE_v2_IOMMU

2016-03-28 Thread Alexey Kardashevskiy
On 03/29/2016 04:30 PM, David Gibson wrote: On Thu, Mar 24, 2016 at 08:10:44PM +1100, Alexey Kardashevskiy wrote: On 03/24/2016 11:03 AM, Alexey Kardashevskiy wrote: On 03/23/2016 05:03 PM, David Gibson wrote: On Wed, Mar 23, 2016 at 02:06:36PM +1100, Alexey Kardashevskiy wrote: On 03/23/2016

Re: [Qemu-devel] [PATCH qemu v14 17/18] vfio/spapr: Use VFIO_SPAPR_TCE_v2_IOMMU

2016-03-28 Thread David Gibson
On Thu, Mar 24, 2016 at 08:10:44PM +1100, Alexey Kardashevskiy wrote: > On 03/24/2016 11:03 AM, Alexey Kardashevskiy wrote: > >On 03/23/2016 05:03 PM, David Gibson wrote: > >>On Wed, Mar 23, 2016 at 02:06:36PM +1100, Alexey Kardashevskiy wrote: > >>>On 03/23/2016 01:53 PM, David Gibson wrote: > >>>

Re: [Qemu-devel] [PATCH qemu v14 18/18] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2016-03-28 Thread David Gibson
On Thu, Mar 24, 2016 at 01:32:48PM +1100, Alexey Kardashevskiy wrote: > On 03/23/2016 05:11 PM, David Gibson wrote: > >On Wed, Mar 23, 2016 at 02:28:01PM +1100, Alexey Kardashevskiy wrote: > >>On 03/23/2016 01:13 PM, David Gibson wrote: > >>>On Mon, Mar 21, 2016 at 06:47:06PM +1100, Alexey Kardashe

Re: [Qemu-devel] [Xen-devel] [PATCH v2 0/2] usb, xen: add pvUSB backend

2016-03-28 Thread Juergen Gross
On 18/03/16 15:47, Juergen Gross wrote: > On 18/03/16 13:52, Gerd Hoffmann wrote: >> On Do, 2016-03-10 at 16:19 +0100, Juergen Gross wrote: >>> This series adds a Xen pvUSB backend driver to qemu. USB devices >>> connected to the host can be passed through to a Xen guest. The >>> devices are specif

Re: [Qemu-devel] [RFC PATCH v2 2/2] spapr: Memory hot-unplug support

2016-03-28 Thread David Gibson
On Thu, Mar 24, 2016 at 09:15:58AM -0500, Nathan Fontenot wrote: > On 03/22/2016 10:22 PM, David Gibson wrote: > > On Wed, Mar 16, 2016 at 10:11:54AM +0530, Bharata B Rao wrote: > >> On Wed, Mar 16, 2016 at 12:36:05PM +1100, David Gibson wrote: > >>> On Tue, Mar 15, 2016 at 10:08:56AM +0530, Bharat

Re: [Qemu-devel] [PATCH] spapr: compute interrupt vector address from LPCR

2016-03-28 Thread David Gibson
On Thu, Mar 24, 2016 at 04:28:53PM +0100, Cédric Le Goater wrote: > This address is changed by the linux kernel using the H_SET_MODE hcall > and needs to be migrated in order to restart a spapr VM running in > TCG. This can be done using the AIL bits from the LPCR register. > > The patch introduce

[Qemu-devel] [PATCH 2/1] doc: More details on flag negotiation

2016-03-28 Thread Eric Blake
Add documentation that makes it clear that the server may add flags that the client does not recognize, but that the client may ignore those flags because the server will not change behavior without agreement; meanwhile, the client must not set flags the server does not recognize (since there is no

[Qemu-devel] [PATCH 3/1] doc: Propose Structured Replies extension

2016-03-28 Thread Eric Blake
The existing transmission phase protocol is difficult to sniff, because correct interpretation of the server stream requires context from the client stream (or risks false positives if data payloads happen to contain the protocol magic numbers). It also prohibits the ability to do short reads, or

[Qemu-devel] [PULL 0/3] Block patches for 2.6

2016-03-28 Thread Jeff Cody
The following changes since commit b68a80139e37e806f004237e55311ebc42151434: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20160324' into staging (2016-03-24 16:24:02 +) are available in the git repository at: g...@github.com:codyprime/qemu-kvm-jtc.git tags/block-pull-request

[Qemu-devel] [PULL 3/3] qemu-iotests: add no-op streaming test

2016-03-28 Thread Jeff Cody
From: Alberto Garcia This patch tests that in a partial block-stream operation, no data is ever copied from the base image. Signed-off-by: Alberto Garcia Reviewed-by: Max Reitz Message-id: 5272a2aa57bc0b3f981f8b3e0c813e58a88c974b.1458566441.git.be...@igalia.com Signed-off-by: Jeff Cody ---

[Qemu-devel] [PULL 2/3] qemu-iotests: fix test_stream_partial()

2016-03-28 Thread Jeff Cody
From: Alberto Garcia This test is streaming to the top layer using the intermediate image as the base. This is a mistake since block-stream never copies data from the base image and its backing chain, so this is effectively a no-op. In addition to fixing the base parameter, this patch also write

[Qemu-devel] [PULL 1/3] block: never cancel a streaming job without running stream_complete()

2016-03-28 Thread Jeff Cody
From: Alberto Garcia We need to call stream_complete() in order to do all the necessary clean-ups, even if there's an early failure. At the moment it's only useful to make sure that s->backing_file_str is not leaked, but it will become more important if we introduce support for streaming to any i

[Qemu-devel] [PATCH v3 2/3] hw/mips: implement Global Interrupt Controller

2016-03-28 Thread Yongbok Kim
The Global Interrupt Controller (GIC) is responsible for mapping each internal and external interrupt to the correct location for servicing. The internal representation of registers is different from the specification in order to consolidate information for each GIC Interrupt Sources and Virtual P

[Qemu-devel] [PATCH v3 3/3] hw/mips/cps: create GIC block inside CPS

2016-03-28 Thread Yongbok Kim
From: Leon Alrae Add GIC to CPS and expose its interrupt pins instead of CPU's. Signed-off-by: Leon Alrae --- hw/mips/cps.c| 25 ++--- hw/mips/mips_malta.c |4 +--- hw/misc/mips_cmgcr.c | 33 + include/

[Qemu-devel] [PATCH v3 0/3] mips: add Global Interrupt Controller

2016-03-28 Thread Yongbok Kim
This patchset implement MIPS Global Interrupt Controller. The Global Interrupt Controller (GIC) is responsible for mapping each internal and external interrupt to the correct location for servicing. Limitation: Level triggering only GIC CounterHi not implemented (Countbits = 32bits) DINT not impl

[Qemu-devel] [PATCH v3 1/3] hw/mips: implement GIC Interval Timer

2016-03-28 Thread Yongbok Kim
The interval timer is similar to the CP0 Count/Compare timer within each processor. The difference is the GIC_SH_COUNTER register is global to the system so that all processors have the same time reference. To ease implementation, all VPs are having its own QEMU timer but sharing global settings a

[Qemu-devel] [Bug 1563152] Re: general protection fault running VirtualBox in KVM guest

2016-03-28 Thread Richard Hansen
** Also affects: qemu (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1563152 Title: general protection fault running VirtualBox in KVM guest Sta

[Qemu-devel] [Bug 1563152] [NEW] general protection fault running VirtualBox in KVM guest

2016-03-28 Thread Richard Hansen
Public bug reported: I'm trying to run nested VMs using qemu-kvm on the physical host and VirtualBox on the guest host:   * physical host: Ubuntu 14.04 running Linux 4.2.0, qemu-kvm 2.0.0   * guest host: Ubuntu 16.04 beta 2 running Linux 4.4.0, VirtualBox 5.0.16 When I try to start up a VirtualB

Re: [Qemu-devel] [PATCH 4/5] tcg: reorder removal from lists in tb_phys_invalidate

2016-03-28 Thread Richard Henderson
On 03/28/2016 01:58 PM, Paolo Bonzini wrote: On 28/03/2016 20:42, Sergey Fedorov wrote: On 17/03/16 16:46, sergey.fedo...@linaro.org wrote: First the translation block is invalidated, for which a simple write to tb->pc is enough. This means that cpu-exec will not pick up anymore the block, t

Re: [Qemu-devel] [PATCHv4 2/2] slirp: Allow disabling IPv4 or IPv6

2016-03-28 Thread Samuel Thibault
Eric Blake, on Mon 28 Mar 2016 09:12:04 -0600, wrote: > > +if ((user->has_ipv6 && user->ipv6 && !user->has_ipv4) > > +|| (user->has_ipv4 && !user->ipv4)) > > +ipv4 = 0; > > Inconsistent with current qemu style. Should be: > > if ((user->has_ipv6 && user->ipv6 && !user

[Qemu-devel] [PATCH 4/5] slirp: Support link-local DNS addresses

2016-03-28 Thread Samuel Thibault
They look like fe80::%eth0 Signed-off-by: Samuel Thibault --- slirp/libslirp.h | 2 +- slirp/slirp.c| 26 ++ slirp/socket.c | 2 +- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/slirp/libslirp.h b/slirp/libslirp.h index b0cfbc5..81bd139 100644 --

[Qemu-devel] [PATCH 1/5] slirp: Allow disabling IPv4 or IPv6

2016-03-28 Thread Samuel Thibault
Add ipv4 and ipv6 boolean options, so the user can setup IPv4-only and IPv6-only network environments. Signed-off-by: Samuel Thibault --- Changes since previous versions: - fix coding style --- net/slirp.c | 36 ++-- qapi-schema.json | 8 qemu-

[Qemu-devel] [PATCH 3/5] slirp: Add dns6 resolution

2016-03-28 Thread Samuel Thibault
This makes get_dns_addr address family-agnostic, thus allowing to add the IPv6 case. Signed-off-by: Samuel Thibault --- slirp/ip6.h | 9 +++ slirp/libslirp.h | 1 + slirp/slirp.c| 72 slirp/socket.c | 4 ++-- 4 files chan

[Qemu-devel] [PATCH 0/5] ipv4-only and ipv6-only support

2016-03-28 Thread Samuel Thibault
Hello, This series gathers the patches to enable ipv4-only and ipv6-only support: it adds the discussed ipv4 and ipv6 options to select which is enabled, and adds support for ipv6 dns translation. Samuel Thibault (5): slirp: Allow disabling IPv4 or IPv6 slirp: Split get_dns_addr slirp: Add

[Qemu-devel] [PATCH 5/5] slirp: Add RDNSS advertisement

2016-03-28 Thread Samuel Thibault
This adds the RDNSS option to IPv6 router advertisements, so that the guest can autoconfigure the DNS server address. Signed-off-by: Samuel Thibault --- slirp/ip6_icmp.c | 19 --- slirp/ip6_icmp.h | 12 ++-- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/

[Qemu-devel] [PATCH 2/5] slirp: Split get_dns_addr

2016-03-28 Thread Samuel Thibault
Separate get_dns_addr into get_dns_addr_cached and get_dns_addr_resolv_conf to make conversion to IPv6 easier. Signed-off-by: Samuel Thibault --- slirp/slirp.c | 53 ++--- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/slirp/slirp.

[Qemu-devel] [PULL 3/5] Avoid embedding struct mbuf in other structures

2016-03-28 Thread Samuel Thibault
struct mbuf uses a C99 open char array to allow inlining data. Inlining this in another structure is however a GNU extension. The inlines used so far in struct Slirp were actually only needed as head of struct mbuf lists. This replaces these inline with mere struct quehead, and use casts as appropr

[Qemu-devel] [PULL 2/5] slirp: send icmp6 errors when UDP send failed

2016-03-28 Thread Samuel Thibault
Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth --- slirp/udp6.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/slirp/udp6.c b/slirp/udp6.c index 60a91c9..a23026f 100644 --- a/slirp/udp6.c +++ b/slirp/udp6.c @@ -113,8 +113,7 @@ void udp6_input(struct mbuf *m)

[Qemu-devel] [PULL 0/5] slirp updates

2016-03-28 Thread Samuel Thibault
Merge remote-tracking branch 'remotes/mdroth/tags/qga-pull-2016-03-21-tag' into staging (2016-03-22 17:39:48 +) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault for you to fetch changes up to d8eb38649587c58d767c3bc6a1075bfeabda9e

[Qemu-devel] [PULL 1/5] slirp: Fix memory leak on small incoming ipv4 packet

2016-03-28 Thread Samuel Thibault
Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth --- slirp/ip_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slirp/ip_input.c b/slirp/ip_input.c index 12f173d..b464f6b 100644 --- a/slirp/ip_input.c +++ b/slirp/ip_input.c @@ -85,7 +85,7 @@ ip_input(struct mbuf

[Qemu-devel] [PULL 4/5] Use C99 flexible array instead of 1-byte trailing array

2016-03-28 Thread Samuel Thibault
From: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Samuel Thibault --- slirp/mbuf.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/slirp/mbuf.h b/slirp/mbuf.h index 38fedf4..36fb814 100644 --- a/slirp/mbuf.h +++ b/slirp/mbuf.h @@ -81,11 +81,9 @@ struct m

[Qemu-devel] [PULL 5/5] Rework ipv6 options

2016-03-28 Thread Samuel Thibault
Rename the recently-added ip6-foo options into ipv6-foo options, to make them coherent with other ipv6 options. Also rework the documentation. Signed-off-by: Samuel Thibault Reviewed-by: Eric Blake --- net/net.c| 16 net/slirp.c | 6 +++--- qapi-schema.json | 25

Re: [Qemu-devel] [PATCH] linux-user/signal.c: Generate opcode data for restorer in setup_rt_frame

2016-03-28 Thread Chen Gang
On 3/29/16 06:17, Laurent Vivier wrote: >> On 3/15/16 05:51, cheng...@emindsoft.com.cn wrote: >>> >>> Original implementation uses do_rt_sigreturn directly in host space, >>> when a guest program is in unwind procedure in guest space, it will get >>> an incorrect restore address, then causes unwind

[Qemu-devel] [PULL] vfio: convert to 128 bit arithmetic calculations when adding mem regions

2016-03-28 Thread Alex Williamson
From: Bandan Das vfio_listener_region_add for a iommu mr results in an overflow assert since iommu memory region is initialized with UINT64_MAX. Convert calculations to 128 bit arithmetic for iommu memory regions and let int128_get64 assert for non iommu regions if there's an overflow. Suggested

[Qemu-devel] [PULL] VFIO updates 2016-03-28

2016-03-28 Thread Alex Williamson
The following changes since commit b68a80139e37e806f004237e55311ebc42151434: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20160324' into staging (2016-03-24 16:24:02 +) are available in the git repository at: git://github.com/awilliam/qemu-vfio.git tags/vfio-update-20160328.

Re: [Qemu-devel] [PATCH] linux-user/signal.c: Generate opcode data for restorer in setup_rt_frame

2016-03-28 Thread Laurent Vivier
Le 27/03/2016 11:44, Chen Gang a écrit : > Hello All: > > Please help check this patch when you have time. > > After this patch, we can let gcc testsuite cleanup-10 run successfully. > > Next, I shall continue to implement floating point instructions: remove > (u)int64_to_float64 from fdouble

Re: [Qemu-devel] [PATCH 1/8] tcg: Clean up direct block chaining data fields

2016-03-28 Thread Richard Henderson
On 03/24/2016 08:11 AM, Paolo Bonzini wrote: There is also a case where a TB jumps to itself; it then appears twice in the list with different values in the low bits, such as this: tb->jmp_list_first = tb | 0; .' | |.---' tb->jmp_li

Re: [Qemu-devel] [PATCH 2/2] target-mips: Implement IEEE 754-2008 functionality for R6 and MSA instructions

2016-03-28 Thread Richard Henderson
On 03/25/2016 05:50 AM, Aleksandar Markovic wrote: @@ -2621,9 +2621,23 @@ uint64_t helper_float_cvtl_d(CPUMIPSState *env, uint64_t fdt0) uint64_t dt2; dt2 = float64_to_int64(fdt0, &env->active_fpu.fp_status); -if (get_float_exception_flags(&env->active_fpu.fp_status) -&

Re: [Qemu-devel] [PATCH 1/2] softfloat: Enable run-time-configurable meaning of signaling NaN bit

2016-03-28 Thread Richard Henderson
On 03/25/2016 05:50 AM, Aleksandar Markovic wrote: +float16 float16_default_nan(float_status *status) { { on the next line. +return const_float64(LIT64( 0xFFF8 )); Let's please fix the horrible formatting in this file as we touch the lines, please. -#define floatx80_

Re: [Qemu-devel] [PATCH 4/5] tcg: reorder removal from lists in tb_phys_invalidate

2016-03-28 Thread Paolo Bonzini
On 28/03/2016 17:18, Sergey Fedorov wrote: > The use pattern of 'tb_invalidated_flag' is a bit intricate; correct me, > if I'm wrong about the following. Basically, 'tb_invalidated_flag' was > meant to catch two events: > * some TB has been invalidated by tb_phys_invalidate(); This is patch 4.

Re: [Qemu-devel] [PATCH 4/5] tcg: reorder removal from lists in tb_phys_invalidate

2016-03-28 Thread Paolo Bonzini
On 28/03/2016 20:42, Sergey Fedorov wrote: > On 17/03/16 16:46, sergey.fedo...@linaro.org wrote: >> First the translation block is invalidated, for which a simple write >> to tb->pc is enough. This means that cpu-exec will not pick up anymore >> the block, though it may still execute it through

Re: [Qemu-devel] [PATCH v15 4/4] block/gluster: add support for multiple gluster servers

2016-03-28 Thread Jeff Cody
On Mon, Mar 28, 2016 at 10:59:12PM +0530, pkale...@redhat.com wrote: > From: Prasanna Kumar Kalever > > This patch adds a way to specify multiple volfile servers to the gluster > block backend of QEMU with tcp|rdma transport types and their port numbers. > > Problem: > > Currently VM Image on g

Re: [Qemu-devel] [PATCH 06/22] hbitmap: load/store

2016-03-28 Thread John Snow
On 03/23/2016 04:22 AM, Vladimir Sementsov-Ogievskiy wrote: > On 23.03.2016 00:49, John Snow wrote: >> >> On 03/15/2016 04:04 PM, Vladimir Sementsov-Ogievskiy wrote: >>> Add functions for load/store HBitmap to BDS, using clusters table: >>> Last level of the bitmap is splitted into chunks of 'clu

Re: [Qemu-devel] [PATCH] hw/display contains files named *_template.h. These are included many times with different values of the DEPTH macro. However, only the DEPTH == 32 case is used. Removed suppo

2016-03-28 Thread John Snow
On 03/27/2016 03:33 AM, Nutan Shinde wrote: > Hi, > > So, this patch won't be considered, because there is already a patch > related to the same issue, right? > You'd have to follow the other thread to see if the patch was accepted or not. Even if it isn't, etiquette is generally that it'd be

Re: [Qemu-devel] [REPOST v2] [PATCH] tpm: adapt sysfs cancel path for new TPM driver

2016-03-28 Thread Stefan Berger
Peter, Michael, I have 3 TPM related patches on the mailing list that are fixing buges. They are either being overlooked or ignored. How can we make progress with them? Regards, Stefan On 03/21/2016 10:39 AM, Stefan Berger wrote: This patch addresses BZ 1281413. Adapt the sysfs TPM

Re: [Qemu-devel] [PATCH 4/5] tcg: reorder removal from lists in tb_phys_invalidate

2016-03-28 Thread Sergey Fedorov
On 17/03/16 16:46, sergey.fedo...@linaro.org wrote: > First the translation block is invalidated, for which a simple write > to tb->pc is enough. This means that cpu-exec will not pick up anymore > the block, though it may still execute it through chained jumps. This > also replaces the NULLing o

Re: [Qemu-devel] [PING][PATCH] Added the -m flag feature to stellaris boards

2016-03-28 Thread Aurelio Remonda
>> #define NUM_IRQ_LINES 64 >> +#define LM3S811EVB_DEFAULT_DC0 0x1f00 /* Default value for dc0 >> sram_size half */ >> +#define LM3S6965EVB_DEFAULT_DC0 0xff00 /* Default value for dc0 >> sram_size half */ > > These don't seem to be the same as the default values we had previously ? I th

Re: [Qemu-devel] [PATCH 0/6] virtio: refactor host notifiers

2016-03-28 Thread Paolo Bonzini
On 28/03/2016 05:55, TU BO wrote: > Hi Cornelia: > > I got two crash with qemu master + "[PATCH 0/6] virtio: refactor host > notifiers", Hi Tu Bo, please always include the assertion patch at https://lists.gnu.org/archive/html/qemu-block/2016-03/msg00546.html in your tests. Can you include the

[Qemu-devel] [PATCH v15 4/4] block/gluster: add support for multiple gluster servers

2016-03-28 Thread pkalever
From: Prasanna Kumar Kalever This patch adds a way to specify multiple volfile servers to the gluster block backend of QEMU with tcp|rdma transport types and their port numbers. Problem: Currently VM Image on gluster volume is specified like this: file=gluster[+tcp]://host[:port]/testvol/a.img

[Qemu-devel] [PATCH v15 1/4] block/gluster: rename [server, volname, image] -> [host, volume, path]

2016-03-28 Thread pkalever
From: Prasanna Kumar Kalever A future patch will add support for multiple gluster servers. Existing terminology is a bit unusual in relation to what names are used by other networked devices, and doesn't map very well to the terminology we expect to use for multiple servers. Therefore, rename th

[Qemu-devel] [PATCH v15 2/4] block/gluster: code cleanup

2016-03-28 Thread pkalever
From: Prasanna Kumar Kalever unified coding styles of multiline function arguments and other error functions moved random declarations of structures and other list variables Signed-off-by: Prasanna Kumar Kalever Reviewed-by: Eric Blake --- block/gluster.c | 113 ++-

[Qemu-devel] [PATCH v15 3/4] block/gluster: using new qapi schema

2016-03-28 Thread pkalever
From: Prasanna Kumar Kalever this patch adds 'GlusterServer' related schema in qapi/block-core.json Signed-off-by: Prasanna Kumar Kalever --- block/gluster.c | 101 ++- qapi/block-core.json | 60 -- 2 files chang

[Qemu-devel] [PATCH v15 0/4][WIP] block/gluster: add support for multiple gluster servers

2016-03-28 Thread pkalever
From: Prasanna Kumar Kalever WIP: As soon as discriminated union support is added use it with GlusterServer This version of patches are rebased on master branch. Prasanna Kumar Kalever (4): block/gluster: rename [server, volname, image] -> [host, volume, path] block/gluster: code cleanup

Re: [Qemu-devel] [FreeBSD] Host build i386 failing to build aarch64 targets

2016-03-28 Thread Sean Bruno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 This seems to at least allow things to compile, qemu-system seems to be able to boot images on i386, but I may have missed something: diff --git a/cpus.c b/cpus.c index 23cf7aa..11f8bab 100644 - --- a/cpus.c +++ b/cpus.c @@ -338,15 +338,8 @@ static

Re: [Qemu-devel] [Nbd] [PATCH 2/2] NBD proto: add GET_LBA_STATUS extension

2016-03-28 Thread Eric Blake
On 03/25/2016 02:49 AM, Wouter Verhelst wrote: >> You may also want to add a rule that for all future extensions, any >> command that requires data in the server response (other than the server >> response to NBD_CMD_READ) must include a 32-bit length as the first >> field of its data payload, so

Re: [Qemu-devel] [PATCH v5] Sort the fw_cfg file list

2016-03-28 Thread Michael S. Tsirkin
On Mon, Mar 28, 2016 at 09:42:18AM -0500, miny...@acm.org wrote: > From: Gerd Hoffmann > > Entries are inserted in filename order instead of being > appended to the end in case sorting is enabled. > > This will avoid any future issues of moving the file creation > around, it doesn't matter what

Re: [Qemu-devel] [PATCH v5 1/2] QMP: add query-hotpluggable-cpus

2016-03-28 Thread Eric Blake
On 03/26/2016 12:56 PM, Igor Mammedov wrote: > it will allow mgmt to query present and hotpluggable > CPU objects, it is required from a target platform that > wish to support command to implement and set > MachineClass.query_hotpluggable_cpus > callback, which will return a list of possible CPU o

Re: [Qemu-devel] [RFC for-2.7 1/1] block/qapi: Add query-block-node-tree

2016-03-28 Thread Eric Blake
On 03/26/2016 10:33 AM, Max Reitz wrote: >> We insert the new child to the head, not the tail... > > Well, the idea is that the order of children doesn't really matter; The > only thing that describes the behavior of a child is its role. For > instance, for qcow2 it doesn't matter whether the "fi

Re: [Qemu-devel] [PATCH 4/5] tcg: reorder removal from lists in tb_phys_invalidate

2016-03-28 Thread Sergey Fedorov
On 17/03/16 18:14, Sergey Fedorov wrote: > On 17/03/16 18:09, Paolo Bonzini wrote: >> >> On 17/03/2016 14:46, sergey.fedo...@linaro.org wrote: >>> void tb_phys_invalidate(TranslationBlock *tb, tb_page_addr_t >>> page_addr) >>> { >>> -CPUState *cpu; >>> PageDesc *p; >>> unsigned

Re: [Qemu-devel] [PATCHv4 2/2] slirp: Allow disabling IPv4 or IPv6

2016-03-28 Thread Eric Blake
On 03/24/2016 05:34 PM, Samuel Thibault wrote: > Add ipv4 and ipv6 boolean options, so the user can setup IPv4-only and > IPv6-only network environments. > > Signed-off-by: Samuel Thibault > > --- > > @@ -812,10 +822,18 @@ int net_init_slirp(const NetClientOptions *opts, const > char *name, >

Re: [Qemu-devel] [PATCHv4 1/2] Rework ipv6 options

2016-03-28 Thread Eric Blake
On 03/24/2016 05:34 PM, Samuel Thibault wrote: > Rename the recently-added ip6-foo options into ipv6-foo options, to make > them coherent with other ipv6 options. > > Also rework the documentation. Needs to go in to 2.6 before we bake in the wrong names. > > Signed-off-by: Samuel Thibault > --

[Qemu-devel] [PATCH v5] Sort the fw_cfg file list

2016-03-28 Thread minyard
From: Gerd Hoffmann Entries are inserted in filename order instead of being appended to the end in case sorting is enabled. This will avoid any future issues of moving the file creation around, it doesn't matter what order they are created now, the will always be in filename order. Signed-off-b

Re: [Qemu-devel] [PATCH v2] migration: skip sending ram pages released by virtio-balloon driver.

2016-03-28 Thread Eric Blake
On 03/27/2016 10:16 PM, Jitendra Kolhe wrote: > While measuring live migration performance for qemu/kvm guest, it > was observed that the qemu doesn’t maintain any intelligence for the > guest ram pages which are released by the guest balloon driver and > treat such pages as any other normal guest

[Qemu-devel] [PATCH] doc: Mention proper use of handle

2016-03-28 Thread Eric Blake
Although the proper use of the handle field during transmission phase was implied, it never hurts to make it more explicit that clients should alter the handle on each message, and the server repeat the handle unchanged, in order for the client to track when the server is sending replies out of ord

Re: [Qemu-devel] [PATCH 3/3] NBD proto: add "Command flags" section

2016-03-28 Thread Eric Blake
On 03/28/2016 04:43 AM, Denis V. Lunev wrote: > From: Pavel Borzenkov > > Add separate "Command flags" section to make it clear which flags are > currently defined by the protocol. > > Signed-off-by: Pavel Borzenkov > Reviewed-by: Roman Kagan > Signed-off-by: Denis V. Lunev > CC: Wouter Verhe

Re: [Qemu-devel] [PATCH v12 0/9] PTimer fixes/features and ARM MPTimer conversion

2016-03-28 Thread Dmitry Osipenko
Hello Peter, 16.03.2016 17:36, Peter Maydell пишет: On 30 January 2016 at 16:43, Dmitry Osipenko wrote: Changelog for ARM MPTimer QEMUTimer to ptimer conversion: So, where are we with this series? It looked from the mailing list threads as if there were still a few things Peter C hadn't got

Re: [Qemu-devel] [PATCH 2/3] NBD proto: document additional error conditions

2016-03-28 Thread Eric Blake
On 03/28/2016 04:43 AM, Denis V. Lunev wrote: > From: Pavel Borzenkov > > It is unclear what the behaviour of a server should be if it receives > an unknown command. Similar uncertainty exists for command flags. > > Make it explicit that the server should return EINVAL in all such cases. I'd go

Re: [Qemu-devel] [PATCH 1/3] NBD proto: forbid TRIM command without negotiation

2016-03-28 Thread Eric Blake
On 03/28/2016 04:43 AM, Denis V. Lunev wrote: > From: Pavel Borzenkov > > There is a loophole in the protocol that allows a client to send TRIM > request even if support for it wasn't negotiated with the server. State > explicitly that the client MUST NOT send such command without prior > success

Re: [Qemu-devel] [Patch 1/1] omap_lcdc: Remove support for DEPTH != 32

2016-03-28 Thread Pooja Dhannawat
On Wed, Mar 23, 2016 at 11:35 AM, Pooja Dhannawat wrote: > > > On Wed, Mar 23, 2016 at 3:55 AM, Eric Blake wrote: > >> On 03/12/2016 03:23 AM, Pooja Dhannawat wrote: >> > As only DEPTH ==32 case is used, removing other dead code >> > which is based on DEPTH !== 32 >> > >> > Signed-off-by: Pooja

[Qemu-devel] [PATCH v5] net: Allocating Large sized arrays to heap

2016-03-28 Thread Pooja Dhannawat
nc_sendv_compat has a huge stack usage of 69680 bytes approx. Moving large arrays to heap to reduce stack usage. Reviewed-by: Stefan Hajnoczi Signed-off-by: Pooja Dhannawat --- net/net.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/net/net.c b/net/net.c inde

Re: [Qemu-devel] [PATCH v4 00/13] tests: Introducing docker tests

2016-03-28 Thread Alex Bennée
Fam Zheng writes: > Ping? I'll do a sweep through this week, probably tomorrow. > > On Thu, 03/17 14:34, Fam Zheng wrote: >> v4: Dropped the .gitignore patch in favor of tempfile [Alex]; >> Added one EXTRA_CONFIGURE_OPTS patch [Alex]; >> >> 01: Fix commit message, and improve help text

[Qemu-devel] [PATCH v2 for 2.6 0/3] ide: fix loss of the dma/atapi state during migration

2016-03-28 Thread Denis V. Lunev
This patch set fixes bugs in the IDE DMA and the IDE ATAPI on operations to save/restore the state. >From the user point of view this results in IDE timeouts in the guest when the user reads from the DVD like the following: [424332.169229] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6

[Qemu-devel] [PATCH 2/3] ide: restart atapi dma by re-evaluating command packet

2016-03-28 Thread Denis V. Lunev
From: Pavel Butsykin ide_atapi_dma_restart() used to just complete the DMA with an error, under the assumption that there isn't enough information to restart it. However, as the contents of the ->io_buffer is preserved, it looks safe to just re-evaluate it and dispatch the ATAPI command again.

[Qemu-devel] [PATCH 1/3] ide: don't lose pending dma state

2016-03-28 Thread Denis V. Lunev
From: Pavel Butsykin If the migration occurs after the IDE DMA has been set up but before it has been initiated, the state gets lost upon save/restore. Specifically, ->dma_cb callback gets cleared, so, when the guest eventually starts bus mastering, the DMA never completes, causing the guest to t

[Qemu-devel] [PATCH 3/3] ide: really restart pending and in-flight atapi dma

2016-03-28 Thread Denis V. Lunev
From: Pavel Butsykin Restart of ATAPI DMA used to be unreachable, because the request to do so wasn't indicated in bus->error_status due to the lack of spare bits, and ide_restart_bh() would return early doing nothing. This patch makes use of the observation that not all bit combinations were po

[Qemu-devel] KVM call for 2016-03-29

2016-03-28 Thread Juan Quintela
Hi Please, send any topic that you are interested in covering. At the end of Monday I will send an email with the agenda or the cancellation of the call, so hurry up. After discussions on the QEMU Summit, we are going to have always open a KVM call where you can add topics. Call details: By

[Qemu-devel] [PATCH 2/3] NBD proto: document additional error conditions

2016-03-28 Thread Denis V. Lunev
From: Pavel Borzenkov It is unclear what the behaviour of a server should be if it receives an unknown command. Similar uncertainty exists for command flags. Make it explicit that the server should return EINVAL in all such cases. Signed-off-by: Pavel Borzenkov Reviewed-by: Roman Kagan Signed

[Qemu-devel] [PATCH 0/3] Fix some ambiguities in the NBD protocol

2016-03-28 Thread Denis V. Lunev
This patch set attempts to fix some ambiguities in the NBD protocol. Signed-off-by: Pavel Borzenkov Reviewed-by: Roman Kagan Signed-off-by: Denis V. Lunev CC: Wouter Verhelst CC: Eric Blake CC: Alex Bligh Pavel Borzenkov (3): NBD proto: forbid TRIM command without negotiation NBD proto:

[Qemu-devel] [PATCH 3/3] NBD proto: add "Command flags" section

2016-03-28 Thread Denis V. Lunev
From: Pavel Borzenkov Add separate "Command flags" section to make it clear which flags are currently defined by the protocol. Signed-off-by: Pavel Borzenkov Reviewed-by: Roman Kagan Signed-off-by: Denis V. Lunev CC: Wouter Verhelst CC: Eric Blake CC: Alex Bligh --- doc/proto.md | 10

[Qemu-devel] [PATCH 1/3] NBD proto: forbid TRIM command without negotiation

2016-03-28 Thread Denis V. Lunev
From: Pavel Borzenkov There is a loophole in the protocol that allows a client to send TRIM request even if support for it wasn't negotiated with the server. State explicitly that the client MUST NOT send such command without prior successful negotiation. Signed-off-by: Pavel Borzenkov Reviewed

[Qemu-devel] [PATCH v3] Add param Error ** for msi_init()

2016-03-28 Thread Cao jin
Add param Error **errp, and change pci_add_capability() to pci_add_capability2(), because pci_add_capability() report error, and msi_init() is widely used in realize(), so it is not suitable for realize(). Also fix all the callers who should deal with the msi_init() failure but actually not. The a

Re: [Qemu-devel] [PATCH v2] migration: skip sending ram pages released by virtio-balloon driver.

2016-03-28 Thread Denis V. Lunev
On 03/28/2016 07:16 AM, Jitendra Kolhe wrote: While measuring live migration performance for qemu/kvm guest, it was observed that the qemu doesn’t maintain any intelligence for the guest ram pages which are released by the guest balloon driver and treat such pages as any other normal guest ram pa

Re: [Qemu-devel] [PATCH] pci: fix compilation warnings

2016-03-28 Thread Marcel Apfelbaum
On 03/28/2016 11:43 AM, Stefan Weil wrote: Am 28.03.2016 um 09:23 schrieb Marcel Apfelbaum: Fix 'error: shift exponent -1 is negative' warning by adding a corresponding assert. Reported-by: Peter Maydell Signed-off-by: Markus Armbruster Signed-off-by: Marcel Apfelbaum --- hw/pci/pci.c | 4

[Qemu-devel] [Bug 1488363] Re: qemu 2.4.0 hangs using vfio for pci passthrough of graphics card

2016-03-28 Thread DiQ
With U14.04_64 and qemu-2.5.0 complied from http://wiki.qemu.org/Download this is a problem unless I use linux- generic-lts-xenial (4.4.0.13.7) so it seems there's a kernel issue here -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. ht

Re: [Qemu-devel] [PATCH] pci: fix compilation warnings

2016-03-28 Thread Stefan Weil
Am 28.03.2016 um 09:23 schrieb Marcel Apfelbaum: > Fix 'error: shift exponent -1 is negative' warning > by adding a corresponding assert. > > Reported-by: Peter Maydell > Signed-off-by: Markus Armbruster > Signed-off-by: Marcel Apfelbaum > --- > hw/pci/pci.c | 4 > 1 file changed, 4 insert

[Qemu-devel] [PATCH] pci: fix identation

2016-03-28 Thread Marcel Apfelbaum
Signed-off-by: Marcel Apfelbaum --- hw/pci/pci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index a1d41aa..da8b0b6 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -165,15 +165,15 @@ static inline int pci_irq_state(PCIDevice *d, int irq_nu

[Qemu-devel] [PATCH] pci: fix compilation warnings

2016-03-28 Thread Marcel Apfelbaum
Fix 'error: shift exponent -1 is negative' warning by adding a corresponding assert. Reported-by: Peter Maydell Signed-off-by: Markus Armbruster Signed-off-by: Marcel Apfelbaum --- hw/pci/pci.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index e67664d..a

Re: [Qemu-devel] [PATCH v2] migration: skip sending ram pages released by virtio-balloon driver.

2016-03-28 Thread Michael S. Tsirkin
On Mon, Mar 28, 2016 at 09:46:05AM +0530, Jitendra Kolhe wrote: > While measuring live migration performance for qemu/kvm guest, it > was observed that the qemu doesn’t maintain any intelligence for the > guest ram pages which are released by the guest balloon driver and > treat such pages as any o