Re: [Qemu-devel] [PATCH][RFC] IOMMU: Add Support to VFIO devices with vIOMMU present

2016-03-15 Thread Michael S. Tsirkin
On Mon, Mar 14, 2016 at 07:58:23PM +0100, Jan Kiszka wrote: > On 2016-03-14 19:52, Marcel Apfelbaum wrote: > > On 03/12/2016 06:13 PM, Aviv B.D. wrote: > >> From: "Aviv B.D." mailto:bd.a...@gmail.com>> > >> > >> * Fix bug that prevent qemu from starting up when vIOMMU and VFIO > >> device ar

Re: [Qemu-devel] [PATCH V2 1/1] virtio:Allocate temporary VirtQueueElementOld on heap

2016-03-15 Thread Michael S. Tsirkin
On Mon, Mar 14, 2016 at 09:10:15PM +0530, Jaya Tiwari wrote: > As per the list of functions in : > http://wiki.qemu.org/BiteSizedTasks#Large_frames, > qemu_get_virtqueue_element and qemu_put_virtqueue_element > have large arrays on stack. Hence, moving them to heap > This reduced their stack size

Re: [Qemu-devel] [PATCH V9 0/2] net/filter-mirror:add filter-mirror and unit test

2016-03-15 Thread Jason Wang
On 03/15/2016 01:38 PM, Zhang Chen wrote: > Filter-mirror is a netfilter plugin. > It gives qemu the ability to mirror > packets to a chardev. > > v9: > - add qmp("{ 'execute' : 'query-status'}") >before iov_send() and change pipe >to socket in test-filter-mirror.c Want to merge the ser

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

2016-03-15 Thread Gerd Hoffmann
Hi, > > Don't add a new machine type in this version, just use the 2.6 one. > > Unfortunately this patch won't help any, as your next patch reorders fw > cfg files which will affect the old machine types. We can make that depend on dont_sort_fw_cfgs too, to keep things as-is on old machine typ

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

2016-03-15 Thread Michael S. Tsirkin
On Tue, Mar 15, 2016 at 08:04:48AM +0100, Gerd Hoffmann wrote: > Hi, > > > > Don't add a new machine type in this version, just use the 2.6 one. > > > > Unfortunately this patch won't help any, as your next patch reorders fw > > cfg files which will affect the old machine types. > > We can mak

Re: [Qemu-devel] [PATCH V9 0/2] net/filter-mirror:add filter-mirror and unit test

2016-03-15 Thread Wen Congyang
On 03/15/2016 03:04 PM, Jason Wang wrote: > > > On 03/15/2016 01:38 PM, Zhang Chen wrote: >> Filter-mirror is a netfilter plugin. >> It gives qemu the ability to mirror >> packets to a chardev. >> >> v9: >> - add qmp("{ 'execute' : 'query-status'}") >>before iov_send() and change pipe >>

Re: [Qemu-devel] [PATCH V9 0/2] net/filter-mirror:add filter-mirror and unit test

2016-03-15 Thread Zhang Chen
On 03/15/2016 03:18 PM, Wen Congyang wrote: On 03/15/2016 03:04 PM, Jason Wang wrote: On 03/15/2016 01:38 PM, Zhang Chen wrote: Filter-mirror is a netfilter plugin. It gives qemu the ability to mirror packets to a chardev. v9: - add qmp("{ 'execute' : 'query-status'}") before iov_send

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

2016-03-15 Thread Gerd Hoffmann
On Di, 2016-03-15 at 09:17 +0200, Michael S. Tsirkin wrote: > On Tue, Mar 15, 2016 at 08:04:48AM +0100, Gerd Hoffmann wrote: > > Hi, > > > > > > Don't add a new machine type in this version, just use the 2.6 one. > > > > > > Unfortunately this patch won't help any, as your next patch reorders f

Re: [Qemu-devel] [PATCH V2 1/1] virtio:Allocate temporary VirtQueueElementOld on heap

2016-03-15 Thread Jaya Tiwari
On Tue, Mar 15, 2016 at 12:32 PM, Michael S. Tsirkin wrote: > On Mon, Mar 14, 2016 at 09:10:15PM +0530, Jaya Tiwari wrote: > > As per the list of functions in : > > http://wiki.qemu.org/BiteSizedTasks#Large_frames, > > qemu_get_virtqueue_element and qemu_put_virtqueue_element > > have large arra

[Qemu-devel] [PATCH V10 1/2] net/filter-mirror:Add filter-mirror

2016-03-15 Thread Zhang Chen
Filter-mirror is a netfilter plugin. It gives qemu the ability to mirror packets to a chardev. usage: -netdev tap,id=hn0 -chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait -filter-mirror,id=m0,netdev=hn0,queue=tx/rx/all,outdev=mirror0 Signed-off-by: Zhang Chen Signed-off-by: Wen Co

[Qemu-devel] [PATCH V10 2/2] tests/test-filter-mirror:add filter-mirror unit test

2016-03-15 Thread Zhang Chen
In this unit test we will test the mirror function. start qemu with: -netdev socket,id=qtest-bn0,fd=sockfd -device e1000,netdev=qtest-bn0,id=qtest-e0 -chardev socket,id=mirror0,path=/tmp/filter-mirror-test.sock,server,nowait -object filter-mirror,id=qtest-f0,netdev=qtest-bn

[Qemu-devel] [PATCH V10 0/2] net/filter-mirror:add filter-mirror and unit test

2016-03-15 Thread Zhang Chen
Filter-mirror is a netfilter plugin. It gives qemu the ability to mirror packets to a chardev. v10: - add include "qemu/osdep.h" v9: - add qmp("{ 'execute' : 'query-status'}") before iov_send() and change pipe to socket in test-filter-mirror.c v8: - The outdev of filter-mirror test chan

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

2016-03-15 Thread Michael S. Tsirkin
On Tue, Mar 15, 2016 at 08:34:09AM +0100, Gerd Hoffmann wrote: > On Di, 2016-03-15 at 09:17 +0200, Michael S. Tsirkin wrote: > > On Tue, Mar 15, 2016 at 08:04:48AM +0100, Gerd Hoffmann wrote: > > > Hi, > > > > > > > > Don't add a new machine type in this version, just use the 2.6 one. > > > > >

Re: [Qemu-devel] [PATCH] virtio-net: Make virtio queue sizes configurable

2016-03-15 Thread Greg Kurz
On Mon, 14 Mar 2016 12:27:55 +0100 Greg Kurz wrote: > On Fri, 27 Nov 2015 16:02:39 +0100 > Patrik Hermansson wrote: > > > This patch adds the option to specify virtio queue sizes. Currently the > > queue sizes is hard coded to 256, which might not be suitable for all types > > of applications.

Re: [Qemu-devel] [PATCH V4] hw/pxb: add chassis_nr property

2016-03-15 Thread Cao jin
Hi, On 03/03/2016 10:18 PM, Marcel Apfelbaum wrote: Add a chassis_nr property instead of using PXB bus number as internal bridge's chassis nr. Suggested-by: Michael S. Tsirkin Signed-off-by: Marcel Apfelbaum --- v3->v4: - re-coded to fit current codebase v2->v3: - use bus nr if chassis nr

Re: [Qemu-devel] [PATCH] virtio-net: Make virtio queue sizes configurable

2016-03-15 Thread Greg Kurz
On Tue, 15 Mar 2016 06:50:38 +0200 "Michael S. Tsirkin" wrote: > On Fri, Nov 27, 2015 at 04:02:39PM +0100, Patrik Hermansson wrote: > > This patch adds the option to specify virtio queue sizes. Currently the > > queue sizes is hard coded to 256, which might not be suitable for all types > > of ap

Re: [Qemu-devel] [PATCH 12/17] ppc: Fix writing to AMR/UAMOR

2016-03-15 Thread Cédric Le Goater
On 03/14/2016 09:26 PM, Thomas Huth wrote: >> > @@ -8093,7 +8137,7 @@ static void init_proc_book3s_64(CPUPPCState *env, >> > int version) >> > case BOOK3S_CPU_POWER7: >> > case BOOK3S_CPU_POWER8: >> > gen_spr_book3s_ids(env); >> > -gen_spr_amr(env); >> > +gen_spr

Re: [Qemu-devel] [PATCH 04/17] ppc: Add number of threads per core to the processor definition

2016-03-15 Thread Cédric Le Goater
On 03/14/2016 08:20 PM, Thomas Huth wrote: > On 14.03.2016 17:56, Cédric Le Goater wrote: >> From: Benjamin Herrenschmidt >> >> Also use it to clamp the max SMT mode and ensure that the cpu_dt_id >> are offset by that value in order to preserve consistency with the >> HW implementations. >> >> Sig

Re: [Qemu-devel] [PATCH 00/17] ppc: preparing pnv landing

2016-03-15 Thread Cédric Le Goater
On 03/15/2016 01:39 AM, David Gibson wrote: > On Mon, Mar 14, 2016 at 05:56:23PM +0100, Cédric Le Goater wrote: >> Hello, >> >> This is a first mini-serie of patches adding support for new ppc SPRs. >> They were taken from Ben's larger patchset adding the ppc powernv >> platform and they should alr

Re: [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it

2016-03-15 Thread Thomas Huth
Hi Alexey, On 15.03.2016 06:51, Alexey Kardashevskiy wrote: > ePAPR defines "hcall-instructions" device-tree property which contains > code to call hypercalls in ePAPR paravirtualized guests. However this > property is also present for pseries guests where it does not make sense, > even though i

Re: [Qemu-devel] [PATCH 04/17] ppc: Add number of threads per core to the processor definition

2016-03-15 Thread Bharata B Rao
On Mon, Mar 14, 2016 at 08:20:52PM +0100, Thomas Huth wrote: > On 14.03.2016 17:56, Cédric Le Goater wrote: > > From: Benjamin Herrenschmidt > > > > Also use it to clamp the max SMT mode and ensure that the cpu_dt_id > > are offset by that value in order to preserve consistency with the > > HW im

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

2016-03-15 Thread Gerd Hoffmann
> Depends on how you code it up. We have a list, we look each file > there and sort accordingly. Fine. > New devices will not be on this list, I guess you can just ignore them > and guests will not see them. OK but I think it is better to make old > machine types see them. Not a new fw_cfg file.

Re: [Qemu-devel] [PATCH][RFC] IOMMU: Add Support to VFIO devices with vIOMMU present

2016-03-15 Thread Peter Xu
On Mon, Mar 14, 2016 at 08:52:33PM +0200, Marcel Apfelbaum wrote: > On 03/12/2016 06:13 PM, Aviv B.D. wrote: > Adding (possibly) interested developers to the thread. Thanks CC. Hi, Aviv, several questions inline. [...] > >@@ -1020,14 +1037,53 @@ static void > >vtd_iotlb_page_invalidate(IntelIO

Re: [Qemu-devel] [RFC PATCH v2 6/9] spapr: CPU core device

2016-03-15 Thread Bharata B Rao
On Mon, Mar 14, 2016 at 11:25:23AM +0100, Igor Mammedov wrote: > On Fri, 11 Mar 2016 10:24:35 +0530 > Bharata B Rao wrote: > > > Add sPAPR specific CPU core device that is based on generic CPU core device. > > Creating this core device will result in creation of all the CPU thread > > devices tha

Re: [Qemu-devel] [PATCH V2 1/1] virtio:Allocate temporary VirtQueueElementOld on heap

2016-03-15 Thread Paolo Bonzini
On 15/03/2016 08:36, Jaya Tiwari wrote: > > This is not what that page suggests. It says: > Make the stack array > smaller and allocate on the heap in the rare case that the > data does not fit in the small array: > > This patch just uses heap unconditionally which is sure t

[Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-15 Thread wexu
From: Wei Xu All the data packets in a tcp connection will be cached to a big buffer in every receive interval, and will be sent out via a timer, the 'virtio_net_rsc_timeout' controls the interval, the value will influent the performance and response of tcp connection extremely, 5(50us) is a

[Qemu-devel] [ Patch 0/2] Support Receive-Segment-Offload(RSC) for WHQL test of Window guest

2016-03-15 Thread wexu
From: Wei Xu Fixed issues based on rfc patch v2: 1. Removed big param list, replace it with 'NetRscUnit' 2. Different virtio header size 3. Modify callback function to direct call. 4. Needn't check the failure of g_malloc() 5. Other code format adjustment, macro naming, etc This patch is to su

[Qemu-devel] [ Patch 2/2] virtio-net rsc: support coalescing ipv6 tcp traffic

2016-03-15 Thread wexu
From: Wei Xu Most things like ipv4 except there is a significant difference between ipv4 and ipv6, the fragment lenght in ipv4 header includes itself, while it's not included for ipv6, thus means ipv6 can carry a real '65535' unit. Signed-off-by: Wei Xu --- hw/net/virtio-net.c| 146 +++

Re: [Qemu-devel] [PATCH] virtio-net: Make virtio queue sizes configurable

2016-03-15 Thread Patrik Hermansson
Hi Greg, Thanks for your comments and for taking the time. 2016-03-14 12:27 GMT+01:00 Greg Kurz : > > SoB tag is missing. I will add this in the future. > > +static void virtio_net_validate_queue_limit(uint16_t *queue_size) > > +{ > > +if (*queue_size > VIRTIO_QUEUE_SIZE_MAX) { > > +

Re: [Qemu-devel] [PATCH v4 4/4] hw/input/adb.c: implement QKeyCode support

2016-03-15 Thread Peter Maydell
On 14 March 2016 at 23:06, Programmingkid wrote: > On Mar 13, 2016, at 11:40 AM, Peter Maydell wrote: >> Also, you need to handle the power-key key-release >> scancode; as far as I can tell (by looking for info via >> google about the ADB protocol) power-key-down is >> 0x7f 0x7f, and power-key-up

[Qemu-devel] Our use of #include is undisciplined, and what to do about it

2016-03-15 Thread Markus Armbruster
This is kind of a meta-cover-letter for the multiple include cleanup series I hope to post as time permits. The first one will go out later today. I'm afraid it's a bit long. You may want to skip ahead to "= What to do about it =". Stefan cc'ed because tracing is part of the problem. Search fo

Re: [Qemu-devel] [PATCH] hw/9pfs: Add CephFS support in VirtFS

2016-03-15 Thread Greg Kurz
On Tue, 15 Mar 2016 00:02:48 +0800 Jevon Qiao wrote: > Ceph as a promising unified distributed storage system is widely used in the > world of OpenStack. OpenStack users deploying Ceph for block (Cinder) and > object (S3/Swift) are unsurprisingly looking at Manila and CephFS to round out > a unif

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

2016-03-15 Thread Michael S. Tsirkin
On Tue, Mar 15, 2016 at 09:45:22AM +0100, Gerd Hoffmann wrote: > > Depends on how you code it up. We have a list, we look each file > > there and sort accordingly. Fine. > > New devices will not be on this list, I guess you can just ignore them > > and guests will not see them. OK but I think it

Re: [Qemu-devel] Our use of #include is undisciplined, and what to do about it

2016-03-15 Thread Paolo Bonzini
On 15/03/2016 10:29, Markus Armbruster wrote: > NEED_CPU_H further adds > > include/disas/bfd.h > include/exec/cpu-all.h > include/exec/cpu-common.h > include/exec/cpu-defs.h > include/exec/exec-all.h > include/exec/hwaddr.h > include/exec/memattrs.h > include/exe

Re: [Qemu-devel] [PATCH V2 1/1] virtio:Allocate temporary VirtQueueElementOld on heap

2016-03-15 Thread Michael S. Tsirkin
On Tue, Mar 15, 2016 at 10:16:00AM +0100, Paolo Bonzini wrote: > > > On 15/03/2016 08:36, Jaya Tiwari wrote: > > > > This is not what that page suggests. It says: > > Make the stack array > > smaller and allocate on the heap in the rare case that the > > data does not fit in the

Re: [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it

2016-03-15 Thread Alexey Kardashevskiy
On 03/15/2016 07:18 PM, Thomas Huth wrote: Hi Alexey, On 15.03.2016 06:51, Alexey Kardashevskiy wrote: ePAPR defines "hcall-instructions" device-tree property which contains code to call hypercalls in ePAPR paravirtualized guests. However this property is also present for pseries guests wher

[Qemu-devel] [PATCH 1/2] quorum: Emit QUORUM_REPORT_BAD for reads in fifo mode

2016-03-15 Thread Alberto Garcia
If there's an I/O error in one of Quorum children then QEMU should emit QUORUM_REPORT_BAD. However this is not working with read-pattern=fifo. This patch fixes this problem. Signed-off-by: Alberto Garcia --- block/quorum.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-)

[Qemu-devel] [PATCH 0/2] Emit QUORUM_REPORT_BAD for reads in fifo mode

2016-03-15 Thread Alberto Garcia
This is a follow-up to the "Separate QUORUM_REPORT_BAD events" series: https://lists.gnu.org/archive/html/qemu-devel/2016-03/msg02402.html If there's an I/O error in one of Quorum children then QEMU should emit QUORUM_REPORT_BAD. However this is not working with read-pattern=fifo. This patch f

[Qemu-devel] [PULL 09/11] slirp: Adding IPv6 address for DNS relay

2016-03-15 Thread Samuel Thibault
From: Guillaume Subiron This patch adds an IPv6 address to the DNS relay. in6_equal_dns() is developed using this Slirp attribute. sotranslate_in/out/accept() are also updated to manage the IPv6 case so the guest can be able to join the host using one of the Slirp addresses. For now this only po

[Qemu-devel] [PATCH 2/2] iotests: Test QUORUM_REPORT_BAD in fifo mode

2016-03-15 Thread Alberto Garcia
Signed-off-by: Alberto Garcia --- tests/qemu-iotests/148 | 17 +++-- tests/qemu-iotests/148.out | 4 ++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/tests/qemu-iotests/148 b/tests/qemu-iotests/148 index 30bc379..d066ec3 100644 --- a/tests/qemu-iotests/148 +++

[Qemu-devel] [PULL 02/11] slirp: Fix ICMP error sending

2016-03-15 Thread Samuel Thibault
From: Yann Bordenave Disambiguation : icmp_error is renamed into icmp_send_error, since it doesn't manage errors, but only sends ICMP Error messages. Signed-off-by: Yann Bordenave Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth --- slirp/ip6_input.c | 2 +- slirp/ip_icmp.c | 12 ++

[Qemu-devel] [PULL 00/11] slirp: Adding IPv6 support to Qemu -net user mode

2016-03-15 Thread Samuel Thibault
The following changes since commit 618a5a8bc52ba0f2ecbb3dffd01e657f4d841f75: Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging (2016-03-14 16:22:17 +) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-th

[Qemu-devel] [PULL 11/11] slirp: Add IPv6 support to the TFTP code

2016-03-15 Thread Samuel Thibault
From: Thomas Huth Add the handler code for incoming TFTP packets to udp6_input(), and make sure that the TFTP code can send packets with both, udp_output() and udp6_output() by introducing a wrapper function called tftp_udp_output(). Signed-off-by: Thomas Huth Reviewed-by: Samuel Thibault ---

[Qemu-devel] [PULL 07/11] slirp: Reindent after refactoring

2016-03-15 Thread Samuel Thibault
From: Guillaume Subiron No code change. Signed-off-by: Guillaume Subiron Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth --- slirp/tcp_input.c | 104 ++--- slirp/tcp_output.c | 29 --- slirp/tcp_subr.c | 50

[Qemu-devel] [PULL 04/11] slirp: Adding IPv6 UDP support

2016-03-15 Thread Samuel Thibault
From: Guillaume Subiron This adds the sin6 case in the fhost and lhost unions and related macros. It adds udp6_input() and udp6_output(). It adds the IPv6 case in sorecvfrom(). Finally, udp_input() is called by ip6_input(). Signed-off-by: Guillaume Subiron Signed-off-by: Samuel Thibault Review

[Qemu-devel] [PULL 05/11] slirp: Factorizing tcpiphdr structure with an union

2016-03-15 Thread Samuel Thibault
From: Guillaume Subiron This patch factorizes the tcpiphdr structure to put the IPv4 fields in an union, for addition of version 6 in further patch. Using some macros, retrocompatibility of the existing code is assured. This patch also fixes the SLIRP_MSIZE and margin computation in various func

Re: [Qemu-devel] info qtree command cause qemu ABORT!

2016-03-15 Thread hitmoon
在 2016年03月14日 14:24, hitmoon 写道: 在 2016年03月11日 12:18, hitmoon 写道: 在 2016年03月11日 11:14, Peter Maydell 写道: On 11 March 2016 at 10:08, hitmoon wrote: Peter: first launch following command: arm-softmmu/qemu-system-arm -M versatilepb -kernel ~/Qemu-ARM/vmlinuz-3.2.0-4-versatile -initrd ~/Q

[Qemu-devel] [PULL 06/11] slirp: Generalizing and neutralizing various TCP functions before adding IPv6 stuff

2016-03-15 Thread Samuel Thibault
From: Guillaume Subiron Basically, this patch adds some switch in various TCP functions to prepare them for the IPv6 case. To have something to "switch" in tcp_input() and tcp_respond(), a new argument is used to give them the sa_family of the addresses they are working on. This patch does not

[Qemu-devel] [PULL 08/11] slirp: Handle IPv6 in TCP functions

2016-03-15 Thread Samuel Thibault
From: Guillaume Subiron This patch adds IPv6 case in TCP functions refactored by the last patches. This also adds IPv6 pseudo-header in tcpiphdr structure. Finally, tcp_input() is called by ip6_input(). Signed-off-by: Guillaume Subiron Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth -

[Qemu-devel] [PULL 10/11] qapi-schema, qemu-options & slirp: Adding Qemu options for IPv6 addresses

2016-03-15 Thread Samuel Thibault
From: Yann Bordenave This patch adds parameters to manage some new options in the qemu -net command. Slirp IPv6 address, network prefix, and DNS IPv6 address can be given in argument to the qemu command. Defaults parameters are respectively fec0::2, fec0::, /64 and fec0::3. Signed-off-by: Yann B

Re: [Qemu-devel] [PATCH] virtio-net: Make virtio queue sizes configurable

2016-03-15 Thread Michael S. Tsirkin
On Tue, Mar 15, 2016 at 09:00:39AM +0100, Greg Kurz wrote: > On Tue, 15 Mar 2016 06:50:38 +0200 > "Michael S. Tsirkin" wrote: > > > On Fri, Nov 27, 2015 at 04:02:39PM +0100, Patrik Hermansson wrote: > > > This patch adds the option to specify virtio queue sizes. Currently the > > > queue sizes is

[Qemu-devel] [PULL 03/11] slirp: Adding ICMPv6 error sending

2016-03-15 Thread Samuel Thibault
From: Yann Bordenave Adding icmp6_send_error to send ICMPv6 Error messages. This function is simpler than the v4 version. Adding some calls in various functions to send ICMP errors, when a received packet is too big, or when its hop limit is 0. Signed-off-by: Yann Bordenave Signed-off-by: Samue

Re: [Qemu-devel] [PATCH] spice: Disallow use of gl + TCP port

2016-03-15 Thread Christophe Fergeau
On Mon, Mar 14, 2016 at 09:41:34AM -0600, Eric Blake wrote: > On 03/14/2016 05:41 AM, Christophe Fergeau wrote: > > Currently, virgl support has to go through a local unix socket, trying > > to connect to a VM using -spice gl through spice://localhost:5900 will > > only result in a black screen. >

[Qemu-devel] [PULL 01/11] slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration

2016-03-15 Thread Samuel Thibault
From: Guillaume Subiron This patch adds the functions needed to handle IPv6 packets. ICMPv6 and NDP headers are implemented. Slirp is now able to send NDP Router or Neighbor Advertisement when it receives Router or Neighbor Solicitation. Using a 64bit-sized IPv6 prefix, the guest is now able to

Re: [Qemu-devel] [PATCHv10 0/11] slirp: Adding IPv6 support to Qemu -net user mode

2016-03-15 Thread Samuel Thibault
Jason Wang, on Tue 15 Mar 2016 11:28:55 +0800, wrote: > Looks good to me. Since you are the maintainer, do you want to merge and > send pull request yourself? I have done so, thanks. Samuel

[Qemu-devel] [PATCH v2 00/11] hw/mips: implement Cluster Power Controller

2016-03-15 Thread Leon Alrae
Here's version 2 of the patchset providing minimal CPC implementation allowing the guest to bring up other Virtual Processors (if more than 1 are present). Guest can check if CPC is available by reading GCR's memory-mapped registers and put VPs into run state by writing into CPC's memory-mapped reg

[Qemu-devel] [PATCH v2 01/11] hw/mips: implement generic MIPS Coherent Processing System container

2016-03-15 Thread Leon Alrae
Implement generic MIPS Coherent Processing System (CPS) which in this commit just creates VPs, but it will serve as a container also for other components like Global Configuration Registers and Cluster Power Controller. Signed-off-by: Leon Alrae --- default-configs/mips-softmmu-common.mak | 1

[Qemu-devel] [PATCH v2 04/11] hw/mips/cps: create GCR block inside CPS

2016-03-15 Thread Leon Alrae
Signed-off-by: Leon Alrae --- hw/mips/cps.c | 23 +++ include/hw/mips/cps.h | 2 ++ 2 files changed, 25 insertions(+) diff --git a/hw/mips/cps.c b/hw/mips/cps.c index 782aa2b..cfd808d 100644 --- a/hw/mips/cps.c +++ b/hw/mips/cps.c @@ -61,6 +61,8 @@ static void mips_c

[Qemu-devel] [PATCH v2 02/11] target-mips: add CMGCRBase register

2016-03-15 Thread Leon Alrae
From: Yongbok Kim Physical base address for the memory-mapped Coherency Manager Global Configuration Register space. The MIPS default location for the GCR_BASE address is 0x1FBF_8. This register only exists if Config3 CMGCR is set to one. Signed-off-by: Yongbok Kim [leon.al...@imgtec.com: move

Re: [Qemu-devel] [ Patch 1/2] virtio-net rsc: support coalescing ipv4 tcp traffic

2016-03-15 Thread Michael S. Tsirkin
On Tue, Mar 15, 2016 at 05:17:03PM +0800, w...@redhat.com wrote: > From: Wei Xu > > All the data packets in a tcp connection will be cached to a big buffer > in every receive interval, and will be sent out via a timer, the > 'virtio_net_rsc_timeout' controls the interval, the value will influent

[Qemu-devel] [PATCH v2 07/11] hw/mips_malta: remove CPUMIPSState from the write_bootloader()

2016-03-15 Thread Leon Alrae
Remove CPUMIPSState from the write_bootloader() argument list as it is not used in the function. Signed-off-by: Leon Alrae --- hw/mips/mips_malta.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index f5173c4..cbfdb78 10064

[Qemu-devel] [PATCH v2 10/11] hw/mips_malta: add CPS to Malta board

2016-03-15 Thread Leon Alrae
If the user specifies smp > 1 and the CPU with CM GCR support, then create Coherent Processing System (which takes care of instantiating CPUs) rather than CPUs directly and connect i8259 and cbus to the pins exposed by CPS. However, there is no GIC yet, thus CPS exposes CPU's IRQ pins so use the sa

[Qemu-devel] [PATCH v2 06/11] hw/mips/cps: create CPC block inside CPS

2016-03-15 Thread Leon Alrae
Create Cluster Power Controller and add a link to the CPC MemoryRegion in GCR. Guest can enable / map CPC to any physical address by writing to the memory-mapped GCR_CPC_BASE register. Set vp-start-reset property to 1 to allow only first VP to run from reset. Others are brought up by the guest via

[Qemu-devel] [PATCH v2 03/11] hw/mips: add initial Global Config Register support

2016-03-15 Thread Leon Alrae
From: Yongbok Kim Add initial GCR support to indicate number of VPs present in the system, L2 bypass mode and revision number. Signed-off-by: Yongbok Kim [leon.al...@imgtec.com: * removed GIC part, * changed commit message, * replaced %lx format spec. with PRIx64, * renamed mips_gcr.{c,h} t

[Qemu-devel] [PATCH v2 08/11] hw/mips_malta: remove redundant irq and clock init

2016-03-15 Thread Leon Alrae
Global smp_cpus is never zero (even if user provides -smp 0), thus clocks and irqs are always initialized for each created CPU in the loop at the beginning of mips_malta_init. These two lines cause a leak of already allocated timer and irqs for the first CPU - remove them. Signed-off-by: Leon Alr

[Qemu-devel] [PATCH v2 09/11] hw/mips_malta: move CPU creation to a separate function

2016-03-15 Thread Leon Alrae
Signed-off-by: Leon Alrae --- hw/mips/mips_malta.c | 68 ++-- 1 file changed, 39 insertions(+), 29 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index b70948d..9e8b9ce 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_mal

[Qemu-devel] [PATCH v2 11/11] target-mips: enable CM GCR in MIPS64R6-generic CPU

2016-03-15 Thread Leon Alrae
Indicate that in the MIPS64R6-generic CPU the memory-mapped Global Configuration Register Space is implemented. Signed-off-by: Leon Alrae --- target-mips/translate_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target-mips/translate_init.c b/target-mips/translate_in

[Qemu-devel] [PATCH v2 05/11] hw/mips: add initial Cluster Power Controller support

2016-03-15 Thread Leon Alrae
Cluster Power Controller (CPC) is responsible for power management in multiprocessing system. It provides registers to control the power and the clock frequency of the individual elements in the system. This patch implements only three registers that are used to control the power state of each VP

[Qemu-devel] [PATCH V4 0/2] Introduce filter-redirector

2016-03-15 Thread Zhang Chen
Filter-redirector is a netfilter plugin. It gives qemu the ability to redirect net packet. redirector can redirect filter's net packet to outdev. and redirect indev's packet to filter. filter + | |

Re: [Qemu-devel] [PATCH v4 10/28] migration: add reporting of errors for outgoing migration

2016-03-15 Thread Daniel P. Berrange
On Mon, Mar 14, 2016 at 07:57:25PM +, Dr. David Alan Gilbert wrote: > * Daniel P. Berrange (berra...@redhat.com) wrote: > > Currently if an application initiates an outgoing migration, > > it may or may not, get an error reported back on failure. If > > the error occurs synchronously to the 'mi

Re: [Qemu-devel] [ Patch 0/2] Support Receive-Segment-Offload(RSC) for WHQL test of Window guest

2016-03-15 Thread Michael S. Tsirkin
On Tue, Mar 15, 2016 at 05:17:02PM +0800, w...@redhat.com wrote: > From: Wei Xu > > Fixed issues based on rfc patch v2: > 1. Removed big param list, replace it with 'NetRscUnit' > 2. Different virtio header size > 3. Modify callback function to direct call. > 4. Needn't check the failure of g_ma

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

2016-03-15 Thread Liang Chen
** Tags added: sts 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: In Progress Status in QEM

Re: [Qemu-devel] [PULL 00/40] Block patches

2016-03-15 Thread Peter Maydell
On 14 March 2016 at 17:37, Kevin Wolf wrote: > The following changes since commit 0dcee62261cb044339b10e4bda1f67ef7dc82803: > > Merge remote-tracking branch > 'remotes/amit-migration/tags/migration-for-2.6-7' into staging (2016-03-14 > 13:51:21 +) > > are available in the git repository at

[Qemu-devel] [PATCH V2] net/filter-mirror: Change filter_mirror_send interface

2016-03-15 Thread Zhang Chen
Change filter_mirror_send interface to make it easier to used by other filter Signed-off-by: Zhang Chen Signed-off-by: Wen Congyang Signed-off-by: Li Zhijian --- net/filter-mirror.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/filter-mirror.c b/net/filter-

[Qemu-devel] [PATCH V4 2/2] tests/test-filter-redirector: Add unit test for filter-redirector

2016-03-15 Thread Zhang Chen
In this unit test,we will test the filter redirector function. Case 1, tx traffic flow: qemu side | test side | +-+| +---+ | backend <---+ sock0 | +++| +---+ | | +v+ +--

Re: [Qemu-devel] [Qemu-ppc] [PATCH] Replacing (and removing) get_ticks_per_sec() function with NANOSECONDS_PER_SECOND Signed-off-by: Rutuja Shah

2016-03-15 Thread Laurent Vivier
On 10/03/2016 20:30, rutu.shah...@gmail.com wrote: > From: Rutuja Shah > > --- > audio/audio.c | 2 +- > audio/noaudio.c | 4 ++-- > audio/spiceaudio.c| 2 +- > audio/wavaudio.c | 2 +- > backends/baum.c | 2 +- > block/qed.c

[Qemu-devel] [PATCH V4 1/2] net/filter-mirror: implement filter-redirector

2016-03-15 Thread Zhang Chen
Filter-redirector is a netfilter plugin. It gives qemu the ability to redirect net packet. redirector can redirect filter's net packet to outdev. and redirect indev's packet to filter. filter + | |

Re: [Qemu-devel] Our use of #include is undisciplined, and what to do about it

2016-03-15 Thread Peter Maydell
On 15 March 2016 at 09:29, Markus Armbruster wrote: > = What to do about it = > > The immediately obvious thing to do is reduce "recompile the world" > headers that change frequently. I've started to do that. This is obviously worthwhile. > Another one is attacking widely included bulky files (

Re: [Qemu-devel] info qtree command cause qemu ABORT!

2016-03-15 Thread Peter Maydell
On 15 March 2016 at 09:45, hitmoon wrote: > Peter, have you find a solution? No. I have been away at a conference the last week, you only reported this five days ago and I have already told you that it is on my list of things to look at. -- PMM

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

2016-03-15 Thread Liang Chen
** Changed in: cloud-archive Assignee: (unassigned) => Liang Chen (cbjchen) ** Changed in: cloud-archive Status: New => In Progress -- 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

[Qemu-devel] [PATCH] accel: make configure_accelerator return void

2016-03-15 Thread Wei Jiangang
Return the negated value of accel_initialised is meaningless, and the caller vl doesn't check it. Signed-off-by: Wei Jiangang --- accel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/accel.c b/accel.c index 0510b90..403eb5e 100644 --- a/accel.c +++ b/accel.c @@ -77,7 +7

Re: [Qemu-devel] [PATCH for-2.5 v2 2/4] mips: add Global Config Register block (part)

2016-03-15 Thread Leon Alrae
Hi, I cherry-picked this patch and the other one implementing CP0.Config3.CMGCRBase into my series for the Cluster Power Control needs: https://lists.nongnu.org/archive/html/qemu-devel/2016-03/msg03296.html I think all issues pointed out during the review for these two patches have been addressed

Re: [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it

2016-03-15 Thread Alexander Graf
On 15.03.16 06:51, Alexey Kardashevskiy wrote: > ePAPR defines "hcall-instructions" device-tree property which contains > code to call hypercalls in ePAPR paravirtualized guests. However this > property is also present for pseries guests where it does not make sense, > even though it contains dum

Re: [Qemu-devel] [RFC PATCH v2 6/9] spapr: CPU core device

2016-03-15 Thread David Gibson
On Tue, Mar 15, 2016 at 02:44:01PM +0530, Bharata B Rao wrote: > On Mon, Mar 14, 2016 at 11:25:23AM +0100, Igor Mammedov wrote: > > On Fri, 11 Mar 2016 10:24:35 +0530 > > Bharata B Rao wrote: > > > > > Add sPAPR specific CPU core device that is based on generic CPU core > > > device. > > > Creat

Re: [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it

2016-03-15 Thread David Gibson
On Tue, Mar 15, 2016 at 04:51:20PM +1100, Alexey Kardashevskiy wrote: > ePAPR defines "hcall-instructions" device-tree property which contains > code to call hypercalls in ePAPR paravirtualized guests. However this > property is also present for pseries guests where it does not make sense, > even t

Re: [Qemu-devel] [PATCH 04/17] ppc: Add number of threads per core to the processor definition

2016-03-15 Thread David Gibson
On Mon, Mar 14, 2016 at 05:56:27PM +0100, Cédric Le Goater wrote: > From: Benjamin Herrenschmidt > > Also use it to clamp the max SMT mode and ensure that the cpu_dt_id > are offset by that value in order to preserve consistency with the > HW implementations. I think this can change change CPU i

Re: [Qemu-devel] [PATCH 03/17] ppc: Add a bunch of hypervisor SPRs to Book3s

2016-03-15 Thread David Gibson
On Mon, Mar 14, 2016 at 08:14:59PM +0100, Thomas Huth wrote: > On 14.03.2016 17:56, Cédric Le Goater wrote: > > From: Benjamin Herrenschmidt > > > > We don't give them a KVM reg number to most of the registers yet as no > > current KVM version supports HV mode. For DAWR and DAWRX, the KVM reg >

Re: [Qemu-devel] [PATCH 05/17] ppc: Fix hreg_store_msr() so that non-HV mode cannot alter MSR:HV

2016-03-15 Thread David Gibson
On Mon, Mar 14, 2016 at 08:29:10PM +0100, Thomas Huth wrote: > On 14.03.2016 17:56, Cédric Le Goater wrote: > > From: Benjamin Herrenschmidt > > > > This helper is only used by the various instructions that can alter > > MSR and not interrupts. Add a comment to that effect to the interrupt > > co

Re: [Qemu-devel] [RFC qemu 0/4] A PV solution for live migration optimization

2016-03-15 Thread Michael S. Tsirkin
On Mon, Mar 14, 2016 at 05:03:34PM +, Dr. David Alan Gilbert wrote: > * Li, Liang Z (liang.z...@intel.com) wrote: > > > > > > Hi, > > > I'm just catching back up on this thread; so without reference to any > > > particular previous mail in the thread. > > > > > > 1) How many of the free p

Re: [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it

2016-03-15 Thread Alexander Graf
On 15.03.16 10:59, David Gibson wrote: > On Tue, Mar 15, 2016 at 04:51:20PM +1100, Alexey Kardashevskiy wrote: >> ePAPR defines "hcall-instructions" device-tree property which contains >> code to call hypercalls in ePAPR paravirtualized guests. However this >> property is also present for pseries

Re: [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it

2016-03-15 Thread Alexey Kardashevskiy
On 03/15/2016 08:59 PM, David Gibson wrote: On Tue, Mar 15, 2016 at 04:51:20PM +1100, Alexey Kardashevskiy wrote: ePAPR defines "hcall-instructions" device-tree property which contains code to call hypercalls in ePAPR paravirtualized guests. However this property is also present for pseries gues

Re: [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it

2016-03-15 Thread Alexey Kardashevskiy
On 03/15/2016 09:19 PM, Alexander Graf wrote: On 15.03.16 06:51, Alexey Kardashevskiy wrote: ePAPR defines "hcall-instructions" device-tree property which contains code to call hypercalls in ePAPR paravirtualized guests. However this property is also present for pseries guests where it does no

Re: [Qemu-devel] [PATCH 03/17] ppc: Add a bunch of hypervisor SPRs to Book3s

2016-03-15 Thread Thomas Huth
On 15.03.2016 10:43, David Gibson wrote: > > On Mon, Mar 14, 2016 at 08:14:59PM +0100, Thomas Huth wrote: >> On 14.03.2016 17:56, Cédric Le Goater wrote: >>> From: Benjamin Herrenschmidt >>> >>> We don't give them a KVM reg number to most of the registers yet as no >>> current KVM version support

Re: [Qemu-devel] [PATCH][RFC] IOMMU: Add Support to VFIO devices with vIOMMU present

2016-03-15 Thread Michael S. Tsirkin
On Sat, Mar 12, 2016 at 06:13:17PM +0200, Aviv B.D. wrote: > From: "Aviv B.D." > >  * Fix bug that prevent qemu from starting up when vIOMMU and VFIO >     device are present. >  * Advertise Cache Mode capability in iommu cap register. >  * Register every VFIO device with IOMMU state. >  * On pag

Re: [Qemu-devel] [PATCH v2 4/5] spapr: check if cpu core is already present

2016-03-15 Thread Igor Mammedov
On Tue, 15 Mar 2016 17:10:27 +1100 David Gibson wrote: > On Thu, Mar 10, 2016 at 11:39:46AM +0100, Igor Mammedov wrote: > > On Thu, 10 Mar 2016 11:32:44 +0530 > > Bharata B Rao wrote: > > > > > On Thu, Mar 10, 2016 at 04:22:43PM +1100, David Gibson wrote: > > > > On Wed, Mar 09, 2016 at 11:

Re: [Qemu-devel] [PULL v2 0/7] target-i386 fixes

2016-03-15 Thread Peter Maydell
On 14 March 2016 at 17:59, Richard Henderson wrote: > This is primarily patches fixing Windows booting regressions > introduced by myself. Many thanks to Herve for reporting them > and Paolo for fixing two of them. > > V2 adding Tested-by tags for Herve and (hopefully) not mucking > up the pull r

Re: [Qemu-devel] [RFC qemu 0/4] A PV solution for live migration optimization

2016-03-15 Thread Li, Liang Z
> On Mon, Mar 14, 2016 at 05:03:34PM +, Dr. David Alan Gilbert wrote: > > * Li, Liang Z (liang.z...@intel.com) wrote: > > > > > > > > Hi, > > > > I'm just catching back up on this thread; so without reference > > > > to any particular previous mail in the thread. > > > > > > > > 1) How many

Re: [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it

2016-03-15 Thread David Gibson
On Tue, Mar 15, 2016 at 08:42:05PM +1100, Alexey Kardashevskiy wrote: > On 03/15/2016 07:18 PM, Thomas Huth wrote: > > > > Hi Alexey, > > > >On 15.03.2016 06:51, Alexey Kardashevskiy wrote: > >>ePAPR defines "hcall-instructions" device-tree property which contains > >>code to call hypercalls in eP

Re: [Qemu-devel] [PATCH qemu] spapr/target-ppc/kvm: Only add hcall-instructions if KVM supports it

2016-03-15 Thread Thomas Huth
On 15.03.2016 10:42, Alexey Kardashevskiy wrote: > On 03/15/2016 07:18 PM, Thomas Huth wrote: >> >> Hi Alexey, >> >> On 15.03.2016 06:51, Alexey Kardashevskiy wrote: >>> ePAPR defines "hcall-instructions" device-tree property which contains >>> code to call hypercalls in ePAPR paravirtualized gue

Re: [Qemu-devel] [PATCH V4] hw/pxb: add chassis_nr property

2016-03-15 Thread Marcel Apfelbaum
On 03/15/2016 10:00 AM, Cao jin wrote: Hi, On 03/03/2016 10:18 PM, Marcel Apfelbaum wrote: Add a chassis_nr property instead of using PXB bus number as internal bridge's chassis nr. Suggested-by: Michael S. Tsirkin Signed-off-by: Marcel Apfelbaum --- v3->v4: - re-coded to fit current codeb

  1   2   3   4   5   >