Re: [Qemu-devel] [RFC PATCH 0/2] ARM: add QMP command to query GIC version

2016-02-14 Thread Fam Zheng
On Mon, 02/15 15:34, Peter Xu wrote: > On Mon, Feb 15, 2016 at 12:54:57AM -0600, Wei Huang wrote: > > On 2/13/16 23:41, Peter Xu wrote: > > > One question: how should I make this command "ARM only"? I see that > > > in qmp-commands.hx, I can use something like "#if defined > > > TARGET_ARM" to

Re: [Qemu-devel] [RFC PATCH 0/2] ARM: add QMP command to query GIC version

2016-02-14 Thread Peter Xu
On Mon, Feb 15, 2016 at 12:54:57AM -0600, Wei Huang wrote: > On 2/13/16 23:41, Peter Xu wrote: > > Please help review whether the interface suits our need, also please > > point out any error I have made. > > I tested QEMU with these patches and they were able to work on a native > ARM64 machine.

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

2016-02-14 Thread Zhang Chen
On 02/15/2016 01:23 PM, Jason Wang wrote: On 02/04/2016 05:00 PM, Zhang Chen wrote: On 02/04/2016 03:43 PM, Zhang Chen wrote: From: ZhangChen Filter-mirror is a netfilter plugin. It gives qemu the ability to copy and mirror guest's net packet. we output

Re: [Qemu-devel] [PATCH v15 0/9] Block replication for continuous checkpoints

2016-02-14 Thread Changlong Xie
Hi all It seems no any review during the long Spring festival. Ping :) Thanks -Xie On 02/05/2016 12:17 PM, Changlong Xie wrote: Block replication is a very important feature which is used for continuous checkpoints(for example: COLO). You can get the detailed information about

Re: [Qemu-devel] [RFC PATCH 0/2] ARM: add QMP command to query GIC version

2016-02-14 Thread Wei Huang
On 2/13/16 23:41, Peter Xu wrote: > For ARM platform, we still do not have any interface to query > whether current QEMU/host support specific GIC version. This > patchset is trying to add one QMP interface for that. By querying > the GIC capability using the new interface, one should know

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

2016-02-14 Thread Jason Wang
On 02/04/2016 03:43 PM, Zhang Chen wrote: > From: ZhangChen > > Using qtest qmp interface to implement following cases: > 1) add/remove filter-mirror > 2) add a filter-mirror then delete the netdev > 3) add/remove more than one filter-mirrors > 4) add more than

[Qemu-devel] [PATCH v3] linux-user: add option to intercept execve() syscalls

2016-02-14 Thread Petros Angelatos
In order for one to use QEMU user mode emulation under a chroot, it is required to use binfmt_misc. This can be avoided by QEMU never doing a raw execve() to the host system. Introduce a new option, -execve, that uses the current QEMU interpreter to intercept execve(). qemu_execve() will prepend

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

2016-02-14 Thread Jason Wang
On 02/04/2016 05:00 PM, Zhang Chen wrote: > > > On 02/04/2016 03:43 PM, Zhang Chen wrote: >> From: ZhangChen >> >> Filter-mirror is a netfilter plugin. >> It gives qemu the ability to copy and mirror guest's >> net packet. we output packet to chardev. To make it

[Qemu-devel] [PATCH qemu] update-linux-headers: Add userfaultfd.h

2016-02-14 Thread Alexey Kardashevskiy
userfailtfd.h is used by post-copy migration so include it to the update-linux-headers.sh as we want it updated altogether with other kernel headers. Signed-off-by: Alexey Kardashevskiy --- scripts/update-linux-headers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [Qemu-devel] [PATCH V2] quorum: fix segfault when read fails in fifo mode

2016-02-14 Thread Changlong Xie
On 02/05/2016 11:46 PM, Eric Blake wrote: On 02/04/2016 07:25 PM, Changlong Xie wrote: Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie --- block/quorum.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [Qemu-devel] [Qemu-block] [PATCH v9 3/3] qmp: add monitor command to add/remove a child

2016-02-14 Thread Changlong Xie
On 02/11/2016 02:02 AM, Max Reitz wrote: On 25.12.2015 10:22, Changlong Xie wrote: From: Wen Congyang The new QMP command name is x-blockdev-change. It's just for adding/removing quorum's child now, and doesn't support all kinds of children, all kinds of operations, nor

Re: [Qemu-devel] [PATCH v12 1/2] mirror: Rewrite mirror_iteration

2016-02-14 Thread Fam Zheng
On Sun, 02/14 22:49, Jeff Cody wrote: > On Feb 14, 2016 21:19, "Fam Zheng" wrote: > > > > On Mon, 02/08 13:54, Max Reitz wrote: > > > On 07.02.2016 13:46, Fam Zheng wrote: > > > > On Sat, 02/06 14:24, Max Reitz wrote: > > > >> On 05.02.2016 03:00, Fam Zheng wrote: > > > >>> The

Re: [Qemu-devel] [PATCH] usb: check RNDIS buffer offsets & length

2016-02-14 Thread P J P
+-- On Tue, 9 Feb 2016, P J P wrote --+ | +-- On Fri, 5 Feb 2016, P J P wrote --+ | | From: Prasad J Pandit | | | | When processing remote NDIS control message packets, the USB Net | | device emulator uses a fixed length(4096) data buffer. The incoming | |

Re: [Qemu-devel] [PATCH] net: ne2000: check ring buffer control registers

2016-02-14 Thread P J P
+-- On Tue, 9 Feb 2016, P J P wrote --+ | +-- On Fri, 5 Feb 2016, Jason Wang wrote --+ | | I suspect this could even work. Consider after realizing, s->stop is | | zero, any attempt to set STARTPG will fail? | | Ie after 'pci_ne2000_realize'? It does not seem to set or reset s->stop | register.

Re: [Qemu-devel] [V4 1/4] hw/i386: Introduce AMD IO MMU

2016-02-14 Thread David kiarie
On Mon, Feb 15, 2016 at 6:41 AM, David kiarie wrote: > On Thu, Feb 4, 2016 at 6:03 PM, Michael S. Tsirkin wrote: >> On Mon, Jan 18, 2016 at 06:25:42PM +0300, David Kiarie wrote: >>> Add AMD IO MMU emulation to Qemu in addition to Intel IO MMU. >>> The IO

Re: [Qemu-devel] [PATCH v12 1/2] mirror: Rewrite mirror_iteration

2016-02-14 Thread Jeff Cody
On Feb 14, 2016 21:19, "Fam Zheng" wrote: > > On Mon, 02/08 13:54, Max Reitz wrote: > > On 07.02.2016 13:46, Fam Zheng wrote: > > > On Sat, 02/06 14:24, Max Reitz wrote: > > >> On 05.02.2016 03:00, Fam Zheng wrote: > > >>> The "pnum < nb_sectors" condition in deciding whether to

[Qemu-devel] [PATCH v2 16/16] tcg-mips: Use mipsr6 instructions in calls

2016-02-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 447dbcf..16118f7 100644 --- a/tcg/mips/tcg-target.c +++

[Qemu-devel] [PATCH v2 14/16] tcg-mips: Use mips64r6 instructions in constant addition

2016-02-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 59 ++- 1 file changed, 49 insertions(+), 10 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 52e1edc..ab72715 100644 ---

Re: [Qemu-devel] [PATCH v2 00/16] tcg mips64 and mips r6 improvements

2016-02-14 Thread Richard Henderson
On 02/15/2016 02:42 PM, Richard Henderson wrote: Changes since v1: * Some bugs pointed out by Mark fixed. Bah. Brain fart -- not Mark, James. Which also means I used the wrong --cc option too. Ho hum. r~

[Qemu-devel] [PATCH v2 12/16] tcg-mips: Improve tcg_out_movi for mips64

2016-02-14 Thread Richard Henderson
For r6, the ADDIUPC, ALUIPC, DAHI and DATI instructions can eliminate 2-4 insns off the pre-r6 full 64-bit immediate load sequence. For pre-r6, NAL can do the same for the special, but common, case of the return address for the qemu_ld/st slow paths. Signed-off-by: Richard Henderson

[Qemu-devel] [PATCH v2 15/16] tcg-mips: Use mipsr6 instructions in branches

2016-02-14 Thread Richard Henderson
Using compact branches, when possible, avoids a delay slot nop. Signed-off-by: Richard Henderson --- include/elf.h | 4 + tcg/mips/tcg-target.c | 270 +++--- 2 files changed, 218 insertions(+), 56 deletions(-) diff --git

[Qemu-devel] [PATCH v2 08/16] tcg-mips: Adjust prologue for mips64

2016-02-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 56 --- 1 file changed, 26 insertions(+), 30 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index d1266ef..4a3f11a 100644 ---

[Qemu-devel] [PATCH v2 09/16] tcg-mips: Add tcg unwind info

2016-02-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 44 1 file changed, 44 insertions(+) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 4a3f11a..25b079b 100644 --- a/tcg/mips/tcg-target.c +++

[Qemu-devel] [PATCH v2 11/16] tcg-mips: Adjust calling conventions for mips64

2016-02-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 21 +++-- tcg/mips/tcg-target.h | 19 +++ 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index f61d6c7..8fb2ab0 100644

[Qemu-devel] [PATCH v2 07/16] tcg-mips: Adjust load/store functions for mips64

2016-02-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 0451acb..d1266ef 100644 --- a/tcg/mips/tcg-target.c +++ b/tcg/mips/tcg-target.c @@

[Qemu-devel] [PATCH v2 04/16] tcg-mips: Support 64-bit opcodes

2016-02-14 Thread Richard Henderson
Bulk patch adding 64-bit opcodes into tcg_out_op. Note that mips64 is as yet neither complete nor enabled. Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 322 -- tcg/mips/tcg-target.h | 41 +++ 2 files

[Qemu-devel] [PATCH v2 06/16] tcg-mips: Adjust move functions for mips64

2016-02-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 34 +- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 88c032c..0451acb 100644 --- a/tcg/mips/tcg-target.c +++

[Qemu-devel] [PATCH v2 13/16] tcg-mips: Use mips64r6 instructions in tcg_out_ldst

2016-02-14 Thread Richard Henderson
The DAUI, DAHI, and DATI insns can be used to eliminate one extra instruction in these cases. Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 40 1 file changed, 40 insertions(+) diff --git a/tcg/mips/tcg-target.c

[Qemu-devel] [PATCH v2 10/16] tcg-mips: Adjust qemu_ld/st for mips64

2016-02-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 188 ++ 1 file changed, 130 insertions(+), 58 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 25b079b..f61d6c7 100644 ---

[Qemu-devel] [PATCH v2 05/16] tcg-mips: Add bswap32u and bswap64

2016-02-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 102 -- 1 file changed, 99 insertions(+), 3 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 5ce52ad..88c032c 100644 ---

[Qemu-devel] [PATCH v2 03/16] tcg-mips: Add mips64 opcodes

2016-02-14 Thread Richard Henderson
Since the mips manual tables are in octal, reorg all of the opcodes into that format for clarity. Note that the 64-bit opcodes are as yet unused. Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 191 +++--- 1 file

[Qemu-devel] [PATCH v2 02/16] tcg-mips: Move bswap code to a subroutine

2016-02-14 Thread Richard Henderson
Without the mips32r2 instructions to perform swapping, bswap is quite large, dominating the size of each reverse-endian qemu_ld/qemu_st operation. Create a subroutine in the prologue block. The subroutine requires extra reserved registers (TCG_TMP[23]). Using these within qemu_ld means that we

[Qemu-devel] [PATCH v2 00/16] tcg mips64 and mips r6 improvements

2016-02-14 Thread Richard Henderson
Changes since v1: * Some bugs pointed out by Mark fixed. * Canonicalize the whole file on tcg_debug_assert. * Switch bswap code to subroutine earlier; the first patch is standalone for mips32, and there is no longer an intermediate patch with inline bswap for mips64. * Use NAL for

[Qemu-devel] [PATCH v2 01/16] tcg-mips: Always use tcg_debug_assert

2016-02-14 Thread Richard Henderson
Signed-off-by: Richard Henderson --- tcg/mips/tcg-target.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 2dc4998..ebb936d 100644 --- a/tcg/mips/tcg-target.c +++ b/tcg/mips/tcg-target.c

Re: [Qemu-devel] [V4 1/4] hw/i386: Introduce AMD IO MMU

2016-02-14 Thread David kiarie
On Thu, Feb 4, 2016 at 6:03 PM, Michael S. Tsirkin wrote: > On Mon, Jan 18, 2016 at 06:25:42PM +0300, David Kiarie wrote: >> Add AMD IO MMU emulation to Qemu in addition to Intel IO MMU. >> The IO MMU does basic translation, error checking and has a >> minimal IOTLB

[Qemu-devel] VirtIO-GPU 3D OpenGL Hardware Acceleration for VMs

2016-02-14 Thread Saket Sinha
Hi, It seems upstream Linux/Gallium3D/Mesa/Qemu/KVM has recently gained virtualized support for 3D/OpenGL hardware acceleration in VMs, allowing using the GPU of the host in VMs. As per my understanding the following components are needed - - Linux 4.4 kernel includes the DRM driver for

Re: [Qemu-devel] [PATCH v15 7/9] Introduce new APIs to do replication operation

2016-02-14 Thread Changlong Xie
On 02/15/2016 08:57 AM, Hailiang Zhang wrote: On 2016/2/5 12:18, Changlong Xie wrote: Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Signed-off-by: Changlong Xie

Re: [Qemu-devel] [PATCH v12 1/2] mirror: Rewrite mirror_iteration

2016-02-14 Thread Fam Zheng
On Mon, 02/08 13:54, Max Reitz wrote: > On 07.02.2016 13:46, Fam Zheng wrote: > > On Sat, 02/06 14:24, Max Reitz wrote: > >> On 05.02.2016 03:00, Fam Zheng wrote: > >>> The "pnum < nb_sectors" condition in deciding whether to actually copy > >>> data is unnecessarily strict, and the qiov

Re: [Qemu-devel] [Qemu-ppc] [PATCH] spapr: skip configuration section during migration of older machines

2016-02-14 Thread David Gibson
On Fri, Feb 12, 2016 at 12:14:59PM +0100, Greg Kurz wrote: > On Fri, 12 Feb 2016 16:24:26 +1100 > David Gibson wrote: > > > On Thu, Feb 11, 2016 at 04:53:40PM +, Dr. David Alan Gilbert wrote: > > > * Greg Kurz (gk...@linux.vnet.ibm.com) wrote: > > > > On Mon,

Re: [Qemu-devel] [PATCH v15 7/9] Introduce new APIs to do replication operation

2016-02-14 Thread Wen Congyang
On 02/15/2016 08:57 AM, Hailiang Zhang wrote: > On 2016/2/5 12:18, Changlong Xie wrote: >> Signed-off-by: Wen Congyang >> Signed-off-by: zhanghailiang >> Signed-off-by: Gonglei >> Signed-off-by: Changlong Xie

Re: [Qemu-devel] [PATCH v15 7/9] Introduce new APIs to do replication operation

2016-02-14 Thread Hailiang Zhang
On 2016/2/5 12:18, Changlong Xie wrote: Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Signed-off-by: Changlong Xie --- Makefile.objs| 1 +

Re: [Qemu-devel] [PATCH v2 00/13] cuda: misc fixes and cleanups

2016-02-14 Thread David Gibson
On Sun, Feb 14, 2016 at 07:01:48PM +, Mark Cave-Ayland wrote: > On 07/02/16 20:34, Hervé Poussineau wrote: > > > Hi, > > > > This patchset cleans up a little bit the Apple CUDA emulation: > > - correctly reject commands with wrong parameters > > - support changing the frequency of

Re: [Qemu-devel] [PATCH v2 00/13] cuda: misc fixes and cleanups

2016-02-14 Thread Hervé Poussineau
Le 14/02/2016 20:01, Mark Cave-Ayland a écrit : On 07/02/16 20:34, Hervé Poussineau wrote: Hi, This patchset cleans up a little bit the Apple CUDA emulation: - correctly reject commands with wrong parameters - support changing the frequency of auto-polling - support changing device list

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

2016-02-14 Thread mar.krzeminski
W dniu 14.02.2016 o 17:56, Jean-Christophe DUBOIS pisze: Le 14/02/2016 12:52, mar.krzeminski a écrit : Hello, W dniu 13.02.2016 o 17:06, Jean-Christophe Dubois pisze: Signed-off-by: Jean-Christophe Dubois --- hw/ssi/Makefile.objs | 1 + hw/ssi/imx_spi.c

Re: [Qemu-devel] [V4 3/4] hw/i386: ACPI table for AMD IO MMU

2016-02-14 Thread David kiarie
On Sun, Feb 14, 2016 at 4:07 PM, Michael S. Tsirkin wrote: > On Sun, Feb 14, 2016 at 02:54:36PM +0200, Marcel Apfelbaum wrote: >> On 01/18/2016 05:25 PM, David Kiarie wrote: >> >Add IVRS table for AMD IO MMU. >> > >> >Signed-off-by: David Kiarie >> >---

Re: [Qemu-devel] [PATCH v2 00/13] cuda: misc fixes and cleanups

2016-02-14 Thread Mark Cave-Ayland
On 07/02/16 20:34, Hervé Poussineau wrote: > Hi, > > This patchset cleans up a little bit the Apple CUDA emulation: > - correctly reject commands with wrong parameters > - support changing the frequency of auto-polling > - support changing device list probed in auto-poll > - add logs when using

[Qemu-devel] [PATCH] tests: add pxe e1000 test

2016-02-14 Thread Victor Kaplansky
The test is based on bios-tables-test.c. It creates a file with a boot sector image and loads it into a guest using PXE and TFTP functionality. Cc: Jason Wang Signed-off-by: Victor Kaplansky Suggested-by: Michael S. Tsirkin ---

Re: [Qemu-devel] [PATCH] tests: add pxe e1000 test

2016-02-14 Thread Michael S. Tsirkin
On Sun, Feb 14, 2016 at 02:10:17PM +0200, Victor Kaplansky wrote: > The test is based on bios-tables-test.c. It creates a file with > a boot sector image and loads it into a guest using PXE and TFTP > functionality. > > Cc: Jason Wang > Signed-off-by: Victor Kaplansky

Re: [Qemu-devel] [V4 4/4] hw/pci-host: Emulate AMD IO MMU

2016-02-14 Thread Marcel Apfelbaum
On 01/18/2016 05:25 PM, David Kiarie wrote: Support AMD IO MMU emulation in q35 and piix chipsets Signed-off-by: David Kiarie --- hw/pci-host/piix.c | 11 +++ hw/pci-host/q35.c | 14 -- 2 files changed, 23 insertions(+), 2 deletions(-) diff

Re: [Qemu-devel] [V4 3/4] hw/i386: ACPI table for AMD IO MMU

2016-02-14 Thread Michael S. Tsirkin
On Sun, Feb 14, 2016 at 02:54:36PM +0200, Marcel Apfelbaum wrote: > On 01/18/2016 05:25 PM, David Kiarie wrote: > >Add IVRS table for AMD IO MMU. > > > >Signed-off-by: David Kiarie > >--- > > hw/i386/acpi-build.c| 70 > >

Re: [Qemu-devel] [V4 2/4] hw/core: Add AMD IO MMU to machine properties

2016-02-14 Thread Marcel Apfelbaum
On 01/18/2016 06:21 PM, Marcel Apfelbaum wrote: On 01/18/2016 05:25 PM, David Kiarie wrote: Add IO MMU as a string to machine properties which is used to control whether and the type of IO MMU to emulate Signed-off-by: David Kiarie --- [...] Hi, I am sorry for

Re: [Qemu-devel] [V4 3/4] hw/i386: ACPI table for AMD IO MMU

2016-02-14 Thread Marcel Apfelbaum
On 01/18/2016 05:25 PM, David Kiarie wrote: Add IVRS table for AMD IO MMU. Signed-off-by: David Kiarie --- hw/i386/acpi-build.c| 70 + include/hw/acpi/acpi-defs.h | 55 +++ 2 files

Re: [Qemu-devel] [PATCH 2/2] hw/9pfs: fix alignment issue when host filesystem block size is larger than client msize

2016-02-14 Thread Aneesh Kumar K.V
Jevon Qiao writes: > The following patch is to fix alignment issue when host filesystem block > size > is larger than client msize. > > Thanks, > Jevon That is not the right format to send patch. You can send them as a series using git-send-email. > > From: Jevon Qiao

Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT

2016-02-14 Thread Michael S. Tsirkin
On Sat, Feb 13, 2016 at 12:26:53PM -0500, Kevin O'Connor wrote: > On Tue, Feb 09, 2016 at 07:36:12PM +0100, Laszlo Ersek wrote: > > On 02/09/16 17:22, John Snow wrote: > > > On 02/09/2016 10:52 AM, Roman Kagan wrote: > > >> On Mon, Feb 08, 2016 at 03:20:47PM -0500, John Snow wrote: > > >>> On

[Qemu-devel] crash with -incoming and -snapshot

2016-02-14 Thread Paolo Bonzini
Reproducer: x86_64-softmmu/qemu-system-x86_64 \ -incoming tcp:localhost:12345 -snapshot \ /vm/virt_test/images/jeos-21-64-base.qcow2 Weird as it may seem, this actually makes some sense for testing migration with non-shared storage... Paolo

Re: [Qemu-devel] crash with -incoming and -snapshot

2016-02-14 Thread Paolo Bonzini
On 14/02/2016 16:52, Paolo Bonzini wrote: > Reproducer: > > x86_64-softmmu/qemu-system-x86_64 \ >-incoming tcp:localhost:12345 -snapshot \ >/vm/virt_test/images/jeos-21-64-base.qcow2 > > > Weird as it may seem, this actually makes some sense for testing > migration with non-shared

[Qemu-devel] [PATCH v2] tests: add pxe e1000 and virtio-pci tests

2016-02-14 Thread Victor Kaplansky
The test is based on bios-tables-test.c. It creates a file with the boot sector image and loads it into a guest using PXE and TFTP functionality. Cc: Jason Wang Signed-off-by: Victor Kaplansky Suggested-by: Michael S. Tsirkin --- v2:

[Qemu-devel] [PATCH 3/8] virtio: add AioContext-specific function for host notifiers

2016-02-14 Thread Paolo Bonzini
This is used to register ioeventfd with a dataplane thread. Signed-off-by: Paolo Bonzini --- hw/virtio/virtio.c | 16 include/hw/virtio/virtio.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index

[Qemu-devel] [PATCH 8/8] vring: remove

2016-02-14 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/virtio/Makefile.objs | 1 - hw/virtio/dataplane/Makefile.objs | 1 - hw/virtio/dataplane/vring.c | 548 -- include/hw/virtio/dataplane/vring-accessors.h | 75

[Qemu-devel] [PATCH 0/8] virtio: allow migration with dataplane

2016-02-14 Thread Paolo Bonzini
Currently, dataplane threads are shut down during migration because vring.c is not able to track dirty memory. However, all the relevant parts of QEMU have been made thread-safe now, so we can drop vring.c completely. With these patches, virtio-dataplane is now simply "virtio with ioeventfd in a

[Qemu-devel] [PATCH 7/8] virtio-scsi: do not use vring in dataplane

2016-02-14 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/scsi/virtio-scsi-dataplane.c | 196 +--- hw/scsi/virtio-scsi.c | 52 ++- include/hw/virtio/virtio-scsi.h | 21 + 3 files changed, 35 insertions(+), 234 deletions(-) diff --git

[Qemu-devel] [PATCHv7 8/9] slirp: Adding IPv6 address for DNS relay

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

[Qemu-devel] [PATCHv7 6/9] slirp: Reindent after refactoring

2016-02-14 Thread Samuel Thibault
From: Guillaume Subiron No code change. Signed-off-by: Guillaume Subiron Signed-off-by: Samuel Thibault --- slirp/tcp_input.c | 92 +++--- slirp/tcp_output.c | 29

[Qemu-devel] [PATCHv7 7/9] slirp: Handle IPv6 in TCP functions

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

Re: [Qemu-devel] [V4 4/4] hw/pci-host: Emulate AMD IO MMU

2016-02-14 Thread David kiarie
On Sun, Feb 14, 2016 at 4:02 PM, Marcel Apfelbaum wrote: > On 01/18/2016 05:25 PM, David Kiarie wrote: >> >> Support AMD IO MMU emulation in q35 and piix chipsets >> >> Signed-off-by: David Kiarie >> --- >> hw/pci-host/piix.c | 11 +++

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

2016-02-14 Thread Jean-Christophe DUBOIS
Le 14/02/2016 12:52, mar.krzeminski a écrit : Hello, W dniu 13.02.2016 o 17:06, Jean-Christophe Dubois pisze: Signed-off-by: Jean-Christophe Dubois --- hw/ssi/Makefile.objs | 1 + hw/ssi/imx_spi.c | 449 +++

[Qemu-devel] [PATCH 1/8] block-migration: acquire AioContext as necessary

2016-02-14 Thread Paolo Bonzini
This is needed because dataplane will run during block migration as well. The block device migration code is quite liberal in taking the iothread mutex. For simplicity, keep it the same way, even though one could actually choose between the BQL (for regular BlockDriverStates) and the AioContext

[Qemu-devel] [PATCH 2/8] vring: make vring_enable_notification return void

2016-02-14 Thread Paolo Bonzini
Make the API more similar to the regular virtqueue API. This will help when modifying the code to not use vring.c anymore. Signed-off-by: Paolo Bonzini --- hw/block/dataplane/virtio-blk.c | 3 ++- hw/virtio/dataplane/vring.c | 3 +--

[Qemu-devel] [PATCH 6/8] virtio-blk: do not use vring in dataplane

2016-02-14 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/block/dataplane/virtio-blk.c | 112 +--- hw/block/dataplane/virtio-blk.h | 1 + hw/block/virtio-blk.c | 49 +++--- include/hw/virtio/virtio-blk.h | 3 -- 4 files changed, 19

[Qemu-devel] [PATCH 5/8] virtio-blk: fix "disabled data plane" mode

2016-02-14 Thread Paolo Bonzini
In disabled mode, virtio-blk dataplane seems to be enabled, but flow actually goes through the normal virtio path. This patch simplifies a bit the handling of disabled mode. In disabled mode, virtio_blk_handle_output might be called even if s->dataplane is not NULL. This is a bit tricky,

[Qemu-devel] [PATCH 4/8] virtio: export vring_notify as virtio_should_notify

2016-02-14 Thread Paolo Bonzini
Virtio dataplane needs to trigger the irq manually through the guest notifier. Export virtio_should_notify so that it can be used around event_notifier_set. Signed-off-by: Paolo Bonzini --- hw/virtio/virtio.c | 4 ++-- include/hw/virtio/virtio.h | 1 + 2 files

[Qemu-devel] [PATCHv7 2/9] slirp: Adding ICMPv6 error sending

2016-02-14 Thread Samuel Thibault
From: Yann Bordenave Disambiguation : icmp_error is renamed into icmp_send_error, since it doesn't manage errors, but only sends ICMP Error messages. Adding icmp6_send_error to send ICMPv6 Error messages. This function is simpler than the v4 version. Adding some calls in

[Qemu-devel] [PATCHv7 4/9] slirp: Factorizing tcpiphdr structure with an union

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

[Qemu-devel] [PATCHv8 0/9] slirp: Adding IPv6 support to Qemu -net user mode

2016-02-14 Thread Samuel Thibault
Hello, This is another respin of IPv6 in Qemu -net user mode. These patches add ICMPv6, NDP, and make UDP and TCP compatible with IPv6. Difference with version 7 is: - Fix overflow detection in strtol call - Fix formatting and typos - Use SLIRP_ prefix for header protection - Use grand

[Qemu-devel] [PATCHv7 3/9] slirp: Adding IPv6 UDP support

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

[Qemu-devel] [PATCHv7 9/9] qapi-schema, qemu-options & slirp: Adding Qemu options for IPv6 addresses

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

[Qemu-devel] [PATCHv7 1/9] slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration

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

[Qemu-devel] [PATCHv7 5/9] slirp: Generalizing and neutralizing various TCP functions before adding IPv6 stuff

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

Re: [Qemu-devel] [V4 1/4] hw/i386: Introduce AMD IO MMU

2016-02-14 Thread David kiarie
On Thu, Feb 4, 2016 at 6:03 PM, Michael S. Tsirkin wrote: > On Mon, Jan 18, 2016 at 06:25:42PM +0300, David Kiarie wrote: >> Add AMD IO MMU emulation to Qemu in addition to Intel IO MMU. >> The IO MMU does basic translation, error checking and has a >> minimal IOTLB

Re: [Qemu-devel] RFC: incremental backups: qmp-block-dirty-bitmap-diff

2016-02-14 Thread Fam Zheng
On Tue, 02/09 19:48, John Snow wrote: > - Reading an entire drive to populate a bitmap with the understanding > that an incremental backup is soon to follow is inefficient if the drive > is more than just a little dirty: it may have been quicker to just > create a new full backup and bitmap.

[Qemu-devel] [PATCH v3 4/8] nvdimm acpi: initialize the resource used by NVDIMM ACPI

2016-02-14 Thread Xiao Guangrong
32 bits IO port starting from 0x0a18 in guest is reserved for NVDIMM ACPI emulation. The table, NVDIMM_DSM_MEM_FILE, will be patched into NVDIMM ACPI binary code OSPM uses this port to tell QEMU the final address of the DSM memory and notify QEMU to emulate the DSM method Signed-off-by: Xiao

[Qemu-devel] [PATCH v3 0/8] NVDIMM ACPI: introduce the framework of QEMU emulated DSM

2016-02-14 Thread Xiao Guangrong
This patchset is against commit a407644079c86390 (net: set endianness on all backend devices) on pci branch of Michael's git tree and can be found at: https://github.com/xiaogr/qemu.git nvdimm-acpi-v3 Changelog in v3: Changes addressing Michael's comment: - rebase the patchset against

[Qemu-devel] [PATCH v3 5/8] nvdimm acpi: introduce patched dsm memory

2016-02-14 Thread Xiao Guangrong
The dsm memory is used to save the input parameters and store the dsm result which is filled by QEMU. The address of dsm memory is decided by bios and patched into int32 object named "MEMA" Signed-off-by: Xiao Guangrong --- hw/acpi/nvdimm.c | 34

[Qemu-devel] [PATCH v3 6/8] nvdimm acpi: let qemu handle _DSM method

2016-02-14 Thread Xiao Guangrong
If dsm memory is successfully patched, we let qemu fully emulate the dsm method This patch saves _DSM input parameters into dsm memory, tell dsm memory address to QEMU, then fetch the result from the dsm memory Signed-off-by: Xiao Guangrong --- hw/acpi/nvdimm.c

[Qemu-devel] [PATCH v3 3/8] acpi: allow using object as offset for OperationRegion

2016-02-14 Thread Xiao Guangrong
Extend aml_operation_region() to use object as offset Reviewed-by: Igor Mammedov Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 4 ++-- hw/i386/acpi-build.c| 31 ---

[Qemu-devel] [PATCH v3 1/8] acpi: add aml_create_field()

2016-02-14 Thread Xiao Guangrong
It will be used by nvdimm acpi Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 14 ++ include/hw/acpi/aml-build.h | 2 ++ 2 files changed, 16 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 603068b..2cc3211

[Qemu-devel] [PATCH v3 8/8] nvdimm acpi: add _CRS

2016-02-14 Thread Xiao Guangrong
As Igor suggested that we can report the BIOS patched operation region so that OSPM could see that particular range is in use and be able to notice conflicts if it happens some day Signed-off-by: Xiao Guangrong --- hw/acpi/nvdimm.c | 27

Re: [Qemu-devel] [PATCH 1/8] ipmi: add a realize function to the device class

2016-02-14 Thread Marcel Apfelbaum
On 02/09/2016 02:13 PM, Cédric Le Goater wrote: This will be useful to define and use properties when the object is instanciated. Hi, /s/instanciated/instantiated Signed-off-by: Cédric Le Goater --- hw/ipmi/ipmi_bmc_sim.c | 12 +--- 1 file changed, 9

[Qemu-devel] [PATCH v3 2/8] acpi: add aml_concatenate()

2016-02-14 Thread Xiao Guangrong
It will be used by nvdimm acpi Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 8 include/hw/acpi/aml-build.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 2cc3211..3362cc4 100644

Re: [Qemu-devel] [PATCH v7 1/3] i386/acpi: make floppy controller object dynamic

2016-02-14 Thread Marcel Apfelbaum
On 01/26/2016 03:50 PM, Igor Mammedov wrote: From: Roman Kagan Instead of statically declaring the floppy controller in DSDT, with its _STA method depending on some obscure bit in the parent ISA bridge, add the object dynamically to DSDT via AML API only when the

Re: [Qemu-devel] [PATCH 2/8] ipmi: use a function to initialize the SDR table

2016-02-14 Thread Marcel Apfelbaum
On 02/09/2016 02:13 PM, Cédric Le Goater wrote: This patch does not change anything. Hi, Well, it changes *something*, otherwise ... :) Maybe "This is only a re-factoring." It only moves the code section initializing the sdrs in its own routine and prepares ground for the subsequent

[Qemu-devel] [PATCH v3 7/8] nvdimm acpi: emulate dsm method

2016-02-14 Thread Xiao Guangrong
Emulate dsm method after IO VM-exit Currently, we only introduce the framework and no function is actually supported Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 2 +- hw/acpi/nvdimm.c| 44

Re: [Qemu-devel] [PATCH 5/8] ipmi: use a file to load SDRs

2016-02-14 Thread Marcel Apfelbaum
On 02/09/2016 02:13 PM, Cédric Le Goater wrote: The IPMI BMC simulator populates the sdr/sensor tables with a minimal set of entries (Watchdog). But some qemu platforms might want to use extra entries for their custom needs. This patch modifies slighty the initializing routine to take into

Re: [Qemu-devel] [PATCH 7/8] ipmi: introduce an ipmi_bmc_sdr_find() API

2016-02-14 Thread Marcel Apfelbaum
On 02/09/2016 02:13 PM, Cédric Le Goater wrote: This patch exposes a new IPMI routine to query a sdr entry from the sdr table maintained by the IPMI BMC simulator. The API is very similar to the internal sdr_find_entry() routine and should be used the same way to query one or all sdrs. A

Re: [Qemu-devel] [PATCH 8/8] ipmi: introduce an ipmi_bmc_gen_event() API

2016-02-14 Thread Marcel Apfelbaum
On 02/09/2016 02:13 PM, Cédric Le Goater wrote: It will be used to fill the message buffer with custom events expected by some systems. Typically, an Open PowerNV platform guest is notified with an OEM SEL message before a shutdown or a reboot. Signed-off-by: Cédric Le Goater

[Qemu-devel] Collaborating on a QEMU wall poster

2016-02-14 Thread Stefan Hajnoczi
Hi, I'm decorating my office and would like to hang up a QEMU poster. So I thought it would be fun to create a poster and have it printed. The poster design is free and open. I've chosen the following to make collaboration easy and fit with the official QEMU logo: License: Creative Commons

Re: [Qemu-devel] [PATCH 3/8] ipmi: remove the need of an ending record in the SDR table

2016-02-14 Thread Marcel Apfelbaum
On 02/09/2016 02:13 PM, Cédric Le Goater wrote: Currently, the code initializing the sdr table relies on an ending record with a recid of 0x. This patch changes the loop to use the sdr size as a breaking condition. Signed-off-by: Cédric Le Goater ---

Re: [Qemu-devel] [PATCH 4/8] ipmi: add some local variables in ipmi_sdr_init

2016-02-14 Thread Marcel Apfelbaum
On 02/09/2016 02:13 PM, Cédric Le Goater wrote: This patch adds a couple of variables to manipulate the raw sdr entries. The const attribute is also removed on init_sdrs. This will ease the introduction of a sdr loader using a file. Hi, You could remove the const attribute when you have to,

Re: [Qemu-devel] [PATCH 6/8] ipmi: provide support for FRUs

2016-02-14 Thread Marcel Apfelbaum
On 02/09/2016 02:13 PM, Cédric Le Goater wrote: This patch provides a simple FRU support for the BMC simulator. FRUs are loaded from a file which name is specified in the object properties, each entry having a fixed size, also specified in the properties. If the file is unknown or not accessible

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

2016-02-14 Thread mar.krzeminski
Hello, W dniu 13.02.2016 o 17:06, Jean-Christophe Dubois pisze: Signed-off-by: Jean-Christophe Dubois --- hw/ssi/Makefile.objs | 1 + hw/ssi/imx_spi.c | 449 +++ include/hw/ssi/imx_spi.h | 104 +++ 3

  1   2   >