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

2016-11-09 Thread Christian Borntraeger
On 11/09/2016 01:22 PM, David Gibson wrote: > At present, the core device model code for 8250-like serial ports > (serial.c) and the code for serial ports attached to ISA-style legacy IO > (serial-isa.c) are both controlled by the CONFIG_SERIAL variable. > > There are lots and lots of embedded

Re: [Qemu-devel] [PATCH v11 08/22] vfio iommu type1: Add find_iommu_group() function

2016-11-09 Thread Dong Jia Shi
* Kirti Wankhede [2016-11-05 02:40:42 +0530]: Hi Kirti, > Add find_iommu_group() > > Signed-off-by: Kirti Wankhede > Signed-off-by: Neo Jia > Change-Id: I9d372f1ebe9eb01a5a21374b8a2b03f7df73601f > --- >

[Qemu-devel] [Bug 602544] Re: [Feature request] Please implement ATA TRIM command

2016-11-09 Thread Thomas Huth
** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/602544 Title: [Feature request] Please implement ATA TRIM command Status in QEMU: Fix

Re: [Qemu-devel] Segmentation Fault running Raspberry Pi OS.

2016-11-09 Thread Stefan Weil
On 11/09/16 22:35, Julio Faracco wrote: Hi guys, I was developing a simple OS for Raspberry Pi 2. When I was debugging my OS using "-s -S" options for QEMU, I was getting a segfault: Segmentation fault (core dumped). After that, I decided to run QEMU (for ARM using a raspi2 machine) inside

Re: [Qemu-devel] [PATCH] dma: rc4030: limit interval timer reload value

2016-11-09 Thread Gonglei (Arei)
Any ideas about this fix? Regards, -Gonglei > -Original Message- > From: Qemu-devel > [mailto:qemu-devel-bounces+arei.gonglei=huawei@nongnu.org] On > Behalf Of P J P > Sent: Wednesday, October 12, 2016 8:38 PM > To: Qemu Developers > Cc: Paolo Bonzini; Huawei PSIRT; Prasad J

[Qemu-devel] [PATCH v2] FU exceptions should carry a cause (IC)

2016-11-09 Thread Balbir Singh
As per the ISA we need a cause and executing a tabort r9 in libc for example causes a EXCP_FU exception, we don't wire up the IC (cause) when we post the exception. The cause is required for the kernel to do the right thing. The fix applies only to 64 bit ppc targets. Signed-off-by: Balbir

Re: [Qemu-devel] [TRIVIAL][RFC][PATCH] FU exceptions should carry a cause (IC)

2016-11-09 Thread Balbir Singh
On 10/11/16 13:46, David Gibson wrote: > On Thu, Nov 10, 2016 at 01:06:17PM +1100, David Gibson wrote: >> On Thu, Nov 10, 2016 at 12:42:37PM +1100, Balbir Singh wrote: >>> >>> >>> As per the ISA we need a cause for FU exceptions.Executing a tabort r9 >>> for example in libc, causes a EXCP_FU

Re: [Qemu-devel] [TRIVIAL][RFC][PATCH] FU exceptions should carry a cause (IC)

2016-11-09 Thread David Gibson
On Thu, Nov 10, 2016 at 01:06:17PM +1100, David Gibson wrote: > On Thu, Nov 10, 2016 at 12:42:37PM +1100, Balbir Singh wrote: > > > > > > As per the ISA we need a cause for FU exceptions.Executing a tabort r9 > > for example in libc, causes a EXCP_FU exception. We don't wire up the > > IC

Re: [Qemu-devel] [RFC 11/17] ppc: Add ppc_set_compat_all()

2016-11-09 Thread David Gibson
On Wed, Nov 09, 2016 at 04:18:20PM +1100, Alexey Kardashevskiy wrote: > On 09/11/16 14:52, David Gibson wrote: > > On Wed, Nov 09, 2016 at 12:27:47PM +1100, Alexey Kardashevskiy wrote: > >> On 08/11/16 16:18, David Gibson wrote: > >>> On Fri, Nov 04, 2016 at 03:01:40PM +1100, Alexey Kardashevskiy

Re: [Qemu-devel] [TRIVIAL][RFC][PATCH] FU exceptions should carry a cause (IC)

2016-11-09 Thread David Gibson
On Thu, Nov 10, 2016 at 12:42:37PM +1100, Balbir Singh wrote: > > > As per the ISA we need a cause for FU exceptions.Executing a tabort r9 > for example in libc, causes a EXCP_FU exception. We don't wire up the > IC (cause) when we post the exception. The cause is required > for the kernel to do

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

2016-11-09 Thread Fam Zheng
On Wed, 11/09 11:32, Stefan Hajnoczi wrote: > No doc comments -> error. I'm not sure that is a good idea. For example all .bdrv_co_flush_to_disk implementations have the same semantics and signature, requiring doc comments everywhere might be too much. Fam

Re: [Qemu-devel] [PATCH] target-i386/machine:fix migrate faile because of Hyper-V HV_X64_MSR_VP_RUNTIME

2016-11-09 Thread Gonglei (Arei)
> -Original Message- > From: Zhuangyanying > Sent: Friday, November 04, 2016 4:17 PM > To: pbonz...@redhat.com; r...@twiddle.net; ehabk...@redhat.com > Cc: qemu-devel@nongnu.org; Gonglei (Arei); Zhuangyanying > Subject: [PATCH] target-i386/machine:fix migrate faile because of Hyper-V >

[Qemu-devel] [RFC PATCH 1/4] qemu-char: add the "1-server-N-client" support

2016-11-09 Thread Wei Wang
This patch enables a qemu server socket to be connected by multiple client sockets. Signed-off-by: Wei Wang --- include/sysemu/char.h | 64 ++- qapi-schema.json | 3 +- qemu-char.c | 512 ++ 3 files

[Qemu-devel] [RFC PATCH 2/4] vhost-user: add the vhost-user extension to support the vhost-pci based inter-vm communication

2016-11-09 Thread Wei Wang
This is the slave part of vhost-user implemented in QEMU, with an extension to support vhost-pci. Signed-off-by: Wei Wang --- hw/virtio/Makefile.objs | 1 + hw/virtio/vhost-pci-server.c | 469 +++

[Qemu-devel] [RFC PATCH 3/4] vhost-pci-net device support

2016-11-09 Thread Wei Wang
Signed-off-by: Wei Wang --- hw/net/Makefile.objs | 2 +- hw/net/vhost-pci-net.c | 142 + hw/virtio/virtio-pci.c | 67 hw/virtio/virtio-pci.h

[Qemu-devel] [RFC PATCH 0/4] *** Half-cooked vhost-pci implementation patch ***

2016-11-09 Thread Wei Wang
As the design patches to the spec are in discussion, I'm sending out the draft code to show how the vhost-pci deign works. Comments on the implementation are also very welcommed. Thanks. Code base: v2.7.0 (git: df03468cad) Wei Wang (4): qemu-char: add the "1-server-N-client" support

[Qemu-devel] [RFC PATCH 4/4] vhost-user: extend the vhost-user Master (client) part to support vhost-pci

2016-11-09 Thread Wei Wang
Signed-off-by: Wei Wang --- hw/net/vhost_net.c| 20 hw/virtio/vhost-user.c| 66 +++ include/hw/virtio/vhost-backend.h | 3 ++ include/net/vhost_net.h | 5 +++ 4 files changed, 94

Re: [Qemu-devel] [PATCH v13 1/2] virtio-crypto: Add virtio crypto device specification

2016-11-09 Thread Gonglei (Arei)
> From: Cornelia Huck [mailto:cornelia.h...@de.ibm.com] > Sent: Wednesday, November 09, 2016 11:25 PM > Subject: Re: [Qemu-devel] [PATCH v13 1/2] virtio-crypto: Add virtio crypto > device specification > > On Wed, 9 Nov 2016 01:11:20 + > "Gonglei (Arei)" wrote: > >

Re: [Qemu-devel] Segmentation Fault running Raspberry Pi OS.

2016-11-09 Thread Fam Zheng
On Wed, 11/09 19:35, Julio Faracco wrote: > Hi guys, > > I was developing a simple OS for Raspberry Pi 2. > When I was debugging my OS using "-s -S" options for QEMU, I was > getting a segfault: Segmentation fault (core dumped). Hello Julio, What version of QEMU are you using? Please test with

Re: [Qemu-devel] [virtio-dev] Re: [PATCH v13 1/2] virtio-crypto: Add virtio crypto device specification

2016-11-09 Thread Gonglei (Arei)
> > Subject: [virtio-dev] Re: [Qemu-devel] [PATCH v13 1/2] virtio-crypto: Add > virtio > crypto device specification > > On Wed, Nov 09, 2016 at 01:11:20AM +, Gonglei (Arei) wrote: > > Nope, Actually I kept those description here is because I wanted to > > represent > each packet > >

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

2016-11-09 Thread Fam Zheng
On Wed, 11/09 14:06, Eric Blake wrote: > On 11/09/2016 07:49 AM, Stefan Hajnoczi wrote: > > On Tue, Nov 08, 2016 at 04:52:15PM -0600, Eric Blake wrote: > >> Commit 443668ca rewrote the write_zeroes logic to guarantee that > >> an unaligned request never crosses a cluster boundary. But > >> in the

Re: [Qemu-devel] [RFC 12/17] ppc: Migrate compatibility mode

2016-11-09 Thread David Gibson
On Tue, Nov 08, 2016 at 04:51:10PM +1100, Alexey Kardashevskiy wrote: > On 08/11/16 16:19, David Gibson wrote: > > On Fri, Nov 04, 2016 at 04:58:47PM +1100, Alexey Kardashevskiy wrote: > >> On 30/10/16 22:12, David Gibson wrote: > >>> Server-class POWER CPUs can be put into several compatibility

Re: [Qemu-devel] [PATCH] boot-serial-test: Add a test for the powernv machine

2016-11-09 Thread David Gibson
On Wed, Nov 09, 2016 at 07:00:42AM +0100, Cédric Le Goater wrote: > On 11/09/2016 02:02 AM, David Gibson wrote: > > On Tue, Nov 08, 2016 at 02:05:35PM +0100, Cédric Le Goater wrote: > >> On 11/08/2016 01:36 PM, Thomas Huth wrote: > >>> The new powernv machine ships with a firmware that outputs >

[Qemu-devel] [TRIVIAL][RFC][PATCH] FU exceptions should carry a cause (IC)

2016-11-09 Thread Balbir Singh
As per the ISA we need a cause for FU exceptions.Executing a tabort r9 for example in libc, causes a EXCP_FU exception. We don't wire up the IC (cause) when we post the exception. The cause is required for the kernel to do the right thing. I caught this issue while testing the latest kernel

[Qemu-devel] [Bug 1253777] Fix included in openstack/python-tripleoclient 0.0.10

2016-11-09 Thread OpenStack Infra
This issue was fixed in the openstack/python-tripleoclient 0.0.10 release. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1253777 Title: OpenBSD VM running on OpenBSD host has sleep calls taking

Re: [Qemu-devel] [PATCH v2 3/3] net: virtio-net discards TX data after link down

2016-11-09 Thread Yuri Benditovich
On Wed, Nov 9, 2016 at 10:28 PM, Michael S. Tsirkin wrote: > On Wed, Nov 09, 2016 at 05:22:02PM +0200, yuri.benditov...@daynix.com > wrote: > > From: Yuri Benditovich > > > > https://bugzilla.redhat.com/show_bug.cgi?id=1295637 > > Upon set_link

Re: [Qemu-devel] [PATCH for-2.8] mirror: do not flush every time the disks are synced

2016-11-09 Thread Paolo Bonzini
- Original Message - > From: "Jeff Cody" > To: "Paolo Bonzini" > Cc: qemu-devel@nongnu.org, qemu-bl...@nongnu.org, js...@redhat.com > Sent: Wednesday, November 9, 2016 7:38:26 PM > Subject: Re: [PATCH for-2.8] mirror: do not flush every time the

Re: [Qemu-devel] [PATCH v6 1/3] IOMMU: add option to enable VTD_CAP_CM to vIOMMU capility exposoed to guest

2016-11-09 Thread Michael S. Tsirkin
On Wed, Nov 09, 2016 at 03:28:02PM +0800, Jason Wang wrote: > > > On 2016年11月08日 19:04, Aviv B.D wrote: > > From: "Aviv Ben-David" > > > > This capability asks the guest to invalidate cache before each map > > operation. > > We can use this invalidation to trap map

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

2016-11-09 Thread John Snow
Sorry, I don't understand. The two fixes you mentioned were committed and released as part of 0.6.0, so does this work with QEMU version 0.6.0 or not? If it works in 0.6.0, can you tell me the first version where it stopped working? I assume it isn't currently working in 2.6.2, so it broke

[Qemu-devel] Segmentation Fault running Raspberry Pi OS.

2016-11-09 Thread Julio Faracco
Hi guys, I was developing a simple OS for Raspberry Pi 2. When I was debugging my OS using "-s -S" options for QEMU, I was getting a segfault: Segmentation fault (core dumped). After that, I decided to run QEMU (for ARM using a raspi2 machine) inside GDB. $ gdb ./arm-softmmu/qemu-system-arm

Re: [Qemu-devel] [PATCH for-2.8] migration: Fix return code of ram_save_iterate()

2016-11-09 Thread David Gibson
On Wed, Nov 09, 2016 at 08:46:34AM +0100, Thomas Huth wrote: > On 09.11.2016 08:18, Amit Shah wrote: > > On (Fri) 04 Nov 2016 [14:10:17], Thomas Huth wrote: > >> qemu_savevm_state_iterate() expects the iterators to return 1 > >> when they are done, and 0 if there is still something left to do. >

[Qemu-devel] [Bug 602544] Re: [Feature request] Please implement ATA TRIM command

2016-11-09 Thread John Snow
This was indeed implemented through support for the DATA_SET_MANAGEMENT command, in hw/ide/core.c. If you are having specific issues here in 2016, please file a more specific bug. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

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

2016-11-09 Thread John Snow
On 11/09/2016 06:02 AM, Marc-André Lureau wrote: ASAN spotted: SUMMARY: AddressSanitizer: 74 byte(s) leaked in 2 allocation(s). Signed-off-by: Marc-André Lureau --- tests/test-uuid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-uuid.c

[Qemu-devel] [Bug 597351] Re: Slow UDP performance with virtio device

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

[Qemu-devel] [Bug 660060] Re: virtio block read errors

2016-11-09 Thread Thomas Huth
Triaging old bug tickets ... can you still recreate this issue with the latest version of QEMU, or can we close this bug nowadays? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [Bug 681613] Re: Failed to convert vmdk on MacOSX ppc

2016-11-09 Thread Thomas Huth
Looks like this had been fixed here: http://git.qemu.org/?p=qemu.git;a=commitdiff;h=16372ff03d71c7ed3283 ==> Fix released. ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [Bug 603878] Re: [Feature request] qemu-img option about recompressing

2016-11-09 Thread Thomas Huth
** Changed in: qemu Importance: Undecided => Wishlist -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/603878 Title: [Feature request] qemu-img option about recompressing Status in QEMU: New

[Qemu-devel] [Bug 603872] Re: [Feature request] qemu-img image conversion does not show percentage

2016-11-09 Thread Thomas Huth
** Changed in: qemu Importance: Undecided => Wishlist -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/603872 Title: [Feature request] qemu-img image conversion does not show percentage Status in

[Qemu-devel] [Bug 602544] Re: [Feature request] Please implement ATA TRIM command

2016-11-09 Thread Thomas Huth
** Changed in: qemu Importance: Undecided => Wishlist -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/602544 Title: [Feature request] Please implement ATA TRIM command Status in QEMU: New Bug

[Qemu-devel] [Bug 601946] Re: [Feature request] qemu-img multi-threaded compressed image conversion

2016-11-09 Thread Thomas Huth
** Changed in: qemu Importance: Undecided => Wishlist -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/601946 Title: [Feature request] qemu-img multi-threaded compressed image conversion Status

Re: [Qemu-devel] [PATCH v2 3/3] net: virtio-net discards TX data after link down

2016-11-09 Thread Michael S. Tsirkin
On Wed, Nov 09, 2016 at 05:22:02PM +0200, yuri.benditov...@daynix.com wrote: > From: Yuri Benditovich > > https://bugzilla.redhat.com/show_bug.cgi?id=1295637 > Upon set_link monitor command or upon netdev deletion > virtio-net sends link down indication to the guest

Re: [Qemu-devel] [PATCH] target-m68k: add rol/ror/roxl/roxr instructions

2016-11-09 Thread Laurent Vivier
Le 09/11/2016 à 20:39, Richard Henderson a écrit : > On 11/09/2016 07:47 PM, Richard Henderson wrote: >> On 11/09/2016 06:30 PM, Laurent Vivier wrote: >>> +/* create [src:X:..] */ >>> + >>> +tcg_gen_deposit_i32(t0, QREG_CC_X, src, 1, size); >>> +tcg_gen_shli_i32(t0, t0, 31

Re: [Qemu-devel] [PATCH v2 2/3] net: vhost stop updates virtio queue state

2016-11-09 Thread Michael S. Tsirkin
On Wed, Nov 09, 2016 at 06:07:29PM +0100, Paolo Bonzini wrote: > > > On 09/11/2016 16:22, yuri.benditov...@daynix.com wrote: > > From: Yuri Benditovich > > > > Make virtio queue suitable for push operation from qemu > > after vhost was stopped. > > > >

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

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

Re: [Qemu-devel] [PATCH] MAINTAINERS: Remove obsolete stable branches

2016-11-09 Thread John Snow
On 11/09/2016 01:48 PM, Thomas Huth wrote: There are only very old and orphaned stable branches listed in the MAINTAINERS file - so this section is pretty useless nowadays. Let's remove it. Signed-off-by: Thomas Huth --- MAINTAINERS | 22 -- 1 file

Re: [Qemu-devel] [PATCH] target-m68k: add rol/ror/roxl/roxr instructions

2016-11-09 Thread Richard Henderson
On 11/09/2016 07:47 PM, Richard Henderson wrote: On 11/09/2016 06:30 PM, Laurent Vivier wrote: +/* create [src:X:..] */ + +tcg_gen_deposit_i32(t0, QREG_CC_X, src, 1, size); +tcg_gen_shli_i32(t0, t0, 31 - size); + +/* rotate */ + +tcg_gen_rotl_i32(t0, t0,

Re: [Qemu-devel] [PATCH 1/1] Fix assert when get default PCI address property used by vfio-pci

2016-11-09 Thread Alex Williamson
On Wed, 9 Nov 2016 18:36:20 + Daniel Oram wrote: > Allow the PCIHostDeviceAddress structure to work as the host property in > vfio-pci when it has it's default value of all fields set to ~0. In this form > the property indicates a non-existant device but given the

Re: [Qemu-devel] [PATCH v6 13/19] cputlb: atomically update tlb fields used by tlb_reset_dirty

2016-11-09 Thread Pranith Kumar
Hi Alex, This patch is causing some build errors on a 32-bit box: In file included from /home/pranith/qemu/include/exec/exec-all.h:44:0, from /home/pranith/qemu/cputlb.c:23: /home/pranith/qemu/cputlb.c: In function ‘tlb_flush_page_by_mmuidx_async_work’:

Re: [Qemu-devel] [QEMU PATCH v2] kvmclock: advance clock by time window between vm_stop and pre_save

2016-11-09 Thread Marcelo Tosatti
On Tue, Nov 08, 2016 at 11:32:30AM -0200, Marcelo Tosatti wrote: > On Tue, Nov 08, 2016 at 10:22:56AM +, Dr. David Alan Gilbert wrote: > > * Marcelo Tosatti (mtosa...@redhat.com) wrote: > > > On Mon, Nov 07, 2016 at 08:03:50PM +, Dr. David Alan Gilbert wrote: > > > > * Marcelo Tosatti

Re: [Qemu-devel] [PATCH for-2.8? 0/3] block/curl: Drop TFTP "support"

2016-11-09 Thread Jeff Cody
On Tue, Nov 08, 2016 at 08:14:58AM +0100, Markus Armbruster wrote: > Max Reitz writes: > > > On 07.11.2016 09:20, Markus Armbruster wrote: > >> Max Reitz writes: > >> > >>> On 03.11.2016 08:56, Markus Armbruster wrote: > Max Reitz

Re: [Qemu-devel] [PATCH] target-m68k: add rol/ror/roxl/roxr instructions

2016-11-09 Thread Richard Henderson
On 11/09/2016 06:30 PM, Laurent Vivier wrote: +/* create [src:X:..] */ + +tcg_gen_deposit_i32(t0, QREG_CC_X, src, 1, size); +tcg_gen_shli_i32(t0, t0, 31 - size); + +/* rotate */ + +tcg_gen_rotl_i32(t0, t0, shift); + +/* result is [src:..:src:X] */

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

2016-11-09 Thread Alex Bennée
Paolo Bonzini writes: > On 09/11/2016 15:57, Alex Bennée wrote: >> The one outstanding question is how to deal with the TLB flush >> semantics of the various guest architectures. Currently flushes to >> other vCPUs will happen at the end of their currently executing >>

Re: [Qemu-devel] Wiki documentation organization

2016-11-09 Thread G 3
On Nov 9, 2016, at 1:39 PM, Cornelia Huck wrote: On Mon, 7 Nov 2016 16:25:13 -0500 G 3 wrote: On Nov 7, 2016, at 1:16 PM, Cornelia Huck wrote: s/suggested/minimal/ for your command line (it is not very useful without any I/O devices...) If you know how to add

[Qemu-devel] [PATCH 1/1] Fix assert when get default PCI address property used by vfio-pci

2016-11-09 Thread Daniel Oram
Allow the PCIHostDeviceAddress structure to work as the host property in vfio-pci when it has it's default value of all fields set to ~0. In this form the property indicates a non-existant device but given the field bit sizes gets asserted as excess (and invalid) precision overflows the string

[Qemu-devel] [PATCH 0/1] vfio-pci: fix assert fail in host property if unused

2016-11-09 Thread Daniel Oram
Commit 4a946268 changed the default value of the structure (PCIHostDeviceAddress) underlying the host property in vfio-pci to be ~0 in all fields. Since this structure has excess bits for representing a standard BDF (:FF:FF.F) this triggers an assert check designed to catch such invalid

[Qemu-devel] [PATCH 09/21] qcow2: add .bdrv_load_autoloading_dirty_bitmaps

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Auto loading bitmaps are bitmaps in Qcow2, with the AUTO flag set. They are loaded when the image is opened and become BdrvDirtyBitmaps for the corresponding drive. Extra data in bitmaps is not supported for now. Signed-off-by: Vladimir Sementsov-Ogievskiy ---

[Qemu-devel] [PATCH 18/21] qmp: add x-debug-block-dirty-bitmap-sha256

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/dirty-bitmap.c | 5 + blockdev.c | 33 + include/block/dirty-bitmap.h | 2 ++ include/qemu/hbitmap.h | 8 qapi/block-core.json |

[Qemu-devel] [PATCH] MAINTAINERS: Remove obsolete stable branches

2016-11-09 Thread Thomas Huth
There are only very old and orphaned stable branches listed in the MAINTAINERS file - so this section is pretty useless nowadays. Let's remove it. Signed-off-by: Thomas Huth --- MAINTAINERS | 22 -- 1 file changed, 22 deletions(-) diff --git a/MAINTAINERS

[Qemu-devel] [PATCH 17/21] qmp: add autoload parameter to block-dirty-bitmap-add

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Optional. Default is false. Signed-off-by: Vladimir Sementsov-Ogievskiy Signed-off-by: Denis V. Lunev --- blockdev.c| 18 -- docs/qmp-commands.txt | 4 qapi/block-core.json | 6 +- 3 files changed, 25

[Qemu-devel] [PATCH 06/21] block/dirty-bitmap: add deserialize_ones func

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Add bdrv_dirty_bitmap_deserialize_ones() function, which is needed for qcow2 bitmap loading, to handle unallocated bitmap parts, marked as all-ones. Reviewed-by: Kevin Wolf Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/dirty-bitmap.c

Re: [Qemu-devel] Wiki documentation organization

2016-11-09 Thread Cornelia Huck
On Mon, 7 Nov 2016 16:25:13 -0500 G 3 wrote: > On Nov 7, 2016, at 1:16 PM, Cornelia Huck wrote: > > s/suggested/minimal/ for your command line (it is not very useful > > without any I/O devices...) > > If you know how to add these I/O devices, I should hope so :) >

[Qemu-devel] [PATCH 11/21] block: introduce persistent dirty bitmaps

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
New field BdrvDirtyBitmap.persistent means, that bitmap should be saved on bdrv_close, using format driver. Format driver should maintain bitmap storing. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block.c | 31 +++

Re: [Qemu-devel] [PATCH for-2.8] qemu-iotests: avoid spurious failure on test 109

2016-11-09 Thread Jeff Cody
On Wed, Nov 09, 2016 at 05:20:07PM +0100, Paolo Bonzini wrote: > In some cases it is possible that query-io-status is called just > before the job is completed, causing > > -{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, > "event": "BLOCK_JOB_COMPLETED", "data":

[Qemu-devel] [PATCH 15/21] qcow2: add .bdrv_can_store_dirty_bitmap

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Realize .bdrv_can_store_dirty_bitmap interface. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/qcow2-bitmap.c | 40 block/qcow2.c| 1 + block/qcow2.h| 4 3 files changed, 45 insertions(+) diff

Re: [Qemu-devel] [PATCH for-2.8] mirror: do not flush every time the disks are synced

2016-11-09 Thread Jeff Cody
On Wed, Nov 09, 2016 at 05:20:08PM +0100, Paolo Bonzini wrote: > This puts a huge strain on the disks when there are many concurrent > migrations. With this patch we only flush twice: just before issuing > the event, and just before pivoting to the destination. If management > will complete the

[Qemu-devel] [PATCH v8 00/21] qcow2: persistent dirty bitmaps

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Hi all! Here is a new update of qcow2-bitmap series. Max, Eric, great tanks for your review! I hope, I've covered most of your comments by this update. v8 web: https://src.openvz.org/users/vsementsov/repos/qemu/browse?at=qcow2-bitmap-v8 git: https://src.openvz.org/scm/~vsementsov/qemu.git

Re: [Qemu-devel] [PATCH for-2.8] qemu-iotests: avoid spurious failure on test 109

2016-11-09 Thread Jeff Cody
On Wed, Nov 09, 2016 at 05:20:07PM +0100, Paolo Bonzini wrote: > In some cases it is possible that query-io-status is called just > before the job is completed, causing > > -{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, > "event": "BLOCK_JOB_COMPLETED", "data":

[Qemu-devel] [PATCH 08/21] block: introduce auto-loading bitmaps

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Auto loading bitmaps are bitmaps store in the disk image, which should be loaded when the image is opened and become BdrvDirtyBitmaps for the corresponding drive. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block.c | 14 ++

[Qemu-devel] [PATCH 16/21] qmp: add persistent flag to block-dirty-bitmap-add

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Add optional 'persistent' flag to qmp command block-dirty-bitmap-add. Default is false. Signed-off-by: Vladimir Sementsov-Ogievskiy Signed-off-by: Denis V. Lunev --- blockdev.c| 17 - docs/qmp-commands.txt | 3 +++

[Qemu-devel] [PATCH 03/21] hbitmap: improve dirty iter

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Make dirty iter resistant to resetting bits in corresponding HBitmap. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- include/qemu/hbitmap.h | 25 +++-- util/hbitmap.c | 23 ++-

[Qemu-devel] [PATCH 12/21] block/dirty-bitmap: add bdrv_dirty_bitmap_next()

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- block/dirty-bitmap.c | 7 +++ include/block/dirty-bitmap.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/block/dirty-bitmap.c b/block/dirty-bitmap.c index

[Qemu-devel] [PATCH 04/21] tests: add hbitmap iter test

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Test that hbitmap iter is resistant to bitmap resetting. Signed-off-by: Vladimir Sementsov-Ogievskiy Signed-off-by: Denis V. Lunev Reviewed-by: Max Reitz --- tests/test-hbitmap.c | 19 +++ 1 file changed, 19

[Qemu-devel] [PATCH 02/21] specs/qcow2: do not use wording 'bitmap header'

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
A bitmap directory entry is sometimes called a 'bitmap header'. This patch leaves only one name - 'bitmap directory entry'. The name 'bitmap header' creates misunderstandings with 'qcow2 header' and 'qcow2 bitmap header extension' (which is extension of qcow2 header) Signed-off-by: Vladimir

[Qemu-devel] [PATCH 14/21] block: add bdrv_can_store_dirty_bitmap

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
This will be needed to check some restrictions before making bitmap persistent in qmp-block-dirty-bitmap-add (this functionality will be added by future patch) Signed-off-by: Vladimir Sementsov-Ogievskiy --- block.c | 22 ++

[Qemu-devel] [PATCH 10/21] block/dirty-bitmap: add autoload field to BdrvDirtyBitmap

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Mirror AUTO flag from Qcow2 bitmap in BdrvDirtyBitmap. This will be needed in future, to save this flag back to Qcow2 for persistent bitmaps. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- block/dirty-bitmap.c | 16

[Qemu-devel] [PATCH 13/21] qcow2: add .bdrv_store_persistent_dirty_bitmaps()

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Realize block bitmap storing interface, to allow qcow2 images store persistent bitmaps. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/qcow2-bitmap.c | 451 +++ block/qcow2.c| 1 + block/qcow2.h|

[Qemu-devel] [PATCH 07/21] qcow2: add dirty bitmaps extension

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Add dirty bitmap extension as specified in docs/specs/qcow2.txt. For now, just mirror extension header into Qcow2 state and check constraints. For now, disable image resize if it has bitmaps. It will be fixed later. Signed-off-by: Vladimir Sementsov-Ogievskiy ---

[Qemu-devel] [PATCH 21/21] qcow2-bitmap: refcounts

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Calculate refcounts for qcow2 bitmaps. It is needed for qcow2's qemu-img check implementation. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/qcow2-bitmap.c | 73 ++ block/qcow2-refcount.c | 6 +

[Qemu-devel] [PATCH 20/21] qcow2-refcount: rename inc_refcounts() and make it public

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
This is needed for the following patch, which will introduce refcounts checking for qcow2 bitmaps. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/qcow2-refcount.c | 53 ++ block/qcow2.h | 4 2 files

[Qemu-devel] [PATCH 01/21] specs/qcow2: fix bitmap granularity qemu-specific note

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- docs/specs/qcow2.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/specs/qcow2.txt b/docs/specs/qcow2.txt index 80cdfd0..dda53dd 100644 --- a/docs/specs/qcow2.txt +++ b/docs/specs/qcow2.txt @@

[Qemu-devel] [PATCH 19/21] iotests: test qcow2 persistent dirty bitmap

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/165 | 89 ++ tests/qemu-iotests/165.out | 5 +++ tests/qemu-iotests/group | 1 + 3 files changed, 95 insertions(+) create mode 100755

[Qemu-devel] [PATCH 05/21] block: fix bdrv_dirty_bitmap_granularity signature

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
Make getter signature const-correct. This allows other functions with const dirty bitmap parameter use bdrv_dirty_bitmap_granularity(). Reviewed-by: Eric Blake Reviewed-by: John Snow Reviewed-by: Kevin Wolf Signed-off-by: Vladimir

Re: [Qemu-devel] [PATCH 3/3] Plumb the HAXM-based hardware acceleration support

2016-11-09 Thread Paolo Bonzini
On 09/11/2016 18:19, Vincent Palatin wrote: >> > Please try removing this block and instead starting QEMU with >> > -mem-prealloc. If it works, remove hax_populate_ram and just set >> > mem_prealloc to 1 in hax_accel_init. > it's not working, later hax_set_ram() is unhappy about what it is >

[Qemu-devel] [PATCH] target-m68k: add rol/ror/roxl/roxr instructions

2016-11-09 Thread Laurent Vivier
Signed-off-by: Laurent Vivier --- target-m68k/translate.c | 414 1 file changed, 414 insertions(+) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index a17ff01..9686a24 100644 --- a/target-m68k/translate.c +++

Re: [Qemu-devel] [RFC 1/3] aio-posix: add aio_set_poll_handler()

2016-11-09 Thread Paolo Bonzini
On 09/11/2016 18:13, Stefan Hajnoczi wrote: > Poll handlers are executed for a certain amount of time before the event > loop polls file descriptors. This can be used to keep the event loop > thread scheduled and may therefore recognize events faster than blocking > poll(2) calls. > > This is

Re: [Qemu-devel] [PATCH 3/3] Plumb the HAXM-based hardware acceleration support

2016-11-09 Thread Vincent Palatin
On Tue, Nov 8, 2016 at 9:37 PM, Paolo Bonzini wrote: > >> diff --git a/cpu-exec.c b/cpu-exec.c >> index 4188fed..4bd238b 100644 >> --- a/cpu-exec.c >> +++ b/cpu-exec.c > > All this should not be needed anymore with unrestricted guest support. Removed in v2 > >> diff --git

[Qemu-devel] [RFC 0/3] aio: experimental virtio-blk polling mode

2016-11-09 Thread Stefan Hajnoczi
Recent performance investigation work done by Karl Rister shows that the guest->host notification takes around 20 us. This is more than the "overhead" of QEMU itself (e.g. block layer). One way to avoid the costly exit is to use polling instead of notification. The main drawback of polling is

[Qemu-devel] [RFC 3/3] linux-aio: poll ring for completions

2016-11-09 Thread Stefan Hajnoczi
The Linux AIO userspace ABI includes a ring that is shared with the kernel. This allows userspace programs to process completions without system calls. Add an AioContext poll handler to check for completions in the ring. Signed-off-by: Stefan Hajnoczi ---

[Qemu-devel] [RFC 2/3] virtio: poll virtqueues for new buffers

2016-11-09 Thread Stefan Hajnoczi
Add an AioContext poll handler to detect new virtqueue buffers without waiting for a guest->host notification. Signed-off-by: Stefan Hajnoczi --- hw/virtio/virtio.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/hw/virtio/virtio.c

[Qemu-devel] [RFC 1/3] aio-posix: add aio_set_poll_handler()

2016-11-09 Thread Stefan Hajnoczi
Poll handlers are executed for a certain amount of time before the event loop polls file descriptors. This can be used to keep the event loop thread scheduled and may therefore recognize events faster than blocking poll(2) calls. This is an experimental feature to reduce I/O latency in high IOPS

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

2016-11-09 Thread Vincent Palatin
On Wed, Nov 9, 2016 at 1:30 PM, Stefan Hajnoczi wrote: > On Tue, Nov 08, 2016 at 04:39:28PM +0100, Vincent Palatin wrote: > > Please run scripts/checkpatch.pl to verify that the code follows the > QEMU coding style. My original plan was to import those files unmodified but

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

2016-11-09 Thread Vincent Palatin
On Tue, Nov 8, 2016 at 6:46 PM, Paolo Bonzini wrote: > > > On 08/11/2016 16:39, Vincent Palatin wrote: >> +/* need tcg for non-UG platform in real mode */ >> +if (!hax_ug_platform()) >> + tcg_exec_init(tcg_tb_size * 1024 * 1024); >> + > > Oh, it does

Re: [Qemu-devel] [PATCH v2 2/3] net: vhost stop updates virtio queue state

2016-11-09 Thread Paolo Bonzini
On 09/11/2016 16:22, yuri.benditov...@daynix.com wrote: > From: Yuri Benditovich > > Make virtio queue suitable for push operation from qemu > after vhost was stopped. > > Signed-off-by: Yuri Benditovich > --- > hw/virtio/vhost.c | 1

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

2016-11-09 Thread André Przywara
On 09/11/16 15:23, Andrew Jones wrote: > On Wed, Nov 09, 2016 at 02:43:53PM +, Andre Przywara wrote: >> Hi, >> >> On 09/11/16 13:08, Andrew Jones wrote: >>> On Wed, Nov 09, 2016 at 12:35:48PM +, Andre Przywara wrote: >>> [...] > diff --git a/lib/arm/asm/gic-v3.h b/lib/arm/asm/gic-v3.h

Re: [Qemu-devel] [PATCH 21/22] specs/qcow2: fix bitmap granularity qemu-specific note

2016-11-09 Thread Vladimir Sementsov-Ogievskiy
07.10.2016 23:18, Eric Blake wrote: On 09/30/2016 05:53 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy --- docs/specs/qcow2.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/specs/qcow2.txt

[Qemu-devel] [Bug 1640525] Re: -net socket, connect/listen does not work in 2.7.0

2016-11-09 Thread Daniel Berrange
The patch for this issue is here: https://lists.gnu.org/archive/html/qemu-devel/2016-11/msg00811.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1640525 Title: -net socket,connect/listen does

Re: [Qemu-devel] [PATCH 09/14] nvdimm acpi: rename nvdimm_acpi_hotplug

2016-11-09 Thread Igor Mammedov
On Mon, 7 Nov 2016 19:13:44 +0800 Xiao Guangrong wrote: > Rename it to nvdimm_plug() > > Suggested-by: Igor Mammedov > Signed-off-by: Xiao Guangrong Reviewed-by: Igor Mammedov > --- >

Re: [Qemu-devel] [PATCH 12/14] nvdimm acpi: rename nvdimm_dsm_reserved_root

2016-11-09 Thread Igor Mammedov
On Mon, 7 Nov 2016 19:13:47 +0800 Xiao Guangrong wrote: > Rename it to nvdimm_dsm_handle_reserved_root_method > > Suggested-by: Igor Mammedov > Signed-off-by: Xiao Guangrong Reviewed-by: Igor Mammedov

Re: [Qemu-devel] [PATCH 08/14] nvdimm acpi: cleanup nvdimm_build_fit

2016-11-09 Thread Igor Mammedov
On Mon, 7 Nov 2016 19:13:43 +0800 Xiao Guangrong wrote: > inline buf_size to refine the code a bit > > Suggested-by: Igor Mammedov > Signed-off-by: Xiao Guangrong > --- > hw/acpi/nvdimm.c | 4 +--- > 1 file

Re: [Qemu-devel] [PATCH 10/14] nvdimm acpi: define DSM return codes

2016-11-09 Thread Igor Mammedov
On Mon, 7 Nov 2016 19:13:45 +0800 Xiao Guangrong wrote: > and use these codes to refine the code > > Suggested-by: Igor Mammedov > Signed-off-by: Xiao Guangrong Reviewed-by: Igor Mammedov

  1   2   3   >