Re: [Qemu-devel] [PATCH] qdev_try_create(): Assert that devices we put onto the system bus are SysBusDevices

2016-03-20 Thread Paolo Bonzini
On 16/03/2016 15:25, Peter Maydell wrote: > > Looks strange, but okay, > You mean the way we use what looks like a cast macro and ignore > the result? Yeah, I thought that was a little odd-looking. Happy > to do it some other way if you have an alternative suggestion. Perhaps this:

[Qemu-devel] [PATCH v5 04/28] migration: ensure qemu_fflush() always writes full data amount

2016-03-20 Thread Daniel P. Berrange
The QEMUFile writev_buffer / put_buffer functions are expected to write out the full set of requested data, blocking until complete. The qemu_fflush() caller does not expect to deal with partial writes. Clarify the function comments and add a sanity check to the code to catch mistaken

[Qemu-devel] [PATCH v4 09/13] docker: Add mingw test

2016-03-20 Thread Fam Zheng
Reviewed-by: Alex Bennée Signed-off-by: Fam Zheng --- tests/docker/test-mingw | 34 ++ 1 file changed, 34 insertions(+) create mode 100755 tests/docker/test-mingw diff --git a/tests/docker/test-mingw

[Qemu-devel] [PATCH 15/20] raw: Support BDRV_REQ_FUA

2016-03-20 Thread Kevin Wolf
Pass through the FUA flag to the lower layer so that the separate flush can be saved in practically relevant cases where a (raw) format driver sits on top of the protocol driver. Signed-off-by: Kevin Wolf --- block/raw_bsd.c | 11 +++ 1 file changed, 7 insertions(+), 4

[Qemu-devel] [Bug 1558175] [NEW] virtio: vm killed (Guest moved used index)

2016-03-20 Thread Julien Meunier
Public bug reported: Hello, I ran a DPDK application with virtio ports. If I killed and relaunched it, VM is killed by qemu with the following message: > qemu-system-x86_64: Guest moved used index from 571 to 0 If I ran the same application with e1000 ports, I haven't this issue. Network

Re: [Qemu-devel] [PATCH 2/3] i.MX: Add the Freescale SPI Controller

2016-03-20 Thread Peter Crosthwaite
On Tue, Feb 16, 2016 at 9:15 AM, mar.krzeminski wrote: > > > W dniu 15.02.2016 o 23:43, Jean-Christophe DUBOIS pisze: > >> Le 15/02/2016 17:46, mar.krzeminski a écrit : >>> >>> >>> >>> W dniu 15.02.2016 o 11:18, Jean-Christophe DUBOIS pisze: Le 14/02/2016

[Qemu-devel] [PULL 40/40] contrib/ivshmem-server: Print "not for production" warning

2016-03-20 Thread Markus Armbruster
The code is okay for illustrating how things work and for testing, but its error handling make it unfit for production use. Print a warning to protect the innocent. Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau Message-Id:

[Qemu-devel] [PULL 05/15] qapi: Emit implicit structs in generated C

2016-03-20 Thread Markus Armbruster
From: Eric Blake We already have several places that want to visit all the members of an implicit object within a larger context (simple union variant, event with anonymous data, command with anonymous arguments struct); and will be adding another one soon (the ability to

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

2016-03-20 Thread Peter Xu
On Sat, Mar 19, 2016 at 11:40:04AM +0200, Aviv B.D. wrote: [...] > As far as I understand the code, currently there is no way to turn off the > IOTLB. > Furthermore. the IOTLB is not implemented as LRU, and actually caches > (indefinitely) > any accessed address, without any size constrains. I use

Re: [Qemu-devel] [RFC PATCH v2 0/9] Core based CPU hotplug for PowerPC sPAPR

2016-03-20 Thread David Gibson
On Fri, Mar 18, 2016 at 08:59:32AM +0530, Bharata B Rao wrote: > On Thu, Mar 17, 2016 at 09:03:43PM +1100, David Gibson wrote: > > On Wed, Mar 16, 2016 at 04:48:50PM +0100, Igor Mammedov wrote: > > > On Wed, 16 Mar 2016 09:18:03 +0530 > > > Bharata B Rao wrote: > > >

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

2016-03-20 Thread David Gibson
On Mon, Mar 21, 2016 at 01:14:02PM +1100, Alexey Kardashevskiy wrote: > ePAPR defines "hcall-instructions" device-tree property which contains > code to call hypercalls in ePAPR paravirtualized guests. In general > pseries guests should not be using this facility (as there is sPAPR > interface)

[Qemu-devel] [RFC 1/6] pseries: Stubs for HPT resizing

2016-03-20 Thread David Gibson
This introduces stub implementations of the H_RESIZE_HPT_PREPARE and H_RESIZE_HPT_COMMIT hypercalls which we hope to add in a PAPR extension to allow run time resizing of a guest's hash page table. It also adds a new machine property for controlling whether this new facility is available.

[Qemu-devel] [RFC 4/6] pseries: Use smaller default hash page tables when guest can resize

2016-03-20 Thread David Gibson
We've now implemented a PAPR extension allowing PAPR guest to resize their hash page table (HPT) during runtime. This patch makes use of that facility to allocate smaller HPTs by default. Specifically when a guest is aware of the HPT resize facility, qemu sizes the HPT to the initial memory size,

[Qemu-devel] [RFC 0/6] PAPR HPT resizing (qemu host side)

2016-03-20 Thread David Gibson
This is my latest draft of a PAPR extension allowing a guest's Hash Page Table (HPT) to be resized at runtime (to better respond to memory hotplug events). This series contains the qemu portions of the implementation: a full implementation for TCG and KVM PR guests, and hooks to enable and

[Qemu-devel] [RFC 3/6] pseries: Enable HPT resizing for 2.6

2016-03-20 Thread David Gibson
We've now implemented a PAPR extensions which allows PAPR guests (i.e. "pseries" machine type) to resize their hash page table during runtime. However, that extension is only enabled if explicitly chosen on the command line. This patch enables it by default for qemu-2.6, but leaves it disabled

[Qemu-devel] [RFC 5/6] pseries: Allow HPT resizing on PR KVM

2016-03-20 Thread David Gibson
The initial implementation of PAPR hash page table (HPT) resizing is based on TCG and will not work with KVM. Eventually, of course, we want to implement this in KVM as well. Long term that will require a new kernel capability flag to let qemu know if it's capable of handling HPT resizing.

[Qemu-devel] [RFC 6/6] pseries: Allow KVM HV implementation of HPT resizing to be used

2016-03-20 Thread David Gibson
So far, qemu implements the PAPR Hash Page Table (HPT) resizing extension with TCG or the KVM PR, since in both cases the guest's HPT is managed by qemu. For now we don't allow HPT resizing with KVM HV, since the HPT is managed by the KVM host kernel in that case. Instead of using a hack to

[Qemu-devel] [RFC 2/6] pseries: Implement HPT resizing

2016-03-20 Thread David Gibson
This patch implements hypercalls allowing a PAPR guest to resize its own hash page table. This will eventually allow for more flexible memory hotplug. The implementation is partially asynchronous, handled in a special thread running the hpt_prepare_thread() function. The state of a pending

Re: [Qemu-devel] [Qemu-ppc] [PATCH qemu v13 11/16] vfio: spapr: Add SPAPR IOMMU v2 support (DMA memory preregistering)

2016-03-20 Thread David Gibson
On Thu, Mar 17, 2016 at 08:23:35PM +1100, Alexey Kardashevskiy wrote: > On 03/17/2016 05:10 PM, David Gibson wrote: > >On Thu, Mar 17, 2016 at 04:04:29PM +1100, Alexey Kardashevskiy wrote: > >>On 03/15/2016 04:42 PM, David Gibson wrote: > >>>On Tue, Mar 15, 2016 at 01:53:48PM +1100, Alexey

[Qemu-devel] [PATCH 1/2] update linux headers to 4.5.0-rc5+

2016-03-20 Thread Jason Wang
Signed-off-by: Jason Wang --- include/standard-headers/asm-x86/hyperv.h | 4 +- include/standard-headers/linux/input.h | 1 + include/standard-headers/linux/types.h | 5 +- include/standard-headers/linux/virtio_balloon.h | 2 +-

[Qemu-devel] [PATCH 0/2] busy polling support for vhost-kernel

2016-03-20 Thread Jason Wang
Hi: This series enable vhost-kernel busy polling support. It's done through introducing a new property for tap backend - 'vhost_poll_us' which is the maximum number of us could be spent for busy polling. Please reivew. Thanks Jason Wang (2): update linux headers to 4.5.0-rc5+ tap: vhost

[Qemu-devel] [PATCH 2/2] tap: vhost busy polling support

2016-03-20 Thread Jason Wang
This patch add the capability of basic vhost net busy polling which is supported by recent kernel. User could configure the maximum number of us that could be spent on busy polling through a new property of tap "vhost_poll_us". Signed-off-by: Jason Wang ---

[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

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

[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

[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

[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

[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:

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

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

[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 ---

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

[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 +++

[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 ---

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

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: >

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 +

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

[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

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

[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

[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

[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

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

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.

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 ---

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 >

[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

[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

[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] [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

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

[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

[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

[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:

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

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 >>>

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: >

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

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

[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

[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 ---

[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 +---

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

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 >

[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

[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

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

[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 ---

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(>vprefix_addr6)) { > +/* IPv6 is disabled */ > +return; > +} > + (Note: vprefix_addr6 is not actually initialized yet at that point, which poses problem, I'll

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

[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

[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

[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

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] [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

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, _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 will

[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

[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

[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

[Qemu-devel] Fw: important message

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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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(-)

[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 |

[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

[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

  1   2   >