[Qemu-devel] [PATCH v6 1/3] qmp: rename query_option_descs() to get_param_info()

2014-03-27 Thread Amos Kong
Signed-off-by: Amos Kong Reviewed-by: Eric Blake --- util/qemu-config.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/qemu-config.c b/util/qemu-config.c index f610101..508adbc 100644 --- a/util/qemu-config.c +++ b/util/qemu-config.c @@ -39,7 +39,7 @@ QemuOptsLi

[Qemu-devel] Trace Log for registers changed with executed instruction

2014-03-27 Thread Gaurav Sharma
I am trying to put a trace feature for ARM target which includes some dissassembly and register value to be logged. Is there any way i can get only the register values that have changed for the executed instruction, rather than dumping the whole cpu state ? Thanks, Gaurav

Re: [Qemu-devel] [PATCH v6 0/3] fix query-command-line-options

2014-03-27 Thread Amos Kong
On Thu, Mar 27, 2014 at 02:57:00PM +0800, Amos Kong wrote: > This patchset fixed some issues of query-command-line-options: > * some new options that haven't argument can't be queried. (eg: -enable-fips) > * some legacy options that have argument can't be queried. (eg: -vnc display) > > More dis

Re: [Qemu-devel] [PATCH v23 00/32] replace QEMUOptionParameter with QemuOpts

2014-03-27 Thread Chunyan Liu
2014-03-26 23:18 GMT+08:00 Stefan Hajnoczi : > On Tue, Mar 25, 2014 at 06:09:40PM +, Leandro Dorileo wrote: > > On Fri, Mar 21, 2014 at 06:12:11PM +0800, Chunyan Liu wrote: > > > This patch series is to replace QEMUOptionParameter with QemuOpts, so > that only > > > one Qemu Option structure i

Re: [Qemu-devel] [PATCH v23 12/32] qcow2.c: remove 'assigned' check in amend

2014-03-27 Thread Chunyan Liu
2014-03-26 15:37 GMT+08:00 Chunyan Liu : > > > > 2014-03-26 3:25 GMT+08:00 Leandro Dorileo : > > On Fri, Mar 21, 2014 at 06:12:23PM +0800, Chunyan Liu wrote: >> > In QEMUOptionParameter and QemuOptsList conversion, 'assigned' info >> > is lost. In current code, only qcow2 amend uses 'assigned' for

Re: [Qemu-devel] Massive read only kvm guests when backing file was missing

2014-03-27 Thread Markus Armbruster
"Michael S. Tsirkin" writes: > On Wed, Mar 26, 2014 at 11:08:03PM -0300, Alejandro Comisario wrote: >> Hi List! >> Hope some one can help me, we had a big issue in our cloud the other >> day, a couple of our openstack regions ( +2000 kvm guests with qcow2 ) >> went read only filesystem from the g

Re: [Qemu-devel] [RFC PATCH V2 3/5] qapi script: add event support by qapi-event.py

2014-03-27 Thread Wenchao Xia
You may need to rebase this on top of other patches that refactor the qapi generators to track the input file, for improved error messages. It seems qapi-visit.py and qapi-types.py remains the same as above in upstream, which kind of change are your referring to? Lluís' patch to use an exp

Re: [Qemu-devel] [PATCH] vl.c: use 'break' instead of 'continue' in configure_accelerator()

2014-03-27 Thread Marcel Apfelbaum
On Thu, 2014-03-27 at 09:16 +0800, Chen Gang wrote: > At present, each 'opt_name' of 'accel_list' is uniq with each other, so > 'buf' can only match one 'opt_name'. > > When drop into the matching code block, can 'break' outside related > 'for' looping after finish processing it (just like the oth

[Qemu-devel] [RFC PATCH V4 0/5] add direct support of event in qapi schema

2014-03-27 Thread Wenchao Xia
This series add support for tag/keyword 'event' in qapi-schema. A new file was created to store some helper functions in patch 2, patch 4 is the test case, patch 5 is a convert example. The implemention is done by generate API and a batch of parameters for each event define, it doesn't generate a

[Qemu-devel] [RFC PATCH V4 1/5] os-posix: include sys/time.h

2014-03-27 Thread Wenchao Xia
Since gettimeofday() is used in this header file as a macro define, include the function's define header file, to avoid compile warning when other file include os-posix.h. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake --- include/sysemu/os-posix.h |2 ++ 1 files changed, 2 insertions(+

[Qemu-devel] [RFC PATCH V4 3/5] qapi script: add event support

2014-03-27 Thread Wenchao Xia
qapi-event.py will parse the schema and generate qapi-event.c, then the API in qapi-event.c can be used to handle event in qemu code. All API have prefix "qapi_event". The script mainly includes two parts: generate API for each event define, generate an enum type for all defined events. Since in

[Qemu-devel] [RFC PATCH V4 2/5] qapi: add event helper functions

2014-03-27 Thread Wenchao Xia
This file holds some functions that do not need to be generated. Signed-off-by: Wenchao Xia --- include/qapi/qmp-event.h | 27 + qapi/Makefile.objs |1 + qapi/qmp-event.c | 70 ++ 3 files changed, 98 insertions(+),

[Qemu-devel] [RFC PATCH V4 4/5] test: add test cases for qapi event

2014-03-27 Thread Wenchao Xia
These cases will verify whether the expected qdict is built. Signed-off-by: Wenchao Xia --- tests/Makefile | 14 ++- tests/qapi-schema/qapi-schema-test.json | 12 ++ tests/qapi-schema/qapi-schema-test.out | 10 +- tests/test-qmp-event.c | 265 +++

[Qemu-devel] [RFC PATCH V4 5/5] qapi event: convert RTC_CHANGE

2014-03-27 Thread Wenchao Xia
This is just an example of how to use qapi event API, and it bypassed the event throttle queue. A complete convert should be first define all events in qapi-schema.json, use qapi event types in monitor functions, then change caller one by one. Signed-off-by: Wenchao Xia --- monitor.c|

Re: [Qemu-devel] [PATCH 0/1] configure time fix for thread naming on old glibc

2014-03-27 Thread Michael S. Tsirkin
On Wed, Mar 12, 2014 at 11:48:17AM +, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > Peter was preferring configure time detection of pthread_setname_np > to guard against my recent breaking of builds on old libc. > > I've tested this on: >Fedora 20 - modern gli

Re: [Qemu-devel] Massive read only kvm guests when backing file was missing

2014-03-27 Thread Michael S. Tsirkin
On Thu, Mar 27, 2014 at 08:36:57AM +0100, Markus Armbruster wrote: > "Michael S. Tsirkin" writes: > > > On Wed, Mar 26, 2014 at 11:08:03PM -0300, Alejandro Comisario wrote: > >> Hi List! > >> Hope some one can help me, we had a big issue in our cloud the other > >> day, a couple of our openstack

Re: [Qemu-devel] [Qemu-stable] [PATCH 1/1] virtio-blk: Use a req pool instead of malloc/free

2014-03-27 Thread Fam Zheng
Please send this patch to qemu-devel@nongnu.org. On Tue, 03/25 16:42, Li, Zhen-Hua wrote: > From: "Li, ZhenHua" > > In virtio-blk module, when there is new request, new req structure > will be created by malloc. Use a req pool instead of this, will increase s/Use/Using/ > performance; > > In

Re: [Qemu-devel] [PATCH v2 1/1] Make qemu_peek_buffer loop until it gets it's data

2014-03-27 Thread Markus Armbruster
"Dr. David Alan Gilbert" writes: > * Markus Armbruster (arm...@redhat.com) wrote: >> "Dr. David Alan Gilbert (git)" writes: >> >> > From: "Dr. David Alan Gilbert" >> > >> > Make qemu_peek_buffer repatedly call fill_buffer until it gets >> > all the data it requires, or until there is an error.

Re: [Qemu-devel] [RFC PATCH 1/4] qemu-log: correct help text for -d cpu

2014-03-27 Thread Markus Armbruster
Leandro Dorileo writes: > On Wed, Mar 26, 2014 at 02:37:11PM +, alex.ben...@linaro.org wrote: >> From: Alex Bennée >> >> This doesn't just dump CPU state on translation but on every block >> entrance. >> >> Signed-off-by: Alex Bennée >> >> diff --git a/qemu-log.c b/qemu-log.c >> index 79

Re: [Qemu-devel] hmp interface for kdump compressed format

2014-03-27 Thread Markus Armbruster
"qiaonuo...@cn.fujitsu.com" writes: > On 03/27/2014 01:04 AM, Markus Armbruster wrote: >> So something like adding >> >> dump_guest_memory_set_format >> >> would be the only possible solution with the hmp code as >> is. Correct? > >>> > >

[Qemu-devel] Missing guest clock-sync on Host clock change

2014-03-27 Thread Erik Rull
Hi all, I would like to have the guest "drifting" to a new set clock on the host. My problem is the following: - Host System (Linux) starts up, hwclock and kernel time are synced, guest starts up with -rtc clock=host,driftfix=slew (which I assume should fix any drift issue on ACPI compatible

Re: [Qemu-devel] [PATCH] trace: teach lttng backend to use format strings

2014-03-27 Thread Stefan Hajnoczi
On Mon, Mar 24, 2014 at 05:35:26PM +, alex.ben...@linaro.org wrote: > From: Alex Bennée > > This makes the UST backend pay attention to the format string arguments > that are defined when defining payload data. With this you can now > ensure integers are reported in hex mode if you want. > >

Re: [Qemu-devel] Massive read only kvm guests when backing file was missing

2014-03-27 Thread Stefan Hajnoczi
On Thu, Mar 27, 2014 at 10:10:40AM +0200, Michael S. Tsirkin wrote: > On Thu, Mar 27, 2014 at 08:36:57AM +0100, Markus Armbruster wrote: > > "Michael S. Tsirkin" writes: > > > > > On Wed, Mar 26, 2014 at 11:08:03PM -0300, Alejandro Comisario wrote: > > >> Hi List! > > >> Hope some one can help me

Re: [Qemu-devel] [PATCH] vl.c: use 'break' instead of 'continue' in configure_accelerator()

2014-03-27 Thread Markus Armbruster
Chen Gang writes: > At present, each 'opt_name' of 'accel_list' is uniq with each other, so > 'buf' can only match one 'opt_name'. > > When drop into the matching code block, can 'break' outside related > 'for' looping after finish processing it (just like the other 'break' > within the matching

Re: [Qemu-devel] [PATCH] migration: Increase default max_downtime from 30ms to 300ms

2014-03-27 Thread Markus Armbruster
Adding Juan. Alexey Kardashevskiy writes: > The existing timeout is 30ms which on 100MB/s (1Gbit) gives us > 3MB/s rate maximum. If we put some load on the guest, it is easy to > get page dirtying rate too big so live migration will never complete. > In the case of libvirt that means that the gu

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

2014-03-27 Thread Fam Zheng
v4: [08/09] qmp: Add support of "dirty-bitmap" sync mode for drive-backup Comment text fixes. (Eric) v3: Address Benoit's comments. [01/09] qapi: Add optional field "name" to block dirty bitmap Don't split line. [03/09] block: Handle error of bdrv_getlength in

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

2014-03-27 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

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

2014-03-27 Thread Fam Zheng
This returns the granularity (in sectors) of dirty bitmap. Signed-off-by: Fam Zheng Reviewed-by: Benoit Canet --- block.c | 6 ++ include/block/block.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/block.c b/block.c index b5265bb..6b82bf0 100644 --- a/block.c +++ b/bl

[Qemu-devel] [PATCH v4 7/9] qmp: Add dirty-bitmap-enable and dirty-bitmap-disable

2014-03-27 Thread Fam Zheng
This allows to put the dirty bitmap into a disabled state where 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| 44 ++

[Qemu-devel] [PATCH v4 8/9] qmp: Add support of "dirty-bitmap" sync mode for drive-backup

2014-03-27 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. There are two bitmap use modes for sync=dirty-bitmap: - reset: backup

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

2014-03-27 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] target-arm: add support for v8 VMULL.P64 instruction

2014-03-27 Thread Ard Biesheuvel
This adds support for the VMULL.P64 polynomial 64x64 to 128 bit multiplication instruction, which is an optional feature that is part of the v8 Crypto Extensions. Signed-off-by: Ard Biesheuvel --- This is an incremental patch on top of the SHA-1/SHA-256 patch I sent earlier this week. target-a

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

2014-03-27 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 v4 5/9] hbitmap: Add hbitmap_copy

2014-03-27 Thread Fam Zheng
This makes a deep copy of an HBitmap. Signed-off-by: Fam Zheng --- include/qemu/hbitmap.h | 8 util/hbitmap.c | 16 2 files changed, 24 insertions(+) diff --git a/include/qemu/hbitmap.h b/include/qemu/hbitmap.h index 550d7ce..b645cfc 100644 --- a/include/qemu/

[Qemu-devel] [PATCH v4 6/9] block: Add bdrv_copy_dirty_bitmap and bdrv_reset_dirty_bitmap

2014-03-27 Thread Fam Zheng
Signed-off-by: Fam Zheng --- block.c | 30 -- include/block/block.h | 4 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/block.c b/block.c index 6b82bf0..0abc593 100644 --- a/block.c +++ b/block.c @@ -52,6 +52,8 @@ struct BdrvDirt

Re: [Qemu-devel] Missing guest clock-sync on Host clock change

2014-03-27 Thread Laszlo Ersek
On 03/27/14 09:41, Erik Rull wrote: > Hi all, > > I would like to have the guest "drifting" to a new set clock on the host. > > My problem is the following: > > - Host System (Linux) starts up, hwclock and kernel time are synced, > guest starts up with -rtc clock=host,driftfix=slew (which I assu

Re: [Qemu-devel] [PATCH v4 2/2] query-command-line-options: query all the options in qemu-options.hx

2014-03-27 Thread Markus Armbruster
Amos Kong writes: > On Wed, Mar 26, 2014 at 02:15:18PM +0100, Markus Armbruster wrote: >> Amos Kong writes: >> >> > On Fri, Mar 07, 2014 at 10:54:09AM +0100, Markus Armbruster wrote: >> >> Eric Blake writes: >> >> >> >> > On 03/05/2014 07:36 PM, Amos Kong wrote: >> >> >> vm_config_groups[] on

Re: [Qemu-devel] [PATCH] vl.c: use 'break' instead of 'continue' in configure_accelerator()

2014-03-27 Thread Chen Gang
On 03/27/2014 03:55 PM, Marcel Apfelbaum wrote: > On Thu, 2014-03-27 at 09:16 +0800, Chen Gang wrote: >> At present, each 'opt_name' of 'accel_list' is uniq with each other, so >> 'buf' can only match one 'opt_name'. >> >> When drop into the matching code block, can 'break' outside related >> 'for'

Re: [Qemu-devel] emulating a display, instead of just a dumb graphics card

2014-03-27 Thread Markus Armbruster
Olaf Hering writes: > Right now qemu does appearently just emulate a graphics card (Cirrus for > example), but not an attached monitor/display. The result is confusion > in the guest OS. > > The current DRM drivers in upstream Linux seem to default to VESA modes. > These are either provided by q

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

2014-03-27 Thread Fam Zheng
bdrv_getlength could fail, check the return value before using it. Signed-off-by: Fam Zheng Reviewed-by: Benoit Canet --- block.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index 3f880d6..b5265bb 100644 --- a/block.c +++ b/block.c @@ -5113,7 +511

Re: [Qemu-devel] [RFC PATCH 2/4] qemu-log: support simple pid substitution in logfile

2014-03-27 Thread Alex Bennée
Leandro Dorileo writes: > On Wed, Mar 26, 2014 at 02:37:12PM +, alex.ben...@linaro.org wrote: >> From: Alex Bennée >> >> When debugging stuff that occurs over several forks it would be useful >> not to keep overwriting the one logfile you've set-up. This allows a >> simple %d to be include

Re: [Qemu-devel] [PATCH] vl.c: use 'break' instead of 'continue' in configure_accelerator()

2014-03-27 Thread Chen Gang
On 03/27/2014 04:59 PM, Markus Armbruster wrote: > Chen Gang writes: > >> At present, each 'opt_name' of 'accel_list' is uniq with each other, so >> 'buf' can only match one 'opt_name'. >> >> When drop into the matching code block, can 'break' outside related >> 'for' looping after finish proce

[Qemu-devel] [PULL for-2.0] migration: add traces

2014-03-27 Thread Amit Shah
The following changes since commit db237e33c08a279f0179f8f5128a6d10d9adc38a: Merge remote-tracking branch 'remotes/riku/for-2.0' into staging (2014-03-26 17:10:16 +) are available in the git repository at: git://git.kernel.org/pub/scm/virt/qemu/amit/migration.git tags/for_upstream for

Re: [Qemu-devel] [PATCH v4 1/4] util: add qemu_ether_ntoa

2014-03-27 Thread Amit Shah
On (Thu) 27 Mar 2014 [14:43:23], Alexey Kardashevskiy wrote: > On 03/12/2014 06:36 AM, Juan Quintela wrote: > > Alexey Kardashevskiy wrote: > >> This adds a helper to format ethernet MAC address. > >> > >> Signed-off-by: Alexey Kardashevskiy > > > > Reviewed-by: Juan Quintela > > > Di

Re: [Qemu-devel] [PATCH] target-arm: add support for v8 VMULL.P64 instruction

2014-03-27 Thread Peter Maydell
On 27 March 2014 09:29, Ard Biesheuvel wrote: > This adds support for the VMULL.P64 polynomial 64x64 to 128 bit multiplication > instruction, which is an optional feature that is part of the v8 Crypto > Extensions. > +void HELPER(crypto_pmull)(CPUARMState *env, uint32_t rd, uint32_t rn, > +

Re: [Qemu-devel] [PATCH v3 0/5] qemu: irqfds for s390x

2014-03-27 Thread Christian Borntraeger
On 21/03/14 13:52, Cornelia Huck wrote: > Here's the next iteration of the qemu patchset enabling irqfds for > s390x, again a companion patchset for "KVM: irqfds for s390". > > Changes from v2: > - rebased against current master > - use object_resolve_path() to grab the flic > - more explicit retu

[Qemu-devel] [PATCH 0/2] tests: mingw32 make check fixes

2014-03-27 Thread Stefan Hajnoczi
make check is broken on mingw32 builds because we the CONFIG_POSIX checks are outdated. This series fixes them. It should make the buildbot happy again for mingw32 where we fail make check: http://buildbot.b1-systems.de/qemu/builders Stefan Hajnoczi (2): tests: skip POSIX-only tests on Windows

[Qemu-devel] [PATCH 1/2] tests: skip POSIX-only tests on Windows

2014-03-27 Thread Stefan Hajnoczi
test-aio, test-rfifolock, and test-vmstate only build on POSIX hosts. Exclude them if building for Windows. Signed-off-by: Stefan Hajnoczi --- tests/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 2d021fb..803c8e6 100644 --

[Qemu-devel] [PATCH 2/2] tests: correctly skip qtest on non-POSIX hosts

2014-03-27 Thread Stefan Hajnoczi
qtest test cases only work on POSIX hosts. The following line only defines dependencies for qtest binaries on POSIX hosts: check-qtest-$(CONFIG_POSIX)=$(foreach TARGET,$(TARGETS),$(check-qtest-$(TARGET)-y)) But the QTEST_TARGETS definition earlier in the Makefile fails to check CONFIG_POSIX.

Re: [Qemu-devel] [PULL for-2.0] target-sparc: fix 32bit integer division overflow

2014-03-27 Thread Peter Maydell
On 26 March 2014 23:57, Mark Cave-Ayland wrote: > Hi Peter, > > This pull request contains Olivier's patch to prevent a guest 32bit integer > division overflow from crashing the host. Please apply for 2.0. > > > Many thanks, > > Mark. > > > The following changes since commit db237e33c08a279f0179f8

Re: [Qemu-devel] [PATCH 0/2] tests: mingw32 make check fixes

2014-03-27 Thread Stefan Hajnoczi
On Thu, Mar 27, 2014 at 12:11 PM, Stefan Hajnoczi wrote: > make check is broken on mingw32 builds because we the CONFIG_POSIX checks are > outdated. This series fixes them. > > It should make the buildbot happy again for mingw32 where we fail make check: > http://buildbot.b1-systems.de/qemu/build

Re: [Qemu-devel] [PATCH v4 1/4] util: add qemu_ether_ntoa

2014-03-27 Thread Alexey Kardashevskiy
On 27.03.2014 21:50, Amit Shah wrote: > On (Thu) 27 Mar 2014 [14:43:23], Alexey Kardashevskiy wrote: >> On 03/12/2014 06:36 AM, Juan Quintela wrote: >>> Alexey Kardashevskiy wrote: This adds a helper to format ethernet MAC address. Signed-off-by: Alexey Kardashevskiy >>> >>> Review

Re: [Qemu-devel] [PULL for-2.0] migration: add traces

2014-03-27 Thread Peter Maydell
On 27 March 2014 10:49, Amit Shah wrote: > The following changes since commit db237e33c08a279f0179f8f5128a6d10d9adc38a: > > Merge remote-tracking branch 'remotes/riku/for-2.0' into staging > (2014-03-26 17:10:16 +) > > are available in the git repository at: > > > git://git.kernel.org/pub

Re: [Qemu-devel] [PATCH] target-arm: add support for v8 VMULL.P64 instruction

2014-03-27 Thread Ard Biesheuvel
On 27 March 2014 11:55, Peter Maydell wrote: > On 27 March 2014 09:29, Ard Biesheuvel wrote: >> This adds support for the VMULL.P64 polynomial 64x64 to 128 bit >> multiplication >> instruction, which is an optional feature that is part of the v8 Crypto >> Extensions. > >> +void HELPER(crypto_pmu

Re: [Qemu-devel] [RFC PATCH 3/4] qemu-log: new option -dfilter to limit output

2014-03-27 Thread Alex Bennée
Christopher Covington writes: > Hi Alex, > DEF("dfilter", HAS_ARG, QEMU_OPTION_DFILTER, \ "-dfilter range,.. filter debug output to range of addresses (useful for -d cpu,exec,etc..)\n", QEMU_ARCH_ALL) STEXI @item -dfilter @var{range1}[,...] @findex -dfilter Filter debug output to tha

Re: [Qemu-devel] [PATCH 1/2] tests: skip POSIX-only tests on Windows

2014-03-27 Thread Paolo Bonzini
Il 27/03/2014 12:11, Stefan Hajnoczi ha scritto: test-aio, test-rfifolock, and test-vmstate only build on POSIX hosts. test-aio should build on Win32. Can be fixed in 2.1 though. Paolo Exclude them if building for Windows. Signed-off-by: Stefan Hajnoczi --- tests/Makefile | 6 +++--- 1 f

Re: [Qemu-devel] [PATCH 2/2] spapr: Define NMI interface

2014-03-27 Thread Paolo Bonzini
Il 27/03/2014 03:21, Alexey Kardashevskiy ha scritto: This defines and makes use of an NMI interface in order to support the "nmi" command. Signed-off-by: Alexey Kardashevskiy --- hw/ppc/spapr.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/hw/ppc/spapr.c b/hw

Re: [Qemu-devel] [PATCH v5 01/11] memory: Sanity check that no listeners remain on a destroyed AddressSpace

2014-03-27 Thread Paolo Bonzini
Il 27/03/2014 06:40, Alexey Kardashevskiy ha scritto: On 03/20/2014 09:20 PM, Paolo Bonzini wrote: Il 12/03/2014 06:52, Alexey Kardashevskiy ha scritto: From: David Gibson At the moment, most AddressSpace objects last as long as the guest system in practice, but that could well change in futu

Re: [Qemu-devel] [PATCH] exec: Limit translation limiting in address_space_translate to xen

2014-03-27 Thread Paolo Bonzini
Il 27/03/2014 05:35, Alexey Kardashevskiy ha scritto: The address_space_translate() function cuts the returned plen (page size) to hardcoded TARGET_PAGE_SIZE. This function can be used on pages bigger than that so this limiting should not be used on such pages. Since originally the limiting was

Re: [Qemu-devel] [PATCH] Don't enable a HPET timer if HPET is disabled

2014-03-27 Thread Paolo Bonzini
Il 26/03/2014 21:20, Matt Lupfer ha scritto: On 02/22/2014 02:01 AM, Paolo Bonzini wrote: Il 22/02/2014 05:37, Matt Lupfer ha scritto: A HPET timer can be started when HPET is not yet enabled. This will not generate an interrupt to the guest, but causes problems when HPET is later enabled. A t

Re: [Qemu-devel] [PATCH] exec: Limit translation limiting in address_space_translate to xen

2014-03-27 Thread Stefano Stabellini
On Thu, 27 Mar 2014, Paolo Bonzini wrote: > Il 27/03/2014 05:35, Alexey Kardashevskiy ha scritto: > > The address_space_translate() function cuts the returned plen (page size) > > to hardcoded TARGET_PAGE_SIZE. This function can be used on pages bigger > > than that so this limiting should not be u

Re: [Qemu-devel] [PATCH] Don't enable a HPET timer if HPET is disabled

2014-03-27 Thread Michael S. Tsirkin
On Fri, Feb 21, 2014 at 09:37:23PM -0700, Matt Lupfer wrote: > A HPET timer can be started when HPET is not yet > enabled. This will not generate an interrupt > to the guest, but causes problems when HPET is later > enabled. > > A timer that is created and expires at least once before > HPET is en

Re: [Qemu-devel] [PATCH 2/2] tests: correctly skip qtest on non-POSIX hosts

2014-03-27 Thread Andreas Färber
Am 27.03.2014 12:11, schrieb Stefan Hajnoczi: > qtest test cases only work on POSIX hosts. The following line only > defines dependencies for qtest binaries on POSIX hosts: > > check-qtest-$(CONFIG_POSIX)=$(foreach > TARGET,$(TARGETS),$(check-qtest-$(TARGET)-y)) > > But the QTEST_TARGETS defi

[Qemu-devel] [PATCH v3 1/1] Make qemu_peek_buffer loop until it gets it's data

2014-03-27 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Make qemu_peek_buffer repeatedly call fill_buffer until it gets all the data it requires, or until there is an error. At the moment, qemu_peek_buffer will try one qemu_fill_buffer if there isn't enough data waiting, however the kernel is entitled to return ju

Re: [Qemu-devel] [PATCH v6] net: L2TPv3 transport

2014-03-27 Thread Stefan Hajnoczi
On Wed, Mar 26, 2014 at 11:08:41AM +, anton.iva...@kot-begemot.co.uk wrote: > +static ssize_t net_l2tpv3_receive_dgram_iov(NetClientState *nc, > +const struct iovec *iov, > +int iovcnt) > +{ > +NetL2TPV3State *s = DO_UPCAST(NetL2TPV3State, nc, nc); >

[Qemu-devel] [PATCH for-2.0] vvfat: Fix :floppy: option to suppress partition table

2014-03-27 Thread Markus Armbruster
Regressed in commit 7ad9be6, v1.5.0. Reported-by: Kiyokazu SUTO Signed-off-by: Markus Armbruster --- block/vvfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/vvfat.c b/block/vvfat.c index f966ea5..1978c9e 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -1119,6 +

Re: [Qemu-devel] [PATCH] target-ppc: Add @cpu_dt_id into migration stream

2014-03-27 Thread Andreas Färber
Am 27.03.2014 03:41, schrieb Alexey Kardashevskiy: > This should prevent the destination guest from misbehaving when > the threads number is different in "-smp" command. Sorry, I don't understand. When migrating, surely -smp needs to be the same on source and destination, so how can they differ?

Re: [Qemu-devel] emulating a display, instead of just a dumb graphics card

2014-03-27 Thread Gerd Hoffmann
On Do, 2014-03-27 at 10:57 +0100, Markus Armbruster wrote: > Olaf Hering writes: > > > Right now qemu does appearently just emulate a graphics card (Cirrus for > > example), but not an attached monitor/display. The result is confusion > > in the guest OS. > > > > The current DRM drivers in upstr

Re: [Qemu-devel] [PATCH 0/3] ABI change: change group name of option table to match with option name

2014-03-27 Thread Paolo Bonzini
Il 27/03/2014 03:38, Amos Kong ha scritto: This patchset changes group names of option tables to match with option name, this breakes ABI, release note was updated. Amos Kong (3): only add qemu_tpmdev_opts when CONFIG_TPM is defined abort QEMU if group name in option table doesn't match with

Re: [Qemu-devel] [PATCH] target-ppc: Add @cpu_dt_id into migration stream

2014-03-27 Thread Alexey Kardashevskiy
On 03/27/2014 11:37 PM, Andreas Färber wrote: > Am 27.03.2014 03:41, schrieb Alexey Kardashevskiy: >> This should prevent the destination guest from misbehaving when >> the threads number is different in "-smp" command. > > Sorry, I don't understand. When migrating, surely -smp needs to be the > s

Re: [Qemu-devel] current (2014-03-27) trivial patches

2014-03-27 Thread Igor Mammedov
On Thu, 27 Mar 2014 10:01:04 +0400 Michael Tokarev wrote: > Hello. > > I weren't able to process -trivial patches regularly for a while, > and we are now past 2.0-rc1 schedule, which means hard freeze and > bugfix-only mode, as far as I can see. > > Current queue can be seen at > > http://git

Re: [Qemu-devel] [PATCH] target-ppc: Add @cpu_dt_id into migration stream

2014-03-27 Thread Peter Maydell
On 27 March 2014 12:49, Alexey Kardashevskiy wrote: > On 03/27/2014 11:37 PM, Andreas Färber wrote: >> Am 27.03.2014 03:41, schrieb Alexey Kardashevskiy: >>> This should prevent the destination guest from misbehaving when >>> the threads number is different in "-smp" command. >> >> Sorry, I don't

Re: [Qemu-devel] [PATCH v4 for 2.0 0/3] ABI change: change group name of option table to match with option name

2014-03-27 Thread Amos Kong
On Thu, Mar 27, 2014 at 01:28:37PM +0100, Paolo Bonzini wrote: > Il 27/03/2014 03:38, Amos Kong ha scritto: > >This patchset changes group names of option tables to match with option name, > >this breakes ABI, release note was updated. > > > >Amos Kong (3): > > only add qemu_tpmdev_opts when CONFI

Re: [Qemu-devel] [Qemu-ppc] [PATCH 6/6] target-ppc: Add PMC7/8 to 970

2014-03-27 Thread Alexey Kardashevskiy
On 03/25/2014 01:40 PM, Anton Blanchard wrote: > 970 CPUs have PMC7/8. Create gen_spr_970 to avoid replicating > it 3 times, and simplify the existing code. > > Signed-off-by: Anton Blanchard > --- > target-ppc/translate_init.c | 89 > - > 1 file chan

[Qemu-devel] [PATCH v5 for 2.0 0/3] ABI change: change group name of option table to match with option name

2014-03-27 Thread Amos Kong
This patchset changes group names of option tables to match with option name, this breakes ABI, release note was updated. V4: fix tpmdev, add name matching test (markus) V5: adjust patch order (paolo) Amos Kong (3): only add qemu_tpmdev_opts when CONFIG_TPM is defined update names in option t

[Qemu-devel] [PATCH v5 for 2.0 2/3] update names in option tables to match with actual command-line spelling

2014-03-27 Thread Amos Kong
We want to establish a mapping between option name and option table, then we can search related option table by option name. This patch makes all the member name of QemuOptsList to match with actual command-line spelling(option name). [ Important Note ] The QemuOptsList member name values are AB

Re: [Qemu-devel] [PATCH] target-ppc: Add @cpu_dt_id into migration stream

2014-03-27 Thread Alexey Kardashevskiy
On 03/27/2014 11:57 PM, Peter Maydell wrote: > On 27 March 2014 12:49, Alexey Kardashevskiy wrote: >> On 03/27/2014 11:37 PM, Andreas Färber wrote: >>> Am 27.03.2014 03:41, schrieb Alexey Kardashevskiy: This should prevent the destination guest from misbehaving when the threads number is

Re: [Qemu-devel] [RFC PATCHv2] block: optimize zero writes with bdrv_write_zeroes

2014-03-27 Thread Peter Lieven
On 26.03.2014 10:16, Markus Armbruster wrote: Peter Lieven writes: this patch tries to optimize zero write requests by automatically using bdrv_write_zeroes if it is supported by the format. this should significantly speed up file system initialization and should speed zero write test used to

Re: [Qemu-devel] [PATCH 2/2] qtest: fix crash if SIGABRT during qtest_init()

2014-03-27 Thread Markus Armbruster
Reply after commit, sorry. Stefan Hajnoczi writes: > If an assertion fails during qtest_init() the SIGABRT handler is > invoked. This is the correct behavior since we need to kill the QEMU > process to avoid leaking it when the test dies. > > The global_qtest pointer used by the SIGABRT handler

Re: [Qemu-devel] emulating a display, instead of just a dumb graphics card

2014-03-27 Thread Laszlo Ersek
On 03/27/14 13:40, Gerd Hoffmann wrote: > On Do, 2014-03-27 at 10:57 +0100, Markus Armbruster wrote: >> Olaf Hering writes: >> >>> Right now qemu does appearently just emulate a graphics card (Cirrus for >>> example), but not an attached monitor/display. The result is confusion >>> in the guest OS

Re: [Qemu-devel] [PATCH v6] net: L2TPv3 transport

2014-03-27 Thread Eric Blake
On 03/26/2014 05:08 AM, anton.iva...@kot-begemot.co.uk wrote: > From: Anton Ivanov > > This transport allows to connect a QEMU nic to a static Ethernet > over L2TPv3 tunnel. The transport supports all options present > in the Linux kernel implementation. It allows QEMU to connect > to any Linux h

Re: [Qemu-devel] [PATCH 2/2] qtest: fix crash if SIGABRT during qtest_init()

2014-03-27 Thread Andreas Färber
Am 27.03.2014 14:09, schrieb Markus Armbruster: > Reply after commit, sorry. > > Stefan Hajnoczi writes: > >> If an assertion fails during qtest_init() the SIGABRT handler is >> invoked. This is the correct behavior since we need to kill the QEMU >> process to avoid leaking it when the test die

Re: [Qemu-devel] [PATCH 2/2] spapr: Define NMI interface

2014-03-27 Thread Alexey Kardashevskiy
On 03/27/2014 10:58 PM, Paolo Bonzini wrote: > Il 27/03/2014 03:21, Alexey Kardashevskiy ha scritto: >> This defines and makes use of an NMI interface in order to support >> the "nmi" command. >> >> Signed-off-by: Alexey Kardashevskiy >> --- >> hw/ppc/spapr.c | 26 ++ >> 1

[Qemu-devel] [PATCH v5 for 2.0 3/3] abort QEMU if group name in option table doesn't match with defined option name

2014-03-27 Thread Amos Kong
All the options are defined in qemu-options.hx. If we can't find a matched option definition by group name of option table, then the group name doesn't match with defined option name, it's not allowed from 2.0 Signed-off-by: Amos Kong --- qemu-options.h | 12 util/qemu-config.c

Re: [Qemu-devel] [PULL for-2.0] migration: add traces

2014-03-27 Thread Amit Shah
On (Thu) 27 Mar 2014 [11:18:05], Peter Maydell wrote: > On 27 March 2014 10:49, Amit Shah wrote: > > The following changes since commit db237e33c08a279f0179f8f5128a6d10d9adc38a: > > > > Merge remote-tracking branch 'remotes/riku/for-2.0' into staging > > (2014-03-26 17:10:16 +) > > > > are

[Qemu-devel] [PATCH] block: optimize zero writes with bdrv_write_zeroes

2014-03-27 Thread Peter Lieven
this patch tries to optimize zero write requests by automatically using bdrv_write_zeroes if it is supported by the format. this should significantly speed up file system initialization and should speed zero write test used to test backend storage performance. the difference can simply be tested

[Qemu-devel] [PATCH v5 for 2.0 1/3] only add qemu_tpmdev_opts when CONFIG_TPM is defined

2014-03-27 Thread Amos Kong
Signed-off-by: Amos Kong --- vl.c | 4 1 file changed, 4 insertions(+) diff --git a/vl.c b/vl.c index 2355227..596ecfa 100644 --- a/vl.c +++ b/vl.c @@ -449,6 +449,7 @@ static QemuOptsList qemu_object_opts = { }, }; +#ifdef CONFIG_TPM static QemuOptsList qemu_tpmdev_opts = { .n

Re: [Qemu-devel] Virtual VFAT with floppy option doesn't work

2014-03-27 Thread Markus Armbruster
Kiyokazu SUTO writes: > Hi, > > Virtual VFAT mechanism in recent releases does not work with the > floppy option, because, in `vvfat_open()' function, the member > `first_sectors_number' is overwritten with the value for HDD even when > the floppy option presents. I attach the diff output just t

Re: [Qemu-devel] for 2.0? Re: [PATCH v4 1/8] XBZRLE: Fix one XBZRLE corruption issues

2014-03-27 Thread Paolo Bonzini
Il 27/03/2014 04:45, Gonglei (Arei) ha scritto: arch_init.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) Should this patch be included in 2.0 as a bug fix? The rest of the series is probably better off in 2.1. Yes, it should be, but I am not so clear how

Re: [Qemu-devel] [PATCH 2/2] qtest: fix crash if SIGABRT during qtest_init()

2014-03-27 Thread Marcel Apfelbaum
On Thu, 2014-03-27 at 14:12 +0100, Andreas Färber wrote: > Am 27.03.2014 14:09, schrieb Markus Armbruster: > > Reply after commit, sorry. > > > > Stefan Hajnoczi writes: > > > >> If an assertion fails during qtest_init() the SIGABRT handler is > >> invoked. This is the correct behavior since we

Re: [Qemu-devel] [PATCH 2/2] qtest: fix crash if SIGABRT during qtest_init()

2014-03-27 Thread Stefan Hajnoczi
On Thu, Mar 27, 2014 at 2:12 PM, Andreas Färber wrote: >> Before this patch, the libqtest API could theoretically support multiple >> simultaneous instances of QTestState. This patch kills that option, >> doesn't it? > > Ouch, I thought I had looked out for that... > >> >> If yes: fine with me, w

Re: [Qemu-devel] [PATCH 2/2] qtest: fix crash if SIGABRT during qtest_init()

2014-03-27 Thread Stefan Hajnoczi
On Thu, Mar 27, 2014 at 2:34 PM, Marcel Apfelbaum wrote: > On Thu, 2014-03-27 at 14:12 +0100, Andreas Färber wrote: >> Am 27.03.2014 14:09, schrieb Markus Armbruster: >> > Reply after commit, sorry. >> > >> > Stefan Hajnoczi writes: >> > >> >> If an assertion fails during qtest_init() the SIGABRT

[Qemu-devel] [PATCH] block/iscsi: speed up read for unallocated sectors

2014-03-27 Thread Peter Lieven
this patch implements a cache that tracks if a page on the iscsi target is allocated or not. The cache is implemented in a way that it allows for false positives (e.g. pretending a page is allocated, but it isn't), but no false negatives. The cached allocation info is then used to speed up the rea

Re: [Qemu-devel] [Qemu-ppc] [PATCH 2/2] spapr: Define NMI interface

2014-03-27 Thread Alexander Graf
> Am 27.03.2014 um 19:58 schrieb Paolo Bonzini : > > Il 27/03/2014 03:21, Alexey Kardashevskiy ha scritto: >> This defines and makes use of an NMI interface in order to support >> the "nmi" command. >> >> Signed-off-by: Alexey Kardashevskiy >> --- >> hw/ppc/spapr.c | 26 +++

Re: [Qemu-devel] [PATCH 1/2] tests: skip POSIX-only tests on Windows

2014-03-27 Thread Stefan Hajnoczi
On Thu, Mar 27, 2014 at 12:53 PM, Paolo Bonzini wrote: > Il 27/03/2014 12:11, Stefan Hajnoczi ha scritto: > >> test-aio, test-rfifolock, and test-vmstate only build on POSIX hosts. > > > test-aio should build on Win32. Can be fixed in 2.1 though. Yes, we may be able to make the tests support Win

Re: [Qemu-devel] [PATCH 2/2] qtest: fix crash if SIGABRT during qtest_init()

2014-03-27 Thread Stefan Hajnoczi
On Thu, Mar 27, 2014 at 3:02 PM, Markus Armbruster wrote: > Stefan Hajnoczi writes: > >> On Thu, Mar 27, 2014 at 2:34 PM, Marcel Apfelbaum >> wrote: >>> On Thu, 2014-03-27 at 14:12 +0100, Andreas Färber wrote: Am 27.03.2014 14:09, schrieb Markus Armbruster: > Reply after commit, sorry

Re: [Qemu-devel] [RFC PATCHv2] block: optimize zero writes with bdrv_write_zeroes

2014-03-27 Thread Markus Armbruster
Peter Lieven writes: > On 26.03.2014 10:16, Markus Armbruster wrote: >> Peter Lieven writes: >> >>> this patch tries to optimize zero write requests >>> by automatically using bdrv_write_zeroes if it is >>> supported by the format. >>> >>> this should significantly speed up file system initializ

Re: [Qemu-devel] [PATCH 2/2] qtest: fix crash if SIGABRT during qtest_init()

2014-03-27 Thread Markus Armbruster
Stefan Hajnoczi writes: > On Thu, Mar 27, 2014 at 2:34 PM, Marcel Apfelbaum wrote: >> On Thu, 2014-03-27 at 14:12 +0100, Andreas Färber wrote: >>> Am 27.03.2014 14:09, schrieb Markus Armbruster: >>> > Reply after commit, sorry. >>> > >>> > Stefan Hajnoczi writes: >>> > >>> >> If an assertion fa

[Qemu-devel] [PATCH 2/2] qtest: keep list of qtest instances for SIGABRT handler

2014-03-27 Thread Stefan Hajnoczi
Keep track of active qtest instances so we can kill them when the test aborts. This ensures no QEMU processes are left running after test failure. Signed-off-by: Stefan Hajnoczi --- tests/libqtest.c | 47 +-- 1 file changed, 37 insertions(+), 10 delet

[Qemu-devel] [PATCH 1/2] Revert "qtest: Fix crash if SIGABRT during qtest_init()"

2014-03-27 Thread Stefan Hajnoczi
It turns out there are test cases that use multiple libqtest instances. We cannot use a global qtest instance in the SIGABRT handler. This reverts commit cb201b4872f16dfbce63f8648b2584631e2e965f. Signed-off-by: Stefan Hajnoczi --- tests/libqtest.c | 3 +-- tests/libqtest.h | 4 +++- 2 files cha

  1   2   3   >