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

2016-03-20 Thread Wen Congyang
On 03/17/2016 02:10 PM, Jason Wang wrote: > > > On 03/16/2016 05:34 PM, Wen Congyang wrote: >> On 03/16/2016 04:18 PM, Jason Wang wrote: On 03/15/2016 06:03 PM, Zhang Chen wrote: >> Filter-redirector is a netfilter plugin. >> It gives qemu the ability to redirect net packet

[Qemu-devel] [RFC v2 0/6] SDM Interface

2016-03-20 Thread Baptiste Reynal
This patch series introduces a new device to QEMU, the SDM (Signal Distribution Module), intended to route inter-processor signals intra and inter QEMU instances. To be as modular as possible, the device is split between the interface (virtio/platform) and the communication channel (local/socket)

Re: [Qemu-devel] [PULL 0/2] Machine Core queue, 2016-03-16

2016-03-20 Thread Peter Maydell
On 16 March 2016 at 18:58, Eduardo Habkost wrote: > The following changes since commit d1f8764099022bc1173f2413331b26d4ff609a0c: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20160316-1' into staging (2016-03-16 > 17:43:37 +) > > are available in the git reposit

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

2016-03-20 Thread Li Zhijian
On 03/17/2016 02:43 PM, Jason Wang wrote: On 03/16/2016 06:38 PM, Zhang Chen wrote: 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.

[Qemu-devel] [PULL 13/29] blockdev: Remove blk_hide_on_behalf_of_hmp_drive_del()

2016-03-20 Thread Kevin Wolf
From: Max Reitz We can basically inline it in hmp_drive_del(); monitor_remove_blk() is called already, so we just need to call bdrv_make_anon(), too. Signed-off-by: Max Reitz Signed-off-by: Kevin Wolf --- block/block-backend.c | 17 - blockdev.c |

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-20 Thread Paolo Bonzini
On 16/03/2016 12:24, Christian Borntraeger wrote: > On 03/16/2016 12:09 PM, Paolo Bonzini wrote: >> On 16/03/2016 11:49, Christian Borntraeger wrote: >>> #3 0x800b713e in virtio_blk_data_plane_start (s=0xba232d80) at >>> /home/cborntra/REPOS/qemu/hw/block/dataplane/virtio-blk.c:224 >>>

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

2016-03-20 Thread James Page
** Tags added: verification-needed -- 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 Committed Sta

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

2016-03-20 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 + redirector | +--+

Re: [Qemu-devel] Request for help with Qemu GDB for big-endian instructions (R4)

2016-03-20 Thread Peter Maydell
On 17 March 2016 at 15:09, Paul, Kaustav Kumar wrote: > If I understand correctly, inside the function > gen_intermediate_code_internal(...), arm_ldl_code() reads > the instruction-bytes according to PC and then disassemble. > Initially, the output of this disassembly did not make much > sense. It

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

2016-03-20 Thread Jason Wang
On 03/18/2016 12:17 PM, Wei Xu wrote: > > +static ssize_t virtio_net_receive(NetClientState *nc, > + const uint8_t *buf, size_t size) > +{ > +if (virtio_net_rsc_bypass) { > +return virtio_net_do_receive(nc, buf, size); You

[Qemu-devel] [PULL 4/5] ui/cocoa.m: switch to QKeyCode

2016-03-20 Thread Gerd Hoffmann
From: Programmingkid This patch removes the pc/xt keycode map and replaces it with the QKeyCode keymap. Signed-off-by: John Arbuckle Reviewed-by: Peter Maydell Signed-off-by: Gerd Hoffmann --- ui/cocoa.m | 315 +++-- 1 file changed, 140

Re: [Qemu-devel] [PATCH v3 0/5] Raspberry Pi framebuffer, DMA and Windows support

2016-03-20 Thread Peter Maydell
On 8 March 2016 at 20:05, Andrew Baumann wrote: > This patch series adds support for the AUX (second UART), framebuffer > and DMA controller on Raspberry Pi 2, and enables booting Windows on > this device. As with the previous series, it is heavily based on the > original (out of tree) work of Gre

[Qemu-devel] [PULL 04/21] arm: virt: Add an abstract ARM virt machine type

2016-03-20 Thread Peter Maydell
From: Wei Huang In preparation for future ARM virt machine types, this patch creates an abstract type for all ARM machines. The current machine type in QEMU (i.e. "virt") is renamed to "virt-2.6", whose naming scheme is similar to other architectures. For the purpose of backward compatibility, "v

[Qemu-devel] [PULL 03/29] monitor: Use BB list for BB name completion

2016-03-20 Thread Kevin Wolf
From: Max Reitz Signed-off-by: Max Reitz Signed-off-by: Kevin Wolf --- monitor.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/monitor.c b/monitor.c index 894f862..4c02f0f 100644 --- a/monitor.c +++ b/monitor.c @@ -42,6 +42,7 @@ #include "ui/console.h" #include "

[Qemu-devel] [PATCH 2/6] hw/char: QOM'ify etraxfs_ser.c

2016-03-20 Thread xiaoqiang zhao
Drop the old SysBus init function and use instance_init Signed-off-by: xiaoqiang zhao --- hw/char/etraxfs_ser.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/char/etraxfs_ser.c b/hw/char/etraxfs_ser.c index 146b387..ede7024 100644 --- a/hw/char/etraxfs_ser.c

Re: [Qemu-devel] [PATCH 0/2] e1000: Introducing an upper bound of interrupts

2016-03-20 Thread Jason Wang
On 03/17/2016 03:37 PM, Sameeh Jubran wrote: > This patch series introduces an upper bound for the number of interrupts > per second. This feature is supported by the real hardware, however up > until now it wasn't implemented in e1000. This feature is very > significant, it can prevent an interr

Re: [Qemu-devel] [PATCH v2] vl.c: disallow command line fw cfg without opt/

2016-03-20 Thread Michael S. Tsirkin
On Wed, Mar 16, 2016 at 08:15:07PM +0100, Laszlo Ersek wrote: > On 03/16/16 19:43, Michael S. Tsirkin wrote: > > On Wed, Mar 16, 2016 at 07:35:09PM +0100, Laszlo Ersek wrote: > >> On 03/16/16 19:15, Gabriel L. Somlo wrote: > >>> On Wed, 16 Mar 2016 at 18:50:57 +0200, Michael S. Tsirkin wrote: > >>>

[Qemu-devel] [PATCH v5 0/5] ARM: add query-gic-capabilities SMP command

2016-03-20 Thread Peter Xu
v5 changes: - patch 2: moved to target-arm/monitor.c (from target-arm/machine.c) [Peter] - patch 3: splitted into three patches: [all from Peter's comments] - patch 3 (new): leverage kvm_arm_create_scratch_host_vcpu(), tiny enhancement of old one to suite our need - patch 4: intr

Re: [Qemu-devel] [PATCH v3 00/12] Add i.MX6 (Single/Dual/Quad) support

2016-03-20 Thread Peter Maydell
On 1 March 2016 at 22:27, Jean-Christophe Dubois wrote: > This patch series adds support for the Freescale i.MX6 processor. > > For now we only support the following devices: > * up to 4 Cortex A9 cores > * A9 MPCORE (SCU, GIC, TWD) > * 5 i.MX UARTs > * 2 EPIT timers > * 1 GPT timer > * 7 GPIO con

Re: [Qemu-devel] [PATCH v2 06/16] block: add BDS field to count in-flight requests

2016-03-20 Thread Fam Zheng
On Wed, 03/16 15:16, Paolo Bonzini wrote: > Unlike tracked_requests, this field also counts throttled requests, > and remains non-zero if an AIO operation needs a BH to be "really" > completed. > > With this change, it is no longer necessary to have a dummy > BdrvTrackedRequest for requests that a

[Qemu-devel] [RFC v2 3/6] hw/arm: sysbus-fdt

2016-03-20 Thread Baptiste Reynal
Added node creation for dynamically instantiated sysbus SDM device. Support added for all ARM machines modeling dynamic sysbus devices instantiation. Signed-off-by: Christian Pinto Signed-off-by: Baptiste Reynal --- hw/arm/sysbus-fdt.c | 62 +

Re: [Qemu-devel] [PATCH] vfio/pci: replace 1 with PCI_CAP_LIST_NEXT to make code self-explain

2016-03-20 Thread Paolo Bonzini
On 16/03/2016 12:27, Michael Tokarev wrote: >> > for (tmp = pdev->config[PCI_CAPABILITY_LIST]; tmp; >> > - tmp = pdev->config[tmp + 1]) { >> > + tmp = pdev->config[tmp + PCI_CAP_LIST_NEXT]) { >> > -next = pdev->config[pos + 1]; >> > +next = pdev->config[pos + PCI_CAP_

[Qemu-devel] [PATCH v6 06/16] qapi-event: Drop qmp_output_get_qobject() null check

2016-03-20 Thread Eric Blake
qmp_output_get_qobject() was changed never to return null some time ago (in commit 6c2f9a15), but the qapi_event_send_FOO() functions still check. Clean that up: |@@ -28,7 +28,6 @@ void qapi_event_send_acpi_device_ost(ACP | QMPEventFuncEmit emit; | QmpOutputVisitor *qov; | Visitor *v;

Re: [Qemu-devel] [PATCH v2] vl.c: disallow command line fw cfg without opt/

2016-03-20 Thread Michael S. Tsirkin
On Thu, Mar 17, 2016 at 03:50:08PM +0100, Paolo Bonzini wrote: > > > On 17/03/2016 15:17, Michael S. Tsirkin wrote: > > On Thu, Mar 17, 2016 at 02:55:52PM +0100, Paolo Bonzini wrote: > >> > >> > >> On 17/03/2016 14:49, Michael S. Tsirkin wrote: > On 17/03/2016 14:13, Michael S. Tsirkin wrote

[Qemu-devel] [RFC v2 2/6] hw/misc: sdm platform device

2016-03-20 Thread Baptiste Reynal
This is the platform implementation for an SDM device. Parameters are: comm=[sdm_communication_id] specifies the communication channel master=[true/false] - configure the SDM device as master or slave num_slaves=[slave_number] - if master is true, specifies the number of slaves len

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

2016-03-20 Thread Jason Wang
On 03/17/2016 02:58 PM, Li Zhijian wrote: >>> >>> +} else { >>> +error_report("%s, serious error: oversized packet >>> received," >>> + "connection terminated.", __func__); >> >> The connection was not terminated actually. And since the warn

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

2016-03-20 Thread Fam Zheng
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; Fix pylint warnings, mostly long lines and some refactoring; "--verbose" is now replaced with the shared args "--quiet";

[Qemu-devel] [PULL 10/15] qapi: Inline gen_visit_members() into lone caller

2016-03-20 Thread Markus Armbruster
From: Eric Blake Commit 82ca8e46 noticed that we had multiple implementations of visiting every member of a struct, and consolidated it into gen_visit_fields() (now gen_visit_members()) with enough parameters to cater to slight differences between the clients. But recent exposure of implicit type

[Qemu-devel] [PATCH v5 08/28] migration: introduce a new QEMUFile impl based on QIOChannel

2016-03-20 Thread Daniel P. Berrange
Introduce a new QEMUFile implementation that is based on the QIOChannel objects. This impl is different from existing impls in that there is no file descriptor that can be made available, as some channels may be based on higher level protocols such as TLS. Although the QIOChannel based implementat

Re: [Qemu-devel] [PATCH 0/9] some QOM'ify work under hw/arm

2016-03-20 Thread xiaoqiang zhao
> 在 2016年3月16日,20:00,Peter Maydell 写道: > >> On 16 March 2016 at 11:31, Peter Maydell wrote: >> A general note -- since these aren't bug fixes and we're in soft >> freeze now, I don't think we should put them in until 2.6 is out. >> I'll review the patches in a second, though. > > Well, the pa

[Qemu-devel] [Bug 1243287] Re: [KVM/QEMU][ARM][SAUCY] fails to boot cloud-image due to host kvm fail

2016-03-20 Thread Ben Howard
** Changed in: qemu Status: Fix Committed => 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/1243287 Title: [KVM/QEMU][ARM][SAUCY] fails to boot cloud-image due to host kvm fail

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

2016-03-20 Thread Samuel Thibault
Signed-off-by: Samuel Thibault --- 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 *m) DEBUG_ARG("m_l

Re: [Qemu-devel] [PATCH 0/4] Tweaks around virtio-blk start/stop

2016-03-20 Thread Paolo Bonzini
On 16/03/2016 12:32, Cornelia Huck wrote: > On Wed, 16 Mar 2016 12:09:02 +0100 > Paolo Bonzini wrote: > >> On 16/03/2016 11:49, Christian Borntraeger wrote: > >>> #3 0x800b713e in virtio_blk_data_plane_start (s=0xba232d80) at >>> /home/cborntra/REPOS/qemu/hw/block/dataplane/virtio-bl

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

2016-03-20 Thread Jason Wang
On 03/15/2016 05:17 PM, w...@redhat.com wrote: > 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. > > Sig

Re: [Qemu-devel] [PATCH v2 07/10] ppc: Fix writing to AMR/UAMOR

2016-03-20 Thread Thomas Huth
On 16.03.2016 14:13, Cédric Le Goater wrote: > From: Benjamin Herrenschmidt > > The masks weren't chosen nor applied properly. The architecture specifies > that writes to AMR are masked by UAMOR for PR=1, otherwise AMOR for HV=0. > > The writes to UAMOR are masked by AMOR for HV=0 > > Signed-of

[Qemu-devel] [PULL 27/40] ivshmem: Rely on server sending the ID right after the version

2016-03-20 Thread Markus Armbruster
The protocol specification (ivshmem-spec.txt, formerly ivshmem_device_spec.txt) has always required the ID message to be sent right at the beginning, and ivshmem-server has always complied. The device, however, accepts it out of order. If an interrupt setup arrived before it, though, it would be

[Qemu-devel] [PATCH for-2.6 02/14] pc-bios/s390-ccw: virtio_panic -> panic

2016-03-20 Thread Cornelia Huck
From: "Eugene (jno) Dvurechenski" This function has nothing to do with virtio. Reviewed-by: Cornelia Huck Reviewed-by: David Hildenbrand Signed-off-by: Eugene (jno) Dvurechenski Signed-off-by: Cornelia Huck --- pc-bios/s390-ccw/bootmap.c | 8 pc-bios/s390-ccw/bootmap.h | 2 +- pc

[Qemu-devel] [PATCH] slirp: Allow to disable IPv4 or IPv6

2016-03-20 Thread Samuel Thibault
Make net=0.0.0.0 disable IPv4 and ip6-net=:: disable IPv6, so the user can setup IPv4-only and IPv6-only network environments. Signed-off-by: Samuel Thibault --- net/slirp.c | 8 +--- qapi-schema.json | 4 ++-- qemu-options.hx | 7 --- slirp/ip6.h | 9 + slirp/

[Qemu-devel] [PATCH v5 02/28] io: avoid double-free when closing QIOChannelBuffer

2016-03-20 Thread Daniel P. Berrange
The QIOChannelBuffer's close implementation will free the internal data buffer. It failed to reset the pointer to NULL though, so when the object is later finalized it will free it a second time with predictable crash. Signed-off-by: Daniel P. Berrange --- io/channel-buffer.c | 1 + 1 file chang

Re: [Qemu-devel] Timer interrupts for -M raspi2

2016-03-20 Thread Andrew Baumann
Hi Antonio, > From: Antonio Huete Jiménez [mailto:tuxi...@quantumachine.net] > Sent: Wednesday, 16 March 2016 3:40 PM > > Hi, > > I am experiencing what I think it's an issue with -M raspi2 and > interrupts in a baremetal application. > > According to this document > (https://www.raspberrypi.or

[Qemu-devel] [PATCH 08/20] block: Always set writeback mode in blk_new_open()

2016-03-20 Thread Kevin Wolf
All callers of blk_new_open() either don't rely on the WCE bit set after blk_new_open() because they explicitly set it anyway, or they pass BDRV_O_CACHE_WB unconditionally. This patch changes blk_new_open() so that it always enables writeback mode and asserts that BDRV_O_CACHE_WB is clear. For tho

[Qemu-devel] [PATCH 2/5] tcg: reorganize tb_find_physical loop

2016-03-20 Thread sergey . fedorov
From: Paolo Bonzini Use a continue statement. Signed-off-by: Paolo Bonzini [Sergey Fedorov: Fix moving to list head in case of no TB] Signed-off-by: Sergey Fedorov --- cpu-exec.c | 50 +- 1 file changed, 25 insertions(+), 25 deletions(-) diff -

Re: [Qemu-devel] [PATCH v2] vl.c: disallow command line fw cfg without opt/

2016-03-20 Thread Gerd Hoffmann
Hi, > So, "user defined files" exist so that users can control "stuff" with > them, without QEMU's knowledge. OVMF is "stuff". Just because it's > firmware, it remains "stuff". Whatever Gabriel wants to control with > such fw_cfg files in the guest, is also "stuff". Well, non-firmware stuff was

Re: [Qemu-devel] [PATCH] vpc: use current_size field for XenServer VHD images

2016-03-20 Thread Grant Wu
Side note: After manually patching tap\0 to qem2, Spencer and I were still unable to get qemu-img info working with the image. Unsure if this is related to the patch or not. Thanks, Grant Wu grant...@gmail.com On Sat, Mar 19, 2016 at 3:42 PM, Stefan Hajnoczi wrote: > The vpc driver has two m

[Qemu-devel] [PATCH for-2.6 11/14] pc-bios/s390-ccw: enable virtio-scsi

2016-03-20 Thread Cornelia Huck
From: "Eugene (jno) Dvurechenski" Make the code added before to work. Signed-off-by: Eugene (jno) Dvurechenski Signed-off-by: Cornelia Huck --- pc-bios/s390-ccw/Makefile | 2 +- pc-bios/s390-ccw/main.c | 8 +--- pc-bios/s390-ccw/virtio.c | 113 +--

Re: [Qemu-devel] [PATCH] slirp: Allow to disable IPv4 or IPv6

2016-03-20 Thread Samuel Thibault
Samuel Thibault, on Sun 20 Mar 2016 12:39:14 +0100, wrote: > void icmp6_init(Slirp *slirp) > { > +if (in6_zero(&slirp->vprefix_addr6)) { > +/* IPv6 is disabled */ > +return; > +} > + (Note: vprefix_addr6 is not actually initialized yet at that point, which poses problem,

[Qemu-devel] [PATCH 1/5] tcg: code_bitmap is not used by user-mode emulation

2016-03-20 Thread sergey . fedorov
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Sergey Fedorov --- translate-all.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/translate-all.c b/translate-all.c index e9f409b762ab..f17ace1ae899 100644 --- a/translate-all.c +++ b/translate-all.c

Re: [Qemu-devel] [PATCH] hw/arm/bcm2836: Wire up CPU timer interrupts correctly

2016-03-20 Thread Andrew Baumann
> From: Peter Maydell [mailto:peter.mayd...@linaro.org] > Sent: Thursday, 17 March 2016 3:33 AM > > Wire up the CPU timer interrupts in the right order, with the > nonsecure physical timer on cntpnsirq, the hyp timer on cnthpirq, > and the secure physical timer on cntpsirq. (We did get the > virt

[Qemu-devel] [RFC v1 10/11] tcg: grab iothread lock in cpu-exec interrupt handling

2016-03-20 Thread Alex Bennée
From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota Signed-off-by: Alex Bennée --- v1 (ajb) - pulled from emilio/mttcg series --- cpu-exec.c| 33 +++-- include/qom/cpu.h | 1 + 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/cpu-exec.c b/

[Qemu-devel] [PATCH 18/20] block: Remove bdrv_parse_cache_flags()

2016-03-20 Thread Kevin Wolf
All users are converted to bdrv_parse_cache_mode() now. Signed-off-by: Kevin Wolf --- block.c | 29 +++-- include/block/block.h | 1 - 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/block.c b/block.c index 3775e65..7cae704 100644 --- a/bloc

Re: [Qemu-devel] [PATCH v4 2/4] char: convert from GIOChannel to QIOChannel

2016-03-20 Thread Laurent Vivier
Hi, testing something else (migration...) I've discovered (by bisecting) that this patch can allow to lock the machine. I'm using the pseries machine, but I think it should happen with PC too. I start a machine with: ... -device virtio-serial-pci,id=serial0 \ -chardev soc

[Qemu-devel] [PULL 05/21] arm: virt: Move machine class init code to the abstract machine type

2016-03-20 Thread Peter Maydell
From: Wei Huang This patch moves the common class initialization code from "virt-2.6" to the new abstract class. An empty property is added to "virt-2.6" machine. In the meanwhile, related funtions are renamed to "virt_2_6_*" for consistency. Signed-off-by: Wei Huang Message-id: 1457717778-1772

[Qemu-devel] [PATCH v5 22/28] migration: delete QEMUFile stdio implementation

2016-03-20 Thread Daniel P. Berrange
Now that the exec migration backend and savevm have converted to use the QIOChannel based QEMUFile, there is no user remaining for the stdio based QEMUFile impl and it can be deleted. Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Daniel P. Berrange --- include/migration/qemu-file.h | 2 -

[Qemu-devel] [PATCH] hw/arm/bcm2836: Wire up CPU timer interrupts correctly

2016-03-20 Thread Peter Maydell
Wire up the CPU timer interrupts in the right order, with the nonsecure physical timer on cntpnsirq, the hyp timer on cnthpirq, and the secure physical timer on cntpsirq. (We did get the virt timer right, at least.) Reported-by: Antonio Huete Jiménez Signed-off-by: Peter Maydell --- hw/arm/bcm2

Re: [Qemu-devel] [PATCH v3 06/12] ARM: Factor out ARM on/off PSCI control functions

2016-03-20 Thread Jean-Christophe DUBOIS
Hi Peter, I am wondering what is the "correct" (simple?) way in QEMU to put a CPU in a particular state (HYP, SVC, MON, ...) after I reset it (using cpu_reset()). For example, if I reset a core that has "has_el3" property it will start in EL3 mode. Now what is the simple way to transition

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

2016-03-20 Thread Samuel Thibault
The following changes since commit 4829e0378dfb91d55af9dfd741bd09e8f2c4f91a: Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-03-18' into staging (2016-03-18 17:18:41 +) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-thib

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

2016-03-20 Thread Samuel Thibault
Signed-off-by: Samuel Thibault --- 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 *m) DEBUG_ARG("m_l

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

2016-03-20 Thread Samuel Thibault
Ah, sorry, that didn't include the cover letter with the branch to pull from. I have resent the pull request. Samuel

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

2016-03-20 Thread Samuel Thibault
Signed-off-by: Samuel Thibault --- 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) m->m_data -= iphlen;

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

2016-03-20 Thread Samuel Thibault
The following changes since commit 4829e0378dfb91d55af9dfd741bd09e8f2c4f91a: Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-03-18' into staging (2016-03-18 17:18:41 +) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-thib

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

2016-03-20 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 eea9be4..bf3a420 100644 --

[Qemu-devel] [PATCH 1/3] slirp: Split get_dns_addr

2016-03-20 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] [PATCH 0/3] Add dns6 support

2016-03-20 Thread Samuel Thibault
This adds support for DNS over IPv6 in slirp, which is notably useful when the host has only an IPv6 DNS server. Samuel Thibault (3): slirp: Split get_dns_addr slirp: Add dns6 resolution slirp: Support link-local DNS addresses slirp/libslirp.h | 1 + slirp/slirp.c| 117 ++

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

2016-03-20 Thread Samuel Thibault
This makes get_dns_addr address family-agnostic, thus allowing to add the IPv6 case. Signed-off-by: Samuel Thibault --- slirp/libslirp.h | 1 + slirp/slirp.c| 72 slirp/socket.c | 4 ++-- 3 files changed, 55 insertions(+), 22 delet

[Qemu-devel] [PATCH] util: move declarations out of qemu-common.h

2016-03-20 Thread Veronia
move declarations out of qemu-common.h for functions declared in utils/ files: e.g. include/qemu/path.h for utils/path.c. move inline functions out of qemu-common.h and into new files (e.g. include/qemu/bcd.h) Signed-off-by: Veronia Bahaa --- arch_init.c |1 + audio/audio.c

[Qemu-devel] [PATCH 5/5] tcg: move tb_invalidated_flag to CPUState

2016-03-20 Thread sergey . fedorov
From: Paolo Bonzini This is a baby step towards making tb_flush thread safe. Signed-off-by: Paolo Bonzini Signed-off-by: Sergey Fedorov --- cpu-exec.c | 11 +-- include/exec/exec-all.h | 2 -- include/qom/cpu.h | 2 ++ translate-all.c | 3 +-- 4 files cha

Re: [Qemu-devel] [PATCH v6 00/16] easier unboxed visits/qapi implicit types

2016-03-20 Thread Markus Armbruster
Eric Blake writes: > Addresses Markus' comments on v5, similar to his qapi-not-next > branch, with some commit message improvements. Adds a cleanup > to visit_needed() in patch 5, renames patch 6, splits patch 7 > into two, and adds a new patch 16. > > Built directly on master qemu.git. > > Also

Re: [Qemu-devel] [PATCH 13/49] target-ppc: do not use target_ulong in cpu-qom.h

2016-03-20 Thread Peter Maydell
On 16 March 2016 at 10:46, Paolo Bonzini wrote: > Using vaddr makes the cpu-qom.h file target independent Also brings the PowerPCCPUClass handle_mmu_fault method type into line with the one in CPUState. (Speaking of which, target-ppc/translate_init.c defines a cpu_ppc_handle_mmu_fault() which ta

Re: [Qemu-devel] [PATCH v2] vl.c: disallow command line fw cfg without opt/

2016-03-20 Thread Laszlo Ersek
On 03/16/16 19:15, Gabriel L. Somlo wrote: > On Wed, 16 Mar 2016 at 18:50:57 +0200, Michael S. Tsirkin wrote: >> On Wed, Mar 16, 2016 at 05:29:45PM +0100, Markus Armbruster wrote: >>> "Michael S. Tsirkin" writes: >>> Allowing arbitary file names on command line is setting us up for failu

[Qemu-devel] [PATCH 17/20] qemu-io: Use bdrv_parse_cache_mode() in reopen_f()

2016-03-20 Thread Kevin Wolf
We must forbid changing the WCE flag in bdrv_reopen() in the same patch, as otherwise the behaviour would change so that the flag takes precedence over the explicitly specified option. The correct value of the WCE flag depends on the BlockBackend user (e.g. guest device) and isn't a decision that

Re: [Qemu-devel] [PATCH 4/9] hw/arm: QOM'ify pxa2xx.c

2016-03-20 Thread Peter Maydell
On 7 March 2016 at 07:05, xiaoqiang zhao wrote: > Drop the use of old SysBus init function and use instance_init > > Signed-off-by: xiaoqiang zhao > --- > hw/arm/pxa2xx.c | 26 +++--- > 1 file changed, 11 insertions(+), 15 deletions(-) Reviewed-by: Peter Maydell Again, mor

Re: [Qemu-devel] [PATCH] usb: Fix compilation for Windows

2016-03-20 Thread Gerd Hoffmann
On Mi, 2016-03-16 at 21:17 +0100, Stefan Weil wrote: > Mingw-w64 does not provide sys/ioctl.h and Linux builds don't need it, > so remove that include statement. > > ERROR is defined by wingdi.h (included via windows.h). Undefine it before > it is redefined to avoid a compiler warning / error. >

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

2016-03-20 Thread Samuel Thibault
Samuel Thibault, on Sun 20 Mar 2016 15:45:25 +0100, wrote: > -*pdns_addr = dns_addr; > +memcpy(pdns_addr, &cached_addr, addrlen); Oops, sorry, it should have been > +memcpy(pdns_addr, cached_addr, addrlen); In my tests I had forgotten to try resolving more than once :) I

[Qemu-devel] [PATCH 0/4] slirp: Add dns6 support

2016-03-20 Thread Samuel Thibault
This adds support for DNS over IPv6 in slirp, which is notably useful when the host has only an IPv6 DNS server. This series depends on "slirp: Allow to disable IPv4 or IPv6" which defines in6_zero. Samuel Thibault (4): slirp: Split get_dns_addr slirp: Add dns6 resolution slirp: Support lin

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

2016-03-20 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 3/4] slirp: Support link-local DNS addresses

2016-03-20 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 eea9be4..bf3a420 100644 --

[Qemu-devel] [PATCH 1/4] slirp: Split get_dns_addr

2016-03-20 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] [PATCH 2/4] slirp: Add dns6 resolution

2016-03-20 Thread Samuel Thibault
This makes get_dns_addr address family-agnostic, thus allowing to add the IPv6 case. Signed-off-by: Samuel Thibault --- slirp/libslirp.h | 1 + slirp/slirp.c| 72 slirp/socket.c | 4 ++-- 3 files changed, 55 insertions(+), 22 delet

[Qemu-devel] Fw: important message

2016-03-20 Thread G Wray
Hello! New message, please read G Wray

Re: [Qemu-devel] [PATCH v5 25/28] migration: define 'tls-creds' and 'tls-hostname' migration parameters

2016-03-20 Thread Dr. David Alan Gilbert
* Daniel P. Berrange (berra...@redhat.com) wrote: > Define two new migration parameters to be used with TLS encryption. > The 'tls-creds' parameter provides the ID of an instance of the > 'tls-creds' object type, or rather a subclass such as 'tls-creds-x509'. > Providing these credentials will enab

Re: [Qemu-devel] [PATCH v3 0/5] Raspberry Pi framebuffer, DMA and Windows support

2016-03-20 Thread Peter Maydell
On 16 March 2016 at 23:01, Andrew Baumann wrote: > However, I don't seem to be able to repro this. What exactly were > you booting? This was the Ubuntu kernel from the 2015-04-06-ubuntu-trusty.zip which is linked to from https://wiki.ubuntu.com/ARM/RaspberryPi thanks -- PMM

Re: [Qemu-devel] [PATCH v2] vl.c: disallow command line fw cfg without opt/

2016-03-20 Thread Michael S. Tsirkin
On Thu, Mar 17, 2016 at 11:09:24AM +0100, Markus Armbruster wrote: > Top level reply, because this isn't in reply to any specific message in > the thread, more like in reply to all of them. > > FW CFG's primary user is QEMU, which uses it to expose configuration > information (in the widest sense)

[Qemu-devel] [PATCH v5 01/28] s390: use FILE instead of QEMUFile for creating text file

2016-03-20 Thread Daniel P. Berrange
The s390 skeys monitor command needs to write out a plain text file. Currently it is using the QEMUFile class for this, but work is ongoing to refactor QEMUFile and eliminate much code related to it. The only feature qemu_fopen() gives over fopen() is support for QEMU FD passing, but this can be ac

[Qemu-devel] [PATCH] util: move declarations out of qemu-common.h

2016-03-20 Thread veroniabahaa
From: Veronia Move declarations out of qemu-common.h for functions declared in utils/ files: e.g. include/qemu/path.h for utils/path.c. Move inline functions out of qemu-common.h and into new files (e.g. include/qemu/bcd.h) Signed-off-by: Veronia Bahaa --- arch_init.c |1 +

Re: [Qemu-devel] [PATCH 2/5] trace: [all] Add "guest_vmem" event

2016-03-20 Thread Lluís Vilanova
Peter Maydell writes: > On 18 March 2016 at 18:50, Lluís Vilanova wrote: >> Peter Maydell writes: >>> Trying to trace physaddrs is very tricky -- in the case of >>> a TLB hit there is no guarantee you can still identify the >>> physaddr of what you're accessing (the guest might have >>> changed t

[Qemu-devel] [PATCH v5 10/11] block: m25p80: n25q256a/n25q512a models

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 63c99f3..2bbf492 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.

[Qemu-devel] [PATCH v5 01/11] block: m25p80: Removed unused variable

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index de24f42..124 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -246,8 +246,

[Qemu-devel] [PATCH v5 02/11] block: m25p80: RESET_ENABLE and RESET_MEMORY commands

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 124..1d053a5 100644 --- a/

[Qemu-devel] [PATCH v5 11/11] block: m25p80: at25128a/at25256a models

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 2bbf492..1b75c87 100644 --- a/hw/block/m25p80.c +++ b/h

[Qemu-devel] [PATCH v5 07/11] block: m25p80: Dummy cycles for N25Q256/512

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski Use the setting from the volatile cfg register to correctly set the number of dummy cycles. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hw/bloc

[Qemu-devel] [PATCH v5 04/11] block: m25p80: Extend address mode

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski Extend address mode allows to switch flash 16 MiB banks, allowing user to access all flash sectors. This access mode is used by u-boot. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 27 +++ 1 file change

[Qemu-devel] [PATCH v5 05/11] block: m25p80: 4byte address mode

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski This patch adds only 4byte address mode (does not cover dummy cycles). This mode is needed to access more than 16 MiB of flash. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 43 +-- 1 fil

[Qemu-devel] [PATCH v5 03/11] block: m25p80: Widen flags variable

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski Extend the width of the flags variable to support the already existing (but unused) WR_1 flag, which is above the range of 8 bits. This allows support of EEPROM emulation which requires the WR_1 feature. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --

[Qemu-devel] [PATCH v5 06/11] block: m25p80: Add configuration registers

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski This patch adds both volatile and non volatile configuration registers and commands to allow modify them. It is needed for proper handling dummy cycles. Initialization of those registers and flash state has been included as well. Some of this registers are used by kernel.

[Qemu-devel] [PATCH v5 09/11] block: m25p80: Implemented FSR register

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski Implements FSR register, it is used for busy waits. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index c0b7b8c..63c99f3 1

[Qemu-devel] [PATCH v5 00/11] Support for N25Q256/512 and AT25128/256

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski V5: Changes after review - Macrofication of registers values - Numonyx is default value in switch for fast read family V4: - Fixed RNVCR command (needed bytes set to 2 instead of 1) - Config registers are configured only for micron flash devices - Move config registers ini

[Qemu-devel] [PATCH v2] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND

2016-03-20 Thread rutu . shah . 26
Example given by Paolo Bonzini, timer_mod(fdctrl->result_timer, qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + (get_ticks_per_sec() / 50)); NANOSECONDS_PER_SECOND makes it obvious that the timer will expire in 1/50th of a second. --- audio/audio.c | 3 +-- audio/noaudio.c

[Qemu-devel] [PATCH v5 08/11] block: m25p80: Fast read and 4bytes commands

2016-03-20 Thread marcin . krzeminski
From: Marcin Krzeminski Adds fast read and 4bytes commands family. This work is based on Pawel Lenkow patch from v1. Signed-off-by: Marcin Krzeminski Reviewed-by: Peter Crosthwaite --- hw/block/m25p80.c | 50 ++ 1 file changed, 46 insertions(+),

[Qemu-devel] [PATCH v2] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND

2016-03-20 Thread rutu . shah . 26
From: Rutuja Shah Signed-off-by: Rutuja Shah --- audio/audio.c | 3 +-- audio/noaudio.c | 8 audio/spiceaudio.c| 4 ++-- audio/wavaudio.c | 2 +- backends/baum.c | 2 +- block/qed.c | 2 +- cpus.c

Re: [Qemu-devel] [PATCH v2] Replaced get_tick_per_sec() by NANOSECONDS_PER_SECOND

2016-03-20 Thread rutuja shah
On Mon, Mar 21, 2016 at 12:01 AM, wrote: Hi, Some lines seem to have been skipped some how. This patch replaces get_ticks_per_sec() calls to NANOSECONDS_PER_SECOND. Also, as there are no callers, get_ticks_per_sec() has been removed. Replacement imporves readability and understandability of code.

  1   2   >