[Qemu-devel] [Bug 1178101] [NEW] Could not enable gtk UI on build for Windows target

2013-05-09 Thread Cauchy Song
Public bug reported: $ ${QEMU_SRC_DIR}/configure --prefix=${BIN_ROOT} --cross- prefix=${HOST_TRIPLET}- --extra-cflags=-I${BIN_ROOT}/include --extra- ldflags=-L${BIN_ROOT}/lib --enable-gtk --disable-xen ERROR: User requested feature gtk configure was not able to find it $ cat config.log

Re: [Qemu-devel] [libvirt]virtio serial device problem

2013-05-09 Thread Li Zhang
On 2013年05月08日 23:53, fred.kon...@greensocs.com wrote: On 05/07/2013 07:50 PM, Paolo Bonzini wrote: Il 07/05/2013 09:20, Li Zhang ha scritto: Hi all, Hi, When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt. What QEMU commit is this?

[Qemu-devel] [Bug 1178107] [NEW] qemu-system-*.exe -cpu ? (or -M ?) exit silently

2013-05-09 Thread Cauchy Song
Public bug reported: For example, 'qemu-system-arm -cpu ?' on Linux host give me available cpu list: Available CPUs: arm1026 arm1136 arm1136-r2 ... But on Windows host, I got nothing: C:\opt\qemu-1.5.0-rc0-win64qemu-system-arm -cpu ? C:\opt\qemu-1.5.0-rc0-win64echo %ERRORLEVEL% 0 **

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] remove needless semicolon

2013-05-09 Thread Michael Tokarev
08.05.2013 17:25, Anthony Liguori wrote: Michael Tokarev m...@tls.msk.ru writes: 08.05.2013 13:46, Trival wrote: Signed-off-by: Trival triv...@linux.vnet.ibm.com Something went wrong in sending this. This is not a valid SoB. So, do we not accept it? Should I revert it in the

Re: [Qemu-devel] [PATCH V18 5/6] add-cow file format core code.

2013-05-09 Thread Dong Xu Wang
On Thu, Apr 18, 2013 at 6:03 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Wed, Apr 10, 2013 at 04:11:52PM +0800, Dong Xu Wang wrote: +header.cluster_bits = ffs(cluster_size) - 1; +if (header.cluster_bits MIN_CLUSTER_BITS || +header.cluster_bits MAX_CLUSTER_BITS || +

Re: [Qemu-devel] [PATCH v5 0/5] KVM flash memory support

2013-05-09 Thread Paolo Bonzini
Il 09/05/2013 00:44, Jordan Justen ha scritto: git://github.com/jljusten/qemu.git kvm-flash-v5 Utilize KVM_CAP_READONLY_MEM to support PC system flash emulation with KVM. v5: * Remove patch to pflash_cfi01 which enabled readonly mode * Adjust kvm code to use KVM READONLY support for

Re: [Qemu-devel] [libvirt]virtio serial device problem

2013-05-09 Thread Alexey Kardashevskiy
On 05/09/2013 04:07 PM, Li Zhang wrote: On 2013年05月08日 23:53, fred.kon...@greensocs.com wrote: On 05/07/2013 07:50 PM, Paolo Bonzini wrote: Il 07/05/2013 09:20, Li Zhang ha scritto: Hi all, Hi, When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt.

Re: [Qemu-devel] [PATCH] curl: fix curl read

2013-05-09 Thread Stefan Hajnoczi
On Fri, May 03, 2013 at 04:00:09PM +0800, Fam Zheng wrote: @@ -391,7 +427,12 @@ static QemuOptsList runtime_opts = { .type = QEMU_OPT_SIZE, .help = Readahead size, }, -{ /* end of list */ } +{ +.name = ssl_no_cert, +

[Qemu-devel] Jiajun, add me to your LinkedIn network?

2013-05-09 Thread Zhou Chunhua
LinkedIn Zhou Chunhua requested to add you as a connection on LinkedIn: -- Jiajun, I'd like to add you to my professional network on LinkedIn. - Zhou Accept invitation from Zhou Chunhua

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.5.0-rc1 is now available

2013-05-09 Thread Dongsheng Song
On Thu, May 9, 2013 at 6:29 AM, Anthony Liguori aligu...@us.ibm.com wrote: Hi, On behalf of the QEMU Team, I'd like to announce the availability of the second release candidate for the QEMU 1.5 release. This release is meant for testing purposes and should not be used in a production

Re: [Qemu-devel] [Bug 1176366] [NEW] TCPIP not working on qemu 1.4.50 (master)

2013-05-09 Thread Stefan Hajnoczi
On Sat, May 04, 2013 at 04:13:19PM -, TC1988 wrote: whenever I try, in the guest OS, in this case it's NT 3.1, to enable TCP/IP, it crashes the whole emulator. With either the ne2000 isa, ne2000 pci or PCnet, still crashes below is attached a screenshot. Please use git-bisect(1) to

Re: [Qemu-devel] [PATCH for-1.5] virtio-pci: bugfix

2013-05-09 Thread Stefan Hajnoczi
On Mon, May 06, 2013 at 06:00:27PM +0300, Michael S. Tsirkin wrote: mask notifiers are never called without msix, so devices with backend masking like vhost don't work. Call mask notifiers explicitly at startup/cleanup to make it work. Signed-off-by: Michael S. Tsirkin m...@redhat.com

Re: [Qemu-devel] [PATCH] curl: fix curl read

2013-05-09 Thread Fam Zheng
On Thu, 05/09 08:41, Stefan Hajnoczi wrote: On Fri, May 03, 2013 at 04:00:09PM +0800, Fam Zheng wrote: @@ -391,7 +427,12 @@ static QemuOptsList runtime_opts = { .type = QEMU_OPT_SIZE, .help = Readahead size, }, -{ /* end of list */ } +

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] remove needless semicolon

2013-05-09 Thread Hu Tao
On Thu, May 09, 2013 at 10:23:09AM +0400, Michael Tokarev wrote: 08.05.2013 17:25, Anthony Liguori wrote: Michael Tokarev m...@tls.msk.ru writes: 08.05.2013 13:46, Trival wrote: Signed-off-by: Trival triv...@linux.vnet.ibm.com I think wdongxu probably wants HIS name and email go here.

Re: [Qemu-devel] [libvirt]virtio serial device problem

2013-05-09 Thread Li Zhang
On 2013年05月09日 14:31, Alexey Kardashevskiy wrote: On 05/09/2013 04:07 PM, Li Zhang wrote: On 2013年05月08日 23:53, fred.kon...@greensocs.com wrote: On 05/07/2013 07:50 PM, Paolo Bonzini wrote: Il 07/05/2013 09:20, Li Zhang ha scritto: Hi all, Hi, When we use the latest version of QEMU to

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] remove needless semicolon

2013-05-09 Thread Peter Maydell
On 9 May 2013 08:08, Hu Tao hu...@cn.fujitsu.com wrote: On Thu, May 09, 2013 at 10:23:09AM +0400, Michael Tokarev wrote: 08.05.2013 17:25, Anthony Liguori wrote: Michael Tokarev m...@tls.msk.ru writes: 08.05.2013 13:46, Trival wrote: Signed-off-by: Trival triv...@linux.vnet.ibm.com I

Re: [Qemu-devel] Few Qs related to using qemu-nbd for exporting snapshot

2013-05-09 Thread Stefan Hajnoczi
On Wed, May 08, 2013 at 10:30:29AM +0530, Deepak C Shetty wrote: I am looking at using qemu-nbd to export an existing snapshot to a Backup virtual appliance (VA) and had the following Qs in that context... 1) Exporting an image using unix socket (-k option) Vs using --connect=/dev/nbd0,

Re: [Qemu-devel] qemu-img problem when create a file larger than fs's size

2013-05-09 Thread Stefan Hajnoczi
On Wed, May 08, 2013 at 01:18:17PM +0800, yuxh wrote: I have to consult you a qemu-img's problem. Is this reasonable to create a file which is larger than the available size of the fs by qemu-img cmd ? When I use qemu-img create a file which is larger than the available size of the fs,

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] remove needless semicolon

2013-05-09 Thread Dong Xu Wang
On 2013/5/9 15:08, Hu Tao wrote: On Thu, May 09, 2013 at 10:23:09AM +0400, Michael Tokarev wrote: 08.05.2013 17:25, Anthony Liguori wrote: Michael Tokarev m...@tls.msk.ru writes: 08.05.2013 13:46, Trival wrote: Signed-off-by: Trival triv...@linux.vnet.ibm.com I think wdongxu probably

[Qemu-devel] [PATCH 1/2] clean unnecessary code: don't check g_strdup arg for NULL

2013-05-09 Thread Dong Xu Wang
Signed-off-by: Dong Xu Wang wdon...@linux.vnet.ibm.com --- util/uri.c | 2 +- vl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/uri.c b/util/uri.c index 4238729..e348c17 100644 --- a/util/uri.c +++ b/util/uri.c @@ -2162,7 +2162,7 @@ query_params_append (struct

[Qemu-devel] [PATCH 2/2] remove double semicolons

2013-05-09 Thread Dong Xu Wang
Signed-off-by: Dong Xu Wang wdon...@linux.vnet.ibm.com --- block/nbd.c | 2 +- fsdev/virtfs-proxy-helper.c | 4 ++-- hw/9pfs/virtio-9p-local.c | 2 +- hw/i386/pc_q35.c| 2 +- hw/intc/imx_avic.c | 2 +- hw/usb/host-linux.c | 4 ++--

Re: [Qemu-devel] [PATCH 0/6] Drop the irredeemably racy cpu_unlink_tb()

2013-05-09 Thread Michael Tokarev
[Rehashing a relatively old thread. It is available, in particular, at http://thread.gmane.org/gmane.comp.emulators.qemu/196629] 22.02.2013 22:09, Peter Maydell wrote: This patch series gets rid of cpu_unlink_tb(), which is irredeemably racy, since it modifies the TB graph with no locking

[Qemu-devel] [PATCH 2/4] cpu-exec: wrap tcg_qemu_tb_exec() in a fn to restore the PC

2013-05-09 Thread Michael Tokarev
From: Peter Maydell peter.mayd...@linaro.org If tcg_qemu_tb_exec() returns a value whose low bits don't indicate a link to an indexed next TB, this means that the TB execution never started (eg because the instruction counter hit zero). In this case the guest PC has to be reset to the address of

Re: [Qemu-devel] [PATCH 1/2] clean unnecessary code: don't check g_strdup arg for NULL

2013-05-09 Thread Michael Tokarev
09.05.2013 11:53, Dong Xu Wang wrote: Signed-off-by: Dong Xu Wang wdon...@linux.vnet.ibm.com Thank you Dong, (re)applied both patches to the trivial patch queue. /mjt

[Qemu-devel] [PATCH 3/4] Handle CPU interrupts by inline checking of a flag

2013-05-09 Thread Michael Tokarev
From: Peter Maydell peter.mayd...@linaro.org Fix some of the nasty TCG race conditions and crashes by implementing cpu_exit() as setting a flag which is checked at the start of each TB. This avoids crashes if a thread or signal handler calls cpu_exit() while the execution thread is itself

[Qemu-devel] [PATCH 1/4] tcg: Document tcg_qemu_tb_exec() and provide constants for low bit uses

2013-05-09 Thread Michael Tokarev
From: Peter Maydell peter.mayd...@linaro.org Document tcg_qemu_tb_exec(). In particular, its return value is a combination of a pointer to the next translation block and some extra information in the low two bits. Provide some #defines for the values passed in these bits to improve code clarity.

[Qemu-devel] [PATCH 4/4] translate-all.c: Remove cpu_unlink_tb()

2013-05-09 Thread Michael Tokarev
From: Peter Maydell peter.mayd...@linaro.org The (unsafe) function cpu_unlink_tb() is now unused, so we can simply remove it and any code that was only used by it. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Blue Swirl

Re: [Qemu-devel] qemu-img problem when create a file larger than fs's size

2013-05-09 Thread yuxh
On 05/09/2013 03:44 PM, Stefan Hajnoczi wrote: On Wed, May 08, 2013 at 01:18:17PM +0800, yuxh wrote: I have to consult you a qemu-img's problem. Is this reasonable to create a file which is larger than the available size of the fs by qemu-img cmd ? When I use qemu-img create a file which is

Re: [Qemu-devel] [PATCH 1/2] Vring: vring's listener's priority should higher than kvm

2013-05-09 Thread Stefan Hajnoczi
On Thu, May 09, 2013 at 08:40:21AM +0800, Liu Ping Fan wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Hosts threads which handle vring should have high MemoryListener priority than kvm. For currently code, take the following scenario: kvm_region_add() run earlier before

Re: [Qemu-devel] [PATCH 2/2] mem: highlight the listener's priority as enum

2013-05-09 Thread Stefan Hajnoczi
On Thu, May 09, 2013 at 08:40:22AM +0800, Liu Ping Fan wrote: diff --git a/include/exec/memory.h b/include/exec/memory.h index 9e88320..77e0d40 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -192,6 +192,16 @@ struct MemoryRegionSection { typedef struct MemoryListener

Re: [Qemu-devel] [Qemu-trivial] [PATCH] target-mips: add missing check_dspr2 for multiply instructions

2013-05-09 Thread Michael Tokarev
08.05.2013 18:09, Petar Jovanovic wrote: From: Petar Jovanovic petar.jovano...@imgtec.com The emulator needs to check in hflags if DSP unit has been turned off before it generates code for MUL_PH, MUL_S_PH, MULQ_S_W, and MULQ_RS_W. Signed-off-by: Petar Jovanovic petar.jovano...@imgtec.com

Re: [Qemu-devel] [PATCH 1/2] Vring: vring's listener's priority should higher than kvm

2013-05-09 Thread Michael S. Tsirkin
On Thu, May 09, 2013 at 08:40:21AM +0800, Liu Ping Fan wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Hosts threads which handle vring should have high MemoryListener priority than kvm. For currently code, take the following scenario: kvm_region_add() run earlier before

Re: [Qemu-devel] [PATCH 1/2] Vring: vring's listener's priority should higher than kvm

2013-05-09 Thread liu ping fan
On Thu, May 9, 2013 at 4:44 PM, Michael S. Tsirkin m...@redhat.com wrote: On Thu, May 09, 2013 at 08:40:21AM +0800, Liu Ping Fan wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Hosts threads which handle vring should have high MemoryListener priority than kvm. For currently code, take

Re: [Qemu-devel] [PATCH 1/2] Vring: vring's listener's priority should higher than kvm

2013-05-09 Thread liu ping fan
On Thu, May 9, 2013 at 4:30 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, May 09, 2013 at 08:40:21AM +0800, Liu Ping Fan wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Hosts threads which handle vring should have high MemoryListener priority than kvm. For currently code, take

Re: [Qemu-devel] [PATCH 0/6] Drop the irredeemably racy cpu_unlink_tb()

2013-05-09 Thread Peter Maydell
On 9 May 2013 09:09, Michael Tokarev m...@tls.msk.ru wrote: Now, the resulting thing compiles (ha!), but I'm not really sure how to test it. I ran a few random apps using qemu-i386 and qemu-arm, it appears to work. You need to test TCG system emulation too, and in particular something with

Re: [Qemu-devel] [PATCH 2/2] mem: highlight the listener's priority as enum

2013-05-09 Thread liu ping fan
On Thu, May 9, 2013 at 4:31 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, May 09, 2013 at 08:40:22AM +0800, Liu Ping Fan wrote: diff --git a/include/exec/memory.h b/include/exec/memory.h index 9e88320..77e0d40 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -192,6

Re: [Qemu-devel] [PATCH 2/2] mem: highlight the listener's priority as enum

2013-05-09 Thread Peter Maydell
On 9 May 2013 01:40, Liu Ping Fan qemul...@gmail.com wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com It will make the priority prominent, when new listener added. All the priority's value are kept unchanged, except for vhost and hostmem.(Changes introduced by prev patch) Any chance of

Re: [Qemu-devel] [PATCH 2/2] mem: highlight the listener's priority as enum

2013-05-09 Thread liu ping fan
On Thu, May 9, 2013 at 5:21 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 9 May 2013 01:40, Liu Ping Fan qemul...@gmail.com wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com It will make the priority prominent, when new listener added. All the priority's value are kept unchanged,

[Qemu-devel] [PATCH] qxl: Call spice_qxl_driver_unload from qxl_enter_vga_mode

2013-05-09 Thread Gerd Hoffmann
From: Hans de Goede hdego...@redhat.com With a SPICE_DISPLAY_CAP_MONITORS_CONFIG capable client, the client needs to know what part of the primary to use for each monitor. If the guest driver does not support this, the server sends messages to the client for a single monitor spanning the entire

[Qemu-devel] [PULL for-1.5] spice: bugfix queue

2013-05-09 Thread Gerd Hoffmann
Hi, Tiny spice patch queue, featuring a single qxl bugfix. please pull, Gerd The following changes since commit 47ec15cdd44877e553ed0bd0a16aea8a295dad62: Update version for 1.5.0-rc1 (2013-05-08 15:54:47 -0500) are available in the git repository at:

Re: [Qemu-devel] [PATCH 0/6] Drop the irredeemably racy cpu_unlink_tb()

2013-05-09 Thread Michael Tokarev
09.05.2013 13:01, Peter Maydell wrote: On 9 May 2013 09:09, Michael Tokarev m...@tls.msk.ru wrote: Now, the resulting thing compiles (ha!), but I'm not really sure how to test it. I ran a few random apps using qemu-i386 and qemu-arm, it appears to work. You need to test TCG system

Re: [Qemu-devel] [PATCH 0/6] Drop the irredeemably racy cpu_unlink_tb()

2013-05-09 Thread Andreas Färber
Am 09.05.2013 10:09, schrieb Michael Tokarev: 22.02.2013 22:09, Peter Maydell wrote: cpu-exec: wrap tcg_qemu_tb_exec() in a fn to restore the PC This needed a back merge of env+cpu states back to cpu. Maybe we should somehow revisit the whole concept of the two, because it's sorta fun: at

[Qemu-devel] virsh edit failed to take effect on KVM

2013-05-09 Thread Gonglei (Arei)
Hi all, we use the command virsh edit to modify the VM configuration information online on KVM Platform(libvirt-1.0.0 and qemu-1.4), but it does not take effect after reboot. However, it works fine on Xen Platform. for an example,a VM is running with the following configuration

Re: [Qemu-devel] [PATCH 6/8] qapi: add native list coverage for visitor serialization tests

2013-05-09 Thread Laszlo Ersek
On 05/09/13 01:33, Michael Roth wrote: +case PTYPE_NUMBER: { +numberList *ptr; +char *double1, *double2; +if (cur_head) { +ptr = cur_head; +cur_head = ptr-next; +} else { +cur_head =

Re: [Qemu-devel] virsh edit failed to take effect on KVM

2013-05-09 Thread Laszlo Ersek
On 05/09/13 13:42, Gonglei (Arei) wrote: Hi all, we use the command virsh edit to modify the VM configuration information online on KVM Platform(libvirt-1.0.0 and qemu-1.4), but it does not take effect after reboot. However, it works fine on Xen Platform. for an example,a VM is

Re: [Qemu-devel] [PATCH for 1.5] tcg/optimize: fix setcond2 optimization

2013-05-09 Thread Richard Henderson
On 2013-05-08 15:42, Aurelien Jarno wrote: When setcond2 is rewritten into setcond, the state of the destination temp should be reset, so that a copy of the previous value is not used instead of the result. Reported-by: Michael Tokarev m...@tls.msk.ru Cc: Richard Henderson r...@twiddle.net

Re: [Qemu-devel] [PATCH 0/8] qapi: add support for lists of native types

2013-05-09 Thread Laszlo Ersek
On 05/09/13 01:33, Michael Roth wrote: These patches apply on top of qemu.git master, and can also be obtained from: git://github.com/mdroth/qemu.git qapi-native-lists Sending this now since a number of series have popped up in the past that wanted this, and Amos has some pending patches

Re: [Qemu-devel] [PATCH 6/8] qapi: add native list coverage for visitor serialization tests

2013-05-09 Thread mdroth
On Thu, May 09, 2013 at 02:31:03PM +0200, Laszlo Ersek wrote: On 05/09/13 01:33, Michael Roth wrote: +case PTYPE_NUMBER: { +numberList *ptr; +char *double1, *double2; +if (cur_head) { +ptr = cur_head; +

Re: [Qemu-devel] [PATCH 0/8] qapi: add support for lists of native types

2013-05-09 Thread mdroth
On Thu, May 09, 2013 at 03:31:08PM +0200, Laszlo Ersek wrote: On 05/09/13 01:33, Michael Roth wrote: These patches apply on top of qemu.git master, and can also be obtained from: git://github.com/mdroth/qemu.git qapi-native-lists Sending this now since a number of series have popped

Re: [Qemu-devel] virsh edit failed to take effect on KVM

2013-05-09 Thread Eric Blake
On 05/09/2013 05:42 AM, Gonglei (Arei) wrote: Hi all, we use the command virsh edit to modify the VM configuration information online on KVM Platform(libvirt-1.0.0 and qemu-1.4), but it does not take effect after reboot. However, it works fine on Xen Platform. This sort of question

Re: [Qemu-devel] [Xen-devel] [RFC PATCH] vga: Start supporting resolution not multiple of 16 correctly.

2013-05-09 Thread Pasi Kärkkäinen
On Fri, Mar 15, 2013 at 06:14:30PM +, Frediano Ziglio wrote: Modern notebook support 136x768 resolution. The resolution width is not multiple of 16 causing some problems. Qemu VGA emulation require width resolution to be multiple of 8. VNC implementation require width resolution to be

Re: [Qemu-devel] [PATCH] qga: set umask 0077 when daemonizing (CVE-2013-2007)

2013-05-09 Thread Bruce Rogers
On 5/7/2013 at 05:47 AM, Anthony Liguori aligu...@us.ibm.com wrote: From: Laszlo Ersek ler...@redhat.com The qemu guest agent creates a bunch of files with insecure permissions when started in daemon mode. For example: -rw-rw-rw- 1 root root /var/log/qemu-ga.log -rw-rw-rw- 1 root

Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-09 Thread Paolo Bonzini
Il 09/05/2013 02:53, liu ping fan ha scritto: On Wed, May 8, 2013 at 11:44 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 08/05/2013 08:20, liu ping fan ha scritto: On Mon, May 6, 2013 at 10:25 PM, Paolo Bonzini pbonz...@redhat.com wrote: Hi, this is an alternative approach to refactoring

Re: [Qemu-devel] [PATCH 9/9] Make monitor command 'dump-guest-memory' dump in kdump-compressed format

2013-05-09 Thread Eric Blake
On 05/08/2013 11:27 PM, Zhang Xiaohe wrote: 于 2013年05月09日 01:16, Eric Blake 写道: On 05/08/2013 02:50 AM, qiaonuohan wrote: Thanks for your suggestion. I will fix it like: { 'enum': 'DumpCompressionFormat', 'data': [ 'zlib', 'lzo', 'snappy' ] } For zlib is treated as the default

[Qemu-devel] [RFC v2] virtio-balloon: automatic ballooning support

2013-05-09 Thread Luiz Capitulino
Automatic ballooning consists of dynamically adjusting the guest's balloon according to memory pressure in the host and in the guest. This commit implements the host side of automatic balloning, which basically consists of: 1. Registering with the memory.pressure_level API (from the Linux

Re: [Qemu-devel] [PATCH 1/2] Vring: vring's listener's priority should higher than kvm

2013-05-09 Thread Paolo Bonzini
Il 09/05/2013 10:54, liu ping fan ha scritto: On Thu, May 9, 2013 at 4:44 PM, Michael S. Tsirkin m...@redhat.com wrote: On Thu, May 09, 2013 at 08:40:21AM +0800, Liu Ping Fan wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Hosts threads which handle vring should have high MemoryListener

Re: [Qemu-devel] [PATCH V18 5/6] add-cow file format core code.

2013-05-09 Thread Stefan Hajnoczi
On Thu, May 09, 2013 at 02:24:20PM +0800, Dong Xu Wang wrote: On Thu, Apr 18, 2013 at 6:03 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Wed, Apr 10, 2013 at 04:11:52PM +0800, Dong Xu Wang wrote: +static coroutine_fn int add_cow_co_flush(BlockDriverState *bs) +{ +BDRVAddCowState *s

Re: [Qemu-devel] [PATCH] curl: fix curl read

2013-05-09 Thread Stefan Hajnoczi
On Thu, May 09, 2013 at 02:56:50PM +0800, Fam Zheng wrote: On Thu, 05/09 08:41, Stefan Hajnoczi wrote: On Fri, May 03, 2013 at 04:00:09PM +0800, Fam Zheng wrote: +cache = curl_find_cache(s, aio_base, aio_bytes); +if (cache) { +curl_complete_io(s, acb, cache); +

Re: [Qemu-devel] [PATCH 1/2] Vring: vring's listener's priority should higher than kvm

2013-05-09 Thread Stefan Hajnoczi
On Thu, May 09, 2013 at 05:00:20PM +0800, liu ping fan wrote: On Thu, May 9, 2013 at 4:30 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, May 09, 2013 at 08:40:21AM +0800, Liu Ping Fan wrote: From: Liu Ping Fan pingf...@linux.vnet.ibm.com Hosts threads which handle vring should have

[Qemu-devel] [PATCH for-1.4.y 0/4] Drop the irredeemably racy cpu_unlink_tb()

2013-05-09 Thread Michael Tokarev
This is a backport of the patch series by Peter Maydell, as found at http://thread.gmane.org/gmane.comp.emulators.qemu/196629 , to 1.4.y stable tree, very similar to what's been done for 1.1 tree. The difference is in context and because some code were moved between exec.c and translate-all.c,

[Qemu-devel] [PATCH for-1.4.y 2/4] cpu-exec: wrap tcg_qemu_tb_exec() in a fn to restore the PC

2013-05-09 Thread Michael Tokarev
From: Peter Maydell peter.mayd...@linaro.org If tcg_qemu_tb_exec() returns a value whose low bits don't indicate a link to an indexed next TB, this means that the TB execution never started (eg because the instruction counter hit zero). In this case the guest PC has to be reset to the address of

[Qemu-devel] [PATCH for-1.4.y 1/4] tcg: Document tcg_qemu_tb_exec() and provide constants for low bit uses

2013-05-09 Thread Michael Tokarev
From: Peter Maydell peter.mayd...@linaro.org Document tcg_qemu_tb_exec(). In particular, its return value is a combination of a pointer to the next translation block and some extra information in the low two bits. Provide some #defines for the values passed in these bits to improve code clarity.

[Qemu-devel] [PATCH for-1.4.y 3/4] Handle CPU interrupts by inline checking of a flag

2013-05-09 Thread Michael Tokarev
Fix some of the nasty TCG race conditions and crashes by implementing cpu_exit() as setting a flag which is checked at the start of each TB. This avoids crashes if a thread or signal handler calls cpu_exit() while the execution thread is itself modifying the TB graph (which may happen in system

[Qemu-devel] [PATCH for-1.4.y 4/4] translate-all.c: Remove cpu_unlink_tb()

2013-05-09 Thread Michael Tokarev
From: Peter Maydell peter.mayd...@linaro.org The (unsafe) function cpu_unlink_tb() is now unused, so we can simply remove it and any code that was only used by it. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Blue Swirl

Re: [Qemu-devel] [PATCH for-1.4.y 3/4] Handle CPU interrupts by inline checking of a flag

2013-05-09 Thread Michael Tokarev
09.05.2013 19:30, Michael Tokarev wrote: Fix some of the nasty TCG race conditions and crashes by implementing ... Somehow this went out without proper authorship line, dunno why. I can resent if needed, adding: From: Peter Maydell peter.mayd...@linaro.org Thanks, /mjt

[Qemu-devel] [Bug 1100843] Re: Live Migration Causes Performance Issues

2013-05-09 Thread Jonathan Jefferson
** Changed in: linux (Ubuntu) Status: Incomplete = Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1100843 Title: Live Migration Causes Performance Issues Status in QEMU: New

[Qemu-devel] [PATCH] vfio-pci: Add support for MSI affinity

2013-05-09 Thread Alex Williamson
When MSI is accelerated through KVM the vectors are only programmed when the guest first enables MSI support.  Subsequent writes to the vector address or data fields are ignored.  Unfortunately that means we're ignore updates done to adjust SMP affinity of the vectors. MSI SMP affinity already

[Qemu-devel] [PATCH 0/2] pci-assign: MSI affinity support

2013-05-09 Thread Alex Williamson
I posted these about 6 months ago and Jan felt we should implement MSI notifiers like we have for MSI-X. That still hasn't happened. This is a pretty trivial addition to pci-assign and could easily be ported to MSI notifiers if anyone cares enough down the road to implement them. I don't feel

[Qemu-devel] [PATCH 1/2] pci-assign: Refactor MSI virq array

2013-05-09 Thread Alex Williamson
Convert the msi_virq array into a struct array so we can easily add a place to track the MSIMessage for each vector. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/i386/kvm/pci-assign.c | 51 +++--- 1 file changed, 26 insertions(+), 25

[Qemu-devel] [PATCH 2/2] pci-assign: Add MSI affinity support

2013-05-09 Thread Alex Williamson
Track the last MSIMessage programmed so we can determine when it has changed and update the routing to the guest. Signed-off-by: Alex Williamson alex.william...@redhat.com --- hw/i386/kvm/pci-assign.c | 27 +++ 1 file changed, 27 insertions(+) diff --git

Re: [Qemu-devel] (i386) TCG is broken in 1.5-rc0 with guest kernel 3.2?

2013-05-09 Thread Richard Henderson
On 05/08/2013 02:03 AM, Michael Tokarev wrote: I just tried 1.5-rc0 (32bit x86 userspace), and guest kernel crashes in an interesting way right at init time. qemu-system-x86_64 -net none -kernel /boot/vmlinuz-3.2-amd64 -append console=ttyS0 -serial file:serial Irritatingly, this works

Re: [Qemu-devel] [PATCH 01/40] memory: assert that PhysPageEntry's ptr does not overflow

2013-05-09 Thread Paolo Bonzini
Il 09/05/2013 05:41, liu ping fan ha scritto: On Wed, May 8, 2013 at 12:08 AM, Paolo Bonzini pbonz...@redhat.com wrote: - Messaggio originale - Da: Peter Maydell peter.mayd...@linaro.org A: Paolo Bonzini pbonz...@redhat.com Cc: qemu-devel@nongnu.org, a...@ozlabs.ru, jan kiszka

Re: [Qemu-devel] (i386) TCG is broken in 1.5-rc0 with guest kernel 3.2?

2013-05-09 Thread Aurelien Jarno
On Thu, May 09, 2013 at 09:43:20AM -0700, Richard Henderson wrote: On 05/08/2013 02:03 AM, Michael Tokarev wrote: I just tried 1.5-rc0 (32bit x86 userspace), and guest kernel crashes in an interesting way right at init time. qemu-system-x86_64 -net none -kernel /boot/vmlinuz-3.2-amd64

Re: [Qemu-devel] (i386) TCG is broken in 1.5-rc0 with guest kernel 3.2?

2013-05-09 Thread Michael Tokarev
09.05.2013 20:52, Aurelien Jarno wrote: On Thu, May 09, 2013 at 09:43:20AM -0700, Richard Henderson wrote: On 05/08/2013 02:03 AM, Michael Tokarev wrote: I just tried 1.5-rc0 (32bit x86 userspace), and guest kernel crashes in an interesting way right at init time. qemu-system-x86_64 -net

Re: [Qemu-devel] [PATCH v6 00/11] rdma: migration support

2013-05-09 Thread Michael R. Hines
Comments inline. FYI: please CC mrhi...@us.ibm.com, because it helps me know when to scroll threw the bazillion qemu-devel emails. I have things separated out into folders and rules, but a direct CC is better =) On 05/03/2013 07:28 PM, Chegu Vinod wrote: Hi Michael, I picked up the qemu

[Qemu-devel] [PATCH] target-mips: clean-up in BIT_INSV

2013-05-09 Thread Petar Jovanovic
From: Petar Jovanovic petar.jovano...@imgtec.com This is a small follow-up change to fix incorrect behaviour for INSV. It includes two minor modifications: - sizefilter is constant so it can be moved inside of the block, - (int64_t)0x01 is replaced with 1LL for ease of reading. No functional

[Qemu-devel] [PATCH for 1.5] target-i386 ROR r8/r16 imm instruction fix

2013-05-09 Thread Aurelien Jarno
Fix EFLAGS corruption by ROR r8/r16 imm instruction located at the end of the TB, similarly to commit 089305ac for the non-immediate case. Reported-by: Hervé Poussineau hpous...@reactos.org Cc: Richard Henderson r...@twiddle.net Signed-off-by: Aurelien Jarno aurel...@aurel32.net ---

Re: [Qemu-devel] [PATCH for 1.5] Revert target-i386: Use movcond to implement rotate flags.

2013-05-09 Thread Aurelien Jarno
On Wed, May 01, 2013 at 08:06:51AM +0200, Hervé Poussineau wrote: This commit breaks boot of MS-DOS 6.22, which stops at: MODE CON CODEPAGE PREPARE=((850) C:\DOS\EGA.CPI) This reverts part of commit 34d80a55ff8517fd37bcfea5063b9797e2bd9132. Signed-off-by: Hervé Poussineau

Re: [Qemu-devel] [PATCH for 1.5] target-i386 ROR r8/r16 imm instruction fix

2013-05-09 Thread Richard Henderson
On 05/09/2013 10:40 AM, Aurelien Jarno wrote: Fix EFLAGS corruption by ROR r8/r16 imm instruction located at the end of the TB, similarly to commit 089305ac for the non-immediate case. Reported-by: Hervé Poussineau hpous...@reactos.org Cc: Richard Henderson r...@twiddle.net Signed-off-by:

Re: [Qemu-devel] [PATCH] target-mips: clean-up in BIT_INSV

2013-05-09 Thread Aurelien Jarno
On Thu, May 09, 2013 at 07:28:37PM +0200, Petar Jovanovic wrote: From: Petar Jovanovic petar.jovano...@imgtec.com This is a small follow-up change to fix incorrect behaviour for INSV. It includes two minor modifications: - sizefilter is constant so it can be moved inside of the block, -

Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/7] pci: add MPC105 PCI host bridge emulation

2013-05-09 Thread Blue Swirl
On Tue, May 7, 2013 at 5:48 AM, Hervé Poussineau hpous...@reactos.org wrote: Andreas Färber a écrit : Am 06.05.2013 22:57, schrieb Hervé Poussineau: Alexander Graf a écrit : On 05/03/2013 07:57 AM, Hervé Poussineau wrote: Alexander Graf a écrit : Am 02.05.2013 um 22:08 schrieb Hervé

Re: [Qemu-devel] [RFC] reverse execution.

2013-05-09 Thread Blue Swirl
On Tue, May 7, 2013 at 6:27 PM, KONRAD Frédéric fred.kon...@greensocs.com wrote: Hi, We are trying to find a way to do reverse execution happen with QEMU. Actually, it is possible to debug the guest through the gdbstub, we want to make the reverse execution possible with GDB as well. How

Re: [Qemu-devel] [PATCH] target-mips: clean-up in BIT_INSV

2013-05-09 Thread Peter Maydell
On 9 May 2013 18:28, Petar Jovanovic petar.jovano...@rt-rk.com wrote: @@ -2921,7 +2922,7 @@ target_ulong helper_##name(CPUMIPSState *env, target_ulong rs, \ return rt; \ } \

Re: [Qemu-devel] sparc-linux-user: Fix missing symbols in .rel/.rela.plt sections

2013-05-09 Thread Blue Swirl
On Wed, May 8, 2013 at 7:18 AM, Michael Tokarev m...@tls.msk.ru wrote: Ping #2? 06.04.2013 10:08, Michael Tokarev wrote: This patch was submitted more than a year ago (at Jan-2012). Is it still needed? If yes, why it hasn't been applied? Well, is it still needed? It still applies cleanly

Re: [Qemu-devel] Reporting Heisenbugs in qemu

2013-05-09 Thread Blue Swirl
On Wed, May 8, 2013 at 10:18 AM, Paolo Bonzini pbonz...@redhat.com wrote: Paolo Bonzini pbonz...@redhat.com writes: I guess that's the register windows. There's only so much you can do to optimize them, and heavily recursive workloads (like Perl, or the RTL half of GCC) pay a hefty

Re: [Qemu-devel] Profiling sparc64 emulation

2013-05-09 Thread Aurelien Jarno
On Wed, May 08, 2013 at 11:02:24PM +0200, Artyom Tarasenko wrote: On Wed, May 8, 2013 at 12:57 AM, Aurelien Jarno aurel...@aurel32.net wrote: On Tue, May 07, 2013 at 11:29:20PM +0200, Artyom Tarasenko wrote: On Tue, May 7, 2013 at 1:38 PM, Torbjorn Granlund t...@gmplib.org wrote: The 2nd

Re: [Qemu-devel] Profiling sparc64 emulation

2013-05-09 Thread Paolo Bonzini
Il 09/05/2013 20:30, Aurelien Jarno ha scritto: 13,16% libglib-2.0.so.0.3200.4 [.] g_hash_table_lookup 8,18% libglib-2.0.so.0.3200.4 [.] g_str_hash 2,47% qemu-system-ppc64[.] object_class_dynamic_cast 1,97% qemu-system-ppc64[.] type_is_ancestor That's worrisome,

[Qemu-devel] [RFC PATCH v5 2/3] Add 'auto-converge' migration capability

2013-05-09 Thread Chegu Vinod
The auto-converge migration capability allows the user to specify if they choose live migration seqeunce to automatically detect and force convergence. Signed-off-by: Chegu Vinod chegu_vi...@hp.com --- include/migration/migration.h |2 ++ migration.c |9 +

[Qemu-devel] [RFC PATCH v5 0/3] Throttle-down guest to help with live migration convergence.

2013-05-09 Thread Chegu Vinod
Busy enterprise workloads hosted on large sized VM's tend to dirty memory faster than the transfer rate achieved via live guest migration. Despite some good recent improvements ( using dedicated 10Gig NICs between hosts) the live migration does NOT converge. If a user chooses to force convergence

[Qemu-devel] [RFC PATCH v5 1/3] Introduce async_run_on_cpu()

2013-05-09 Thread Chegu Vinod
Introduce an asynchronous version of run_on_cpu() i.e. the caller doesn't have to block till the call back routine finishes execution on the target vcpu. Signed-off-by: Chegu Vinod chegu_vi...@hp.com --- cpus.c| 29 + include/qemu-common.h |1

[Qemu-devel] [RFC PATCH v5 3/3] Force auto-convegence of live migration

2013-05-09 Thread Chegu Vinod
If a user chooses to turn on the auto-converge migration capability these changes detect the lack of convergence and throttle down the guest. i.e. force the VCPUs out of the guest for some duration and let the migration thread catchup and help converge. Verified the convergence using the

Re: [Qemu-devel] [RFC PATCH v5 3/3] Force auto-convegence of live migration

2013-05-09 Thread Igor Mammedov
On Thu, 9 May 2013 12:43:20 -0700 Chegu Vinod chegu_vi...@hp.com wrote: If a user chooses to turn on the auto-converge migration capability these changes detect the lack of convergence and throttle down the guest. i.e. force the VCPUs out of the guest for some duration and let the

Re: [Qemu-devel] Profiling sparc64 emulation

2013-05-09 Thread Artyom Tarasenko
On Thu, May 9, 2013 at 8:30 PM, Aurelien Jarno aurel...@aurel32.net wrote: On Wed, May 08, 2013 at 11:02:24PM +0200, Artyom Tarasenko wrote: On Wed, May 8, 2013 at 12:57 AM, Aurelien Jarno aurel...@aurel32.net wrote: On Tue, May 07, 2013 at 11:29:20PM +0200, Artyom Tarasenko wrote: On Tue,

Re: [Qemu-devel] [RFC PATCH v5 3/3] Force auto-convegence of live migration

2013-05-09 Thread Igor Mammedov
On Thu, 9 May 2013 12:43:20 -0700 Chegu Vinod chegu_vi...@hp.com wrote: If a user chooses to turn on the auto-converge migration capability these changes detect the lack of convergence and throttle down the guest. i.e. force the VCPUs out of the guest for some duration and let the

Re: [Qemu-devel] Profiling sparc64 emulation

2013-05-09 Thread Richard Henderson
On 05/09/2013 01:11 PM, Artyom Tarasenko wrote: Is it possible to disable some optimisations, or the whole optimisation completely? I see no command line switches for that. No command-line switches. See the top lines of tcg/tcg.c for compile-time disabling. r~

Re: [Qemu-devel] [PATCH v6 00/11] rdma: migration support

2013-05-09 Thread Chegu Vinod
On 5/9/2013 10:20 AM, Michael R. Hines wrote: Comments inline. FYI: please CC mrhi...@us.ibm.com, because it helps me know when to scroll threw the bazillion qemu-devel emails. I have things separated out into folders and rules, but a direct CC is better =) Sure will do. On 05/03/2013

Re: [Qemu-devel] [RFC PATCH v5 3/3] Force auto-convegence of live migration

2013-05-09 Thread Chegu Vinod
On 5/9/2013 1:05 PM, Igor Mammedov wrote: On Thu, 9 May 2013 12:43:20 -0700 Chegu Vinod chegu_vi...@hp.com wrote: If a user chooses to turn on the auto-converge migration capability these changes detect the lack of convergence and throttle down the guest. i.e. force the VCPUs out of the

Re: [Qemu-devel] [PATCH v6 00/11] rdma: migration support

2013-05-09 Thread Michael R. Hines
Some more followup questions below to help me debug before I start digging in... On 05/09/2013 06:20 PM, Chegu Vinod wrote: Setting aside the mlock() freezes for the moment, let's first fix your crashing problem on the destination-side. Let's make that a priority before we fix the

Re: [Qemu-devel] [RFC PATCH v5 3/3] Force auto-convegence of live migration

2013-05-09 Thread Chegu Vinod
On 5/9/2013 1:24 PM, Igor Mammedov wrote: On Thu, 9 May 2013 12:43:20 -0700 Chegu Vinod chegu_vi...@hp.com wrote: If a user chooses to turn on the auto-converge migration capability these changes detect the lack of convergence and throttle down the guest. i.e. force the VCPUs out of the

Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-09 Thread liu ping fan
On Thu, May 9, 2013 at 10:50 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 09/05/2013 02:53, liu ping fan ha scritto: On Wed, May 8, 2013 at 11:44 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 08/05/2013 08:20, liu ping fan ha scritto: On Mon, May 6, 2013 at 10:25 PM, Paolo Bonzini

  1   2   >