Re: [Qemu-devel] [RFC PATCH v1 0/5] Enable virtio-scsi boot from /dev/sgX

2017-05-08 Thread Christian Borntraeger
On 05/06/2017 10:24 AM, Paolo Bonzini wrote: > > > On 05/05/2017 18:12, Eric Farman wrote: >> >> >> On 05/05/2017 11:13 AM, Paolo Bonzini wrote: >>> >>> >>> On 05/05/2017 17:03, Eric Farman wrote: We get a value of x3f when sending that to a scsi-disk from bios code. That's fully e

Re: [Qemu-devel] [PATCH] ppc: xics: fix compilation with CentOS 6

2017-05-08 Thread Paolo Bonzini
On 08/05/2017 08:13, David Gibson wrote: >> >> Please start including Docker-based tests in your pre-pull-request >> tests. > Um.. is there some doco on how to execute these. I tried "make > docker-test" and "make docker-image" and they both just seem to hang > at: > > umbus:~/src/qemu (p

[Qemu-devel] KVM call for 2017-05-09

2017-05-08 Thread Juan Quintela
Hi Please, send any topic that you are interested in covering. At the end of Monday I will send an email with the agenda or the cancellation of the call, so hurry up. After discussions on the QEMU Summit, we are going to have always open a KVM call where you can add topics. Call details: B

Re: [Qemu-devel] [RFC PATCH 6/8] memory: introduce AddressSpaceOps

2017-05-08 Thread Peter Xu
On Mon, May 08, 2017 at 04:07:44PM +1000, David Gibson wrote: > On Mon, May 08, 2017 at 01:48:14PM +0800, Peter Xu wrote: > > On Mon, May 01, 2017 at 02:58:22PM +1000, David Gibson wrote: > > > On Thu, Apr 27, 2017 at 05:34:18PM +0800, Peter Xu wrote: > > > > This is something similar to MemoryRegi

[Qemu-devel] [PATCH] xtensa: use g_malloc/g_new/g_free

2017-05-08 Thread Paolo Bonzini
Replace malloc/free with g_malloc/g_free to get a program exit on out of memory. Replace g_malloc with g_new when allocating the MemoryRegion to get more type safety. Reported by Coverity. Cc: Max Filippov Cc: qemu-triv...@nongnu.org Signed-off-by: Paolo Bonzini --- hw/xtensa/sim.c | 6 +++---

Re: [Qemu-devel] [RFC PATCH 0/8] Shared Virtual Memory virtualization for VT-d

2017-05-08 Thread Liu, Yi L
On Mon, May 08, 2017 at 12:09:42PM +0800, Xiao Guangrong wrote: > > Hi Liu Yi, > > I haven't started to read the code yet, however, could you > detail more please? It emulates a SVM capable iommu device in > a VM? Or It speeds up device's DMA access in a VM? Or it is a > new facility introduced f

Re: [Qemu-devel] [PATCH v2 24/24] tests: check -numa node, cpu=props_list usecase

2017-05-08 Thread David Gibson
On Wed, May 03, 2017 at 02:57:18PM +0200, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov Reviewed-by: David Gibson > --- > tests/numa-test.c | 151 > ++ > 1 file changed, 151 insertions(+) > > diff --git a/tests/numa-test.c b/tests/num

Re: [Qemu-devel] boot order=d bug?

2017-05-08 Thread Thomas Huth
On 08.05.2017 06:22, Carl Karsten wrote: > neat. missed that. > > except it doesn't work. > > juser@gator:~/temp$ qemu-system-x86_64 -drive > file=boot.img,format=raw,bootindex=1 > qemu-system-x86_64: -drive file=boot.img,format=raw,bootindex=1: Block > format 'raw' does not support the option '

[Qemu-devel] [Bug 1689245] [NEW] qcow2 image converted from Photon OS can't be started

2017-05-08 Thread Benjamin Wang
Public bug reported: Steps to reproduce the issue: 1. Download the ovf from this place: https://bintray.com/vmware/photon/download_file?file_path=photon-custom-hw10-1.0-62c543d.ova 2. Extract vmdk from ova file. 3. Convert from vmdk fromat to qcow2 via qeum-img 4. Launch the qcow2 image. The VM is

Re: [Qemu-devel] MigrationParams

2017-05-08 Thread Dr. David Alan Gilbert
* ali saeedi (ali.saeed...@gmail.com) wrote: > Hi > what are 'blk' and 'shared' boolean variables in MigrationParams structure > in migration.h? Follow the code! They're the flags used in the migrate command when doing block migration. Dave > thanks a lot -- Dr. David Alan Gilbert / dgilb...@red

Re: [Qemu-devel] qemu_savevm_state_begin

2017-05-08 Thread Dr. David Alan Gilbert
* ali saeedi (ali.saeed...@gmail.com) wrote: > Hi > what is the difference between functions "qemu_savevm_state_begin" and > "qemu_savevm_state_header" in migration_thread? qemu_savevm_state_header just saves the file header. qemu_savevm_state_begin iterates through the list of devices calling th

Re: [Qemu-devel] [PATCH] Mark legacy option '-no-kvm' as deprecated

2017-05-08 Thread Markus Armbruster
"Daniel P. Berrange" writes: > On Fri, May 05, 2017 at 03:48:37PM +0100, Stefan Hajnoczi wrote: >> On Tue, May 02, 2017 at 01:54:22PM +0200, Thomas Huth wrote: >> > '-no-kvm' was just a legacy convenience option for the users of >> > qemu-kvm, it never made sense in the normal QEMU tree since TCG

Re: [Qemu-devel] vmstate_save_state

2017-05-08 Thread Dr. David Alan Gilbert
* ali saeedi (ali.saeed...@gmail.com) wrote: > what does "vmstate_save_state(f, &vmstate_configuration, &savevm_state, 0)" > function call do in "qemu_savevm_state_header" function in savevm.c at line > 968 ? > why has "savevm_state" been passed to this function? > thanks a lot vmstate_save_state

Re: [Qemu-devel] format=raw,readonly errors

2017-05-08 Thread Markus Armbruster
Carl Karsten writes: > juser@gator:~/temp$ qemu-system-x86_64 -m 256 -display curses -drive > file=disk.cow -drive file=boot.img > WARNING: Image format was not specified for 'boot.img' and probing guessed > raw. > Automatically detecting the format is dangerous for raw images, > write

Re: [Qemu-devel] [PATCH] gdbstub: implement remote debugging protocol escapes for command receive

2017-05-08 Thread Stefan Hajnoczi
On Sun, May 7, 2017 at 4:26 PM, Doug Gale wrote: > On Fri, May 5, 2017 at 10:45 AM, Stefan Hajnoczi wrote: >> On Tue, May 02, 2017 at 10:32:40AM -0400, Doug Gale wrote: >>> +} else { >>> +/* decode repeat length */ >>> +int repeat = (unsigned char)ch -

Re: [Qemu-devel] [PATCH RESEND V3 5/6] migration: calculate downtime on dst side

2017-05-08 Thread Alexey
On Mon, May 08, 2017 at 02:29:06PM +0800, Peter Xu wrote: > On Fri, Apr 28, 2017 at 02:11:19PM +0300, Alexey Perevalov wrote: > > On 04/28/2017 01:00 PM, Peter Xu wrote: > > >On Fri, Apr 28, 2017 at 09:57:37AM +0300, Alexey Perevalov wrote: > > >>This patch provides downtime calculation per vCPU, >

Re: [Qemu-devel] [PATCH v7 13/13] MAINTAINERS: Add vfio-ccw maintainer

2017-05-08 Thread Cornelia Huck
On Mon, 8 May 2017 13:29:27 +0800 Dong Jia Shi wrote: > * Cornelia Huck [2017-05-05 14:20:14 +0200]: > > > On Fri, 5 May 2017 04:03:52 +0200 > > Dong Jia Shi wrote: > > > > > Add Cornelia Huck as the vfio-ccw maintainer. > > > > > > Signed-off-by: Dong Jia Shi > > > --- > > > MAINTAINERS

Re: [Qemu-devel] [PATCH] Mark legacy option '-no-kvm' as deprecated

2017-05-08 Thread Thomas Huth
On 08.05.2017 10:42, Markus Armbruster wrote: > "Daniel P. Berrange" writes: > >> On Fri, May 05, 2017 at 03:48:37PM +0100, Stefan Hajnoczi wrote: >>> On Tue, May 02, 2017 at 01:54:22PM +0200, Thomas Huth wrote: '-no-kvm' was just a legacy convenience option for the users of qemu-kvm, i

Re: [Qemu-devel] [PATCH] Mark legacy option '-no-kvm' as deprecated

2017-05-08 Thread Daniel P. Berrange
On Mon, May 08, 2017 at 11:14:00AM +0200, Thomas Huth wrote: > On 08.05.2017 10:42, Markus Armbruster wrote: > > "Daniel P. Berrange" writes: > > > >> On Fri, May 05, 2017 at 03:48:37PM +0100, Stefan Hajnoczi wrote: > >>> On Tue, May 02, 2017 at 01:54:22PM +0200, Thomas Huth wrote: > '-no-kv

[Qemu-devel] [RFC PATCH 1/2] spapr: Make h_register_process_table hcall flags global

2017-05-08 Thread Bharata B Rao
The flags used in h_register_process_table hcall are needed in spapr.c and hence move them to a header file. While doing so, give them slightly specific names. Signed-off-by: Bharata B Rao --- hw/ppc/spapr_hcall.c | 31 ++- include/hw/ppc/spapr.h | 10 ++ 2

[Qemu-devel] [RFC PATCH 2/2] spapr: Fix migration of Radix guests

2017-05-08 Thread Bharata B Rao
Currently HTAB savevm handlers get registered by default and migration of radix guest will fail. - Ensure that HTAB savevm handlers are not registered for radix case. - Ensure that we issue KVM_PPC_CONFIGURE_V3_MMU for radix case post migration. TODO: Right now I have delayed the HTAB savevm ha

Re: [Qemu-devel] [PATCH v3] ui: input-linux: Add absolute event support

2017-05-08 Thread Gerd Hoffmann
On Fr, 2017-05-05 at 15:42 +0200, Philippe Voinov wrote: > This depends on: > [PATCH] ui: Support non-zero minimum values for absolute input axes Better send patches as patch series then (next time). Added patches to input patch queue. thanks, Gerd

Re: [Qemu-devel] [RFC PATCH 6/8] memory: introduce AddressSpaceOps

2017-05-08 Thread Liu, Yi L
On Mon, May 08, 2017 at 03:32:17PM +0800, Peter Xu wrote: > On Mon, May 08, 2017 at 04:07:44PM +1000, David Gibson wrote: > > On Mon, May 08, 2017 at 01:48:14PM +0800, Peter Xu wrote: > > > On Mon, May 01, 2017 at 02:58:22PM +1000, David Gibson wrote: > > > > On Thu, Apr 27, 2017 at 05:34:18PM +080

Re: [Qemu-devel] [PATCH] Mark legacy option '-no-kvm' as deprecated

2017-05-08 Thread Thomas Huth
On 08.05.2017 11:40, Daniel P. Berrange wrote: > On Mon, May 08, 2017 at 11:14:00AM +0200, Thomas Huth wrote: >> On 08.05.2017 10:42, Markus Armbruster wrote: >>> "Daniel P. Berrange" writes: >>> On Fri, May 05, 2017 at 03:48:37PM +0100, Stefan Hajnoczi wrote: > On Tue, May 02, 2017 at 01

[Qemu-devel] [RFC PATCH 0/2] ppc/spapr: Fix migration of radix guests

2017-05-08 Thread Bharata B Rao
Migrating radix guests fails with the following error on the target side: qemu-system-ppc64: htab_load() bad index 2113929216 (5378+0 entries) in htab stream (htab_shift=0) qemu-system-ppc64: error while loading state for instance 0x0 of device 'spapr/htab' qemu-system-ppc64: load of migration f

[Qemu-devel] ppc/spapr: Radix guest causing host kernel oops

2017-05-08 Thread Bharata B Rao
Hi, With ppc-for-2.10 branch of dwg's tree, starting a radix guest is currently causing a host kernel oops like this: Unable to handle kernel paging request for data at address 0xe64bb17da64ab078 Faulting instruction address: 0xc02c3ddc Oops: Kernel access of bad area, sig: 11 [#1] SMP NR

Re: [Qemu-devel] [RFC PATCH 03/20] intel_iommu: add "svm" option

2017-05-08 Thread Liu, Yi L
On Thu, 27 Apr 2017 18:53:17 +0800 Peter Xu wrote: > On Wed, Apr 26, 2017 at 06:06:33PM +0800, Liu, Yi L wrote: > > Expose "Shared Virtual Memory" to guest by using "svm" option. > > Also use "svm" to expose SVM related capabilities to guest. > > e.g. "-device intel-iommu, svm=on" > > > > Signed-

[Qemu-devel] [Bug 1689245] Re: qcow2 image converted from Photon OS can't be started

2017-05-08 Thread Benjamin Wang
I try this steps and meet the similar issue: 1. Deploy a VM in ESXi from https://bintray.com/vmware/photon/download_file?file_path=photon-custom-hw10-1.0-62c543d.ova 2. Copy vmdk and flat.vmdk file 3. Convert from vmdk format to raw via qeum-img(qemu-img convert -f vmdk -O raw Photon.vmdk Photon.

Re: [Qemu-devel] [PATCH v7 05/13] s390x/css: realize css_create_sch

2017-05-08 Thread Cornelia Huck
On Mon, 8 May 2017 13:18:22 +0800 Dong Jia Shi wrote: > * Cornelia Huck [2017-05-05 14:11:53 +0200]: > > > On Fri, 5 May 2017 04:03:44 +0200 > > Dong Jia Shi wrote: > > > -SubchDev *css_create_virtual_sch(CssDevId bus_id, Error **errp) > > > +SubchDev *css_create_sch(CssDevId bus_id, bool is

Re: [Qemu-devel] [PATCH] fixup! sysbus: Set user_creatable=false by default on TYPE_SYS_BUS_DEVICE

2017-05-08 Thread Cornelia Huck
On Fri, 5 May 2017 17:36:20 -0300 Eduardo Habkost wrote: > Fixup will be included in v3, or can be applied by maintainer: > > Signed-off-by: Eduardo Habkost > --- > hw/core/sysbus.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/hw/core/sysbus.c b/hw/core/sys

Re: [Qemu-devel] [PATCH 01/23] shippable: use C locale to simplify console output

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > remove this noise: > > perl: warning: Setting locale failed. > perl: warning: Please check that your locale settings: > LANGUAGE = (unset), > LC_ALL = "en_US.UTF-8", > LC_CTYPE = "en_US.UTF-8", > LANG = "en_US.UTF-8" > are supported and instal

Re: [Qemu-devel] [PATCH 02/23] shippable: build using all available cpus

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Signed-off-by: Philippe Mathieu-Daudé > --- > .shippable.yml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/.shippable.yml b/.shippable.yml > index 231c29b620..5170486ff9 100644 > --- a/.shippable.yml > +++ b/.shippable.yml > @@ -20,4

Re: [Qemu-devel] [PATCH 4/4] x86: Support feature=force on the command-line

2017-05-08 Thread Kashyap Chamarthy
On Fri, May 05, 2017 at 02:59:24PM -0300, Eduardo Habkost wrote: > On Thu, May 04, 2017 at 12:16:38PM +0200, Kashyap Chamarthy wrote: > > On Tue, May 02, 2017 at 05:31:15PM -0300, Eduardo Habkost wrote: > > > > Hi, > > > > Yet to try this series, a small question in-line. > > > > > Introduce a n

Re: [Qemu-devel] [RFC PATCH 03/23] shippable: ignore SSL verification

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > shippable logs: > -- > git_sync > - ssh-agent bash -c 'ssh-add /tmp/ssh/01_deploy; git clone > https://github.com/philmd/qemu.git /root/src/github.com/philmd/qemu' > Identity added: /tmp/ssh/01_deploy (rsa w/o comment) > Cloning into '/root/src/githu

Re: [Qemu-devel] [PATCH 0/6] target/s390x patches

2017-05-08 Thread Thomas Huth
On 02.03.2017 03:41, Richard Henderson wrote: > Herein find my 3 year old STFLE patch, two of the patches that were > posted this week for LPP and LPD, and three patches to convert the > atomic operations in the s390 frontend to actually be atomic. Hi Richard, since the STFLE (and the other patc

Re: [Qemu-devel] [PATCH 04/23] docker: compact debian base

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > - install common/basic tools at once > - one-line Emdebian setup > - use eatmydata and remove apt cache to save space > - add bison and flex and git > > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/docker/dockerfiles/debian.docker | 22 --

Re: [Qemu-devel] [PATCH 11/23] shippable: add mipsel target

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Signed-off-by: Philippe Mathieu-Daudé > --- > .shippable.yml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/.shippable.yml b/.shippable.yml > index b661e667b3..fa2d6a4e9b 100644 > --- a/.shippable.yml > +++ b/.shippable.yml > @@ -13,6 +13,8 @@ env:

Re: [Qemu-devel] [RFC PATCH 13/23] docker: add --include-file argument to 'build' command

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/docker/Makefile.include | 3 ++- > tests/docker/docker.py| 5 + > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include > in

Re: [Qemu-devel] [RFC PATCH 14/23] docker: add 'apt-fake' script which generate fake debian packages

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/docker/Makefile.include | 2 ++ > tests/docker/dockerfiles/debian-apt-fake.sh | 46 > + > tests/docker/dockerfiles/debian.docker | 2 ++ > 3 files changed, 50

Re: [Qemu-devel] [PATCH 15/23] docker: fix mipsel debian/stable dependencies problem

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/docker/dockerfiles/debian-mipsel-cross.docker | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/tests/docker/dockerfiles/debian-mipsel-cross.docker > b/tests/docker/dockerfiles/debian-mipsel-cro

Re: [Qemu-devel] [PATCH 16/23] shippable: do not initialize submodules automatically

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > do it in the 'ci' target when needed. > > Signed-off-by: Philippe Mathieu-Daudé > --- > .shippable.yml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/.shippable.yml b/.shippable.yml > index fa2d6a4e9b..b3cbca458c 100644 > --- a/.shippable.yml > +++

Re: [Qemu-devel] [PATCH 17/23] shippable: use dtc submodule if distrib packages are too old

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > shippable output: > > LINKmips64el-softmmu/qemu-system-mips64el > ../hw/core/loader-fit.o: In function `load_fit': > /root/src/github.com/philmd/qemu/hw/core/loader-fit.c:278: undefined > reference to `fdt_first_subnode' > /root/src/github

Re: [Qemu-devel] [PATCH v2] qemu-doc: Update to use the new way of attaching USB devices

2017-05-08 Thread Thomas Huth
On 05.05.2017 13:54, Markus Armbruster wrote: > Thomas Huth writes: > >> The preferred way of adding USB devices is via "-device" and >> "device_add" nowadays, so let's start to get rid of "-usbdevice" >> and "usb_add" in the documentation. While we're at it, also >> add the new USB devices there

Re: [Qemu-devel] [PATCH 21/23] docker: fix powerpc debian/stable dependencies problem

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/docker/dockerfiles/debian-powerpc-cross.docker | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/tests/docker/dockerfiles/debian-powerpc-cross.docker > b/tests/docker/dockerfiles/debian-powerpc-

Re: [Qemu-devel] [RFC PATCH 03/20] intel_iommu: add "svm" option

2017-05-08 Thread Peter Xu
On Mon, May 08, 2017 at 10:38:09AM +, Liu, Yi L wrote: > On Thu, 27 Apr 2017 18:53:17 +0800 > Peter Xu wrote: > > > On Wed, Apr 26, 2017 at 06:06:33PM +0800, Liu, Yi L wrote: > > > Expose "Shared Virtual Memory" to guest by using "svm" option. > > > Also use "svm" to expose SVM related capabi

Re: [Qemu-devel] [PATCH 22/23] MAINTAINERS: add Shippable automation platform URL

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Signed-off-by: Philippe Mathieu-Daudé > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index a1d2b3a4d3..9251f575d8 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1833,6 +1833,7 @@ F: .travis.yml >

Re: [Qemu-devel] [PATCH 23/23] MAINTAINERS: self-appoint me as reviewer in build/test automation

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Signed-off-by: Philippe Mathieu-Daudé > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 9251f575d8..c7520b76db 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1827,6 +1827,7 @@ Build and test aut

Re: [Qemu-devel] [PATCH 18/23] shippable: temporary disable mips64el-softmmu build

2017-05-08 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Signed-off-by: Philippe Mathieu-Daudé > --- > .shippable.yml | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/.shippable.yml b/.shippable.yml > index 6601243060..7e714991f9 100644 > --- a/.shippable.yml > +++ b/.shippable.yml > @@ -15,

Re: [Qemu-devel] [PATCH] configure: Detect native NetBSD curses(3)

2017-05-08 Thread Alex Bennée
Kamil Rytarowski writes: > NetBSD ships with traditional BSD curses with compatibility with ncurses. > qemu works nicely with the basesystem version of curses(3) from NetBSD. > > The only mismatch between curses(3) and ncurses is the lack of > curses_version() in the NetBSD version. This functio

[Qemu-devel] [RFC v1 7/9] virtio-crypto: add stateless crypto request handler

2017-05-08 Thread Gonglei
We can support stateless crypto request now. The stateless cipher request componet is: header + key + iv + src_data + dst_data and The algorithm chainning stateless request component is: header + key + auth_key + iv + aad + src_data + dst_data + hash_result Signed-off-by: Gonglei --- backends

[Qemu-devel] [RFC v1 5/9] virtio-crypto: update header file

2017-05-08 Thread Gonglei
Update the header based on the newset virtio crypto spec, so that the virtio crypto can support both session and stateless based crypto services and keep compatibility with the pre-existing code by introducing five feature bits. Signed-off-by: Gonglei --- include/standard-headers/linux/virtio_cr

[Qemu-devel] [RFC v1 8/9] virtio-crypto: add host feature bits support

2017-05-08 Thread Gonglei
We enable all feature bits acquiescently. Signed-off-by: Gonglei --- hw/virtio/virtio-crypto.c | 15 +++ include/hw/virtio/virtio-crypto.h | 1 + 2 files changed, 16 insertions(+) diff --git a/hw/virtio/virtio-crypto.c b/hw/virtio/virtio-crypto.c index 5422f25..3dc0ff2 1006

[Qemu-devel] [RFC v1 2/9] cryptodev: extract one util function

2017-05-08 Thread Gonglei
So that the new function can be used by both seesion creation and the following stateless crypto operation. Signed-off-by: Gonglei --- backends/cryptodev-builtin.c | 100 +-- 1 file changed, 58 insertions(+), 42 deletions(-) diff --git a/backends/cryptode

[Qemu-devel] [RFC v1 6/9] virtio-crypto: rework virtio_crypto_handle_request

2017-05-08 Thread Gonglei
According to the new spec, we should use different requst structure to store the data request based on whether VIRTIO_CRYPTO_F_MUX_MODE feature bit is negotiated or not. In this patch, we havn't supported stateless mode yet. The device reportes an error if both VIRTIO_CRYPTO_F_MUX_MODE and VIRTIO_

[Qemu-devel] [RFC v1 4/9] cryptodev-builtin: realize stateless operation function

2017-05-08 Thread Gonglei
At this point, the stateless crypto operation for cryptodev-builtin backend works. Signed-off-by: Gonglei --- backends/cryptodev-builtin.c | 71 +++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/backends/cryptodev-builtin.c b/backends/cryp

[Qemu-devel] [RFC v1 0/9] virtio-crypto: add stateless mode support

2017-05-08 Thread Gonglei
In session mode, the process of create/close a session makes we have a least one full round-trip cost from guest to host to guest to be able to send any data for symmetric algorithms. It gets ourself into synchronization troubles in some scenarios like a web server handling lots of small requests w

[Qemu-devel] [RFC v1 3/9] cryptodev: add missing op_code for symmertric crypto

2017-05-08 Thread Gonglei
We need the op_code to identify which of crypto operations for stateless crypto operation. Let's add it. Signed-off-by: Gonglei --- backends/cryptodev-builtin.c | 7 +++ include/sysemu/cryptodev.h | 3 +++ 2 files changed, 10 insertions(+) diff --git a/backends/cryptodev-builtin.c b/back

[Qemu-devel] [RFC v1 9/9] qtest: emulate virtio crypto as a legacy device for experiment

2017-05-08 Thread Gonglei
Because the current qtest framework do not support virtio-1 or latter devices. For experimental purpose, let's emulate the virtio crypto device as a legacy virtio device by default. Using 0x1014 as virtio crypto pci device ID because virtio crypto ID is 20 (0x14). Signed-off-by: Gonglei virtio-c

Re: [Qemu-devel] [PATCH] xtensa: use g_malloc/g_new/g_free

2017-05-08 Thread Philippe Mathieu-Daudé
On 05/08/2017 04:35 AM, Paolo Bonzini wrote: Replace malloc/free with g_malloc/g_free to get a program exit on out of memory. Replace g_malloc with g_new when allocating the MemoryRegion to get more type safety. Reported by Coverity. Cc: Max Filippov Cc: qemu-triv...@nongnu.org Signed-off-by:

[Qemu-devel] [RFC v1 1/9] cryptodev: introduce stateless sym operation stuff

2017-05-08 Thread Gonglei
Because a stateless crypto request include all information about one crypto operation, we should introduce a wrapper for it, and add a new crypto operation callback to do statless crypto operation. Signed-off-by: Gonglei --- backends/cryptodev-builtin.c | 10 ++ backends/cryptodev.c

[Qemu-devel] [Bug 822408] Re: Unable to access disk image on mipsel host

2017-05-08 Thread Thomas Huth
Triaging old bug tickets ... can you still reproduce this problem with the latest version of QEMU (currently v2.9.0)? ** 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. https://bugs.l

Re: [Qemu-devel] [RFC PATCH 03/23] shippable: ignore SSL verification

2017-05-08 Thread Philippe Mathieu-Daudé
Hi Alex, On 05/08/2017 07:58 AM, Alex Bennée wrote: Philippe Mathieu-Daudé writes: shippable logs: -- git_sync - ssh-agent bash -c 'ssh-add /tmp/ssh/01_deploy; git clone https://github.com/philmd/qemu.git /root/src/github.com/philmd/qemu' Identity added: /tmp/ssh/01_deploy (rsa

[Qemu-devel] [Bug 899664] Re: Bad internet performance for Host to Guest or Guest to Host

2017-05-08 Thread Thomas Huth
Triaging old bug tickets ... can you still reproduce this problem with the latest version of QEMU (currently v2.9.0)? ** 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. https://bugs.l

Re: [Qemu-devel] [PATCH] gdbstub: implement remote debugging protocol escapes for command receive

2017-05-08 Thread Doug Gale
Right, only GETLINE_* states write to the linebuf, so line_buf_index < 1 is correct. Updated patch: >From 2e6c45260cae60bbae446bffe43f948ab002c529 Mon Sep 17 00:00:00 2001 From: Doug Gale Date: Mon, 1 May 2017 12:22:10 -0400 Subject: [PATCH] gdbstub: implement remote debugging protocol escapes fo

Re: [Qemu-devel] [PATCH v5 4/9] qcow2: make refcount size calculation conservative

2017-05-08 Thread Alberto Garcia
On Tue 18 Apr 2017 03:57:21 PM CEST, Stefan Hajnoczi wrote: > The refcount metadata size calculation is inaccurate and can produce > numbers that are too small. This is bad because we should calculate a > conservative number - one that is guaranteed to be large enough. > > This patch switches the

Re: [Qemu-devel] [PATCH v5 8/9] qemu-iotests: support per-format golden output files

2017-05-08 Thread Alberto Garcia
On Tue 18 Apr 2017 03:57:25 PM CEST, Stefan Hajnoczi wrote: > Some tests produce format-dependent output. Either the difference is > filtered out and ignored, or the test case is format-specific so we > don't need to worry about per-format output differences. > > There is a third case: the test sc

Re: [Qemu-devel] [PATCH v5 9/9] iotests: add test 178 for qemu-img measure

2017-05-08 Thread Alberto Garcia
On Tue 18 Apr 2017 03:57:26 PM CEST, Stefan Hajnoczi wrote: > Signed-off-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia Berto

Re: [Qemu-devel] [PATCH v5 6/9] qcow2: add bdrv_measure() support

2017-05-08 Thread Alberto Garcia
On Tue 18 Apr 2017 03:57:23 PM CEST, Stefan Hajnoczi wrote: > Use qcow2_calc_prealloc_size() to get the required file size. > > Signed-off-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia (I also think that I had already reviewed this one) Berto

Re: [Qemu-devel] [PATCH 02/23] shippable: build using all available cpus

2017-05-08 Thread Philippe Mathieu-Daudé
On 05/08/2017 07:55 AM, Alex Bennée wrote: Philippe Mathieu-Daudé writes: Signed-off-by: Philippe Mathieu-Daudé --- .shippable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.shippable.yml b/.shippable.yml index 231c29b620..5170486ff9 100644 --- a/.shippable.yml +++

Re: [Qemu-devel] [PATCH] xtensa: use g_malloc/g_new/g_free

2017-05-08 Thread Alex Bennée
Paolo Bonzini writes: > Replace malloc/free with g_malloc/g_free to get a program exit on > out of memory. > > Replace g_malloc with g_new when allocating the MemoryRegion to > get more type safety. > > Reported by Coverity. > > Cc: Max Filippov > Cc: qemu-triv...@nongnu.org > Signed-off-by: Pa

Re: [Qemu-devel] [PATCH] gdbstub: implement remote debugging protocol escapes for command receive

2017-05-08 Thread Stefan Hajnoczi
Thanks, applied to my staging tree: https://github.com/stefanha/qemu/commits/staging I applied this patch manually because it was not formatted according to the patch submission guidelines. Please take note of them for future contributions: 1. "Send each new revision as a new top-level thread, r

[Qemu-devel] [PULL for-2.9 1/1] trace: disallow more than 10 arguments per trace event

2017-05-08 Thread Stefan Hajnoczi
From: "Daniel P. Berrange" The UST trace backend can only cope with upto 10 arguments. To ensure we don't exceed the limit when UST is not compiled in, disallow more than 10 arguments upfront. This prevents the case where: commit 0fc8aec7de64f2bf83a274a2a38b938ce03425d2 Author: Zhang Chen

[Qemu-devel] [PULL for-2.9 0/1] Tracing patches

2017-05-08 Thread Stefan Hajnoczi
The following changes since commit dd1559bb267becbb838de41132ef60771d183e5d: Merge remote-tracking branch 'elmarco/tags/chr-tests-pull-request' into staging (2017-05-05 17:07:55 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git tags/tracing-pull-request for

Re: [Qemu-devel] [PULL for-2.9 0/1] Tracing patches

2017-05-08 Thread Stefan Hajnoczi
On Mon, May 08, 2017 at 09:39:07AM -0400, Stefan Hajnoczi wrote: > The following changes since commit dd1559bb267becbb838de41132ef60771d183e5d: > > Merge remote-tracking branch 'elmarco/tags/chr-tests-pull-request' into > staging (2017-05-05 17:07:55 +0100) > > are available in the git reposit

[Qemu-devel] [PATCH v2 00/11] Preparation for block job mutex

2017-05-08 Thread Paolo Bonzini
These are a bunch of cleanups and patches extracted from the AioContext lock removal series. As a general theme, the patches reorganize blockjob.c to follow the blockjob.h/blockjob_int.h separation more closely. For this reason, a lot of the patches are just moving functions around. The blockjob

[Qemu-devel] [PATCH 02/11] blockjob: remove iostatus_reset callback

2017-05-08 Thread Paolo Bonzini
This is unused since commit 66a0fae ("blockjob: Don't touch BDS iostatus", 2016-05-19). Reviewed-by: Stefan Hajnoczi Reviewed-by: John Snow Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- blockjob.c | 3 --- include/block/blockjob_int.h | 3 --- 2 files

[Qemu-devel] [PATCH 01/11] blockjob: remove unnecessary check

2017-05-08 Thread Paolo Bonzini
!job is always checked prior to the call, drop it from here. Reviewed-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini --- blockjob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockjob.c b/blockjob.c index 6e489327ff..23022b3331 100644 --- a/blockjob.c +++ b/blockjob.c

[Qemu-devel] [PATCH 03/11] blockjob: introduce block_job_early_fail

2017-05-08 Thread Paolo Bonzini
Outside blockjob.c, block_job_unref is only used when a block job fails to start, and block_job_ref is not used at all. The reference counting thus is pretty well hidden. Introduce a separate function to be used by block jobs; because block_job_ref and block_job_unref now become static, move them

[Qemu-devel] [PATCH 10/11] blockjob: reorganize block_job_completed_txn_abort

2017-05-08 Thread Paolo Bonzini
This splits the part that touches job states from the part that invokes callbacks. It will make the code simpler to understand once job states will be protected by a different mutex than the AioContext lock. Reviewed-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini --- blockjob.c | 35

[Qemu-devel] [PATCH 04/11] blockjob: introduce block_job_pause/resume_all

2017-05-08 Thread Paolo Bonzini
Remove use of block_job_pause/resume from outside blockjob.c, thus making them static. The new functions are used by the block layer, so place them in blockjob_int.h. Reviewed-by: Stefan Hajnoczi Reviewed-by: John Snow Signed-off-by: Paolo Bonzini --- block/io.c | 19 ++

[Qemu-devel] [PATCH 07/11] blockjob: introduce block_job_cancel_async, check iostatus invariants

2017-05-08 Thread Paolo Bonzini
The new functions helps respecting the invariant that the coroutine is entered with false user_resume, zero pause count and no error recorded in the iostatus. Resetting the iostatus is now common to all of block_job_cancel_async, block_job_user_resume and block_job_iostatus_reset, albeit with slig

[Qemu-devel] [PATCH v6 0/9] qemu-img: add measure sub-command

2017-05-08 Thread Stefan Hajnoczi
v6: * Change bdrv_measure() return type to BlockMeasureInfo * [Eric] * Clarify that holes in sparse POSIX files are still counted [Eric] v5: * Use UINT64_MAX instead of ~0ULL [Berto] * Document qemu-img measure ofmt, fmt, output_fmt, and snapshot_param [Berto] v4: * Make qcow2 refcount ca

[Qemu-devel] [PATCH 06/11] blockjob: move iostatus reset inside block_job_user_resume

2017-05-08 Thread Paolo Bonzini
Outside blockjob.c, the block_job_iostatus_reset function is used once in the monitor and once in BlockBackend. When we introduce the block job mutex, block_job_iostatus_reset's client is going to be the block layer (for which blockjob.c will take the block job mutex) rather than the monitor (whic

[Qemu-devel] [PATCH 05/11] blockjob: separate monitor and blockjob APIs

2017-05-08 Thread Paolo Bonzini
We have two different headers for block job operations, blockjob.h and blockjob_int.h. The former contains APIs called by the monitor, the latter contains APIs called by the block job drivers and the block layer itself. Keep the two APIs separate in the blockjob.c file too. This will be useful w

[Qemu-devel] [PATCH v6 9/9] iotests: add test 178 for qemu-img measure

2017-05-08 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia --- tests/qemu-iotests/178 | 168 +++ tests/qemu-iotests/178.out.qcow2 | 278 +++ tests/qemu-iotests/178.out.raw | 146 tests/qemu-iotests/group

[Qemu-devel] [PATCH v6 4/9] qcow2: make refcount size calculation conservative

2017-05-08 Thread Stefan Hajnoczi
The refcount metadata size calculation is inaccurate and can produce numbers that are too small. This is bad because we should calculate a conservative number - one that is guaranteed to be large enough. This patch switches the approach to a fixed point calculation because the existing equation i

[Qemu-devel] [PATCH 08/11] blockjob: group BlockJob transaction functions together

2017-05-08 Thread Paolo Bonzini
Yet another pure code movement patch, preparing for the next change. Reviewed-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini --- blockjob.c | 128 ++--- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/blockjob.c b/blockjo

[Qemu-devel] [PATCH 09/11] blockjob: strengthen a bit test-blockjob-txn

2017-05-08 Thread Paolo Bonzini
Unlike test-blockjob-txn, QMP releases the reference to the transaction before the jobs finish. Thus, qemu-iotest 124 showed a failure while working on the next patch that the unit tests did not have. Make the test a little nastier. Reviewed-by: Stefan Hajnoczi Reviewed-by: John Snow Signed-of

[Qemu-devel] [PATCH v6 7/9] qemu-img: add measure subcommand

2017-05-08 Thread Stefan Hajnoczi
The measure subcommand calculates the size required by a new image file. This can be used by users or management tools that need to allocate space on an LVM volume, SAN LUN, etc before creating or converting an image file. Suggested-by: Maor Lipchuk Signed-off-by: Stefan Hajnoczi --- v5: * Use

[Qemu-devel] [PATCH 11/11] blockjob: use deferred_to_main_loop to indicate the coroutine has ended

2017-05-08 Thread Paolo Bonzini
All block jobs are using block_job_defer_to_main_loop as the final step just before the coroutine terminates. At this point, block_job_enter should do nothing, but currently it restarts the freed coroutine. Now, the job->co states should probably be changed to an enum (e.g. BEFORE_START, STARTED,

[Qemu-devel] [PATCH v6 8/9] qemu-iotests: support per-format golden output files

2017-05-08 Thread Stefan Hajnoczi
Some tests produce format-dependent output. Either the difference is filtered out and ignored, or the test case is format-specific so we don't need to worry about per-format output differences. There is a third case: the test script is the same for all image formats and the format-dependent outpu

[Qemu-devel] [PATCH v6 5/9] qcow2: extract image creation option parsing

2017-05-08 Thread Stefan Hajnoczi
The image creation options parsed by qcow2_create() are also needed to implement .bdrv_measure(). Extract the parsing code, including input validation. Signed-off-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia --- block/qcow2.c | 109 +++---

[Qemu-devel] [PATCH v6 1/9] block: add bdrv_measure() API

2017-05-08 Thread Stefan Hajnoczi
bdrv_measure() provides a conservative maximum for the size of a new image. This information is handy if storage needs to be allocated (e.g. a SAN or an LVM volume) ahead of time. Signed-off-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia --- v6: * Change bdrv_measure() return type to BlockMea

Re: [Qemu-devel] [PATCH v5 7/9] qemu-img: add measure subcommand

2017-05-08 Thread Alberto Garcia
On Tue 18 Apr 2017 03:57:24 PM CEST, Stefan Hajnoczi wrote: > The measure subcommand calculates the size required by a new image file. > This can be used by users or management tools that need to allocate > space on an LVM volume, SAN LUN, etc before creating or converting an > image file. > > Sugg

[Qemu-devel] [PATCH v6 2/9] raw-format: add bdrv_measure() support

2017-05-08 Thread Stefan Hajnoczi
Maximum size calculation is trivial for the raw format: it's just the requested image size (because there is no metadata). Signed-off-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia --- block/raw-format.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/block/raw-

[Qemu-devel] [PATCH v3] qemu-doc: Update to use the new way of attaching USB devices

2017-05-08 Thread Thomas Huth
The preferred way of adding USB devices is via "-device" and "device_add" nowadays, so let's start to get rid of "-usbdevice" and "usb_add" in the documentation. While we're at it, also add the new USB devices there which have been added to QEMU during the last years, and get rid of the old "vendor

[Qemu-devel] [PATCH v6 3/9] qcow2: extract preallocation calculation function

2017-05-08 Thread Stefan Hajnoczi
Calculating the preallocated image size will be needed to implement .bdrv_measure(). Extract the code out into a separate function. Signed-off-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia --- block/qcow2.c | 134 +- 1 file changed, 76

Re: [Qemu-devel] [PATCH v2 20/24] machine: call machine init from wrapper

2017-05-08 Thread Eduardo Habkost
On Wed, May 03, 2017 at 02:57:14PM +0200, Igor Mammedov wrote: > add machine_run_board_init() wrapper that calls machine > init for now but in follow up patches it will be used > to run generic machine code that should run before > machine init. > > Signed-off-by: Igor Mammedov Reviewed-by: Edua

Re: [Qemu-devel] format=raw,readonly errors

2017-05-08 Thread Carl Karsten
On Mon, May 8, 2017 at 3:51 AM, Markus Armbruster wrote: > Carl Karsten writes: > > > juser@gator:~/temp$ qemu-system-x86_64 -m 256 -display curses -drive > > file=disk.cow -drive file=boot.img > > WARNING: Image format was not specified for 'boot.img' and probing > guessed > > raw. > >

Re: [Qemu-devel] [PATCH v6 3/5] shutdown: Add source information to SHUTDOWN and RESET

2017-05-08 Thread Eric Blake
On 05/08/2017 12:26 AM, David Gibson wrote: > On Fri, May 05, 2017 at 02:38:08PM -0500, Eric Blake wrote: >> Time to wire up all the call sites that request a shutdown or >> reset to use the enum added in the previous patch. >> >> It would have been less churn to keep the common case with no >> arg

  1   2   3   4   >