[Qemu-devel] PC value translation from guest VA to host VA.

2014-02-11 Thread Gaurav Sharma
Can anyone point it out to me where is the pc value translated from guest virtual address to host virtual address ? Thanks, Gaurav

Re: [Qemu-devel] [Qemu-ppc] PowerPC Decimal Floating Point

2014-02-11 Thread Alexander Graf
On 11.02.2014, at 18:14, Tom Musta wrote: > QEMU is currently lacking support for the Decimal Floating Point category of > instructions > (see Power ISA V2.07 Chapter 6). I intend to add this support. > > Has this topic been investigated before and if so can anyone point me to that > discuss

Re: [Qemu-devel] Ping for patch "linux-user: add binfmt wrapper for argv[0] handling"

2014-02-11 Thread Alexander Graf
On 12.02.2014, at 03:30, Dennis Lan (dlan) wrote: > Hi Folks: > Any chance to get this patch accepted into master branch? > I found it useful when chroot into another system. Origianl post can > be found here[1], would be quite easy to forward port to latest code. > > [1] https://lists.gnu.or

[Qemu-devel] [PATCH v20 07/26] cow.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
cow.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/cow.c | 46 ++ 1 files changed, 22 insertions(+), 24 deletions(-) diff --git a/block/cow.c b/block/cow.c index 85c2971..0d06781 100644

[Qemu-devel] [PATCH v20 26/26] change back to original name from bdrv_create2 to bdrv_create

2014-02-11 Thread Chunyan Liu
Rename the new driver callback bdrv_create2 to the old name bdrv_create. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block.c |4 ++-- block/cow.c |2 +- block/gluster.c |8 block/iscsi.c |2 +- block/q

[Qemu-devel] [PATCH v20 25/26] cleanup QEMUOptionParameter

2014-02-11 Thread Chunyan Liu
Now all places using QEMUOptionParameter could use QemuOpts too, remove QEMUOptionParameter related code. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block.c | 57 ++- block/cow.c |2 +- block/qcow.c |2 +- block/qcow2.c

[Qemu-devel] [PATCH v20 20/26] vdi.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
vdi.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vdi.c | 71 -- 1 files changed, 34 insertions(+), 37 deletions(-) diff --git a/block/vdi.c b/block/vdi.c index 2d7490f..e5

[Qemu-devel] [PATCH v20 18/26] sheepdog.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
sheepdog.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/sheepdog.c | 101 +- 1 files changed, 47 insertions(+), 54 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c i

[Qemu-devel] [PATCH v20 22/26] vpc.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
vpc.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vpc.c | 52 +++- 1 files changed, 27 insertions(+), 25 deletions(-) diff --git a/block/vpc.c b/block/vpc.c index 1d326cb..f77f4a5

[Qemu-devel] [PATCH v20 16/26] raw_bsd.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
raw_bsd.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw_bsd.c | 27 --- 1 files changed, 16 insertions(+), 11 deletions(-) diff --git a/block/raw_bsd.c b/block/raw_bsd.c index 297e03f..4ae12dd 100644 --

[Qemu-devel] [PATCH v20 21/26] vmdk.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
vmdk.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vmdk.c | 109 + 1 files changed, 55 insertions(+), 54 deletions(-) diff --git a/block/vmdk.c b/block/vmdk.c index 97e6608.

[Qemu-devel] [PATCH v20 19/26] ssh.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
ssh.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/ssh.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index aa63c9d..8fd2175 100644 --- a/block/ss

[Qemu-devel] [PATCH v20 17/26] rbd.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
rbd.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/rbd.c | 63 +-- 1 files changed, 31 insertions(+), 32 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index 121fae2..b

[Qemu-devel] [PATCH v10 13/13] dump: add 'query-dump-guest-memory-capability' command

2014-02-11 Thread Qiao Nuohan
'query-dump-guest-memory-capability' is used to query the available formats for 'dump-guest-memory'. The output of the command will be like: -> { "execute": "query-dump-guest-memory-capability" } <- { "return": { "formats": ["elf", "kdump-zlib", "kdump-lzo", "kdump-snappy"] }

[Qemu-devel] [PATCH v20 13/26] qed.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
qed.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/qed.c | 89 +-- block/qed.h |3 +- 2 files changed, 45 insertions(+), 47 deletions(-) diff --git a/block/qed.c b/block

[Qemu-devel] [PATCH v20 14/26] raw-posix.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
raw-posix.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw-posix.c | 58 1 files changed, 27 insertions(+), 31 deletions(-) diff --git a/block/raw-posix.c b/block/raw-posix.c

[Qemu-devel] [PATCH v20 15/26] raw-win32.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
raw-win32.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/raw-win32.c | 33 + 1 files changed, 17 insertions(+), 16 deletions(-) diff --git a/block/raw-win32.c b/block/raw-win32.c index beb7f23..15a

[Qemu-devel] [PATCH v20 24/26] vvfat.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
vvfat.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vvfat.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index c59cbdb..81733bc 100644 --- a/block/vvfat.c +++ b/blo

[Qemu-devel] [PATCH v20 09/26] iscsi.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
iscsi.c: replace QEMUOptionParamter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/iscsi.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/block/iscsi.c b/block/iscsi.c index 6f4af72..f94f935 100644 --- a/b

[Qemu-devel] [PATCH v20 23/26] vhdx.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
vhdx.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/vhdx.c | 93 +++-- block/vhdx.h |1 + 2 files changed, 45 insertions(+), 49 deletions(-) diff --git a/block/vhdx.c b/bloc

[Qemu-devel] [PATCH v20 12/26] qcow2.c: replace QEMUOptionParameter with QemuOpts in amend options

2014-02-11 Thread Chunyan Liu
qcow2.c: replace QEMUOptionParameter with QemuOpts in 'qemu-img amend' Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block.c |4 +- block/qcow2.c | 90 include/block/block.h |2 +- include/bloc

[Qemu-devel] [PATCH v20 08/26] gluster.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
gluster.c: replace QEMUOptionParameter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/gluster.c | 80 -- 1 files changed, 41 insertions(+), 39 deletions(-) diff --git a/block/gluster.c b/block/gluster.c index

[Qemu-devel] [PATCH v20 11/26] qcow2.c: replace QEMUOptionParameter with QemuOpts in create

2014-02-11 Thread Chunyan Liu
qcow2.c: replace QEMUOptionParameter with QemuOpts in 'qemu-img create'. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/qcow2.c | 176 1 files changed, 88 insertions(+), 88 deletions(-) diff --git a/block/qcow2.c b/blo

[Qemu-devel] [PATCH v20 10/26] qcow.c: replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
qcow.c: replace QEMUOptionParamter with QemuOpts Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- block/qcow.c | 61 - 1 files changed, 30 insertions(+), 31 deletions(-) diff --git a/block/qcow.c b/block/qcow.c index 992eed4..

[Qemu-devel] [PATCH v20 00/26] replace QEMUOptionParameter with QemuOpts

2014-02-11 Thread Chunyan Liu
This patch series is to replace QEMUOptionParameter with QemuOpts, so that only one Qemu Option structure is kept in QEMU code. --- Changes to v19: * fix format issue * according to Kevin's comments, add convert functions (params_to_opts and opts_to_params) to simplify the block layer patc

[Qemu-devel] [PATCH v20 03/26] improve some functions in qemu-option.c

2014-02-11 Thread Chunyan Liu
Improve opt_get and opt_set group of functions. For opt_get, check and handle NUlL input; for opt_set, when set to an existing option, rewrite the option with new value. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- util/qemu-option.c | 84

[Qemu-devel] [PATCH v20 05/26] remove assertion of qemu_opt_get functions

2014-02-11 Thread Chunyan Liu
In qemu_opt_set functions, if desc doen't exist but opts_accepts_any is true, it won't report error, but can still alloc an opt for the option and save it. However, after that, when doing qemu_opt_get, this option could be found in opts but opt->desc is NULL. This is correct, should not be treated

[Qemu-devel] [PATCH v20 06/26] change block layer to support both QemuOpts and QEMUOptionParameter

2014-02-11 Thread Chunyan Liu
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 Wang Signed-off-by: Chunyan Liu --- block.c | 11

[Qemu-devel] [PATCH v20 01/26] add def_value_str to QemuOptDesc

2014-02-11 Thread Chunyan Liu
Add def_value_str (default value) to QemuOptDesc, to replace function of the default value in QEMUOptionParameter. And improved related functions. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- include/qemu/option.h |3 +- util/qemu-option.c| 76 +++

[Qemu-devel] [PATCH v20 04/26] add some QemuOpts functions for replace work

2014-02-11 Thread Chunyan Liu
Add some qemu_opt functions to replace the same functionality of QEMUOptionParameter handling. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- include/qemu/option.h |9 +++ util/qemu-option.c| 134 + 2 files changed, 143 insert

[Qemu-devel] [PATCH v20 02/26] qapi: output def_value_str when query command line options

2014-02-11 Thread Chunyan Liu
Change qapi interfaces to output the newly added def_value_str when query command line options. Signed-off-by: Dong Xu Wang Signed-off-by: Chunyan Liu --- qapi-schema.json |8 ++-- qmp-commands.hx|2 ++ util/qemu-config.c |4 3 files changed, 12 insertions(+), 2 delet

Re: [Qemu-devel] [PATCH target-arm v5 4/5] arm: Implement reset GPIO.

2014-02-11 Thread Peter Crosthwaite
On Tue, Jan 28, 2014 at 7:22 PM, Peter Maydell wrote: > On 28 January 2014 00:48, Peter Crosthwaite > wrote: >> On Tue, Jan 28, 2014 at 3:52 AM, Peter Maydell >> wrote: >>> On 15 January 2014 09:14, Peter Crosthwaite >>> wrote: Implement a reset GPIO for ARM CPUs. This allows individual r

[Qemu-devel] [PATCH target-arm v1 2/2] char/cadence_uart: Add NULL guards against chr

2014-02-11 Thread Peter Crosthwaite
It's possible and valid for users of this device model to instantiate it without a backing chr device. To avoid crashes, guard all uses of the backing chr device against NULL. Signed-off-by: Peter Crosthwaite --- hw/char/cadence_uart.c | 14 ++ 1 file changed, 10 insertions(+), 4 de

[Qemu-devel] [PATCH target-arm v1 1/2] char/cadence_uart: Handle qemu_chr_fe_write errors

2014-02-11 Thread Peter Crosthwaite
By just ignoring them and trying again later. This handles the EGAIN case properly (the previous implementation was only dealing with short returns and not errors). Signed-off-by: Peter Crosthwaite --- hw/char/cadence_uart.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --g

[Qemu-devel] [PATCH target-arm v1 0/2] More Cadence UART fixes

2014-02-11 Thread Peter Crosthwaite
Hi Peter, Two fixes to Cadence UART. First is a bug in the recently refactored TX code path around error handling. Second is the long known crashing-cadence-UART bug when there in no backing serial device (i.e. boot a kernel that talks to serial without adding -serial args). Chris recently repo

Re: [Qemu-devel] [PATCH v9 13/13] dump: add 'query-dump-guest-memory-capability' command

2014-02-11 Thread Eric Blake
On 02/11/2014 08:13 PM, Qiao Nuohan wrote: > 'query-dump-guest-memory-capability' is used to query the available > formats of > 'dump-guest-memory'. The output of the command will be like: > > -> { "execute": "query-dump-guest-memory-capability" } > <- { "return": { "formats": >

[Qemu-devel] [PATCH v9 13/13] dump: add 'query-dump-guest-memory-capability' command

2014-02-11 Thread Qiao Nuohan
'query-dump-guest-memory-capability' is used to query the available formats of 'dump-guest-memory'. The output of the command will be like: -> { "execute": "query-dump-guest-memory-capability" } <- { "return": { "formats": ["elf", "kdump-zlib", "kdump-lzo", "kdump-snappy"] }

[Qemu-devel] [PATCH v3] QMP: Allow dot separated dict path arguments in qmp-shell

2014-02-11 Thread Fam Zheng
As another convinience to allow using commands that expect a dict as argument, this patch adds support for foo.bar=value syntax, similar to command line argument style: (QEMU) blockdev-add options.driver=file options.id=drive1 options.filename=... Signed-off-by: Fam Zheng --- v3: Fix error me

Re: [Qemu-devel] [PATCH target-arm v5 1/1] target-arm: Implements the ARM PMCCNTR register

2014-02-11 Thread Alistair Francis
Ping On Fri, Jan 31, 2014 at 2:44 PM, Alistair Francis wrote: > This patch implements the ARM PMCCNTR register including > the disable and reset components of the PMCR register. > > Signed-off-by: Alistair Francis > --- > This patch assumes that non-invasive debugging is not permitted > when det

[Qemu-devel] Ping for patch "linux-user: add binfmt wrapper for argv[0] handling"

2014-02-11 Thread Dennis Lan (dlan)
Hi Folks: Any chance to get this patch accepted into master branch? I found it useful when chroot into another system. Origianl post can be found here[1], would be quite easy to forward port to latest code. [1] https://lists.gnu.org/archive/html/qemu-devel/2011-09/msg03841.html

Re: [Qemu-devel] [PATCH v2] QMP: Allow dot separated dict path arguments in qmp-shell

2014-02-11 Thread Eric Blake
On 02/11/2014 06:22 PM, Fam Zheng wrote: > As another convinience to allow using commands that expect a dict as s/convinience/convenience/ > argument, this patch adds support for foo.bar=value syntax, similar to > command line argument style: > > (QEMU) blockdev-add options.driver=file options

Re: [Qemu-devel] [PATCH v5 RESEND 3/4] raw-posix: Add full image preallocation option

2014-02-11 Thread Hu Tao
On Tue, Feb 11, 2014 at 05:04:09PM +0800, Fam Zheng wrote: > On Tue, 02/11 15:07, Hu Tao wrote: > > This patch adds a new option preallocation for raw format, and implements > > full preallocation. > > > > Signed-off-by: Hu Tao > > --- > > block/raw-posix.c | 43 +

Re: [Qemu-devel] [PATCH v5 RESEND 1/4] qapi: introduce PreallocMode and a new PreallocMode full.

2014-02-11 Thread Hu Tao
On Tue, Feb 11, 2014 at 06:20:03AM -0700, Eric Blake wrote: > On 02/11/2014 12:07 AM, Hu Tao wrote: > > This patch prepares for the subsequent patches. > > > > Signed-off-by: Hu Tao > > --- > > block/qcow2.c| 8 > > qapi-schema.json | 12 > > 2 files changed, 16 insert

Re: [Qemu-devel] [PATCH v5 RESEND 2/4] raw, qcow2: don't convert file size to sector size

2014-02-11 Thread Hu Tao
On Tue, Feb 11, 2014 at 04:53:30PM +0800, Fam Zheng wrote: > On Tue, 02/11 15:07, Hu Tao wrote: > > and avoid convert it back later. > > > > Signed-off-by: Hu Tao > > --- > > block/qcow2.c | 8 > > block/raw-posix.c | 4 ++-- > > 2 files changed, 6 insertions(+), 6 deletions(-) > >

[Qemu-devel] [PATCH v2] QMP: Allow dot separated dict path arguments in qmp-shell

2014-02-11 Thread Fam Zheng
As another convinience to allow using commands that expect a dict as argument, this patch adds support for foo.bar=value syntax, similar to command line argument style: (QEMU) blockdev-add options.driver=file options.id=drive1 options.filename=... Signed-off-by: Fam Zheng --- v2: Fix variable

[Qemu-devel] [RFC/RFT v1 2/2] cris: axis_dev88: QOMify NAND controller

2014-02-11 Thread Peter Crosthwaite
First step QOMficiation of the Axis NAND controller. Setup the memory regions properly as per sysbus. Signed-off-by: Peter Crosthwaite --- hw/cris/axis_dev88.c | 38 ++ 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/hw/cris/axis_dev88.c b/hw/c

[Qemu-devel] [RFC/RFT v1 1/2] arm: tosa: QOMify NAND/display/irq controller

2014-02-11 Thread Peter Crosthwaite
First step QOMficiation of the tosa IO controller (NAND display and interrupts. Setup the memory regions and IRQ properly as per sysbus. Signed-off-by: Peter Crosthwaite --- hw/arm/tosa.c | 12 ++-- hw/display/tc6393xb.c | 36 +--- include/hw/devi

[Qemu-devel] [RFC/RFT v1 0/2] NAND QOMification - Round 1

2014-02-11 Thread Peter Crosthwaite
Or perhaps even round 0.5 ... Hi Andreas, I have a work-in-progress lengthy series that moves towards the full QOMification and BUSification of NAND. This will allow a few things: Attachment of multiple nand devs to one controller. Centralised CS GPIO control. info qtree sanity These patches ar

[Qemu-devel] [PULL] target-openrisc: Use new qemu_ld/st opcodes

2014-02-11 Thread Jia Liu
From: Richard Henderson Signed-off-by: Richard Henderson Acked-by: Jia Liu Signed-off-by: Jia Liu --- target-openrisc/translate.c | 99 +++-- 1 file changed, 32 insertions(+), 67 deletions(-) diff --git a/target-openrisc/translate.c b/target-openrisc/t

[Qemu-devel] [PULL] OpenRISC patch queue for 1.8

2014-02-11 Thread Jia Liu
Hi Anthony, This is my OpenRISC patch queue for 1.8, it have been well tested, please pull. Thanks to Richard Henderson, he made the LD/ST updated. Regards, Jia The following changes since commit a4550442b947d2c2b346bd2efc8fe3da16425f4d: petalogix-ml605: Create the CPU with object_new()

Re: [Qemu-devel] [PATCH] QMP: allow dot separated dict path arguments in qmp-shell

2014-02-11 Thread Fam Zheng
On Tue, 02/11 14:28, Stefan Hajnoczi wrote: > On Tue, Feb 11, 2014 at 06:45:05PM +0800, Fam Zheng wrote: > > diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell > > index d374b35..9c84551 100755 > > --- a/scripts/qmp/qmp-shell > > +++ b/scripts/qmp/qmp-shell > > @@ -112,7 +112,14 @@ class QM

Re: [Qemu-devel] [PATCH] target-arm: make smc behave as a nop

2014-02-11 Thread Rob Herring
On Tue, Feb 11, 2014 at 5:29 PM, Peter Maydell wrote: > On 11 February 2014 23:19, Rob Herring wrote: >> From: Rob Herring >> >> Several platforms make smc calls for things such as PL310 cache setup. >> In these cases, making smc a nop rather than an illegal instruction >> is sufficient for qemu

[Qemu-devel] [PATCH qom-next v1 6/6] block/m25p80: Remove FROM_SSI_SLAVE usages

2014-02-11 Thread Peter Crosthwaite
Signed-off-by: Peter Crosthwaite --- hw/block/m25p80.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index 02a1544..bdbb139 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -545,7 +545,7 @@ static void decode_new_cmd(Flas

[Qemu-devel] [PATCH qom-next v1 5/6] ssi: Remove SSI_SLAVE_FROM_QDEV macro

2014-02-11 Thread Peter Crosthwaite
There are no usages left of this legacy cast. delete. Signed-off-by: Peter Crosthwaite --- include/hw/ssi.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/hw/ssi.h b/include/hw/ssi.h index fdae317..38e5b03 100644 --- a/include/hw/ssi.h +++ b/include/hw/ssi.h @@ -62,7 +62,6 @@ struct

[Qemu-devel] [PATCH qom-next v1 4/6] misc: max111x: QOM casting sweep

2014-02-11 Thread Peter Crosthwaite
Define and use QOM cast macro. Removes some usages of legacy casting systems. Signed-off-by: Peter Crosthwaite --- hw/misc/max111x.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/misc/max111x.c b/hw/misc/max111x.c index 9e50e7e..8c78979 100644 --- a/hw/misc/max

[Qemu-devel] [PATCH qom-next v1 3/6] misc: max111x: Create abstract max111x class

2014-02-11 Thread Peter Crosthwaite
Create an abstract class that encompasses both max111x variants. This is needed for QOM cast macro creation (and is the right thing to do anyway). Macroify type-names in the process. Signed-off-by: Peter Crosthwaite --- hw/misc/max111x.c | 33 + 1 file changed, 2

[Qemu-devel] [PATCH qom-next v1 2/6] ssi: Remove legacy SSI_BUS->BUS cast

2014-02-11 Thread Peter Crosthwaite
Remove two legacy ->qbus style casts from TYPE_SSI_BUS to TYPE_BUS in ssi.c. Signed-off-by: Peter Crosthwaite --- hw/ssi/ssi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ssi/ssi.c b/hw/ssi/ssi.c index 2c25260..f2bdf30 100644 --- a/hw/ssi/ssi.c +++ b/hw/ssi/ssi.c

[Qemu-devel] [PATCH qom-next v1 1/6] ssi: Convert legacy casts from SSI_SLAVE->DEVICE

2014-02-11 Thread Peter Crosthwaite
Convert legacy ->qdev style casts from TYPE_SSI_SLAVE to TYPE_DEVICE. Signed-off-by: Peter Crosthwaite --- hw/arm/spitz.c | 9 + hw/display/ads7846.c | 2 +- hw/display/ssd0323.c | 4 ++-- hw/misc/max111x.c| 4 ++-- hw/sd/ssi-sd.c | 2 +- 5 files changed, 11 insertions(+

[Qemu-devel] [PATCH qom-next v1 0/6] SSI QOM cleanups

2014-02-11 Thread Peter Crosthwaite
Hi Andreas, Here is a mixed bag of QOM cleanups, moving us slightly closer to QOMification of SSI. This prepares support for some major refactoring around SSI (in particular some QSPI patches). Regards, Peter Peter Crosthwaite (6): ssi: Convert legacy casts from SSI_SLAVE->DEVICE ssi: Remo

Re: [Qemu-devel] [PATCH v2 7/8] block: Reuse success path from bdrv_open()

2014-02-11 Thread Max Reitz
On 10.02.2014 15:56, Kevin Wolf wrote: Am 08.02.2014 um 18:39 hat Max Reitz geschrieben: The fail and success paths of bdrv_file_open() may be further shortened by reusing code already existent in bdrv_open(). This includes bdrv_file_open() not taking the reference to options which allows the re

Re: [Qemu-devel] [PATCH v2 2/8] block: Add reference parameter to bdrv_open()

2014-02-11 Thread Max Reitz
On 10.02.2014 14:30, Benoît Canet wrote: Le Saturday 08 Feb 2014 à 18:39:13 (+0100), Max Reitz a écrit : Allow bdrv_open() to handle references to existing block devices just as bdrv_file_open() is already capable of. Signed-off-by: Max Reitz --- block.c | 41 ++

Re: [Qemu-devel] [PATCH v2 1/8] block: Change BDS parameter of bdrv_open() to **

2014-02-11 Thread Max Reitz
On 10.02.2014 14:17, Benoît Canet wrote: Le Saturday 08 Feb 2014 à 18:39:12 (+0100), Max Reitz a écrit : Make bdrv_open() take a pointer to a BDS pointer, similarly to bdrv_file_open(). If a pointer to a NULL pointer is given, bdrv_open() will create a new BDS with an empty name; if the BDS poin

Re: [Qemu-devel] [PATCH v2 1/8] block: Change BDS parameter of bdrv_open() to **

2014-02-11 Thread Max Reitz
On 10.02.2014 13:42, Kevin Wolf wrote: Am 08.02.2014 um 18:39 hat Max Reitz geschrieben: Make bdrv_open() take a pointer to a BDS pointer, similarly to bdrv_file_open(). If a pointer to a NULL pointer is given, bdrv_open() will create a new BDS with an empty name; if the BDS pointer is not NULL,

Re: [Qemu-devel] [PATCH] qemu_file: use fwrite() correctly

2014-02-11 Thread Juan Quintela
Paolo Bonzini wrote: > Il 11/02/2014 22:56, Juan Quintela ha scritto: >> fwrite() returns the number of items written. But when there is one >> error, it can return a short write. >> >> In the particular bug that I was tracking, I did a migration to a >> read-only filesystem. And it was able to

[Qemu-devel] [PATCH v2] qemu_file: use fwrite() correctly

2014-02-11 Thread Juan Quintela
fwrite() returns the number of items written. But when there is one error, it can return a short write. In the particular bug that I was tracking, I did a migration to a read-only filesystem. And it was able to finish the migration correctly. fwrite() never returned a negative error code, the 1

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 09/10] raven: fix PCI bus accesses with size > 1

2014-02-11 Thread Andreas Färber
Am 10.02.2014 23:55, schrieb Mark Cave-Ayland: > On 10/02/14 22:46, Artyom Tarasenko wrote: > >> On Tue, Nov 5, 2013 at 12:09 AM, Hervé >> Poussineau wrote: >>> Signed-off-by: Hervé Poussineau >> >> Without this patch PReP is broken really bad. Was going to submit the >> same fix, and then found

Re: [Qemu-devel] [PATCH] target-arm: make smc behave as a nop

2014-02-11 Thread Peter Maydell
On 11 February 2014 23:19, Rob Herring wrote: > From: Rob Herring > > Several platforms make smc calls for things such as PL310 cache setup. > In these cases, making smc a nop rather than an illegal instruction > is sufficient for qemu to work. I can't remember if we've had this discussion befor

[Qemu-devel] [PATCH] target-arm: make smc behave as a nop

2014-02-11 Thread Rob Herring
From: Rob Herring Several platforms make smc calls for things such as PL310 cache setup. In these cases, making smc a nop rather than an illegal instruction is sufficient for qemu to work. Signed-off-by: Rob Herring --- target-arm/translate.c | 20 +++- 1 file changed, 11 inser

Re: [Qemu-devel] [PATCH 4/4] monitor: Add object_add class argument completion.

2014-02-11 Thread Hani Benhabiles
On Tue, Feb 11, 2014 at 01:38:32PM -0500, Luiz Capitulino wrote: > On Thu, 6 Feb 2014 23:30:13 +0100 > Hani Benhabiles wrote: > > > --- > > monitor.c | 23 +++ > > 1 file changed, 23 insertions(+) > > > > diff --git a/monitor.c b/monitor.c > > index 4a2c1ae..397e1fe 100644

Re: [Qemu-devel] [PATCH] qemu_file: use fwrite() correctly

2014-02-11 Thread Paolo Bonzini
Il 11/02/2014 22:56, Juan Quintela ha scritto: fwrite() returns the number of items written. But when there is one error, it can return a short write. In the particular bug that I was tracking, I did a migration to a read-only filesystem. And it was able to finish the migration correctly. fwr

Re: [Qemu-devel] [PATCH 0/4] monitor: Add argument completion for multiple commands.

2014-02-11 Thread Hani Benhabiles
On Tue, Feb 11, 2014 at 01:39:13PM -0500, Luiz Capitulino wrote: > On Thu, 6 Feb 2014 23:30:09 +0100 > Hani Benhabiles wrote: > > > This patch series add argument completion to multiple human monitor console > > commands. > > > > For device_add and object_add, only the 1st argument is completed

[Qemu-devel] [PATCH] qemu_file: use fwrite() correctly

2014-02-11 Thread Juan Quintela
fwrite() returns the number of items written. But when there is one error, it can return a short write. In the particular bug that I was tracking, I did a migration to a read-only filesystem. And it was able to finish the migration correctly. fwrite() never returned a negative error code, nor z

Re: [Qemu-devel] [PATCH v4 00/22] Steps towards per CPU address-spaces

2014-02-11 Thread Paolo Bonzini
Il 11/02/2014 00:53, Edgar E. Iglesias ha scritto: > Is there that much overhead to creating an AS per master? I guess > you end up recalculating the same memory flatview for every AS > when a memory region gets mapped or unmapped. > In any case, if it's OK to share AddressSpaces between masters

Re: [Qemu-devel] CPU models and feature probing (was Re: [PATCH qom-cpu 00/16 v10] target-i386: convert CPU) features into properties

2014-02-11 Thread Paolo Bonzini
Il 11/02/2014 19:57, Anthony Liguori ha scritto: > Erm, sorry, that is already implemented in qemu.git!? instance_post_init > by Eduardo plus glue by me. Ah, even better then :-) Still, the code is a bit ad hoc. Static properties would let us remove that code and just read dc->props arrays a

Re: [Qemu-devel] RFC: ioapic polarity vs. qemu os-x guest

2014-02-11 Thread Gabriel L. Somlo
On Tue, Feb 11, 2014 at 09:54:44PM +0200, Michael S. Tsirkin wrote: > On Tue, Feb 11, 2014 at 01:23:31PM -0500, Gabriel L. Somlo wrote: > > I'm trying to get OS X to work as a QEMU guest, and one of the few > > remaining "mysteries" I need to solve is that the OS X guest hangs > > during boot, wait

[Qemu-devel] [PATCH 0/3] X86: Invalid lock prefix (F0), invalid mov instruction, the xor_zero case should also update the parity.

2014-02-11 Thread Xabier Ugarte-Pedrero
The following patch corrects two invalid instructions on the X86 subsystem that are incorrectly translated. These byte sequences should generate exceptions. First, the lock prefix (F0) should only be prepended once before each instruction. Otherwise, (if two F0 bytes are present), the cpu raises

[Qemu-devel] [PATCH 1/3] X86: Invalid lock prefix (F0)

2014-02-11 Thread Xabier Ugarte-Pedrero
If the lock prefix (F0) is prepended more than once to any instruction, then it should generate an invalid instruction exception (illegal_op). See Intel 64 and IA-32 Architectures Software Developer's Manual Volume 2A: Instruction Set Reference, A-M. Order Number: 253666-049US February 2014.

[Qemu-devel] [PATCH 0/3] X86: Invalid lock prefix (F0), invalid mov instruction

2014-02-11 Thread Xabier Ugarte-Pedrero
The following patch corrects two invalid instructions on the X86 subsystem that are incorrectly translated. These byte sequences should generate exceptions. First, the lock prefix (F0) should only be prepended once before each instruction. Otherwise, (if two F0 bytes are present), the cpu raises

[Qemu-devel] [PATCH 2/3] X86: Invalid mov instruction (C7)

2014-02-11 Thread Xabier Ugarte-Pedrero
The mov instruction (with operational code C7) must be followed by a ModR/M byte with the Reg/Opcode field (bits 3 to 5) set to 0. Otherwise, it should generate an invalid instruction exception (illegal_op). See Intel 64 and IA-32 Architectures Software Developer's Manual Volume 2A: Instruct

[Qemu-devel] [PATCH 3/3] X86: The xor_zero case should also update the parity flag

2014-02-11 Thread Xabier Ugarte-Pedrero
The xor of a register with itself should set the Z and the P flag, not only the Z flag. Signed-off-by: Xabier Ugarte-Pedrero --- target-i386/cc_helper.c |2 +- target-i386/translate.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/cc_helper.c b/tar

[Qemu-devel] [PATCH 3/3] X86: The xor_zero case should also update the parity flag

2014-02-11 Thread Xabier Ugarte-Pedrero
The xor of a register with itself should set the Z and the P flag, not only the Z flag. Signed-off-by: Xabier Ugarte-Pedrero --- target-i386/cc_helper.c |2 +- target-i386/translate.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/cc_helper.c b/tar

[Qemu-devel] [PATCH 0/3] X86: Invalid lock prefix (F0), invalid mov instruction, the xor_zero case should also update the parity.

2014-02-11 Thread Xabier Ugarte-Pedrero
The following patch corrects two invalid instructions on the X86 subsystem that are incorrectly translated. These byte sequences should generate exceptions. First, the lock prefix (F0) should only be prepended once before each instruction. Otherwise, (if two F0 bytes are present), the cpu raises

[Qemu-devel] [PATCH 3/3] X86: The xor_zero case should also update the parity flag

2014-02-11 Thread Xabier Ugarte-Pedrero
The xor of a register with itself should set the Z and the P flag, not only the Z flag. Signed-off-by: Xabier Ugarte-Pedrero --- target-i386/cc_helper.c |2 +- target-i386/translate.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/cc_helper.c b/tar

[Qemu-devel] [PATCH 3/3] X86: The xor_zero case should also update the parity flag

2014-02-11 Thread Xabier Ugarte-Pedrero
The xor of a register with itself should set the Z and the P flag, not only the Z flag. Signed-off-by: Xabier Ugarte-Pedrero --- target-i386/cc_helper.c |2 +- target-i386/translate.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-i386/cc_helper.c b/tar

[Qemu-devel] [PATCH 2/3] X86: Invalid mov instruction (C7)

2014-02-11 Thread Xabier Ugarte-Pedrero
The mov instruction (with operational code C7) must be followed by a ModR/M byte with the Reg/Opcode field (bits 3 to 5) set to 0. Otherwise, it should generate an invalid instruction exception (illegal_op). See Intel 64 and IA-32 Architectures Software Developer's Manual Volume 2A: Instruct

[Qemu-devel] [PATCH 1/3] X86: Invalid lock prefix (F0)

2014-02-11 Thread Xabier Ugarte-Pedrero
If the lock prefix (F0) is prepended more than once to any instruction, then it should generate an invalid instruction exception (illegal_op). See Intel 64 and IA-32 Architectures Software Developer's Manual Volume 2A: Instruction Set Reference, A-M. Order Number: 253666-049US February 2014.

[Qemu-devel] [PATCH 0/3] X86: Invalid lock prefix (F0), invalid mov instruction, the xor_zero case should also update the parity.

2014-02-11 Thread Xabier Ugarte-Pedrero
The following patch corrects two invalid instructions on the X86 subsystem that are incorrectly translated. These byte sequences should generate exceptions. First, the lock prefix (F0) should only be prepended once before each instruction. Otherwise, (if two F0 bytes are present), the cpu raises

[Qemu-devel] [PATCH 0/3] X86: Invalid lock prefix (F0), invalid mov instruction

2014-02-11 Thread Xabier Ugarte-Pedrero
The following patch corrects two invalid instructions on the X86 subsystem that are incorrectly translated. These byte sequences should generate exceptions. First, the lock prefix (F0) should only be prepended once before each instruction. Otherwise, (if two F0 bytes are present), the cpu raises

[Qemu-devel] [Bug 1278977] [NEW] qemu-system-sparc64 crash when initializing disk

2014-02-11 Thread wbx
Public bug reported: Hi, I try to boot up Linux for SPARC64 in qemu-system-sparc64 (qemu 1.7.0). A self compiled kernel with initramfs as piggyback boots up fine. (http://www.openadk.org/qemu-sparc64-initramfs-piggyback-kernel) When trying to use a disk image I get following trace: qemu-system-s

Re: [Qemu-devel] [PATCH v4 06/22] cpu: Add per-cpu address space

2014-02-11 Thread Andreas Färber
Edgar, Am 03.02.2014 10:44, schrieb Edgar E. Iglesias: > From: "Edgar E. Iglesias" > > Signed-off-by: Edgar E. Iglesias > --- > cpus.c | 2 ++ > cputlb.c| 7 --- > exec.c | 27 +++ > include

Re: [Qemu-devel] RFC: ioapic polarity vs. qemu os-x guest

2014-02-11 Thread Michael S. Tsirkin
On Tue, Feb 11, 2014 at 01:23:31PM -0500, Gabriel L. Somlo wrote: > Hi, > > I'm trying to get OS X to work as a QEMU guest, and one of the few > remaining "mysteries" I need to solve is that the OS X guest hangs > during boot, waiting for its boot disk to be available, unless the > following KVM p

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

2014-02-11 Thread Luiz Capitulino
On Tue, 11 Feb 2014 05:48:31 +0800 Wenchao Xia wrote: > 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': 'UserDefBas

Re: [Qemu-devel] CPU models and feature probing (was Re: [PATCH qom-cpu 00/16 v10] target-i386: convert CPU) features into properties

2014-02-11 Thread Anthony Liguori
On Tue, Feb 11, 2014 at 8:55 AM, Andreas Färber wrote: > Am 11.02.2014 16:58, schrieb Anthony Liguori: >> On Tue, Feb 11, 2014 at 7:25 AM, Eduardo Habkost wrote: >>> On Tue, Feb 11, 2014 at 06:31:35AM -0800, Anthony Liguori wrote: On Fri, Feb 7, 2014 at 2:55 AM, Paolo Bonzini wrote: > I

Re: [Qemu-devel] [PATCH V9 2/5] target-ppc: Fix htab_mask calculation

2014-02-11 Thread Aneesh Kumar K.V
Hi Greg, can you try the below patch and see if it fix the TCG mode failure ? -aneesh commit d98b5098bc04f44ef4e175f689345e92cf469231 Author: Aneesh Kumar K.V Date: Tue Feb 11 23:43:12 2014 +0530 tcg fixes diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index e1f778faf3ae..d3a

Re: [Qemu-devel] [PATCH 1/4] monitor: Add device_del id argument completion.

2014-02-11 Thread Luiz Capitulino
On Thu, 6 Feb 2014 23:30:10 +0100 Hani Benhabiles wrote: > --- > monitor.c | 23 +++ > 1 file changed, 23 insertions(+) Your S-o-B is missing in all patches. Can reply to them adding it? > > diff --git a/monitor.c b/monitor.c > index b1ea262..f8c4cae 100644 > --- a/monito

Re: [Qemu-devel] [PATCH v2 08/35] target-arm: A64: Implement store-exclusive for system mode

2014-02-11 Thread Peter Maydell
On 31 January 2014 15:45, Peter Maydell wrote: > System mode store-exclusive use a different code path to usermode ones; > implement this missing code, in a similar way to the 32 bit version. > > Signed-off-by: Peter Maydell I just got a reviewed-by from rth on IRC for this patch and so I'm goin

Re: [Qemu-devel] [PATCH 0/4] monitor: Add argument completion for multiple commands.

2014-02-11 Thread Luiz Capitulino
On Thu, 6 Feb 2014 23:30:09 +0100 Hani Benhabiles wrote: > This patch series add argument completion to multiple human monitor console > commands. > > For device_add and object_add, only the 1st argument is completed. > > Hani Benhabiles (4): > monitor: Add device_del id argument completion.

Re: [Qemu-devel] [PATCH 4/4] monitor: Add object_add class argument completion.

2014-02-11 Thread Luiz Capitulino
On Thu, 6 Feb 2014 23:30:13 +0100 Hani Benhabiles wrote: > --- > monitor.c | 23 +++ > 1 file changed, 23 insertions(+) > > diff --git a/monitor.c b/monitor.c > index 4a2c1ae..397e1fe 100644 > --- a/monitor.c > +++ b/monitor.c > @@ -56,6 +56,7 @@ > #include "qapi/qmp/qjson

Re: [Qemu-devel] memory allocation of migration changed?

2014-02-11 Thread Stefan Priebe
Am 11.02.2014 17:22, schrieb Peter Lieven: Am 11.02.2014 um 16:44 schrieb Stefan Hajnoczi : On Tue, Feb 11, 2014 at 3:54 PM, Stefan Priebe - Profihost AG wrote: in the past (Qemu 1.5) a migration failed if there was not enogh memory on the target host available directly at the beginning. N

Re: [Qemu-devel] memory allocation of migration changed?

2014-02-11 Thread Stefan Priebe
Am 11.02.2014 16:44, schrieb Stefan Hajnoczi: On Tue, Feb 11, 2014 at 3:54 PM, Stefan Priebe - Profihost AG wrote: in the past (Qemu 1.5) a migration failed if there was not enogh memory on the target host available directly at the beginning. Now with Qemu 1.7 i've seen succeeded migrations bu

  1   2   3   >