Re: [Qemu-devel] [update][PATCH 00/16] minimally change gen_intermediate_code_internal functio

2013-04-10 Thread li guang
I would like to say this manual code writing optimization may be mostly done by compiler's optimization work, so one may view these changes as unnecessary, but I think it's not the execute to do not blame the code. 在 2013-04-11四的 14:31 +0800,li guang写道: > this patch-set is v2 of previous 'transl

[Qemu-devel] [Bug 1127369] Re: i386 emulation unreliable since commit b76f0d8c2e3eac94bc7fd90a510cb7426b2a2699

2013-04-10 Thread Andreas Gustafsson
Now that bug 1154328 has been fixed, the NetBSD OS test suite successfully starts, but it still does not work as expected; actually things have gone from bad to worse. Every test run since the 1154328 fix has either timed out after running only a fraction of the tests, or has ended in a guest ker

[Qemu-devel] SoftFloat licensing in Linux kernel

2013-04-10 Thread Stefan Hajnoczi
http://lwn.net/Articles/546840/ QEMU uses the John Hauser's SoftFloat library. It seems the matter isn't settled yet in Linux but the FSF says the license is incompatible with GPLv2. Something to keep an eye on. Stefan

Re: [Qemu-devel] [PATCH] translate: cleanup gen_intermediate_code_internal

2013-04-10 Thread li guang
Yes, Thanks! 在 2013-04-11四的 08:23 +0200,Paolo Bonzini写道: > Il 11/04/2013 04:11, li guang ha scritto: > >> > I don't care if the compiler doesn't complain (though I doubt it > >> > doesn't; are you using --enable-debug? > > absolutely yes. > > > > Ok, here is the problem. > > --enable-debug disa

Re: [Qemu-devel] [PATCH V11 13/17] block: dump to buffer for bdrv_snapshot_dump() and bdrv_image_info_dump()

2013-04-10 Thread Wenchao Xia
>> >> -void bdrv_image_info_dump(ImageInfo *info) >> +void bdrv_image_info_dump(GString *buf, ImageInfo *info) >> { >> char size_buf[128], dsize_buf[128]; >> if (!info->has_actual_size) { >> @@ -370,43 +369,48 @@ void bdrv_image_info_dump(ImageInfo *info) > > I don't like this cha

[Qemu-devel] [update][PATCH 16/16] target-xtensa/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-xtensa/translate.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 06d68db..dbceeb8 100644 --- a/target-xtensa/translate.c +++ b/target-xtensa/translate.c @@ -2927,9 +2927,

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 12/13] updated protocol documentation

2013-04-10 Thread Paolo Bonzini
Il 11/04/2013 00:28, mrhi...@linux.vnet.ibm.com ha scritto: > + > +(Thanks, Paolo - things look much cleaner now.) I agree! No need to immortalize me in the docs, though. :) Paolo

[Qemu-devel] [update][PATCH 12/16] target-s390/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-s390x/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index 0c3cf68..72a9c5e 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -4776,9 +4776,8

[Qemu-devel] [update][PATCH 15/16] target-unicore32/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-unicore32/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c index 151e35e..60701bd 100644 --- a/target-unicore32/translate.c +++ b/target-unicore32/translate.c

Re: [Qemu-devel] [PATCH v18 3/7] introduce a new qom device to deal with panicked event

2013-04-10 Thread Hu Tao
Hi, On Wed, Apr 10, 2013 at 01:54:04PM +0200, Markus Armbruster wrote: > Hu Tao writes: > > > pvpanic device is used to send guest panic event from guest to qemu. > > > > When guest panic happens, pvpanic device driver will write a event > > number to IO port 0x505(which is the IO port occupied

[Qemu-devel] [update][PATCH 10/16] target-openrisc/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-openrisc/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-openrisc/translate.c b/target-openrisc/translate.c index 0eafd02..f6a933d 100644 --- a/target-openrisc/translate.c +++ b/target-openrisc/translate.c @@ -

[Qemu-devel] [update][PATCH 13/16] target-sh4/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-sh4/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 14fdb8f..deea3bf 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -1891,9 +1891,9 @@ gen_i

[Qemu-devel] [update][PATCH 09/16] target-moxie/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-moxie/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-moxie/translate.c b/target-moxie/translate.c index cc02bd3..992e44d 100644 --- a/target-moxie/translate.c +++ b/target-moxie/translate.c @@ -856,9 +856,8 @@

[Qemu-devel] [update][PATCH 11/16] target-ppc/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-ppc/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 5e741d1..829f30a 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -9565,9 +9565,9 @@ stati

[Qemu-devel] [update][PATCH 07/16] target-m68k/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-m68k/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 32b8132..983a799 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -3023,9 +3023,9 @@

[Qemu-devel] [update][PATCH 14/16] target-sparc/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-sparc/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index eb6e800..f3036ff 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -5267,9 +5267,

[Qemu-devel] [update][PATCH 06/16] target-cris/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-cris/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-cris/translate.c b/target-cris/translate.c index dbcb811..6f38f1b 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -3258,9 +3258,8 @@ ge

[Qemu-devel] [update][PATCH 08/16] target-microblaze/translate: minimally change gen_intermediate_code_interna

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-microblaze/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 06d2346..aaeeab1 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/tran

[Qemu-devel] [update][PATCH 04/16] target-mips/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-mips/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index b7f8203..7d2baab 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -15595,9 +15595,9 @

[Qemu-devel] [update][PATCH 05/16] target-alpha/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-alpha/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 4db16db..589f6a1 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -3425,9 +3425,

[Qemu-devel] [update][PATCH 02/16] target-lm32/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-lm32/translate.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/target-lm32/translate.c b/target-lm32/translate.c index af9ce8c..9f37f3d 100644 --- a/target-lm32/translate.c +++ b/target-lm32/translate.c @@ -1052,9 +1052,8 @@ st

[Qemu-devel] [update][PATCH 03/16] target-arm/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-arm/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 35a21be..e61f661 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -9889,9 +9889,9 @@ stati

[Qemu-devel] [update][PATCH 01/16] target-i386/translate: minimally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-i386/translate.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index 7596a90..f99aa69 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -8338,9 +8338,9 @@

[Qemu-devel] [update][PATCH 00/16] minimally change gen_intermediate_code_internal functio

2013-04-10 Thread li guang
this patch-set is v2 of previous 'translate: cleanup gen_intermediate_code_internal patch' v2: Keep variable 'num_insns' initailization spotted by 陳韋任 (Wei-Ren Chen) update: 1. correct miss-spelled word 'mini*ally' 2. change second place just like first here are instructions in the

Re: [Qemu-devel] [PATCH V11 12/17] block: move bdrv_snapshot_dump() and dump_human_image_info() to block/qapi.c

2013-04-10 Thread Wenchao Xia
于 2013-4-11 0:49, Markus Armbruster 写道: > Wenchao Xia writes: > >>They are needed later in hmp command, dump_human_image_info() >> is renamed to bdrv_image_info_dump(). >> >> Signed-off-by: Wenchao Xia > > I'd be tempted move everything that needs to move to block/qapi.c in one > go. > T

Re: [Qemu-devel] [RFC PATCH 4/6] audio: remove CONFIG_* symbols

2013-04-10 Thread Paolo Bonzini
Il 10/04/2013 19:45, Andreas Färber ha scritto: >> Signed-off-by: Paolo Bonzini > Could this patch be squashed into 2/6? Or does it depend on anything > else - commit message doesn't indicate. I prefer to keep separate things separate, 2/6 is already quite large. Paolo

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 11/13] send pc.ram over RDMA

2013-04-10 Thread Paolo Bonzini
Il 11/04/2013 00:28, mrhi...@linux.vnet.ibm.com ha scritto: > > +#ifdef CONFIG_RDMA > +int qemu_rdma_registration_start(QEMUFile *f, void *opaque, uint32_t flags) > +{ > +DPRINTF("start section: %d\n", flags); > +qemu_put_be64(f, RAM_SAVE_FLAG_HOOK); > +return 0; > +} > +#endif > T

Re: [Qemu-devel] [PATCH V11 11/17] qmp: add ImageInfo in BlockDeviceInfo used by query-block

2013-04-10 Thread Wenchao Xia
于 2013-4-11 2:57, Luiz Capitulino 写道: On Wed, 10 Apr 2013 18:17:04 +0200 Markus Armbruster wrote: Stefan Hajnoczi writes: On Tue, Apr 02, 2013 at 07:47:24PM +0800, Wenchao Xia wrote: diff --git a/qmp-commands.hx b/qmp-commands.hx index 6b20684..b856be7 100644 --- a/qmp-commands.hx +++ b/qm

Re: [Qemu-devel] [PATCH] translate: cleanup gen_intermediate_code_internal

2013-04-10 Thread Paolo Bonzini
Il 11/04/2013 04:11, li guang ha scritto: >> > I don't care if the compiler doesn't complain (though I doubt it >> > doesn't; are you using --enable-debug? > absolutely yes. > Ok, here is the problem. --enable-debug disables optimization. It will disable some warnings that the compiler only pro

Re: [Qemu-devel] [PATCH V11 11/17] qmp: add ImageInfo in BlockDeviceInfo used by query-block

2013-04-10 Thread Wenchao Xia
>> "bps_wr":0, >> "iops":100, >> "iops_rd":0, >> "iops_wr":0, >> + "image":{ >> + "filename":"disks/test.img", > > Please change to "disks/test.qcow2". I don't want people to get the > idea th

Re: [Qemu-devel] [Autotest] [RFC] Autotest Project Weekly Hangout

2013-04-10 Thread Amos Kong
CC: qemu-devel, kvm, libvirt-list On Thu, Apr 11, 2013 at 4:43 AM, Lucas Meneghel Rodrigues wrote: > Hi guys, > > I'd like to propose yet another hipster-y initiative: A weekly hangout, > where contributors from all affiliations that work on autotest/virt-tests > or any project under the autotes

[Qemu-devel] Lost network with rtl8139 / qemu-kvm 1.2.0

2013-04-10 Thread Peter Lieven
Hi all, I have a strange problem with a few old VMs running with Windows XP (and in this case a Win2008 R2 Server) that occasionally loose network connectivity. The tap device shows increasing drops: tap36 Link encap:Ethernet HWaddr b2:84:23:c0:e2:c0 inet6 addr: fe80::b084:23ff:f

Re: [Qemu-devel] [PATCH V11 10/17] qmp: add recursive member in ImageInfo

2013-04-10 Thread Wenchao Xia
于 2013-4-11 0:06, Markus Armbruster 写道: > Wenchao Xia writes: > >>New member *backing-image is added to reflect the backing chain >> status. >> >> Signed-off-by: Wenchao Xia >> Reviewed-by: Kevin Wolf >> Reviewed-by: Eric Blake >> --- >> block/qapi.c |6 +- >> qapi-schema.js

Re: [Qemu-devel] [PATCH V11 09/17] qmp: add interface query-snapshots

2013-04-10 Thread Wenchao Xia
>> # Statistics of a virtual block device or a block backing device. >> diff --git a/qmp-commands.hx b/qmp-commands.hx >> index 1e0e11e..6b20684 100644 >> --- a/qmp-commands.hx >> +++ b/qmp-commands.hx >> @@ -1765,6 +1765,61 @@ EQMP >> }, >> >> SQMP >> +query-snapshots >> +---

Re: [Qemu-devel] [PATCH V11 07/17] block: add image info query function bdrv_query_image_info()

2013-04-10 Thread Wenchao Xia
于 2013-4-10 23:28, Markus Armbruster 写道: > Wenchao Xia writes: > >>This patch adds function bdrv_query_image_info(), which will >> retrieve image info in qmp object format. The implementation is >> based on the code moved from qemu-img.c, but uses block layer >> function to get snapshot info.

Re: [Qemu-devel] [PATCH V11 06/17] block: add check for VM snapshot in bdrv_query_snapshot_info_list()

2013-04-10 Thread Wenchao Xia
于 2013-4-10 23:19, Markus Armbruster 写道: > Wenchao Xia writes: > >>This patch adds a parameter to tell whether return valid snapshots >> for whole VM only. >> >> Signed-off-by: Wenchao Xia >> Reviewed-by: Eric Blake >> Reviewed-by: Kevin Wolf >> --- >> block/qapi.c | 39 +++

Re: [Qemu-devel] [PATCH 00/16] minially change gen_intermediate_code_internal function

2013-04-10 Thread li guang
Oh, sorry, minially -> minimally 在 2013-04-11四的 11:41 +0800,li guang写道: > here are instructions in the finial qemu-system-x86 > before and after my chanage, you can easily find a > redundant 'addl' was removed > > this patch-set is v2 of previous 'translate: cleanup > gen_intermediate_code_inte

[Qemu-devel] [PATCH 16/16] target-xtensa/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-xtensa/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 06d68db..0b4c0bf 100644 --- a/target-xtensa/translate.c +++ b/target-xtensa/translate.c @@ -2927,9 +2927,8

[Qemu-devel] [PATCH 15/16] target-unicore32/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-unicore32/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c index 151e35e..f887de6 100644 --- a/target-unicore32/translate.c +++ b/target-unicore32/translate.c @@ -

[Qemu-devel] [PATCH 12/16] target-s390/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-s390x/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-s390x/translate.c b/target-s390x/translate.c index 0c3cf68..93ad178 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -4776,9 +4776,8 @@ st

[Qemu-devel] [PATCH 13/16] target-sh4/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-sh4/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 14fdb8f..22d9112 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -1891,9 +1891,9 @@ gen_interme

[Qemu-devel] [PATCH 14/16] target-sparc/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-sparc/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index eb6e800..f04b95f 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -5267,9 +5267,9 @@ s

[Qemu-devel] [PATCH 07/16] target-m68k/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-m68k/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-m68k/translate.c b/target-m68k/translate.c index 32b8132..9469a55 100644 --- a/target-m68k/translate.c +++ b/target-m68k/translate.c @@ -3023,9 +3023,9 @@ gen_in

[Qemu-devel] [PATCH 09/16] target-moxie/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-moxie/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-moxie/translate.c b/target-moxie/translate.c index cc02bd3..0258eb5 100644 --- a/target-moxie/translate.c +++ b/target-moxie/translate.c @@ -856,9 +856,8 @@ gen_

[Qemu-devel] [PATCH 10/16] target-openrisc/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-openrisc/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-openrisc/translate.c b/target-openrisc/translate.c index 0eafd02..dab0aa2 100644 --- a/target-openrisc/translate.c +++ b/target-openrisc/translate.c @@ -1703,

[Qemu-devel] [PATCH 02/16] target-lm32/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-lm32/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-lm32/translate.c b/target-lm32/translate.c index af9ce8c..171bff8 100644 --- a/target-lm32/translate.c +++ b/target-lm32/translate.c @@ -1052,9 +1052,8 @@ static

[Qemu-devel] [PATCH 04/16] target-mips/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-mips/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index b7f8203..099d89f 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -15595,9 +15595,9 @@ gen_

[Qemu-devel] [PATCH 11/16] target-ppc/translate: mininally change gen_intermediate_code_internal Signed-off-by: liguang

2013-04-10 Thread liguang
--- target-ppc/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 5e741d1..cbdcb84 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -9565,9 +9565,9 @@ static inline void gen_intermediat

[Qemu-devel] [PATCH 06/16] target-cris/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-cris/translate.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/target-cris/translate.c b/target-cris/translate.c index dbcb811..a1016be 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -3258,9 +3258,8 @@ gen_int

[Qemu-devel] [PATCH 03/16] target-arm/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-arm/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 35a21be..cede1b8 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -9889,9 +9889,9 @@ static inli

[Qemu-devel] [PATCH 08/16] target-microblaze/translate: mininally change gen_intermediate_code_interna

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-microblaze/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-microblaze/translate.c b/target-microblaze/translate.c index 06d2346..402667d 100644 --- a/target-microblaze/translate.c +++ b/target-microblaze/translate.

[Qemu-devel] [PATCH 05/16] target-alpha/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-alpha/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index 4db16db..4b4320a 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -3425,9 +3425,9 @@ s

[Qemu-devel] [PATCH 01/16] target-i386/translate: mininally change gen_intermediate_code_internal

2013-04-10 Thread liguang
Signed-off-by: liguang --- target-i386/translate.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index 7596a90..74385c8 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -8338,9 +8338,9 @@ static

[Qemu-devel] [PATCH 00/16] minially change gen_intermediate_code_internal function

2013-04-10 Thread li guang
here are instructions in the finial qemu-system-x86 before and after my chanage, you can easily find a redundant 'addl' was removed this patch-set is v2 of previous 'translate: cleanup gen_intermediate_code_internal patch' v2: Keep variable 'num_insns' initailization spotted by 陳韋任 (Wei-Ren

Re: [Qemu-devel] [PATCH V11 05/17] block: add snapshot info query function bdrv_query_snapshot_info_list()

2013-04-10 Thread Wenchao Xia
于 2013-4-10 23:11, Markus Armbruster 写道: > Eric Blake writes: > >> On 04/02/2013 05:47 AM, Wenchao Xia wrote: >>>This patch adds function bdrv_query_snapshot_info_list(), which will >>> retrieve snapshot info of an image in qmp object format. The implementation >>> is based on the code moved

Re: [Qemu-devel] [PATCH V11 02/17] block: distinguish id and name in bdrv_find_snapshot()

2013-04-10 Thread Wenchao Xia
于 2013-4-10 23:21, Markus Armbruster 写道: > Wenchao Xia writes: > >>To make it clear about id and name in searching, the API is changed >> a bit to distinguish them, and caller can choose to search by id or name. >> Searching will be done with higher priority of id. This function also >> retur

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 10/13] introduce new command migrate_check_for_zero

2013-04-10 Thread Michael R. Hines
On 04/10/2013 10:26 PM, Eric Blake wrote: +# +# @value: on|off +# +# Returns: nothing on success +# +# Since: 1.5.0 +## +{ 'command': 'migrate_check_for_zero', 'data': {'value': 'bool'} } You can set the capability, but how do you query its current setting? I dislike write-only interfaces.

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 12/13] updated protocol documentation

2013-04-10 Thread Michael R. Hines
Great comments, thanks. On 04/10/2013 10:43 PM, Eric Blake wrote: On 04/10/2013 04:28 PM, mrhi...@linux.vnet.ibm.com wrote: From: "Michael R. Hines" Full documentation on the rdma protocol: docs/rdma.txt Signed-off-by: Michael R. Hines --- docs/rdma.txt | 331

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 12/13] updated protocol documentation

2013-04-10 Thread Eric Blake
On 04/10/2013 04:28 PM, mrhi...@linux.vnet.ibm.com wrote: > From: "Michael R. Hines" > > Full documentation on the rdma protocol: docs/rdma.txt > > Signed-off-by: Michael R. Hines > --- > docs/rdma.txt | 331 > + > 1 file changed, 331 i

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 07/13] introduce capability for dynamic chunk registration

2013-04-10 Thread Michael R. Hines
Acknowledged. On 04/10/2013 10:24 PM, Eric Blake wrote: On 04/10/2013 04:28 PM, mrhi...@linux.vnet.ibm.com wrote: From: "Michael R. Hines" This capability allows you to disable dynamic chunk registration for better throughput on high-performance links. It is enabled by default. Actually, it

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 10/13] introduce new command migrate_check_for_zero

2013-04-10 Thread Michael R. Hines
On 04/10/2013 10:26 PM, Eric Blake wrote: New QMP commands should be named with '-' rather than '_', as in 'migrate-check-for-zero'. Why do we need a new command, instead of adding a new capability to the already-existing capability command? Orit told me to convert the capability to a comman

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 10/13] introduce new command migrate_check_for_zero

2013-04-10 Thread Eric Blake
On 04/10/2013 04:28 PM, mrhi...@linux.vnet.ibm.com wrote: > From: "Michael R. Hines" > > This allows the user to disable zero page checking during migration > > Signed-off-by: Michael R. Hines > --- > +++ b/qapi-schema.json > @@ -1792,6 +1792,19 @@ > { 'command': 'migrate_set_downtime', 'data

Re: [Qemu-devel] [RFC PATCH RDMA support v1: 07/13] introduce capability for dynamic chunk registration

2013-04-10 Thread Eric Blake
On 04/10/2013 04:28 PM, mrhi...@linux.vnet.ibm.com wrote: > From: "Michael R. Hines" > > This capability allows you to disable dynamic chunk registration > for better throughput on high-performance links. > > It is enabled by default. Actually, it isn't enabled until 8/13 - I'd squash 7 and 8 t

Re: [Qemu-devel] [PATCH v3] hw/i386/pc: prompt not multboot or morden kernel image

2013-04-10 Thread li guang
在 2013-04-09二的 14:15 -0500,Jesse Larrew写道: > On 04/09/2013 12:05 AM, li guang wrote: > > 在 2013-04-08一的 23:36 -0500,Jesse Larrew写道: > >> On 04/08/2013 09:27 PM, liguang wrote: > >>> if head magic is missing or wrong unexpectedly, we'd > >>> better to prompt memssage for this. > >>> e.g. > >>> I mak

Re: [Qemu-devel] [PATCH] translate: optimize gen_intermediate_code_internal

2013-04-10 Thread li guang
在 2013-04-09二的 17:20 +0800,陳韋任 (Wei-Ren Chen)写道: > Hi liguang, > > On Tue, Apr 09, 2013 at 04:21:10PM +0800, li guang wrote: > > 在 2013-04-09二的 10:11 +0200,Paolo Bonzini写道: > > > Il 09/04/2013 10:05, 陳韋任 (Wei-Ren Chen) ha scritto: > > > > Hi liguang, > > > > > > > > Just to be curious, how much

Re: [Qemu-devel] [PATCH] translate: cleanup gen_intermediate_code_internal

2013-04-10 Thread li guang
在 2013-04-10三的 11:54 +0200,Paolo Bonzini写道: > Il 10/04/2013 09:55, li guang ha scritto: > > 在 2013-04-10三的 09:44 +0200,Paolo Bonzini写道: > >> Il 10/04/2013 05:30, liguang ha scritto: > >>> Signed-off-by: liguang > >>> --- > >>> target-arm/translate.c | 17 - > >>> target-i386/tr

Re: [Qemu-devel] [PATCH][RFC v2 3/7] vl: create power chip device

2013-04-10 Thread li guang
在 2013-04-10三的 15:52 +0200,Paolo Bonzini写道: > Il 10/04/2013 15:41, guang li ha scritto: > > Yes, you're right. > > The motivation is I want to implement a device > > called EC which is a notion from laptop for QEMU, > > EC has some main functions, like keyboard, mouse, > > low-speed device control(

Re: [Qemu-devel] [RFC PATCH RDMA support v7: 00/13] rdma cleanup and reordering

2013-04-10 Thread Michael R. Hines
Don't know why it says "v1" in the other subject lines - please ignore. On 04/10/2013 06:28 PM, mrhi...@linux.vnet.ibm.com wrote: From: "Michael R. Hines" Changes since v6: (Thanks, Paolo - things look much cleaner now.) - Try to get patch-ordering correct =) - Much cleaner use of QEMUFileOp

[Qemu-devel] [RFC PATCH RDMA support v1: 03/13] RDMA is enabled by default per the usual ./configure testing.

2013-04-10 Thread mrhines
From: "Michael R. Hines" Only one new file is added in the patch now (migration-rdma.c), which is conditionalized by CONFIG_RDMA. Signed-off-by: Michael R. Hines --- Makefile.objs |1 + configure | 29 + 2 files changed, 30 insertions(+) diff --git a/Make

[Qemu-devel] [RFC PATCH RDMA support v1: 13/13] print out migration throughput while debugging

2013-04-10 Thread mrhines
From: "Michael R. Hines" It's very helpful when debugging to print out migration throughput after each iteration round to compare the different migration technologies. Signed-off-by: Michael R. Hines --- migration.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a

[Qemu-devel] [RFC PATCH RDMA support v1: 11/13] send pc.ram over RDMA

2013-04-10 Thread mrhines
From: "Michael R. Hines" This takes advantages of the previous patches: 1. use the new QEMUFileOps hook 'save_page' and return ENOTSUP if not supported. 2. call out to the right accessor methods to invoke the iteration hooks defined in QEMUFileOps Signed-off-by: Michael R. Hines --- arch

[Qemu-devel] [RFC PATCH RDMA support v1: 10/13] introduce new command migrate_check_for_zero

2013-04-10 Thread mrhines
From: "Michael R. Hines" This allows the user to disable zero page checking during migration Signed-off-by: Michael R. Hines --- hmp-commands.hx | 14 ++ hmp.c|6 ++ hmp.h|1 + migration.c | 12 qapi-schema.json | 13

[Qemu-devel] [RFC PATCH RDMA support v1: 12/13] updated protocol documentation

2013-04-10 Thread mrhines
From: "Michael R. Hines" Full documentation on the rdma protocol: docs/rdma.txt Signed-off-by: Michael R. Hines --- docs/rdma.txt | 331 + 1 file changed, 331 insertions(+) create mode 100644 docs/rdma.txt diff --git a/docs/rdma.txt b/

[Qemu-devel] [RFC PATCH RDMA support v1: 09/13] parse QMP string for new 'rdma' protocol

2013-04-10 Thread mrhines
From: "Michael R. Hines" This parse the QMP string for the new 'rdma' protocol and calls out to the appropriate funtions to initiate the connection before the migration starts. Signed-off-by: Michael R. Hines --- migration.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) dif

[Qemu-devel] [RFC PATCH RDMA support v1: 07/13] introduce capability for dynamic chunk registration

2013-04-10 Thread mrhines
From: "Michael R. Hines" This capability allows you to disable dynamic chunk registration for better throughput on high-performance links. It is enabled by default. Signed-off-by: Michael R. Hines --- migration.c |9 + qapi-schema.json |2 +- 2 files changed, 10 insertion

[Qemu-devel] [RFC PATCH RDMA support v1: 08/13] default chunk registration to true

2013-04-10 Thread mrhines
From: "Michael R. Hines" Just enable it by default. User can now disable if they want to. Signed-off-by: Michael R. Hines --- migration.c |1 + 1 file changed, 1 insertion(+) diff --git a/migration.c b/migration.c index 404c19a..41cf5ba 100644 --- a/migration.c +++ b/migration.c @@ -69,6

[Qemu-devel] [RFC PATCH RDMA support v1: 06/13] implementation of new QEMUFileOps hooks

2013-04-10 Thread mrhines
From: "Michael R. Hines" These are the actual definitions of the accessor methods which call out to QEMUFileOps hooks during the RAM iteration faces. These hooks are accessed by arch_init.c, which comes later in the patch series. Signed-off-by: Michael R. Hines --- savevm.c | 78

[Qemu-devel] [RFC PATCH RDMA support v7: 00/13] rdma cleanup and reordering

2013-04-10 Thread mrhines
From: "Michael R. Hines" Changes since v6: (Thanks, Paolo - things look much cleaner now.) - Try to get patch-ordering correct =) - Much cleaner use of QEMUFileOps - Much fewer header files changes - Convert zero check capability to QMP command instead - Updated documentation Wiki: http://wiki

[Qemu-devel] [RFC PATCH RDMA support v1: 04/13] update QEMUFileOps with new hooks

2013-04-10 Thread mrhines
From: "Michael R. Hines" These are just the prototypes for optional new hooks that RDMA takes advantage of to perform dynamic page registration. An optional hook is also introduce for a custom function to be able to override the default save_page function. Signed-off-by: Michael R. Hines ---

[Qemu-devel] [RFC PATCH RDMA support v1: 05/13] accessor function prototypes for new QEMUFileOps hooks

2013-04-10 Thread mrhines
From: "Michael R. Hines" These are just the protytpes of the accessor methods used by arch_init.c which invoke functions inside savevm.c to call out to the hooks that may (or may not) have been overridden inside of QEMUFileOps. The actual definitions come later in the patch series. Signed-off-b

[Qemu-devel] [RFC PATCH RDMA support v1: 01/13] introduce qemu_ram_foreach_block()

2013-04-10 Thread mrhines
From: "Michael R. Hines" This is used during RDMA initialization in order to transmit a description of all the RAM blocks to the peer for later dynamic chunk registration purposes. Signed-off-by: Michael R. Hines --- exec.c|9 + include/exec/cpu-common.h |5

Re: [Qemu-devel] [PATCH] powerpc: correctly handle fpu exceptions.

2013-04-10 Thread Alexander Graf
On 09.04.2013, at 17:00, Fabien Chouteau wrote: > From: Tristan Gingold > > Raise the exception on the first occurence, do not wait for the next > floating point operation. Do you have a test case for this one that I could use to compare results with real hardware? Alex > > Signed-off-by:

Re: [Qemu-devel] [PATCH v3 2/2] rbd: link and load librbd dynamically

2013-04-10 Thread Paolo Bonzini
Il 10/04/2013 17:08, Anthony Liguori ha scritto: > /* This should not be used directly. Use block_init etc. instead. */ > #ifdef CONFIG_MODULE > #define module_init(function, type) \ > const gchar *g_module_check_init(GModule *module) \ > {

Re: [Qemu-devel] [PATCH] Move TPM passthrough specific command line options to backend structure

2013-04-10 Thread Stefan Berger
On 04/10/2013 02:51 PM, Corey Bryant wrote: On 04/02/2013 01:30 PM, Stefan Berger wrote: return 1; } +/* validate backend specific opts */ +qemu_opts_validate(opts, be->opts, &errp); +if (error_is_set(&errp)) { +qerror_report_err(errp); +error_free(

Re: [Qemu-devel] VFIO-VGA Issue

2013-04-10 Thread Alex Williamson
On Wed, 2013-04-10 at 16:32 -0400, de...@lavabit.com wrote: > >> However, turning gfx_passthru off did > >> the trick. Win7 started loading with cirrus and switched to HD7750 > >> halfway > >> through boot proccess. I didn't do any testing just let Windows > >> calculate > >> its score. The result

Re: [Qemu-devel] VFIO-VGA Issue

2013-04-10 Thread deniv
>> However, turning gfx_passthru off did >> the trick. Win7 started loading with cirrus and switched to HD7750 >> halfway >> through boot proccess. I didn't do any testing just let Windows >> calculate >> its score. The result was 7.4 and Aero was working. > > You should be able to do this with vfi

Re: [Qemu-devel] [PATCH v2] i.MX: implement a more correct version of EPIT timer.

2013-04-10 Thread Peter Maydell
On 10 April 2013 21:19, Jean-Christophe DUBOIS wrote: > To be honest with you Peter, I don't even know how these state information > are used. > > I never practiced VM migration with Qemu for now. > > Actually if you had a few pointers to a decent explanation, I would be > interested. There's doc

Re: [Qemu-devel] [PATCH v2] i.MX: implement a more correct version of EPIT timer.

2013-04-10 Thread Jean-Christophe DUBOIS
On 04/10/2013 10:07 PM, Peter Maydell wrote: On 10 April 2013 21:02, Jean-Christophe DUBOIS wrote: static const VMStateDescription vmstate_imx_timerp = { .name = "imx-timerp", -.version_id = 1, +.version_id = 2, .minimum_version_id = 1, .minimum_version_id_old = 1,

[Qemu-devel] [PATCH] NVMe: Initial commit

2013-04-10 Thread Keith Busch
Initial commit for emulated nvme pci storage device. Implements the minimum from the specification to work with existing drivers. Cc: Keith Busch Signed-off-by: Keith Busch A lot of people are very interested in this, so I should have more time to dedicate working on submitting this upstream.

[Qemu-devel] [PATCH v3] i.MX: implement a more correct version of EPIT timer.

2013-04-10 Thread Jean-Christophe DUBOIS
This patch is providing a complete version of the EPIT timer. Note, however that the GPT timer in the same file is still not complete. Signed-off-by: Jean-Christophe DUBOIS Change from v2: - change all version number in VMSTATE struct. Change from v1: - bump up the version number on VMSTAT

Re: [Qemu-devel] [PATCH v2] i.MX: implement a more correct version of EPIT timer.

2013-04-10 Thread Peter Maydell
On 10 April 2013 21:02, Jean-Christophe DUBOIS wrote: > static const VMStateDescription vmstate_imx_timerp = { > .name = "imx-timerp", > -.version_id = 1, > +.version_id = 2, > .minimum_version_id = 1, > .minimum_version_id_old = 1, I said "all the version id fields" but y

Re: [Qemu-devel] [RFC PATCH RDMA support v5: 03/12] comprehensive protocol documentation

2013-04-10 Thread Michael R. Hines
On 04/10/2013 01:41 PM, Michael S. Tsirkin wrote: Thanks. However, IMHO restricting the policy to only used chunk-based is really not an acceptable choice: Here's the reason: Using my 10gbs RDMA hardware, throughput takes a dive from 10gbps to 6gbps. Who cares about the throughput really? Wha

[Qemu-devel] [PATCH v2] i.MX: implement a more correct version of EPIT timer.

2013-04-10 Thread Jean-Christophe DUBOIS
This patch is providing a complete version of the EPIT timer. Note, however that the GPT timer in the same file is still not complete. Signed-off-by: Jean-Christophe DUBOIS Change from v1: - bump up the version number on VMSTATE struct - fix comment --- hw/timer/imx_timer.c | 253

Re: [Qemu-devel] [PATCH] i.MX: implement a more correct version of EPIT timer.

2013-04-10 Thread Jean-Christophe DUBOIS
On 04/10/2013 10:26 AM, Peter Maydell wrote: On 9 April 2013 23:32, Jean-Christophe DUBOIS wrote: @@ -605,11 +735,13 @@ static const VMStateDescription vmstate_imx_timerp = { .minimum_version_id_old = 1, .fields = (VMStateField[]) { VMSTATE_UINT32(cr, IMXTimerPState),

[Qemu-devel] [PATCH] qapi: use valid JSON in schema

2013-04-10 Thread Eric Blake
* qapi-schema.json: JSON doesn't allow trailing commas. Signed-off-by: Eric Blake --- a multi-line regex search for ',[ \n]*[]}]' didn't turn up any other violations qapi-schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index d

Re: [Qemu-devel] [PATCH V11 11/17] qmp: add ImageInfo in BlockDeviceInfo used by query-block

2013-04-10 Thread Luiz Capitulino
On Wed, 10 Apr 2013 18:17:04 +0200 Markus Armbruster wrote: > Stefan Hajnoczi writes: > > > On Tue, Apr 02, 2013 at 07:47:24PM +0800, Wenchao Xia wrote: > >> diff --git a/qmp-commands.hx b/qmp-commands.hx > >> index 6b20684..b856be7 100644 > >> --- a/qmp-commands.hx > >> +++ b/qmp-commands.hx >

Re: [Qemu-devel] [PATCH] Move TPM passthrough specific command line options to backend structure

2013-04-10 Thread Corey Bryant
On 04/02/2013 01:30 PM, Stefan Berger wrote: Move the TPM passthrough specific command line options to the passthrough backend implementation and attach them to the backend's interface structure. Add code to tpm.c for validating the TPM command line options. Signed-off-by: Stefan Berger ---

Re: [Qemu-devel] [RFC PATCH RDMA support v5: 03/12] comprehensive protocol documentation

2013-04-10 Thread Michael S. Tsirkin
On Wed, Apr 10, 2013 at 11:29:24AM -0400, Michael R. Hines wrote: > On 04/10/2013 09:34 AM, Michael S. Tsirkin wrote: > >On Wed, Apr 10, 2013 at 09:04:44AM -0400, Michael R. Hines wrote: > >>On 04/10/2013 01:27 AM, Michael S. Tsirkin wrote: > >>>Below is a great high level overview. the protocol lo

Re: [Qemu-devel] VFIO-VGA Issue

2013-04-10 Thread Alex Williamson
On Wed, 2013-04-10 at 13:11 -0400, de...@lavabit.com wrote: > >> Although with this patch I get much further, monitor still doesn't sync. > >> I > >> also see some effects on my host GPU (Intel HD4000). Starting qemu ruins > >> colors (black turns green, blue turns purple, etc). Though switching to

Re: [Qemu-devel] [PATCH 0/4] QEMUFile improvements and simplifications

2013-04-10 Thread Juan Quintela
Paolo Bonzini wrote: > Il 10/04/2013 14:48, Liuji (Jeremy) ha scritto: >> Hi, Paolo >> >> I tested your 4 patches in the latest version of qemu.git/master(commit: >> 93b48c201eb6c0404d15550a0eaa3c0f7937e35e,2013-04-09). >> These patches resolve the "savevm hanging" problem, which is >> detailedly

  1   2   3   >