[Qemu-devel] [PATCH] linux-user/signal.c: Set fault address in AArch64 signal info

2014-05-01 Thread Peter Maydell
Set the fault address correctly in the signal information passed to a signal handler for AArch64 guests. Signed-off-by: Peter Maydell --- This would be a candidate for stable except that it depends on the a64 system rework which added exception.vaddress. Hopefully not many guests care about the f

Re: [Qemu-devel] [PATCH] linux-user: Assert stack used for auxvec, envp, argv

2014-05-01 Thread Peter Maydell
Ping! Riku -- do you have this in your tree now? (I'm adding an aux entry for AT_HWCAP2 and I noticed the assert wasn't firing :-)) thanks -- PMM On 25 March 2014 23:21, James Hogan wrote: > Assert that the amount of stack space used for auxvec, envp & argv > exactly matches the amount allocat

Re: [Qemu-devel] [PATCH v3] apic: bump emulated lapic version to 0x14 on pc machines >= 2.1

2014-05-01 Thread Alexander Graf
On 01.05.14 19:22, Gabriel L. Somlo wrote: On Wed, Apr 30, 2014 at 09:44:32PM +0200, Alexander Graf wrote: diff --git a/hw/intc/apic.c b/hw/intc/apic.c index 2f40cba..4480bc4 100644 --- a/hw/intc/apic.c +++ b/hw/intc/apic.c @@ -32,6 +32,8 @@ #define SYNC_TO_VAPIC 0x2 #defi

Re: [Qemu-devel] [PATCH V26 01/32] QemuOpts: move find_desc_by_name ahead for later calling

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:08:10PM +0800, Chunyan Liu wrote: > Reviewed-by: Stefan Hajnoczi > Reviewed-by: Eric Blake > Signed-off-by: Chunyan Liu Reviewed-by: Leandro Dorileo > --- > util/qemu-option.c | 28 ++-- > 1 file changed, 14 insertions(+), 14 deletions(-)

Re: [Qemu-devel] [PATCH V26 02/32] QemuOpts: add def_value_str to QemuOptDesc

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:08:11PM +0800, Chunyan Liu wrote: > Add def_value_str (default value) to QemuOptDesc, to replace function of the > default value in QEMUOptionParameter. > > Improve qemu_opts_get_* functions: if find opt, return opt->str; otherwise, > if desc->def_value_str is set, retur

Re: [Qemu-devel] [PATCH V26 03/32] QemuOpts: repurpose qemu_opts_print to replace print_option_parameters

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:08:12PM +0800, Chunyan Liu wrote: > Currently this function is not used anywhere. In later patches, it will > replace print_option_parameters. To avoid print info changes, change > qemu_opts_print from fprintf stderr to printf to keep consistent with > print_option_parame

Re: [Qemu-devel] [PATCH V26 04/32] qapi: output def_value_str when query command line options

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:08:13PM +0800, Chunyan Liu wrote: > Change qapi interfaces to output the newly added def_value_str when querying > command line options. > > Signed-off-by: Dong Xu Wang > Signed-off-by: Chunyan Liu Reviewed-by: Leandro Dorileo > --- > Changes to V25: > * update

Re: [Qemu-devel] [PATCH V26 05/32] QemuOpts: change opt->name|str from (const char *) to (char *)

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:08:14PM +0800, Chunyan Liu wrote: > qemu_opt_del() already assumes that all QemuOpt instances contain > malloc'd name and value; but it had to cast away const because > opts_start_struct() was doing its own thing and using static storage > instead. By using the correct t

Re: [Qemu-devel] [PATCH V26 06/32] QemuOpts: move qemu_opt_del ahead for later calling

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:08:15PM +0800, Chunyan Liu wrote: > In later patch, qemu_opt_get_del functions will be added, they will > first get the option value, then call qemu_opt_del to remove the option > from opt list. To prepare for that purpose, move qemu_opt_del ahead first. > > Reviewed-by:

Re: [Qemu-devel] [PATCH V26 07/32] QemuOpts: add qemu_opt_get_*_del functions for replace work

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:08:16PM +0800, Chunyan Liu wrote: > Add qemu_opt_get_del, qemu_opt_get_bool_del, qemu_opt_get_number_del and > qemu_opt_get_size_del to replace the same handling of QEMUOptionParameter > (get and delete). > > Several drivers are coded to parse a known subset of options,

Re: [Qemu-devel] [PATCH V26 13/32] vvfat.c: handle cross_driver's create_options and create_opts

2014-05-01 Thread Eric Blake
On 04/29/2014 03:10 AM, Chunyan Liu wrote: > vvfat shares create options of qcow driver. To avoid vvfat broken when s/broken/breaking/ > qcow driver changes from QEMUOptionParameter to QemuOpts, let it able > to handle both cases. > > Signed-off-by: Chunyan Liu > --- > block/vvfat.c | 19 +

Re: [Qemu-devel] [PATCH V26 08/32] QemuOpts: add qemu_opts_print_help to replace print_option_help

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:08:17PM +0800, Chunyan Liu wrote: > print_option_help takes QEMUOptionParameter as parameter, add > qemu_opts_print_help to take QemuOptsList as parameter for later > replace work. > > Reviewed-by: Eric Blake > Signed-off-by: Dong Xu Wang > Signed-off-by: Chunyan Liu

Re: [Qemu-devel] [PATCH V26 13/32] vvfat.c: handle cross_driver's create_options and create_opts

2014-05-01 Thread Eric Blake
On 05/01/2014 01:18 PM, Eric Blake wrote: > On 04/29/2014 03:10 AM, Chunyan Liu wrote: >> vvfat shares create options of qcow driver. To avoid vvfat broken when > > s/broken/breaking/ > >> qcow driver changes from QEMUOptionParameter to QemuOpts, let it able >> to handle both cases. >> >> +i

Re: [Qemu-devel] [PATCH V26 09/32] QemuOpts: add conversion between QEMUOptionParameter to QemuOpts

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:08:18PM +0800, Chunyan Liu wrote: > Add two temp conversion functions between QEMUOptionParameter to QemuOpts, > so that next patch can use it. It will simplify later patch for easier > review. And will be finally removed after all backend drivers switch to > QemuOpts. >

Re: [Qemu-devel] [PATCH V26 15/32] gluster.c: replace QEMUOptionParameter with QemuOpts

2014-05-01 Thread Eric Blake
On 04/29/2014 03:10 AM, Chunyan Liu wrote: > Signed-off-by: Dong Xu Wang > Signed-off-by: Chunyan Liu > --- > Changes to V25: > * fix create_opts, OPT_STRING -> QEMU_OPT_STRING > > block/gluster.c | 81 > ++--- > 1 file changed, 42 insertio

Re: [Qemu-devel] [PATCH V26 11/32] QemuOpts: check NULL input for qemu_opts_del

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:08:20PM +0800, Chunyan Liu wrote: > To simplify later using of qemu_opts_del, accept NULL input. > > Reviewed-by: Stefan Hajnoczi > Reviewed-by: Eric Blake > Signed-off-by: Chunyan Liu Reviewed-by: Leandro Dorileo > --- > util/qemu-option.c | 4 > 1 file chan

Re: [Qemu-devel] [PATCH v3] apic: bump emulated lapic version to 0x14 on pc machines >= 2.1

2014-05-01 Thread Don Slutz
On 05/01/14 14:52, Alexander Graf wrote: On 01.05.14 19:22, Gabriel L. Somlo wrote: On Wed, Apr 30, 2014 at 09:44:32PM +0200, Alexander Graf wrote: diff --git a/hw/intc/apic.c b/hw/intc/apic.c index 2f40cba..4480bc4 100644 --- a/hw/intc/apic.c +++ b/hw/intc/apic.c @@ -32,6 +32,8 @@ #define S

Re: [Qemu-devel] [PATCH V26 19/32] qcow2.c: replace QEMUOptionParameter with QemuOpts

2014-05-01 Thread Eric Blake
On 04/29/2014 03:10 AM, Chunyan Liu wrote: > Signed-off-by: Dong Xu Wang > Signed-off-by: Chunyan Liu > --- > block/qcow2.c | 265 > +++--- > include/qemu/option.h | 1 + > util/qemu-option.c| 2 +- > 3 files changed, 143 insertions(+)

Re: [Qemu-devel] [PATCH V26 17/32] nfs.c: replace QEMUOptionParameter with QemuOpts

2014-05-01 Thread Eric Blake
On 04/29/2014 03:10 AM, Chunyan Liu wrote: > Signed-off-by: Chunyan Liu > --- > block/nfs.c | 12 +++- > 1 file changed, 3 insertions(+), 9 deletions(-) > Reviewed-by: Eric Blake -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org

Re: [Qemu-devel] [PATCH V5 03/28] qapi script: add event support

2014-05-01 Thread Eric Blake
On 04/30/2014 10:26 PM, Wenchao Xia wrote: > 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, g

Re: [Qemu-devel] [PATCH V5 06/28] monitor: change event functions as an implemention of new emit method

2014-05-01 Thread Eric Blake
On 04/30/2014 10:26 PM, Wenchao Xia wrote: > Now monitor has been hooked on the new event mechanism, so the patches > later can convert event callers one by one. qmp_query_events() is also > switched to use new generated event defines. Note that old function > monitor_protocol_event() is kept for e

Re: [Qemu-devel] [PATCH V26 12/32] change block layer to support both QemuOpts and QEMUOptionParamter

2014-05-01 Thread Leandro Dorileo
Chunyan, On Tue, Apr 29, 2014 at 05:08:21PM +0800, Chunyan Liu wrote: > Change block layer to support both QemuOpts and QEMUOptionParameter. > After this patch, it will change backend drivers one by one. At the end, > QEMUOptionParameter will be removed and only QemuOpts is kept. This patch brea

Re: [Qemu-devel] [PATCH V26 12/32] change block layer to support both QemuOpts and QEMUOptionParamter

2014-05-01 Thread Leandro Dorileo
On Tue, Apr 29, 2014 at 05:10:36PM +0800, Chunyan Liu wrote: > Change block layer to support both QemuOpts and QEMUOptionParameter. > After this patch, it will change backend drivers one by one. At the end, > QEMUOptionParameter will be removed and only QemuOpts is kept. > > Signed-off-by: Dong Xu

Re: [Qemu-devel] [PATCH V5 28/28] qapi event: clean up

2014-05-01 Thread Eric Blake
On 04/30/2014 10:27 PM, Wenchao Xia wrote: > Signed-off-by: Wenchao Xia > --- > include/monitor/monitor.h | 40 - > monitor.c | 81 > > stubs/Makefile.objs|1 - > stubs/mon-protocol-event.c |6

Re: [Qemu-devel] [PATCH 08/22] iscsi: implement .bdrv_detach/attach_aio_context()

2014-05-01 Thread Peter Lieven
Am 01.05.2014 um 16:54 schrieb Stefan Hajnoczi : > Drop the assumption that we're using the main AioContext for Linux > AIO. Convert qemu_aio_set_fd_handler() to aio_set_fd_handler() and > timer_new_ms() to aio_timer_new(). > > The .bdrv_detach/attach_aio_context() interfaces also need to be >

Re: [Qemu-devel] [PATCH 08/22] iscsi: implement .bdrv_detach/attach_aio_context()

2014-05-01 Thread Peter Lieven
Stefan Hajnoczi wrote: > Drop the assumption that we're using the main AioContext for Linux > AIO. Convert qemu_aio_set_fd_handler() to aio_set_fd_handler() and > timer_new_ms() to aio_timer_new(). > > The .bdrv_detach/attach_aio_context() interfaces also need to be > implemented to move the fd an

Re: [Qemu-devel] [Fwd: [PATCH 10/22] nfs: implement .bdrv_detach/attach_aio_context()]

2014-05-01 Thread Peter Lieven
Hi Stefan, for some reason I was not CC'ed in this email. Is there something wrong with the maintainer info? > Original Message > Subject: [Qemu-devel] [PATCH 10/22] nfs: implement > .bdrv_detach/attach_aio_context() > From:"Stefan Ha

[Qemu-devel] [Bug 1315159] [NEW] Cannot invoke qemu-kvm with spice paramenter renderer

2014-05-01 Thread Phil Allred
Public bug reported: I'm running qemu-kvm version 2.0.0 on Fedora 20, spice server version 0.12.4-3. The spice user manual states that I can specify the type of rendering to be done by the client by providing: renderer= However, when I invoke qemu-kvm with the following option: -spice port=59

Re: [Qemu-devel] [PATCH v3] kvm: add set_one_reg/get_one_reg helpers

2014-05-01 Thread Alexey Kardashevskiy
On 03/27/2014 01:35 AM, Paolo Bonzini wrote: > Il 26/03/2014 15:23, Alexey Kardashevskiy ha scritto: >>> Alex did not pick it up. And I use this patch in 2 of my series >>> (client-arch-support and power8 migration patch) so I would really love not >>> to post it twice. This does not need to go to

[Qemu-devel] [Bug 1315257] [NEW] QEMU get black screen when adjust resolution in full screen mode.

2014-05-01 Thread James
Public bug reported: Description: QEMU cause X11 error when adjust resolution in full screen mode or start QEMU with "-full-screen". Additional info: * host OS infomation Archlinux 64bit * gest OS infomation Windows XP SP3 32bit * Archlinux package version(s) qemu 1.7.1-1 cinnamon 2.2.3-

<    1   2