Re: [Qemu-devel] [PATCH] target-i386: Fix CC_OP_CLR vs PF

2014-01-13 Thread Edgar E. Iglesias
On Fri, Jan 10, 2014 at 12:39:56PM -0800, Richard Henderson wrote: > Parity should be set for a zero result. > > Signed-off-by: Richard Henderson Reviewed-by: Edgar E. Iglesias > --- > target-i386/cc_helper.c | 2 +- > target-i386/translate.c | 2 +- > 2 files changed, 2 insertions(+), 2 del

Re: [Qemu-devel] [PATCH 7/8] virtio-vga: v1

2014-01-13 Thread Gerd Hoffmann
On Mi, 2014-01-08 at 09:35 +1000, Dave Airlie wrote: > On Fri, Dec 6, 2013 at 6:58 PM, Dave Airlie wrote: > > On Fri, Dec 6, 2013 at 6:24 PM, Gerd Hoffmann wrote: > >> Hi, > >> > >>> Now the advice given was to have virtio-vga wrap virtio-gpu-base but > >>> from what I can see it really can't.

Re: [Qemu-devel] [PATCHv4 6/6] ui/vnc: disable adaptive update calculations if not needed

2014-01-13 Thread Peter Lieven
On 13.01.2014 03:42, Wenchao Xia wrote: 于 2014/1/11 6:28, Peter Lieven 写道: Am 10.01.2014 04:09, schrieb Wenchao Xia: 于 2014/1/10 0:25, Peter Lieven 写道: Am 09.01.2014 09:29, schrieb Wenchao Xia: 于 2014/1/8 17:08, Peter Lieven 写道: Signed-off-by: Peter Lieven --- ui/vnc.c |9 +

[Qemu-devel] [PATCH v3 14/22] exec: Make stw_*_phys input an AddressSpace

2014-01-13 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- exec.c | 20 ++-- hw/net/vmware_utils.h |2 +- hw/ppc/ppc405_uc.c |2 +- hw/ppc/spapr_hcall.c |4 ++-- hw/s390x/css.c |3 ++- hw/s390x/s390-virtio-

[Qemu-devel] [PULL 1/3] net: Use g_strdup_printf instead of snprintf.

2014-01-13 Thread Stefan Hajnoczi
From: Hani Benhabiles assign_name() in net/net.c is using snprintf + g_strdup to get the same result as g_strdup_printf. Signed-off-by: Hani Benhabiles Signed-off-by: Stefan Hajnoczi --- net/net.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/net.c b/net/net.c in

Re: [Qemu-devel] [PATCH v5 1/7] Convert -mem-path to QemuOpts and add prealloc, share and unlink properties

2014-01-13 Thread Edgar E. Iglesias
On Thu, Jan 09, 2014 at 03:59:55PM +0100, Antonios Motakis wrote: > Extend -mem-path with additional properties: > > - prealloc=on|off - default off, same as -mem-prealloc > - share=on|off - default off, memory is mmapped with MAP_SHARED flag > - unlink=on|off - default on, inlink the file afte

Re: [Qemu-devel] [PATCH V5 00/10] qapi script: support enum as discriminator and better enum name

2014-01-13 Thread Kevin Wolf
Am 20.12.2013 um 06:23 hat Wenchao Xia geschrieben: > This series address two issues: > > 1. support using enum as discriminator in union. > For example, if we have following define in qapi schema: > { 'enum': 'EnumOne', > 'data': [ 'value1', 'value2', 'value3' ] } > > { 'type': 'UserDefBase0',

Re: [Qemu-devel] [PATCH] tests: Correct comment for qdict_array_split test

2014-01-13 Thread Kevin Wolf
Am 12.01.2014 um 17:01 hat Max Reitz geschrieben: > The comment explaining the expected behavior was actually mistaken (the > test code, however, was not). Fix this. > > Signed-off-by: Max Reitz Thanks. As the original patch wasn't merged into qemu.git master yet, I have updated it with this fix

Re: [Qemu-devel] [PATCH] tests: Correct comment for qdict_array_split test

2014-01-13 Thread Markus Armbruster
Max Reitz writes: > The comment explaining the expected behavior was actually mistaken (the > test code, however, was not). Fix this. > > Signed-off-by: Max Reitz > --- > tests/check-qdict.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tests/check-qdict.c b/tes

[Qemu-devel] [PATCH] spapr-pci: enable adding PHB via -device

2014-01-13 Thread Alexey Kardashevskiy
Recent changes introduced cannot_instantiate_with_device_add_yet and removed capability of adding yet another PCI host bridge via command line for SPAPR platform (POWERPC64 server). This brings the capability back and puts SPAPR PHB into "bridge" category. This is not much use for emulated PHB bu

Re: [Qemu-devel] ARM build error/warning

2014-01-13 Thread Peter Maydell
On 13 January 2014 03:24, Edgar E. Iglesias wrote: > Hi, > > Just a heads up. > I'm seeing a build warning/error on 32bit hosts. > > I'm on: > commit dd089c0a1e928fb80ba8a37983c1b0e9232d1c8b > Merge: 42bf25a 30ef3c7 > Author: Anthony Liguori > Date: Sun Jan 12 17:50:52 2014 -0800 > > gcc versio

Re: [Qemu-devel] [PATCH v6 06/11] dump: add API to write dump header

2014-01-13 Thread Qiao Nuohan
Sorry for responsing late. On 01/07/2014 07:38 PM, Laszlo Ersek wrote: The following fields in "dh" are left zero-filled: - timestamp - total_ram_blocks - device_blocks - written_blocks - current_cpu I guess we'll either overwrite them later or it's OK to leave them all zeroed. Yes, they are

Re: [Qemu-devel] [PATCH RFC 2/3] qapi script: add support of event

2014-01-13 Thread Markus Armbruster
Ping^2! Markus Armbruster writes: > Ping? > > Markus Armbruster writes: > >> [Licensing problem, cc: Anthony] >> >> Kevin Wolf writes: >> >>> Am 13.12.2013 um 14:31 hat Eric Blake geschrieben: On 11/12/2013 06:44 PM, Wenchao Xia wrote: > +++ b/scripts/qapi-event.py > @@ -0,0 +1,

Re: [Qemu-devel] [PATCH] Docs: Introduce multiport serial support in qemupciserial.inf

2014-01-13 Thread Gerd Hoffmann
On Mi, 2014-01-08 at 17:11 +0100, Paolo Bonzini wrote: > Il 08/01/2014 16:07, Yan Vugenfirer ha scritto: > >>> > >>> +%QEMU-PCI_SERIAL_1_PORT%=ComPort_inst1, > >>> PCI\VEN_1B36&DEV_0002&SUBSYS_11001AF4&REV_01 > >>> +%QEMU-PCI_SERIAL_2_PORT%=ComPort_inst2, > >>> PCI\VEN_1B36&DEV_0003&SUBSYS_11001AF4

Re: [Qemu-devel] [PULL 03/18] vring: factor common code for error exits

2014-01-13 Thread Peter Maydell
On 20 December 2013 15:46, Stefan Hajnoczi wrote: > From: Paolo Bonzini > > Signed-off-by: Paolo Bonzini > Signed-off-by: Stefan Hajnoczi > --- > hw/block/dataplane/virtio-blk.c | 1 + > hw/virtio/dataplane/vring.c | 34 +- > 2 files changed, 22 insertions(

[Qemu-devel] [PATCHv6 3/6] qemu-iotests: enable support for NFS protocol

2014-01-13 Thread Peter Lieven
Signed-off-by: Peter Lieven --- tests/qemu-iotests/common| 22 +++--- tests/qemu-iotests/common.rc |3 +++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common index 8b4e22c..5795358 100644 --- a/tests/qemu

[Qemu-devel] [PATCHv6 4/6] qemu-iotests: enable test 016 and 025 to work with NFS protocol

2014-01-13 Thread Peter Lieven
Signed-off-by: Peter Lieven --- tests/qemu-iotests/016 |2 +- tests/qemu-iotests/025 |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/016 b/tests/qemu-iotests/016 index b87a32b..7ea9e94 100755 --- a/tests/qemu-iotests/016 +++ b/tests/qemu-iotests/01

[Qemu-devel] [PATCHv6 2/6] qemu-iotests: change _supported_proto to file for various tests

2014-01-13 Thread Peter Lieven
all these tests do anything of the following and thus fail with any protocol other than file: - the tests use rm, cp or mv shell commands which only work on file - the tests use qcow2.py - the images construct new filenames (e.g. backing file names) and the logic is broken for anything else t

[Qemu-devel] [PATCHv6 5/6] qemu-iotests: fix expected output of test 067

2014-01-13 Thread Peter Lieven
Signed-off-by: Peter Lieven --- tests/qemu-iotests/067.out |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/qemu-iotests/067.out b/tests/qemu-iotests/067.out index 8d271cc..79ed90f 100644 --- a/tests/qemu-iotests/067.out +++ b/tests/qemu-iotests/067.out @@ -12,

[Qemu-devel] [PATCHv6 0/6] block: add native support for NFS

2014-01-13 Thread Peter Lieven
This adds v6 of the NFS protocol driver + qemu-iotest adjustments. v5->v6: - use internal qemu function to parse the NFS url [Kevin] - zero pad short reads [Kevin, Paolo] - added qemu-iotests patches for basic nfs protocol support v4->v5: - disussed with Ronnie and decided to move URL + Param

[Qemu-devel] [PATCHv6 6/6] qemu-iotests: blacklist test 020 for NFS protocol

2014-01-13 Thread Peter Lieven
reopening is currently not supported. Signed-off-by: Peter Lieven --- tests/qemu-iotests/020 |5 + 1 file changed, 5 insertions(+) diff --git a/tests/qemu-iotests/020 b/tests/qemu-iotests/020 index a42f32f..f8a849c 100755 --- a/tests/qemu-iotests/020 +++ b/tests/qemu-iotests/020 @@ -46,

[Qemu-devel] [PATCHv6 1/6] block: add native support for NFS

2014-01-13 Thread Peter Lieven
This patch adds native support for accessing images on NFS shares without the requirement to actually mount the entire NFS share on the host. NFS Images can simply be specified by an url of the form: nfs:[?param=value[¶m2=value2[&...]]] For example: qemu-img create -f qcow2 nfs://10.0.0.1/qem

[Qemu-devel] [PATCH] target-arm: Switch ARMCPUInfo arrays to use terminator entries

2014-01-13 Thread Peter Maydell
Switch the ARMCPUInfo arrays in cpu.c and cpu64.c to use a terminator entry rather than looping based on ARRAY_SIZE. The latter causes compile warnings on some versions of gcc if the configure options happen to result in an empty array. Signed-off-by: Peter Maydell --- Edgar, I think this should

Re: [Qemu-devel] chroot jailing...

2014-01-13 Thread Markus Armbruster
"immersive.ex...@gmail.com" writes: > Thanks! > > So it sounds like you're saying selinux is the only meaningful thing to try? > Or do people ever bother to place qemu in chroot jails?? > > I seem to have gotten the impression that people use qemu-static to do this, > but it appears to be more fo

Re: [Qemu-devel] [PATCH v1 0/3] qcow2: fix bugs when cluster size is larger than the default value

2014-01-13 Thread Hu Tao
ping again On Mon, Dec 30, 2013 at 01:29:06PM +0800, Hu Tao wrote: > See each patches for details. > > Hu Tao (3): > qcow2: remove n_start and n_end of qcow2_alloc_cluster_offset() > qcow2: fix offset overflow > qcow2: check for NULL l2meta > > block/qcow2-cluster.c | 14 ++ >

Re: [Qemu-devel] [RFC PATCH v4 0/4] qemu-img: add preallocation=full

2014-01-13 Thread Hu Tao
ping...

[Qemu-devel] [PATCH 3/9] block: Add bdrv_dirty_bitmap_make_anon

2014-01-13 Thread Fam Zheng
This will unset the name of dirty bitmap. Signed-off-by: Fam Zheng --- block.c | 5 + include/block/block.h | 1 + 2 files changed, 6 insertions(+) diff --git a/block.c b/block.c index 16ef61b..f7e6851 100644 --- a/block.c +++ b/block.c @@ -4545,6 +4545,11 @@ BdrvDirtyBitmap *

[Qemu-devel] [PATCH 0/9] QMP: Introduce incremental drive-backup with in-memory dirty bitmap

2014-01-13 Thread Fam Zheng
This implements incremental backup. A few new QMP commands related to dirty bitmap are added: dirty-bitmap-add * dirty-bitmap-disable * dirty-bitmap-remove (*: also supported as transactions) As their name implies, they manipulate a block device's dirty bitmap. This doesn't inte

[Qemu-devel] [PATCH 4/9] qmp: Add dirty-bitmap-add and dirty-bitmap-remove

2014-01-13 Thread Fam Zheng
The new command pair is added to manage user created dirty bitmap. The dirty bitmap's name is mandatory and must be unique for the same device, but different devices can have bitmaps with the same names. Signed-off-by: Fam Zheng --- blockdev.c | 60 +

[Qemu-devel] [PATCH 7/9] block: Add support of "dirty-bitmap" sync mode

2014-01-13 Thread Fam Zheng
For "dirty-bitmap" sync mode, the block job will iterate through the given dirty bitmap to decide if a sector needs backup (backup all the dirty clusters and skip clean ones), just as allocation conditions of "top" sync mode. If the dirty bitmap is updated (because of guest writes) while the block

[Qemu-devel] [PATCH 5/9] block: Handle error of bdrv_getlength in bdrv_create_dirty_bitmap

2014-01-13 Thread Fam Zheng
bdrv_getlength could fail, check the return value before using it. Signed-off-by: Fam Zheng --- block.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index f7e6851..cc9c530 100644 --- a/block.c +++ b/block.c @@ -4568,7 +4568,12 @@ BdrvDirtyBitmap *b

[Qemu-devel] [PATCH 9/9] qapi: Add transaction support to dirty-bitmap-{add, disable}

2014-01-13 Thread Fam Zheng
This adds dirty-bitmap-add and dirty-bitmap-disable to transactions. With this, user can stop a dirty bitmap, start backup of it, and start another dirty bitmap atomically, so that the dirty bitmap is tracked incrementally and we don't miss any write. Signed-off-by: Fam Zheng --- blockdev.c

[Qemu-devel] [PATCH 1/9] block: Introduce reference count for dirty bitmaps

2014-01-13 Thread Fam Zheng
A dirty bitmap may be created by user via QMP, then reference by other QMP commands, such as backup. We need reference count machanism to manage the lifecycle of dirty bitmap. This adds bdrv_release_dirty_bitmap and changes bdrv_release_dirty_bitmap to only free the structure when refcnt goes to 0

[Qemu-devel] [PATCH 2/9] qapi: Add optional field "name" to block dirty bitmap

2014-01-13 Thread Fam Zheng
This field will be set for user created dirty bitmap. Also pass in an error pointer to bdrv_create_dirty_bitmap, so when a name is already taken on this BDS, it can report an error message. This is not global check, two BDSes can have dirty bitmap with a common name. Implemented bdrv_find_dirty_bi

Re: [Qemu-devel] [PATCH v6 06/11] dump: add API to write dump header

2014-01-13 Thread Laszlo Ersek
On 01/13/14 11:03, Qiao Nuohan wrote: > Sorry for responsing late. > > On 01/07/2014 07:38 PM, Laszlo Ersek wrote: >>> > +kh->offset_note = DISKDUMP_HEADER_BLOCKS * dh->block_size + >>> size; >>> > +kh->note_size = s->note_size; >>> > + >>> > +if (write_buffer(s->fd, s->flag_flatt

[Qemu-devel] [PATCH 6/9] block: Introduce bdrv_dirty_bitmap_granularity()

2014-01-13 Thread Fam Zheng
This returns the granularity (in sectors) of dirty bitmap. Signed-off-by: Fam Zheng --- block.c | 6 ++ include/block/block.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/block.c b/block.c index cc9c530..0e59a9a 100644 --- a/block.c +++ b/block.c @@ -4637,6 +4637,12 @

[Qemu-devel] [PATCH 8/9] qmp: Add dirty-bitmap-disable command

2014-01-13 Thread Fam Zheng
This will put the dirty bitmap into a disabled state and no more writes will be tracked. It will be used before backup or writing to persistent file. Signed-off-by: Fam Zheng --- block.c | 15 +++ blockdev.c| 22 ++ include/block/block.h

Re: [Qemu-devel] [PATCH 0/2] acpi: Fix PCI hole handling on SRAT table

2014-01-13 Thread Gerd Hoffmann
On Do, 2014-01-09 at 17:12 -0200, Eduardo Habkost wrote: > The original SeaBIOS code used the RamSize variable, that was used by > SeaBIOS for the size of RAM below 4GB, not for all RAM. When copied to > QEMU, the code was changed to use the full RAM size, and this broke > the > build_srat() code t

Re: [Qemu-devel] [PATCH 1/1] KVM: Retry KVM_CREATE_VM on EINTR or EAGAIN

2014-01-13 Thread Paolo Bonzini
Il 10/01/2014 23:15, Tom Knych ha scritto: > I'll flip the conditional check > > So I traced thru the code and the one path I saw returning EINTR was: > > kvm_dev_ioctl_create_vm -> kvm_create_vm -> kvm_init_mmu_notifier -> > mmu_notifier_register -> do_mmu_notifier_register -> mm_take_all_locks

Re: [Qemu-devel] Using virtio-net and vhost_net on an ARM machine using qemu-system-arm & KVM

2014-01-13 Thread Barak Wasserstrom
Ying-Shiuan Pan, Your experiments with arndale Exynos-5250 board can help me greatly and i would really appreciate if you share with me the following information: 1. Which Linux kernel did you use for the host and for the guest? 2. Which Linux kernel patches did you use for KVM? 3. Which config fil

Re: [Qemu-devel] [PATCH v2 19/24] block: Allow wait_serialising_requests() at any point

2014-01-13 Thread Kevin Wolf
Am 27.12.2013 um 05:17 hat Wenchao Xia geschrieben: > 于 2013/12/13 21:22, Kevin Wolf 写道: > > We can only have a single wait_serialising_requests() call per request > > because otherwise we can run into deadlocks where requests are waiting > > for each other. > do you mean: > mark_request_serialis

Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags

2014-01-13 Thread Paolo Bonzini
Il 11/01/2014 08:46, Stefan Weil ha scritto: > Hi Steven, > > --disable-stack-protector would also be useful for platforms which make > debugging of executables with stack protection difficult. When I must > debug Windows executables, I always disable stack protection, because > otherwise the stac

[Qemu-devel] [PATCH] linux-user: sync syscall numbers upto 3.13

2014-01-13 Thread riku . voipio
From: Riku Voipio All others updated except unicore, which doesn't look right to begin with. Signed-off-by: Riku Voipio --- linux-user/alpha/syscall_nr.h | 7 +++ linux-user/arm/syscall_nr.h| 6 ++ linux-user/cris/syscall_nr.h | 1 + linux-user/i386/syscall_nr.h

Re: [Qemu-devel] [PATCH v2 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-13 Thread Peter Crosthwaite
On Sat, Jan 11, 2014 at 8:13 PM, Beniamino Galvani wrote: > This patch adds support for the Fast Ethernet MAC found on Allwinner > SoCs, together with a basic emulation of Realtek RTL8201CP PHY. > > Since there is no public documentation of the Allwinner controller, the > implementation is based o

Re: [Qemu-devel] [PATCH v2 1/2] hw/net: add support for Allwinner EMAC Fast Ethernet controller

2014-01-13 Thread Peter Crosthwaite
cc Stefan On Mon, Jan 13, 2014 at 11:15 PM, Peter Crosthwaite wrote: > On Sat, Jan 11, 2014 at 8:13 PM, Beniamino Galvani > wrote: >> This patch adds support for the Fast Ethernet MAC found on Allwinner >> SoCs, together with a basic emulation of Realtek RTL8201CP PHY. >> >> Since there is no p

Re: [Qemu-devel] [PATCH] linux-user: sync syscall numbers upto 3.13

2014-01-13 Thread Peter Maydell
On 13 January 2014 12:33, wrote: > From: Riku Voipio > > All others updated except unicore, which doesn't look right to > begin with. Yes, I've noticed before that the Unicore syscall numbers are just completely wrong. Guan, would you like to submit a patch to fix them or should we just rip out

Re: [Qemu-devel] [PATCH] block/vmdk: add basic .bdrv_check support

2014-01-13 Thread Fam Zheng
On Mon, 01/13 12:24, Peter Lieven wrote: > this adds a basic vmdk corruption check. it should detect severe > table corruptions and file truncation. > > Signed-off-by: Peter Lieven > --- > block/vmdk.c | 46 ++ > 1 file changed, 46 insertions(+) > >

Re: [Qemu-devel] [PATCH 1/5] net: extend NetClientInfo for offloading manipulations

2014-01-13 Thread Vincenzo Maffione
Ok. I did not include those modifications into the patch in order to avoid modifications to the TAP netdev. 2014/1/13 Stefan Hajnoczi > On Fri, Dec 13, 2013 at 01:04:59PM +0100, Vincenzo Maffione wrote: > > diff --git a/include/net/net.h b/include/net/net.h > > index 11e1468..f5b5bae 100644 > >

[Qemu-devel] [PATCH v2 06/10] target-arm: A64: Add SIMD ZIP/UZP/TRN

2014-01-13 Thread Peter Maydell
From: Michael Matz Add support for the SIMD ZIP/UZIP/TRN instruction group (C3.6.3). Signed-off-by: Michael Matz [PMM: use new do_vec_get/set etc functions and generally update to new codebase standards; refactor to pull per-element loop outside switch] Signed-off-by: Peter Maydell Reviewed-b

[Qemu-devel] [PATCH v2 10/10] target-arm: A64: Add SIMD scalar copy instructions

2014-01-13 Thread Peter Maydell
Add support for the SIMD scalar copy instruction group (C3.6.7), which consists of the single instruction DUP (element, scalar). Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- v1->v2: fixed error in insn diagram comment --- target-arm/translate-a64.c | 42 ++

[Qemu-devel] [PATCH v2 09/10] target-arm: A64: Add SIMD modified immediate group

2014-01-13 Thread Peter Maydell
From: Alex Bennée This patch adds support for the AdvSIMD modified immediate group (C3.6.6) with all its suboperations (movi, orr, fmov, mvni, bic). Signed-off-by: Alexander Graf [AJB: new decode struct, minor bug fixes, optimisation] Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Re

[Qemu-devel] [PATCH v2 02/10] target-arm: A64: Add SIMD ld/st single

2014-01-13 Thread Peter Maydell
Implement the SIMD ld/st single structure instructions. Signed-off-by: Peter Maydell --- public v1->v2 changes: * same tcg_rn cleanup/fix as ld/st multiple --- target-arm/translate-a64.c | 144 - 1 file changed, 142 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH v2 00/10] A64 SIMD patchset one: ld/st, C3.6.1..C3.6.7

2014-01-13 Thread Peter Maydell
This is an initial set of patches which make a start on SIMD (Neon) emulation in the A64 decoder. The patches implement all the SIMD load/store operations, provide a decoder skeleton for the SIMD dp instructions, and implement all the instructions in the ARM ARM's groupings C3.6.1 through C3.6.7.

[Qemu-devel] [PATCH v6 0/8] Vhost and vhost-net support for userspace based backends

2014-01-13 Thread Antonios Motakis
In this patch series we would like to introduce our approach for putting a virtio-net backend in an external userspace process. Our eventual target is to run the network backend in the Snabbswitch ethernet switch, while receiving traffic from a guest inside QEMU/KVM which runs an unmodified virtio-

[Qemu-devel] [PATCH v6 1/8] Convert -mem-path to QemuOpts and add prealloc and share properties

2014-01-13 Thread Antonios Motakis
Extend -mem-path with additional properties: - prealloc=on|off - default off, same as -mem-prealloc - share=on|off - default off, memory is mmapped with MAP_SHARED flag Signed-off-by: Antonios Motakis Signed-off-by: Nikolay Nikolaev --- exec.c | 41 +++

[Qemu-devel] [PATCH v6 3/8] Decouple vhost from kernel interface

2014-01-13 Thread Antonios Motakis
We introduce the concept of vhost-backend, which can be either vhost-kernel or vhost-user. The existing vhost interface to the kernel is abstracted behind the vhost-kernel backend. We replace all direct ioctls to the kernel with a vhost_call to the backend. vhost dev->control is referenced only in

[Qemu-devel] [PATCH v6 8/8] Add vhost-user reconnection

2014-01-13 Thread Antonios Motakis
At runtime vhost-user netdev will detect if the vhost backend is up or down. Upon disconnection it will set link_down accordingly and notify virtio-net. The virtio-net interface goes down. On the next polling cycle the connection will be re-attempted. The poll cycle length is set through a -netdev

[Qemu-devel] [PATCH v6 4/8] Add vhost-user skeleton

2014-01-13 Thread Antonios Motakis
Add empty vhost_call, init and cleanup for the vhost-user backend. Signed-off-by: Antonios Motakis Signed-off-by: Nikolay Nikolaev --- hw/net/vhost_net.c| 57 ++- hw/virtio/vhost-backend.c | 35 include/hw/virt

[Qemu-devel] [PATCH v6 2/8] New -mem-path option - unlink.

2014-01-13 Thread Antonios Motakis
The unlink option allows the created file to be externally deleted after QEMU is terminated. - unlink=on|off - default on, unlink the file after opening it Signed-off-by: Antonios Motakis Signed-off-by: Nikolay Nikolaev --- exec.c | 18 +- qemu-options.hx | 7 ---

[Qemu-devel] [PATCH v6 5/8] Add domain socket communication for vhost-user backend

2014-01-13 Thread Antonios Motakis
Add structures for passing vhost-user messages over a unix domain socket. This is the equivalent of the existing vhost-kernel ioctls. Connect to the named unix domain socket. The system call sendmsg is used for communication. To be able to pass file descriptors between processes - we use SCM_RIGHT

[Qemu-devel] [PATCH v6 6/8] Add vhost-user calls implementation

2014-01-13 Thread Antonios Motakis
Each ioctl request of vhost-kernel has a vhost-user message equivalent, which is sent over the control socket. The general approach is to copy the data from the supplied argument pointer to a designated field in the message. If a file descriptor is to be passed it will be placed in the fds array f

[Qemu-devel] [PATCH v2 03/10] target-arm: A64: Add decode skeleton for SIMD data processing insns

2014-01-13 Thread Peter Maydell
From: Alex Bennée Add decode skeleton and function placeholders for all the SIMD data processing instructions. Due to the complexity of this part of the table the normal extract and switch approach gets very messy very quickly, so we use a simple data-driven pattern-and-mask approach. Signed-off

[Qemu-devel] [PATCH v2 04/10] target-arm: A64: Add SIMD EXT

2014-01-13 Thread Peter Maydell
Add support for the SIMD EXT instruction (the only one in its group, C3.6.1). Signed-off-by: Peter Maydell --- v1->v2: * reworked to do the vector element reads outside do_ext64; this turned out to be a substantial enough change that I haven't carried rth's reviewed-by tag across --- targ

[Qemu-devel] [PATCH v6 7/8] Add new vhost-user netdev backend

2014-01-13 Thread Antonios Motakis
Add a new QEMU netdev backend that is intended to invoke vhost_net with the vhost-user backend. Also decouple virtio-net from the tap backend. Signed-off-by: Antonios Motakis Signed-off-by: Nikolay Nikolaev --- hmp-commands.hx | 4 +- hw/net/vhost_net.c | 66 ++

[Qemu-devel] [PATCH v2 05/10] target-arm: A64: Add SIMD TBL/TBLX

2014-01-13 Thread Peter Maydell
From: Michael Matz Add support for the SIMD TBL/TBLX instructions (group C3.6.2). Signed-off-by: Michael Matz [PMM: rewritten to do more of the decode in translate-a64.c, and to do only one 64 bit pass at a time in the helper] Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- v

[Qemu-devel] [PATCH v2 08/10] target-arm: A64: Add SIMD copy operations

2014-01-13 Thread Peter Maydell
From: Alex Bennée This adds support for the all the AdvSIMD vector copy operations (ARM ARM 3.6.5). Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 210 - 1 file changed, 209 i

[Qemu-devel] [PATCH v2 01/10] target-arm: A64: Add SIMD ld/st multiple

2014-01-13 Thread Peter Maydell
From: Alex Bennée This adds support support for the SIMD load/store multiple category of instructions. This also brings in a couple of helper functions for manipulating sections of the SIMD registers: * do_vec_get - fetch value from a slice of a vector register * do_vec_set - set a slice of

[Qemu-devel] [PATCH v2 07/10] target-arm: A64: Add SIMD across-lanes instructions

2014-01-13 Thread Peter Maydell
From: Michael Matz Add support for the SIMD "across lanes" instruction group (C3.6.4). Signed-off-by: Michael Matz [PMM: Updated to current codebase, added fp min/max ops, added unallocated encoding checks] Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate

Re: [Qemu-devel] [PATCH] Docs: Introduce multiport serial support in qemupciserial.inf

2014-01-13 Thread Michael S. Tsirkin
On Mon, Jan 13, 2014 at 11:13:07AM +0100, Gerd Hoffmann wrote: > On Mi, 2014-01-08 at 17:11 +0100, Paolo Bonzini wrote: > > Il 08/01/2014 16:07, Yan Vugenfirer ha scritto: > > >>> > > >>> +%QEMU-PCI_SERIAL_1_PORT%=ComPort_inst1, > > >>> PCI\VEN_1B36&DEV_0002&SUBSYS_11001AF4&REV_01 > > >>> +%QEMU-PC

Re: [Qemu-devel] [Bug 1268596] Re: Compilation Error: hw/virtio/dataplane/vring.c:400:5: error: ‘ret’ may be used uninitialised in this function

2014-01-13 Thread Peter Maydell
On 13 January 2014 14:40, Paolo Bonzini wrote: > What compiler is this? The variable is quite obviously initialized > before that line. The issue is that one of the code paths has a shadowing declaration of 'ret' which is what gets assigned to, and so in that code path the compiler is correct tha

Re: [Qemu-devel] [PATCH] Docs: Introduce multiport serial support in qemupciserial.inf

2014-01-13 Thread Paolo Bonzini
Il 13/01/2014 15:48, Michael S. Tsirkin ha scritto: > > if (pci_dev->revision != VIRTIO_PCI_ABI_VERSION) { > printk(KERN_ERR "virtio_pci: expected ABI version %d, > got %d\n", >VIRTIO_PCI_ABI_VERSION, pci_dev->revision); > return -ENO

[Qemu-devel] [Bug 1268596] Re: Compilation Error: hw/virtio/dataplane/vring.c:400:5: error: ‘ret’ may be used uninitialised in this function

2014-01-13 Thread Paolo Bonzini
What compiler is this? The variable is quite obviously initialized before that line. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1268596 Title: Compilation Error: hw/virtio/dataplane/vring.c:400:

Re: [Qemu-devel] chroot jailing...

2014-01-13 Thread Alex Bennée
immersive.ex...@gmail.com writes: > Thanks! > > So it sounds like you're saying selinux is the only meaningful thing to try? > Or do people ever bother to place qemu in chroot jails?? > > I seem to have gotten the impression that people use qemu-static to do this, > but it appears to be more for

Re: [Qemu-devel] [PATCH] Docs: Introduce multiport serial support in qemupciserial.inf

2014-01-13 Thread Paolo Bonzini
Il 13/01/2014 16:03, Michael S. Tsirkin ha scritto: >>> > > so it seems better to be consistent. >>> > > in any case, we must check subsystem ids, the spec is very >>> > > explicit on this point. >> > >> > This is not a virtio device. >> > >> > Paolo > oh > I didn't realize that - thought it's vi

Re: [Qemu-devel] [PATCH] Docs: Introduce multiport serial support in qemupciserial.inf

2014-01-13 Thread Michael S. Tsirkin
On Mon, Jan 13, 2014 at 03:56:49PM +0100, Paolo Bonzini wrote: > Il 13/01/2014 15:48, Michael S. Tsirkin ha scritto: > > > > if (pci_dev->revision != VIRTIO_PCI_ABI_VERSION) { > > printk(KERN_ERR "virtio_pci: expected ABI version %d, > > got %d\n", > >

Re: [Qemu-devel] [PATCH 4/5] net: add offloadings support to netmap backend

2014-01-13 Thread Vincenzo Maffione
2014/1/13 Stefan Hajnoczi > On Fri, Dec 13, 2013 at 01:05:02PM +0100, Vincenzo Maffione wrote: > > +static void netmap_using_vnet_hdr(NetClientState *nc, bool enable) > > +{ > > +} > > I was trying to figure out whether it's okay for this function to be a > nop. I've come to the conclusion that

Re: [Qemu-devel] 回复: Re: [PATCH] linux-user: sync syscall numbers upto 3.13

2014-01-13 Thread Peter Maydell
On 13 January 2014 15:14, 管雪涛 wrote: > The syscall numbers in unicore32 are correct because we have two ABIs for 32 > bits. > In qemu, it's old ABI, while in kernel, it's new ABI. > However, for now, old ABI is widely used for unicore32's applications. I don't think upstream QEMU should be suppo

[Qemu-devel] Question about drive mirror

2014-01-13 Thread rudy...@163.com
Hi,everyone. I tested the capability of drive mirror, I found the IO is low. Then I read the code, The code mirror_run() will call mirror_iteration() to read the size of buffer data from source storage, when the read callback ,and then in mirror_read_complete () write the data to the target

Re: [Qemu-devel] [PATCH v2 01/10] target-arm: A64: Add SIMD ld/st multiple

2014-01-13 Thread Richard Henderson
On 01/13/2014 06:13 AM, Peter Maydell wrote: > From: Alex Bennée > > This adds support support for the SIMD load/store > multiple category of instructions. > > This also brings in a couple of helper functions for manipulating > sections of the SIMD registers: > > * do_vec_get - fetch value fr

Re: [Qemu-devel] [PATCH v2 02/10] target-arm: A64: Add SIMD ld/st single

2014-01-13 Thread Richard Henderson
On 01/13/2014 06:13 AM, Peter Maydell wrote: > Implement the SIMD ld/st single structure instructions. > > Signed-off-by: Peter Maydell > --- > public v1->v2 changes: > * same tcg_rn cleanup/fix as ld/st multiple > --- > target-arm/translate-a64.c | 144 > ++

Re: [Qemu-devel] [PATCH v2 03/10] target-arm: A64: Add decode skeleton for SIMD data processing insns

2014-01-13 Thread Richard Henderson
On 01/13/2014 06:13 AM, Peter Maydell wrote: > From: Alex Bennée > > Add decode skeleton and function placeholders for all the SIMD data > processing instructions. Due to the complexity of this part of the > table the normal extract and switch approach gets very messy very > quickly, so we use a

Re: [Qemu-devel] [PATCH v2 04/10] target-arm: A64: Add SIMD EXT

2014-01-13 Thread Richard Henderson
On 01/13/2014 06:13 AM, Peter Maydell wrote: > +if (!is_q) { > +read_vec_element(s, tcg_resl, rn, 0, MO_64); > +if (pos != 0) { > +read_vec_element(s, tcg_resh, rm, 0, MO_64); > +read_vec_element(s, tcg_resl, rn, 0, MO_64); Duplicate resl read. Otherwis

[Qemu-devel] [PATCH v15 1/9] rules.mak: fix $(obj) to a real relative path

2014-01-13 Thread Paolo Bonzini
From: Fam Zheng Makefile.target includes rule.mak and unnested common-obj-y, then prefix them with '../', this will ignore object specific QEMU_CFLAGS in subdir Makefile.objs: $(obj)/curl.o: QEMU_CFLAGS += $(CURL_CFLAGS) Because $(obj) here is './block', instead of '../block'. This doesn't

[Qemu-devel] [PATCH v15 5/9] build-sys: introduce common-obj-m and block-obj-m for DSO

2014-01-13 Thread Paolo Bonzini
From: Fam Zheng Add necessary rules and flags for shared object generation. $(common-obj-m) will include $(block-obj-m), like $(common-obj-y) does for $(block-obj-y). The new rules introduced here are: 0) For all %.so compiling: QEMU_CFLAGS += -fPIC 1) %.o in $(common-obj-m) is compiled to

[Qemu-devel] [PATCH v15 2/9] rules.mak: allow per object cflags and libs

2014-01-13 Thread Paolo Bonzini
From: Fam Zheng Adds extract-libs in LINK to expand any "per object libs", the syntax to define such a libs options is like: foo.o-libs := $(CURL_LIBS) in block/Makefile.objs. Similarly, foo.o-cflags := $(FOO_CFLAGS) is also supported. "foo.o" must be listed in a nested var

[Qemu-devel] [PATCH v15 3/9] block: use per-object cflags and libs

2014-01-13 Thread Paolo Bonzini
From: Fam Zheng No longer adds flags and libs for them to global variables, instead create config-host.mak variables like FOO_CFLAGS and FOO_LIBS, which is used as per object cflags and libs. This removes unwanted dependencies from libcacard. Signed-off-by: Fam Zheng [Split from Fam's patch to

[Qemu-devel] [PATCH v15 6/9] module: implement module loading

2014-01-13 Thread Paolo Bonzini
From: Fam Zheng This patch adds loading, stamp checking and initialization of modules. The init function of dynamic module is no longer directly called as __attribute__((constructor)) in static linked version, it is called only after passed the checking of presense of stamp symbol: qemu_sta

[Qemu-devel] [PATCH v15 8/9] .gitignore: ignore module related files (dll, so, mo)

2014-01-13 Thread Paolo Bonzini
From: Fam Zheng Signed-off-by: Fam Zheng Signed-off-by: Paolo Bonzini --- .gitignore |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 1c9d63d..7702b0c 100644 --- a/.gitignore +++ b/.gitignore @@ -64,6 +64,9 @@ fsdev/virtfs-proxy-helper.po

[Qemu-devel] [PATCH v15 4/9] darwin: do not use -mdynamic-no-pic

2014-01-13 Thread Paolo Bonzini
While -mdynamic-no-pic can speed up the code somewhat, it is only used on the legacy PowerPC Mac OS X, and I am not sure if anyone is still testing that. Disabling PIC can cause problems when enabling modules, so do not do that. Signed-off-by: Paolo Bonzini --- configure |2 -- 1 files chan

[Qemu-devel] [PATCH v15 0/9] Shared library module support

2014-01-13 Thread Paolo Bonzini
This is based on Fam's patches from October. Very few changes apart from rebasing: * I split his patch 8 in two parts. There is benefit in using per-object cflags and libs even before the module-loading machinery gets in. * I added a new patch "darwin: do not use -mdynamic-no-pic". CCing Alex G

[Qemu-devel] [PATCH v15 7/9] Makefile: install modules with "make install"

2014-01-13 Thread Paolo Bonzini
From: Fam Zheng Install all the modules to ${MODDIR}. Signed-off-by: Fam Zheng Signed-off-by: Paolo Bonzini --- Makefile |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 670ce44..a91f119 100644 --- a/Makefile +++ b/Makefile @@ -371,6 +371

Re: [Qemu-devel] chroot jailing...

2014-01-13 Thread immersive.ex...@gmail.com
That's what I thought; just had to be sure. Thanks all... On 01/13/2014 09:38 AM, Alex Bennée wrote: > immersive.ex...@gmail.com writes: > >> Thanks! >> >> So it sounds like you're saying selinux is the only meaningful thing to try? >> Or do people ever bother to place qem

[Qemu-devel] [PATCH v15 9/9] block: convert block drivers linked with libs to modules

2014-01-13 Thread Paolo Bonzini
From: Fam Zheng The converted block drivers are: curl iscsi rbd ssh glusterfs Signed-off-by: Fam Zheng Signed-off-by: Paolo Bonzini --- configure | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index c382044..1f0c5b

[Qemu-devel] [PATCH 0/3] qga: vss-win32: Fix interference with other VSS requesters

2014-01-13 Thread Tomoki Sekiyama
Current functionarity of qemu-ga VSS provider is limited to implement filesystems freeze, and doesn't support the creation of shadow copies within the guest. However, when no other hardware snapshot provider is installed, VSS may choose qemu-ga VSS provider to create shadow copies and fail with VSS

[Qemu-devel] [PATCH 2/3] qga: vss-win32: Fix interference with snapshot creation by other VSS requesters

2014-01-13 Thread Tomoki Sekiyama
When a VSS requester such as vshadow.exe or diskshadow.exe requests to create disk snapshots, Windows may choose qemu-ga VSS provider if it is only provider registered on the system. However, because it provides only a function to freeze the filesystem, the snapshotting fails. This patch adds a ch

[Qemu-devel] [PATCH 1/3] qga: vss-win32: Use NULL as an invalid pointer for OpenEvent and CreateEvent

2014-01-13 Thread Tomoki Sekiyama
OpenEvent and CreateEvent WinAPI return NULL when failed to open/create events handles, instead of INVALID_HANDLE_VALUE (although their return types are HANDLE). This replaces INVALID_HANDLE_VALUE related to event handles with NULL. Signed-off-by: Tomoki Sekiyama --- qga/vss-win32/provider.cpp

[Qemu-devel] [PATCH 3/3] qga: vss-win32: Fix interference with snapshot deletion by other VSS request

2014-01-13 Thread Tomoki Sekiyama
When a VSS requester such as vshadow.exe or diskshadow.exe requests to delete snapshots, qemu-ga VSS provider's DeleteSnapshots() is also called and returns E_NOTIMPL, that makes the deletion fail. To avoid this issue, return S_OK and set values that represent no snapshots are deleted by qemu-ga VS

[Qemu-devel] [PULL 00/49] migration queue

2014-01-13 Thread Juan Quintela
14-01-12 17:50:52 -0800) are available in the git repository at: git://github.com/juanquintela/qemu.git tags/migration/20140113 for you to fetch changes up to aa8dc044772ba156cbcf2174b5673cfa11f566a7: migration: synchronize memory bitmap 64bits at a time (2014-01-13 1

[Qemu-devel] [PATCH 01/49] avoid a bogus COMPLETED->CANCELLED transition

2014-01-13 Thread Juan Quintela
From: "Zhanghaoyu (A)" Avoid a bogus COMPLETED->CANCELLED transition. There is a period of time from the timing of setting COMPLETED state to that of migration thread exits, so during which it's problematic in COMPLETED->CANCELLED transition. Signed-off-by: Zeng Junliang Signed-off-by: Zhang

[Qemu-devel] [PATCH 03/49] migration: Fix rate limit

2014-01-13 Thread Juan Quintela
From: Matthew Garrett The migration thread appears to want to allow writeout to occur at full speed rather than being rate limited during completion of state saving, but sets the limit to INT_MAX when xfer_limit is INT64_MAX. This causes problems if there's more than 2GB of state left to save at

  1   2   3   >