Re: [Qemu-devel] [PATCH v5] target-i386: Register QOM properties for feature flags

2015-04-15 Thread Igor Mammedov
On Tue, 14 Apr 2015 12:28:24 -0300 Eduardo Habkost wrote: > This uses the feature name arrays to register QOM properties for feature > flags. This simply adds properties that can be configured using -global, > but doesn't change x86_cpu_parse_featurestr() to use them yet. > > Signed-off-by: Edua

Re: [Qemu-devel] [PATCH v2 1/4] qapi: Fix C identifiers generated for names containing '.'

2015-04-15 Thread Alberto Garcia
On Sáb 11 Abr 2015 20:09:40 CEST, Eric Blake wrote: > From: Markus Armbruster > > c_fun() maps '.' to '_', c_var() doesn't. Nothing prevents '.' in > QAPI names that get passed to c_var(). > > Which QAPI names get passed to c_fun(), to c_var(), or to both is not > obvious. Names of command para

Re: [Qemu-devel] [PATCH v2 2/4] qapi: Drop duplicate c_fun() in favor of c_var()

2015-04-15 Thread Alberto Garcia
On Sáb 11 Abr 2015 20:09:41 CEST, Eric Blake wrote: > Now that the two functions are identical, we only need one of them. > > Signed-off-by: Eric Blake > --- > scripts/qapi-commands.py | 15 --- > scripts/qapi-event.py| 2 +- > scripts/qapi-types.py| 4 ++-- > scripts/qapi-v

[Qemu-devel] [PATCH v1 0/1] s390 pci infrastucture modeling

2015-04-15 Thread Hong Bo Li
This patch extends the current s390 pci implementation to provide more flexibility in configuration of s390 specific device handling. For this we had to introduce a new facility (and bus) to hold devices representing information actually provided by s390 firmware and I/O configuration. For each vf

[Qemu-devel] [PATCH v1 1/1] S390 pci infrastructure modeling

2015-04-15 Thread Hong Bo Li
This patch contains the actual interesting changes. usage example: -device s390-pcihost -device vfio-pci,host=:00:00.0,id=vpci1 -device zpci,fid=2,uid=5,pci_id=vpci1,id=zpci1 The first line will create a s390 pci host bridge and init the root bus. The second line will create a standard vfio pc

Re: [Qemu-devel] [v7 12/14] migration: Use an array instead of 3 parameters

2015-04-15 Thread Juan Quintela
Eric Blake wrote: > On 04/08/2015 12:20 AM, Liang Li wrote: >> Put the three parameters related to multiple thread (de)compression >> into an int array, and use an enum type to index the parameter. >> >> Signed-off-by: Liang Li >> Signed-off-by: Yang Zhang >> --- >> include/migration/migration

[Qemu-devel] [PATCH v1 1/1] S390 pci infrastructure modeling

2015-04-15 Thread Hong Bo Li
This patch contains the actual interesting changes. usage example: -device s390-pcihost -device vfio-pci,host=:00:00.0,id=vpci1 -device zpci,fid=2,uid=5,pci_id=vpci1,id=zpci1 The first line will create a s390 pci host bridge and init the root bus. The second line will create a standard vfio p

Re: [Qemu-devel] [v7 12/14] migration: Use an array instead of 3 parameters

2015-04-15 Thread Li, Liang Z
> Eric Blake wrote: > > On 04/08/2015 12:20 AM, Liang Li wrote: > >> Put the three parameters related to multiple thread (de)compression > >> into an int array, and use an enum type to index the parameter. > >> > >> Signed-off-by: Liang Li > >> Signed-off-by: Yang Zhang > >> --- > >> include/mi

Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-argument

2015-04-15 Thread Liviu Ionescu
Peter/Leon, I'm planning for my future releases, and, to avoid incompatible versions, I would like to help with the semihosting configuration issue, to speed up things. is there any chance to close this issue in the near future? we currently have two solutions: - multiple: --semihosting-config

Re: [Qemu-devel] [PATCH] PING - add 1394 support

2015-04-15 Thread Thomas Huth
Am Tue, 7 Apr 2015 11:18:41 +0300 schrieb Itamar Tal : > Hi, > > Haven't got any response to this patch and couldn't find relevant > maintainer as well. Can anyone direct me to the right guy? > > Thanks, > > Itamar Tal, > Guardicore > > On Mon, Mar 23, 2015 at 6:07 PM, Itamar Tal wrote: > >

Re: [Qemu-devel] [PATCH RFC 19/19] qapi: New QMP command query-schema for QMP schema introspection

2015-04-15 Thread Alberto Garcia
On Sat 11 Apr 2015 01:06:58 AM CEST, Eric Blake wrote: >> +{ 'type': 'SchemaInfoEnum', >> + 'data': { 'values': ['str'] } } > > At one point, one thread suggested that we might want to allow QAPI to > support enums with fixed values, as in: > > 'data': [ {'one': 1}, {'three': 3} ] Out of curios

Re: [Qemu-devel] [Question]Support of China loogson processor

2015-04-15 Thread Andreas Färber
Am 15.04.2015 um 03:08 schrieb Rob Landley: > On Mon, Apr 13, 2015 at 6:29 AM, vt wrote: >> I saw the architecture code about mips in the qemu and kvm modules, so it is >> no doubt that mips cpu can be supported. > > It looks like the 32 bit one should work fine. I haven't played with > 64 bit ye

Re: [Qemu-devel] Failing iotests in v2.3.0-rc2 / master

2015-04-15 Thread Kevin Wolf
Am 15.04.2015 um 06:53 hat Jeff Cody geschrieben: > On Tue, Apr 14, 2015 at 11:57:35AM +0200, Kevin Wolf wrote: > > Am 11.04.2015 um 05:41 hat Andreas Färber geschrieben: > > > Hi, > > > > > > 001 seems to hang for -qcow (or is not reasonably "quick": >5 min). > > > > > > 033 is failing for -vhdx

[Qemu-devel] [PATCH 1/2] blkdebug: Add bdrv_truncate()

2015-04-15 Thread Kevin Wolf
This is, amongst others, required for qemu-iotests 033 to run as intended on VHDX, which uses explicit bdrv_truncate() calls to bs->file when allocating new blocks. Signed-off-by: Kevin Wolf --- block/blkdebug.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/block/blkdebug.c b/block/b

[Qemu-devel] [PATCH 2/2] vhdx: Fix zero-fill iov length

2015-04-15 Thread Kevin Wolf
Fix the length of the zero-fill for the back, which was accidentally using the same value as for the front. This is caught by qemu-iotests 033. For consistency, change the code for the front as well to use the length stored in the iov (it is the same value, copied four lines above). Signed-off-by

[Qemu-devel] [PATCH 0/2] Fix VHDX qemu-iotests 033 failure

2015-04-15 Thread Kevin Wolf
Kevin Wolf (2): blkdebug: Add bdrv_truncate() vhdx: Fix zero-fill iov length block/blkdebug.c | 6 ++ block/vhdx.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) -- 1.8.3.1

Re: [Qemu-devel] Failing iotests in v2.3.0-rc2 / master

2015-04-15 Thread Andreas Färber
Am 15.04.2015 um 11:26 schrieb Kevin Wolf: > Am 15.04.2015 um 06:53 hat Jeff Cody geschrieben: >> On Tue, Apr 14, 2015 at 11:57:35AM +0200, Kevin Wolf wrote: >>> Am 11.04.2015 um 05:41 hat Andreas Färber geschrieben: Hi, 001 seems to hang for -qcow (or is not reasonably "quick": >5 m

Re: [Qemu-devel] [Question]Support of China loogson processor

2015-04-15 Thread James Hogan
On 13/04/15 12:29, vt wrote: > Hi, guys > > I saw the architecture code about mips in the qemu and kvm modules, so it is > no doubt that mips cpu can be supported. > But I wonder if anyone have used qemu/kvm virtualization with China loongson > processor (MIPS architecture) without modification

[Qemu-devel] [v8 04/14] qemu-file: Add compression functions to QEMUFile

2015-04-15 Thread Liang Li
qemu_put_compression_data() compress the data and put it to QEMUFile. qemu_put_qemu_file() put the data in the buffer of source QEMUFile to destination QEMUFile. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Juan Quintela --- include/migration/qemu-file.h | 3 +++ migration/q

[Qemu-devel] [v8 02/14] migration: Add the framework of multi-thread compression

2015-04-15 Thread Liang Li
Add the code to create and destroy the multiple threads those will be used to do data compression. Left some functions empty to keep clearness, and the code will be added later. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Dr.David Alan Gilbert Reviewed-by: Juan Quintela ---

[Qemu-devel] [PATCH v8 0/14] migration: Add a new feature to do live migration

2015-04-15 Thread Liang Li
This feature can help to reduce the data transferred about 60%, and the migration time can also be reduced about 70%. Summary of changed from v7->v8 -Fixed a bug when terminating the decompression thread -Fixed some indentation issues -Fixed the bogus qmp error message when s

[Qemu-devel] [v8 01/14] docs: Add a doc about multiple thread compression

2015-04-15 Thread Liang Li
Give some details about the multiple thread (de)compression and how to use it in live migration. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Dr.David Alan Gilbert Reviewed-by: Juan Quintela --- docs/multi-thread-compression.txt | 149 ++

[Qemu-devel] [v8 05/14] arch_init: Alloc and free data struct for compression

2015-04-15 Thread Liang Li
Define the data structure and variables used to do multiple thread compression, and add the code to initialize and free them. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Dr.David Alan Gilbert Reviewed-by: Juan Quintela --- arch_init.c | 37 ++

[Qemu-devel] [v8 03/14] migration: Add the framework of multi-thread decompression

2015-04-15 Thread Liang Li
Add the code to create and destroy the multiple threads those will be used to do data decompression. Left some functions empty just to keep clearness, and the code will be added later. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Dr.David Alan Gilbert Reviewed-by: Juan Quintel

[Qemu-devel] [v8 08/14] migration: Add the core code of multi-thread compression

2015-04-15 Thread Liang Li
Implement the core logic of the multiple thread compression. At this point, multiple thread compression can't co-work with xbzrle yet. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Juan Quintela --- arch_init.c | 183 ++--

Re: [Qemu-devel] [PATCH] vhost: pass corrent log base to kernel

2015-04-15 Thread Michael S. Tsirkin
On Wed, Apr 15, 2015 at 12:06:42PM +0800, Wen Congyang wrote: > Signed-off-by: Wen Congyang > --- > hw/virtio/vhost.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c > index 5a12861..4e334ca 100644 > --- a/hw/virtio/vhost.c > +++ b/h

[Qemu-devel] [v8 14/14] migration: Add hmp interface to set and query parameters

2015-04-15 Thread Liang Li
Add the hmp interface to tune and query the parameters used in live migration. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Eric Blake --- hmp-commands.hx | 17 +++ hmp.c | 65 + hmp.h |

[Qemu-devel] [v8 06/14] arch_init: Add and free data struct for decompression

2015-04-15 Thread Liang Li
Define the data structure and variables used to do multiple thread decompression, and add the code to initialize and free them. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Dr.David Alan Gilbert Reviewed-by: Juan Quintela --- arch_init.c | 14 +- 1 file changed,

[Qemu-devel] [v8 07/14] migration: Split save_zero_page from ram_save_page

2015-04-15 Thread Liang Li
Split the function save_zero_page from ram_save_page so that we can reuse it later. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Juan Quintela --- arch_init.c | 61 +++-- 1 file changed, 43 insertions(+), 18 deletions(-)

[Qemu-devel] [v8 10/14] migration: Add the core code for decompression

2015-04-15 Thread Liang Li
Implement the core logic of multiple thread decompression, the decompression can work now. Signed-off-by: Liang Li Signed-off-by: Yang Zhang --- arch_init.c | 51 --- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git a/arch_init.c b/arc

[Qemu-devel] [v8 09/14] migration: Make compression co-work with xbzrle

2015-04-15 Thread Liang Li
Now, multiple thread compression can co-work with xbzrle. when xbzrle is on, multiple thread compression will only work at the first round of RAM data sync. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Dr.David Alan Gilbert Reviewed-by: Juan Quintela --- arch_init.c | 12 +++

[Qemu-devel] [PATCH] vhost: fix log base address

2015-04-15 Thread Michael S. Tsirkin
VHOST_SET_LOG_BASE got an incorrect address, causing migration errors and potentially even memory corruption. Cc: Peter Maydell Reported-by: Wen Congyang Signed-off-by: Michael S. Tsirkin --- Could you please confirm this fixes the problem for you? hw/virtio/vhost.c | 5 - 1 file changed

[Qemu-devel] [PATCH for-2.4] m25p80: fix s->blk usage before assignment

2015-04-15 Thread Stefan Hajnoczi
Delay the call to blk_blockalign() until s->blk has been assigned. This never caused a crash because blk_blockalign(NULL, size) defaults to 4096 alignment but it's technically incorrect. Signed-off-by: Stefan Hajnoczi --- hw/block/m25p80.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[Qemu-devel] [v8 12/14] migration: Use an array instead of 3 parameters

2015-04-15 Thread Liang Li
Put the three parameters related to multiple thread (de)compression into an int array, and use an enum type to index the parameter. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Juan Quintela --- include/migration/migration.h | 4 +--- migration/migration.c | 31 +

[Qemu-devel] [v8 11/14] migration: Add interface to control compression

2015-04-15 Thread Liang Li
The multiple compression threads can be turned on/off through qmp and hmp interface before doing live migration. Signed-off-by: Liang Li Signed-off-by: Yang Zhang Reviewed-by: Dr.David Alan Gilbert Reviewed-by: Juan Quintela Reviewed-by: Eric Blake --- migration/migration.c | 7 +-- qap

[Qemu-devel] [v8 13/14] migration: Add qmp commands to set and query parameters

2015-04-15 Thread Liang Li
Add the qmp commands to tune and query the parameters used in live migration. Signed-off-by: Liang Li Signed-off-by: Yang Zhang --- migration/migration.c | 56 ++ qapi-schema.json | 45 qmp-commands.hx

Re: [Qemu-devel] Failing iotests in v2.3.0-rc2 / master

2015-04-15 Thread Kevin Wolf
Am 15.04.2015 um 11:34 hat Andreas Färber geschrieben: > Am 15.04.2015 um 11:26 schrieb Kevin Wolf: > > Am 15.04.2015 um 06:53 hat Jeff Cody geschrieben: > >> On Tue, Apr 14, 2015 at 11:57:35AM +0200, Kevin Wolf wrote: > >>> Am 11.04.2015 um 05:41 hat Andreas Färber geschrieben: > Hi, > >

Re: [Qemu-devel] [PATCH for-2.4] m25p80: fix s->blk usage before assignment

2015-04-15 Thread Paolo Bonzini
On 15/04/2015 11:43, Stefan Hajnoczi wrote: > Delay the call to blk_blockalign() until s->blk has been assigned. > > This never caused a crash because blk_blockalign(NULL, size) defaults to > 4096 alignment but it's technically incorrect. > > Signed-off-by: Stefan Hajnoczi > --- > hw/block/m2

Re: [Qemu-devel] feature proposal: checkpoint-assisted migration

2015-04-15 Thread Stefan Hajnoczi
On Tue, Apr 14, 2015 at 01:20:33PM +0200, Thomas Knauth wrote: > In the course of our research we implemented a prototype of this > feature within kvm/qemu. We would like to contribute it to mainline, > but it needs cleanup and proper testing. As is the nature with > research prototypes, the code i

Re: [Qemu-devel] Failing iotests in v2.3.0-rc2 / master

2015-04-15 Thread Andreas Färber
Am 15.04.2015 um 11:47 schrieb Kevin Wolf: > Am 15.04.2015 um 11:34 hat Andreas Färber geschrieben: >> Am 15.04.2015 um 11:26 schrieb Kevin Wolf: >>> Am 15.04.2015 um 06:53 hat Jeff Cody geschrieben: On Tue, Apr 14, 2015 at 11:57:35AM +0200, Kevin Wolf wrote: > Am 11.04.2015 um 05:41 hat A

Re: [Qemu-devel] [PATCH] vhost: fix log base address

2015-04-15 Thread zhanghailiang
On 2015/4/15 17:37, Michael S. Tsirkin wrote: VHOST_SET_LOG_BASE got an incorrect address, causing migration errors and potentially even memory corruption. Cc: Peter Maydell Reported-by: Wen Congyang Signed-off-by: Michael S. Tsirkin --- Could you please confirm this fixes the problem for yo

Re: [Qemu-devel] [PATCH v4 00/20] Generate ACPI v5.1 tables and expose it to guest over fw_cfg on ARM

2015-04-15 Thread Michael S. Tsirkin
On Fri, Apr 03, 2015 at 06:03:32PM +0800, Shannon Zhao wrote: > From: Shannon Zhao > > This patch series generate six ACPI v5.1 tables for machine virt on ARM. > The set of generated tables are: > - RSDP > - RSDT > - MADT > - GTDT > - FADT > - DSDT > - MCFG (For PCIe host bridge) > > These table

Re: [Qemu-devel] [PATCH v5 5/7] vfio-pci: pass the aer error to guest

2015-04-15 Thread Chen Fan
On 04/08/2015 11:36 PM, Alex Williamson wrote: On Wed, 2015-04-08 at 16:59 +0800, Chen Fan wrote: On 04/01/2015 11:46 PM, Alex Williamson wrote: On Wed, 2015-04-01 at 12:12 +0800, Chen Fan wrote: On 03/25/2015 10:41 AM, Alex Williamson wrote: On Wed, 2015-03-25 at 09:53 +0800, Chen Fan wrote

Re: [Qemu-devel] [PATCH V14 0/3] Virtual Machine Generation ID

2015-04-15 Thread Michael S. Tsirkin
On Tue, Mar 03, 2015 at 05:18:12PM +0100, Igor Mammedov wrote: > Changes since v13: > * fix comment style to /*... */ in testcase > * make BAR TARGET_PAGE_SIZE as required by spec > * make BAR prefetchable, spec also says that it shouldn't be >marked as non cached > * ACPI part > * merg

[Qemu-devel] [PATCH] block: document block-stream in qmp-commands.hx

2015-04-15 Thread Stefan Hajnoczi
The 'block-stream' QMP command is documented in block-core.json but not qmp-commands.hx. Add a summary of the command to qmp-commands.hx (similar to the documentation for 'block-commit'). Reported-by: Kashyap Chamarthy Signed-off-by: Stefan Hajnoczi --- qmp-commands.hx | 37 +++

Re: [Qemu-devel] [PATCH v4 00/20] Generate ACPI v5.1 tables and expose it to guest over fw_cfg on ARM

2015-04-15 Thread Shannon Zhao
On 2015/4/15 18:10, Michael S. Tsirkin wrote: > On Fri, Apr 03, 2015 at 06:03:32PM +0800, Shannon Zhao wrote: >> From: Shannon Zhao >> >> This patch series generate six ACPI v5.1 tables for machine virt on ARM. >> The set of generated tables are: >> - RSDP >> - RSDT >> - MADT >> - GTDT >> - FADT >

Re: [Qemu-devel] [PATCH] vhost: fix log base address

2015-04-15 Thread Wen Congyang
On 04/15/2015 05:56 PM, zhanghailiang wrote: > On 2015/4/15 17:37, Michael S. Tsirkin wrote: >> VHOST_SET_LOG_BASE got an incorrect address, causing >> migration errors and potentially even memory corruption. >> >> Cc: Peter Maydell >> Reported-by: Wen Congyang >> Signed-off-by: Michael S. Tsirki

Re: [Qemu-devel] Failing iotests in v2.3.0-rc2 / master

2015-04-15 Thread Jeff Cody
On Tue, Apr 14, 2015 at 11:57:35AM +0200, Kevin Wolf wrote: [snip] > --- a/block/vhdx.c > +++ b/block/vhdx.c > @@ -1285,7 +1285,7 @@ static coroutine_fn int vhdx_co_writev(BlockDriverState > *bs, int64_t sector_num, > iov2.iov_base = qemu_blockalign(bs, iov2.iov_len); >

Re: [Qemu-devel] [V9fs-developer] [Bug 1336794] Re: 9pfs does not honor open file handles on unlinked files

2015-04-15 Thread Dominique Martinet
Eric Van Hensbergen wrote on Mon, Apr 13, 2015 at 04:05:28PM +: > Well, technically fid 3 isn't 'open', only fid 2 is open - at least > according to the protocol. fid 3 and fid 2 are both clones of fid 1. Right, they're clone fids, but nothing in the protocol says what should happen to non-op

[Qemu-devel] [PATCH] qmp-commands: fix incorrect uses of ":O" specifier

2015-04-15 Thread Paolo Bonzini
As far as the QMP parser is concerned, neither the 'O' nor the 'q' format specifiers put any constraint on the command. However, there are two differences: 1) from a documentation point of view 'O' says that this command takes a dictionary. The dictionary will be converted to QemuOpts in the ha

Re: [Qemu-devel] [PATCH 2/2] vhdx: Fix zero-fill iov length

2015-04-15 Thread Jeff Cody
On Wed, Apr 15, 2015 at 11:27:26AM +0200, Kevin Wolf wrote: > Fix the length of the zero-fill for the back, which was accidentally > using the same value as for the front. This is caught by qemu-iotests > 033. > > For consistency, change the code for the front as well to use the length > stored in

Re: [Qemu-devel] [PATCH 1/2] blkdebug: Add bdrv_truncate()

2015-04-15 Thread Jeff Cody
On Wed, Apr 15, 2015 at 11:27:25AM +0200, Kevin Wolf wrote: > This is, amongst others, required for qemu-iotests 033 to run as > intended on VHDX, which uses explicit bdrv_truncate() calls to bs->file > when allocating new blocks. > > Signed-off-by: Kevin Wolf > --- > block/blkdebug.c | 6 ++

Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-argument

2015-04-15 Thread Leon Alrae
On 15/04/2015 10:09, Liviu Ionescu wrote: > Peter/Leon, > > I'm planning for my future releases, and, to avoid incompatible versions, I > would like to help with the semihosting configuration issue, to speed up > things. is there any chance to close this issue in the near future? I'm hoping so

[Qemu-devel] [PATCH v2] qemu-config: Accept empty option values

2015-04-15 Thread Eduardo Habkost
Currently it is impossible to set an option in a config file to an empty string, because the parser matches only lines containing non-empty strings between double-quotes. As sscanf() "[" conversion specifier only matches non-empty strings, add a special case for empty strings. Signed-off-by: Edua

Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-argument

2015-04-15 Thread Matthew Fortune
Leon Alrae writes: > On 15/04/2015 10:09, Liviu Ionescu wrote: > > Peter/Leon, > > > > I'm planning for my future releases, and, to avoid incompatible > versions, I would like to help with the semihosting configuration issue, > to speed up things. is there any chance to close this issue in the nea

Re: [Qemu-devel] [Spice-devel] [PATCH] spice: fix simple display on bigendian hosts

2015-04-15 Thread Gerd Hoffmann
On Di, 2015-04-14 at 17:47 +0300, Denis Kirjanov wrote: > On 4/14/15, Denis Kirjanov wrote: > > On 4/14/15, Denis Kirjanov wrote: > >> On 4/14/15, Gerd Hoffmann wrote: > >>> Denis Kirjanov is busy getting spice run on ppc64 and trapped into this > >>> one. Spice wire format is little endian, so

Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-argument

2015-04-15 Thread Liviu Ionescu
> On 15 Apr 2015, at 14:53, Leon Alrae wrote: > > On 15/04/2015 10:09, Liviu Ionescu wrote: >> Peter/Leon, >> >> I'm planning for my future releases, and, to avoid incompatible versions, I >> would like to help with the semihosting configuration issue, to speed up >> things. is there any chan

Re: [Qemu-devel] [PATCH] qmp-commands: fix incorrect uses of ":O" specifier

2015-04-15 Thread Alberto Garcia
On Wed 15 Apr 2015 01:30:04 PM CEST, Paolo Bonzini wrote: > As far as the QMP parser is concerned, neither the 'O' nor the 'q' > format specifiers put any constraint on the command. However, there > are two differences: > > 1) from a documentation point of view 'O' says that this command takes >

Re: [Qemu-devel] [PATCH] qmp-commands: fix incorrect uses of ":O" specifier

2015-04-15 Thread Paolo Bonzini
On 15/04/2015 14:18, Alberto Garcia wrote: > On Wed 15 Apr 2015 01:30:04 PM CEST, Paolo Bonzini wrote: > >> As far as the QMP parser is concerned, neither the 'O' nor the 'q' >> format specifiers put any constraint on the command. However, there >> are two differences: >> >> 1) from a documenta

Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-argument

2015-04-15 Thread Leon Alrae
On 15/04/2015 13:06, Liviu Ionescu wrote: > >> On 15 Apr 2015, at 14:53, Leon Alrae wrote: >> >> On 15/04/2015 10:09, Liviu Ionescu wrote: >>> Peter/Leon, >>> >>> I'm planning for my future releases, and, to avoid incompatible versions, I >>> would like to help with the semihosting configuration

Re: [Qemu-devel] [PULL 1/1] fw_cfg: add documentation file (docs/specs/fw_cfg.txt)

2015-04-15 Thread Gabriel L. Somlo
Hi Eric, On Tue, Apr 14, 2015 at 06:29:45AM -0600, Eric Blake wrote: > On 04/14/2015 05:27 AM, Gerd Hoffmann wrote: > > From: "Gabriel L. Somlo" > > > > This document covers the guest-side hardware interface, as > > well as the host-side programming API of QEMU's firmware > > configuration (fw_c

Re: [Qemu-devel] [Spice-devel] [PATCH] spice: fix simple display on bigendian hosts

2015-04-15 Thread Denis Kirjanov
On 4/15/15, Gerd Hoffmann wrote: > On Di, 2015-04-14 at 17:47 +0300, Denis Kirjanov wrote: >> On 4/14/15, Denis Kirjanov wrote: >> > On 4/14/15, Denis Kirjanov wrote: >> >> On 4/14/15, Gerd Hoffmann wrote: >> >>> Denis Kirjanov is busy getting spice run on ppc64 and trapped into >> >>> this >>

Re: [Qemu-devel] [PATCH RFC 19/19] qapi: New QMP command query-schema for QMP schema introspection

2015-04-15 Thread Eric Blake
On 04/15/2015 03:16 AM, Alberto Garcia wrote: > On Sat 11 Apr 2015 01:06:58 AM CEST, Eric Blake wrote: > >>> +{ 'type': 'SchemaInfoEnum', >>> + 'data': { 'values': ['str'] } } >> >> At one point, one thread suggested that we might want to allow QAPI to >> support enums with fixed values, as in:

[Qemu-devel] virtio-blk and virtio-scsi performance comparison

2015-04-15 Thread Konstantin Krotov
Hello list! I performed tests with fio and obtained results: *** virtio-scsi with cache=none, io=threads, blok device is md-device from mdadm raid1, random r/w, 32 thread from guest (debian, kernel 3.16): fio fio1 readtest: (g=0): rw=randrw, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=32

[Qemu-devel] [PATCH] migration: avoid divide by zero in xbzrle cache miss rate

2015-04-15 Thread Michael Chapman
This bug manifested itself as a VM that could not be resumed by libvirt following a migration: # virsh resume example error: Failed to resume domain example error: internal error: cannot parse json {"return": {"xbzrle-cache": {..., "cache-miss-rate": -nan, ...}, ... } }

[Qemu-devel] Inter-guest communication using VirtIO

2015-04-15 Thread Mauricio Vásquez
Hi all, I'm trying to realize if there is an implementation of direct Inter-guest network communication using VirtIO for QEMU/KVM. I found that there is an implementation for lguest http://lists.ozlabs.org/pipermail/lguest/2008-March/001064.html and somebody already discussed something similar her

Re: [Qemu-devel] glusterfs-api.pc versioning breaks QEMU

2015-04-15 Thread Niels de Vos
On Thu, Apr 09, 2015 at 06:12:38PM +0200, Andreas Färber wrote: > Hello, Hi! Sorry for the late response, I'm travelling and have a rather full agenda. > Testing QEMU v2.3.0-rc2, I have run into QEMU's glusterfs support being > broken on openSUSE Tumbleweed, resulting in its configure complainin

Re: [Qemu-devel] [v7][PATCH 03/10] piix: create host bridge to passthrough

2015-04-15 Thread eraul_cn
Chen, Tiejun wrote > +/* Here we just expose minimal host bridge offset subset. */ > +static const IGDHostInfo igd_host_bridge_infos[] = { > +{0x08, 2}, /* revision id */ > +{0x2c, 2}, /* sybsystem vendor id */ > +{0x2e, 2}, /* sybsystem id */ > +{0x50, 2}, /* SNB: processor gra

Re: [Qemu-devel] [PATCH v2] qemu-config: Accept empty option values

2015-04-15 Thread Eric Blake
On 04/15/2015 05:59 AM, Eduardo Habkost wrote: > Currently it is impossible to set an option in a config file to an empty > string, because the parser matches only lines containing non-empty > strings between double-quotes. > > As sscanf() "[" conversion specifier only matches non-empty strings, a

Re: [Qemu-devel] [PATCH] block: document block-stream in qmp-commands.hx

2015-04-15 Thread Eric Blake
On 04/15/2015 04:43 AM, Stefan Hajnoczi wrote: > The 'block-stream' QMP command is documented in block-core.json but not > qmp-commands.hx. Add a summary of the command to qmp-commands.hx > (similar to the documentation for 'block-commit'). > > Reported-by: Kashyap Chamarthy > Signed-off-by: Ste

Re: [Qemu-devel] [PATCH] block: document block-stream in qmp-commands.hx

2015-04-15 Thread Max Reitz
On 15.04.2015 12:43, Stefan Hajnoczi wrote: The 'block-stream' QMP command is documented in block-core.json but not qmp-commands.hx. Add a summary of the command to qmp-commands.hx (similar to the documentation for 'block-commit'). Reported-by: Kashyap Chamarthy Signed-off-by: Stefan Hajnoczi

Re: [Qemu-devel] [PATCH 3/3] block: add 'node-name' field to BLOCK_IMAGE_CORRUPTED

2015-04-15 Thread Max Reitz
On 08.04.2015 11:29, Alberto Garcia wrote: Since this event can occur in nodes that cannot have a device name associated, include also a field with the node name. Signed-off-by: Alberto Garcia --- block/qcow2.c | 8 ++-- docs/qmp/qmp-events.txt | 21 + qap

[Qemu-devel] [PATCH v5 09/20] hw/arm/virt-acpi-build: Generate GTDT table

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao ACPI v5.1 defines GTDT for ARM devices as a place to describe timer related information in the system. The Arch Timer interrupts must be provided for GTDT. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c| 30 +

[Qemu-devel] [PATCH v5 10/20] hw/arm/virt-acpi-build: Generate RSDT table

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao RSDT points to other tables FADT, MADT, GTDT. This code is shared with x86. Here we still use RSDT as UEFI puts ACPI tables below 4G address space, and UEFI ignore the RSDT or XSDT. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 2

[Qemu-devel] [PATCH v5 11/20] hw/arm/virt-acpi-build: Generate RSDP table

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao RSDP points to RSDT which in turn points to other tables. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée --- hw/arm/virt-acpi-build.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/h

[Qemu-devel] [PATCH v5 12/20] hw/arm/virt-acpi-build: Add PCIe info and generate MCFG table

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Add PCIe info struct, prepare for building PCIe table. And generate MCFG table. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c | 21 + include/hw/arm/virt-acpi-build.h | 9 + 2 files changed, 30 inse

[Qemu-devel] [PATCH v5 13/20] hw/acpi/aml-build: Add ToUUID macro

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Add ToUUID macro, this is useful for generating PCIe ACPI table. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 40 include/hw/acpi/aml-build.h | 1 + 2 files changed, 41 insertions(+) dif

[Qemu-devel] [PATCH v5 14/20] hw/acpi/aml-build: Add aml_or() term

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Add aml_or() term and expose build_append_int_noprefix as it wiil be used by creating a buffer. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 12 +++- include/hw/acpi/aml-build.h | 2 ++ 2 files changed, 13 insertions(+),

[Qemu-devel] [PATCH v5 16/20] hw/acpi/aml-build: Add aml_else() term

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée --- hw/acpi/aml-build.c | 7 +++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 8 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 139099f..179acda 1

[Qemu-devel] [PATCH v5 20/20] hw/arm/virt: Enable dynamic generation of ACPI v5.1 tables

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Expose the needed device information to the table generation insfrastructure and register a machine_init_done notify to call virt_acpi_build(). Add CONFIG_ACPI to arm-softmmu.mak. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- default-configs/arm-softmmu.mak

[Qemu-devel] [PATCH v5 08/20] hw/arm/virt-acpi-build: Generate MADT table

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao MADT describes GIC enabled ARM platforms. The GICC and GICD subtables are used to define the GIC regions. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée --- hw/arm/virt-acpi-build.c | 61 in

[Qemu-devel] [PATCH v5 15/20] hw/acpi/aml-build: Add aml_not() term

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée --- hw/acpi/aml-build.c | 9 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 10 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index cd4ffe2..139099

[Qemu-devel] [PATCH v5 07/20] hw/arm/virt-acpi-build: Generate FADT table and update ACPI headers

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao In the case of mach virt, it is used to set the Hardware Reduced bit and enable PSCI SMP booting through HVC. So ignore FACS and FADT points to DSDT. Update the header definitions for FADT taking into account the new additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h` Sig

[Qemu-devel] [PATCH v5 00/20] Generate ACPI v5.1 tables and expose them to guest over fw_cfg on ARM

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao This patch series generate seven ACPI tables for machine virt on ARM. The set of generated tables are: - RSDP - RSDT - MADT - GTDT - FADT - DSDT - MCFG (For PCIe host bridge) These tables are created dynamically using the function of aml-build.c, taking into account the needed

[Qemu-devel] [PATCH v5 19/20] hw/arm/virt-acpi-build: Add PCIe controller in ACPI DSDT table

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Add PCIe controller in ACPI DSDT table, so the guest can detect the PCIe. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c | 152 +++ 1 file changed, 152 insertions(+) diff --git a/hw/arm/virt-

[Qemu-devel] [PATCH v5 18/20] hw/acpi/aml-build: Add aml_dword_io() term

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée --- hw/acpi/aml-build.c | 18 ++ include/hw/acpi/aml-build.h | 5 + 2 files changed, 23 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index

[Qemu-devel] [PATCH v5 05/20] hw/acpi/aml-build: Add aml_interrupt() term

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Add aml_interrupt() for describing device interrupt in resource template. These can be used to generating DSDT table for ACPI on ARM. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 28 + include/hw/acpi/aml-

[Qemu-devel] [PATCH v5 01/20] hw/i386: Move ACPI header definitions in an arch-independent location

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao The ACPI related header file acpi-defs.h, includes definitions that apply on other architectures as well. Move it in `include/hw/acpi/` to sanely include it from other architectures. Signed-off-by: Alvise Rigo Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/

[Qemu-devel] [PATCH v5 04/20] hw/acpi/aml-build: Add aml_memory32_fixed() term

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Add aml_memory32_fixed() for describing device mmio region in resource template. These can be used to generating DSDT table for ACPI on ARM. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 27 +++ include/hw/

[Qemu-devel] [PATCH v5 17/20] hw/acpi/aml-build: Add aml_create_dword_field() term

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao Reviewed-by: Alex Bennée --- hw/acpi/aml-build.c | 11 +++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 12 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 179acda..eb

[Qemu-devel] [PATCH v5 02/20] hw/i386/acpi-build: move generic acpi building helpers into dedictated file

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Move generic acpi building helpers into dedictated file and this can be shared with other machines. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 58 ++ hw/i386/acpi-build.c| 77

[Qemu-devel] [PATCH v5 03/20] hw/arm/virt-acpi-build: Basic framework for building ACPI tables on ARM

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao Introduce a preliminary framework in virt-acpi-build.c with the main ACPI build functions. It exposes the generated ACPI contents to guest over fw_cfg. The required ACPI v5.1 tables for ARM are: - RSDP: Initial table that points to XSDT - RSDT: Points to FADT GTDT MADT tables

[Qemu-devel] [PATCH v5 06/20] hw/arm/virt-acpi-build: Generation of DSDT table for virt devices

2015-04-15 Thread Shannon Zhao
From: Shannon Zhao DSDT consists of the usual common table header plus a definition block in AML encoding which describes all devices in the platform. After initializing DSDT with header information the namespace is created which is followed by the device encodings. The devices are described usi

Re: [Qemu-devel] [PATCH 1/2] q35: implement SMRAM.D_LCK

2015-04-15 Thread Gerd Hoffmann
On Di, 2015-04-14 at 16:35 +0200, Paolo Bonzini wrote: > > On 14/04/2015 15:12, Gerd Hoffmann wrote: > > Signed-off-by: Gerd Hoffmann > > --- > > hw/pci-host/q35.c | 17 - > > 1 file changed, 16 insertions(+), 1 deletion(-) > > > > diff --git a/hw/pci-host/q35.c b/hw/pci-host/q3

Re: [Qemu-devel] [PATCH V14 0/3] Virtual Machine Generation ID

2015-04-15 Thread Igor Mammedov
On Wed, 15 Apr 2015 12:38:57 +0200 "Michael S. Tsirkin" wrote: > On Tue, Mar 03, 2015 at 05:18:12PM +0100, Igor Mammedov wrote: > > Changes since v13: > > * fix comment style to /*... */ in testcase > > * make BAR TARGET_PAGE_SIZE as required by spec > > * make BAR prefetchable, spec also says

Re: [Qemu-devel] [PATCH 1/2] q35: implement SMRAM.D_LCK

2015-04-15 Thread Gerd Hoffmann
Hi, > > d->config[MCH_HOST_BRIDGE_SMRAM] = MCH_HOST_BRIDGE_SMRAM_DEFAULT; > > +d->wmask[MCH_HOST_BRIDGE_SMRAM] = 0xff; > > Is this right? I see a bunch of reserved bits etc there. Restores the state we had before the guest flipped the lock bit. Entriely possible that we should have a

Re: [Qemu-devel] [PULL for-2.3 0/1] fw_cfg: add documentation file (docs/specs/fw_cfg.txt)

2015-04-15 Thread Michael S. Tsirkin
On Tue, Apr 14, 2015 at 12:34:02PM +0100, Peter Maydell wrote: > On 14 April 2015 at 12:27, Gerd Hoffmann wrote: > > Hi, > > > > Damn, wanted to sent this out last week, then forgot, so it missed -rc3. > > But it is a documentation-only change, so it should still be fine for > > 2.3, right? > >

Re: [Qemu-devel] [PATCH] xen-pt: Fix bug cause PCI devices re-attach failed

2015-04-15 Thread Li, Liang Z
> On 13/04/2015 16:12, Liang Li wrote: > > 2. Do the attach and detach operation with a time interval. eg. 10s. > > > > The error message will not disappear if retry, in this case, it's > > a bug. > > > > In the 'xen_pt_region_add' and 'xen_pt_region_del', we should only > > care about

Re: [Qemu-devel] [PATCH] xen-pt: Fix bug cause PCI devices re-attach failed

2015-04-15 Thread Paolo Bonzini
On 15/04/2015 16:14, Li, Liang Z wrote: > Yes, it's the right place. Put aside the bug fix, I think the > memory_region_ref/unref pair > should be move to xen_pt_region_update after the conditional as you point > out. > Do you think so? It would make sense, but I was just guessing... I'm s

Re: [Qemu-devel] [V9fs-developer] [Bug 1336794] Re: 9pfs does not honor open file handles on unlinked files

2015-04-15 Thread Eric Van Hensbergen
good to know, thanks dominique. I gave it a sniff test with FSX and a few other benchmarks, but I need to hit it with some multithreaded regressions. Any pointers to reproducible failure cases would be beneficial. On Wed, Apr 15, 2015 at 6:28 AM Dominique Martinet < dominique.marti...@cea.fr> wr

  1   2   >