Re: [Qemu-devel] [PATCH 5/6 v5] deal with guest panicked event accoring to -onpanic parameter

2012-07-03 Thread Wen Congyang
At 06/28/2012 04:26 PM, Jan Kiszka Wrote: On 2012-06-28 03:15, Wen Congyang wrote: At 06/27/2012 10:39 PM, Jan Kiszka Wrote: On 2012-06-27 09:02, Wen Congyang wrote: When the guest is panicked, it will write 0x1 to the port KVM_PV_PORT. So if qemu reads 0x1 from this port, we can do the

Re: [Qemu-devel] [PATCH 5/6 v5] deal with guest panicked event accoring to -onpanic parameter

2012-07-03 Thread Jan Kiszka
On 2012-07-03 08:07, Wen Congyang wrote: At 06/28/2012 04:26 PM, Jan Kiszka Wrote: On 2012-06-28 03:15, Wen Congyang wrote: At 06/27/2012 10:39 PM, Jan Kiszka Wrote: On 2012-06-27 09:02, Wen Congyang wrote: When the guest is panicked, it will write 0x1 to the port KVM_PV_PORT. So if qemu

Re: [Qemu-devel] [RFC PATCH] Expose tsc deadline timer feature to guest

2012-07-03 Thread Jan Kiszka
On 2012-07-02 13:08, Liu, Jinsong wrote: Eduardo, Jan, Andreas As we sync 3 months ago, I wait until qemu1.1 done, then re-write patch based on qemu1.1. Now it's time to re-write my patch based on qemu1.1. Attached is a RFC patch for exposing tsc deadline timer to guest. I have checked

Re: [Qemu-devel] [PATCH 5/6 v5] deal with guest panicked event accoring to -onpanic parameter

2012-07-03 Thread Wen Congyang
At 07/03/2012 02:36 PM, Jan Kiszka Wrote: On 2012-07-03 08:07, Wen Congyang wrote: At 06/28/2012 04:26 PM, Jan Kiszka Wrote: On 2012-06-28 03:15, Wen Congyang wrote: At 06/27/2012 10:39 PM, Jan Kiszka Wrote: On 2012-06-27 09:02, Wen Congyang wrote: When the guest is panicked, it will write

Re: [Qemu-devel] [PATCH 5/6 v5] deal with guest panicked event accoring to -onpanic parameter

2012-07-03 Thread Jan Kiszka
On 2012-07-03 08:43, Wen Congyang wrote: I'm not talking about changing the interface to the guest, I'm talking about how to model it in QEMU. And that difference would be transparent to the guest. I pointed you to examples like hw/kvm/clock.c. OK, I will read the code in hw/kvm/clock.c

Re: [Qemu-devel] [Qemu-ppc] [PATCH v5 2/4] Add one new file vga-pci.h

2012-07-03 Thread Li Zhang
Hi Alex, Would you please help review these patches, if you have time? This patch should work with [3/4], which cleanup all the places where pci_vga_init() and pci_cirrus_vga_init() are used. Thanks. On Mon, Jul 2, 2012 at 1:25 PM, zhlci...@gmail.com wrote: From: Li Zhang

Re: [Qemu-devel] target ARM PC increment

2012-07-03 Thread Peter Maydell
On 3 July 2012 01:53, David Munday cro...@soe.ucsc.edu wrote: I'm developing with QEMU to run arm binaries. Right now I can't tell if the Thumb32 vmul.f64 instruction encoded(ee25 7b07) is executing or not. I would like to see where QEMU increments the PC so as to see if this instruction is

Re: [Qemu-devel] [PATCH] usb: selective endpoint initialization

2012-07-03 Thread Jan Kiszka
On 2012-07-02 18:16, Gerd Hoffmann wrote: Add support for (re-)initializing endpoints which belong to a specific interface only. Use this in usb-host when changing altsetting for an interface, so other interfaces are not disturbed. qemu-system-x86_64: /data/qemu/hw/usb/host-linux.c:1220:

Re: [Qemu-devel] [PATCH] usb: selective endpoint initialization

2012-07-03 Thread Gerd Hoffmann
On 07/03/12 09:47, Jan Kiszka wrote: On 2012-07-02 18:16, Gerd Hoffmann wrote: Add support for (re-)initializing endpoints which belong to a specific interface only. Use this in usb-host when changing altsetting for an interface, so other interfaces are not disturbed. qemu-system-x86_64:

Re: [Qemu-devel] [PATCH] usb: selective endpoint initialization

2012-07-03 Thread Jan Kiszka
On 2012-07-03 10:21, Gerd Hoffmann wrote: On 07/03/12 09:47, Jan Kiszka wrote: On 2012-07-02 18:16, Gerd Hoffmann wrote: Add support for (re-)initializing endpoints which belong to a specific interface only. Use this in usb-host when changing altsetting for an interface, so other interfaces

Re: [Qemu-devel] [PATCH] usb: selective endpoint initialization

2012-07-03 Thread Jan Kiszka
On 2012-07-03 10:43, Jan Kiszka wrote: On 2012-07-03 10:21, Gerd Hoffmann wrote: On 07/03/12 09:47, Jan Kiszka wrote: On 2012-07-02 18:16, Gerd Hoffmann wrote: Add support for (re-)initializing endpoints which belong to a specific interface only. Use this in usb-host when changing altsetting

Re: [Qemu-devel] [PATCH] console: Implementing blinking of cursor

2012-07-03 Thread Alon Levy
On Mon, Jul 02, 2012 at 10:20:17AM +0200, Jan Kiszka wrote: One comment below. Reviewed-by: Alon Levy al...@redhat.com Let the text console cursor blink at 5 HZ. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- console.c | 26 +- 1 files changed, 25

Re: [Qemu-devel] [RFC PATCH 0/6] option to not remove files inside -mem-path dir (v2)

2012-07-03 Thread Daniel P. Berrange
On Mon, Jul 02, 2012 at 04:54:03PM -0300, Eduardo Habkost wrote: On Mon, Jul 02, 2012 at 07:56:58PM +0100, Daniel P. Berrange wrote: On Mon, Jul 02, 2012 at 03:06:32PM -0300, Eduardo Habkost wrote: Resending series, after fixing some coding style issues. Does anybody has any feedback

Re: [Qemu-devel] [PATCH] console: Implementing blinking of cursor

2012-07-03 Thread Jan Kiszka
On 2012-07-03 10:59, Alon Levy wrote: On Mon, Jul 02, 2012 at 10:20:17AM +0200, Jan Kiszka wrote: One comment below. Reviewed-by: Alon Levy al...@redhat.com Let the text console cursor blink at 5 HZ. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- console.c | 26

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-03 Thread Daniel P. Berrange
On Mon, Jul 02, 2012 at 04:31:09PM -0600, Eric Blake wrote: On 07/02/2012 04:02 PM, Corey Bryant wrote: Here's another option that Kevin and I discussed today on IRC. I've modified a few minor details since the discussion. And Kevin please correct me if anything is wrong. Proposal

Re: [Qemu-devel] [PATCH] usb: selective endpoint initialization

2012-07-03 Thread Gerd Hoffmann
Hi, BTW, there are still plenty of husb: out of buffers for iso stream messages. Can we do anything about it, or does the the guest selects too few buffers here (for a virtualized setup)? Try increase isobufs (usb-host property, default is 4). cheers, Gerd

[Qemu-devel] [PATCH v7 3/3] Update simpletrace.py for new log format

2012-07-03 Thread Harsh Prateek Bora
Support new tracelog format for multiple arguments and strings. Signed-off-by: Harsh Prateek Bora ha...@linux.vnet.ibm.com --- scripts/simpletrace.py | 116 +++- 1 file changed, 75 insertions(+), 41 deletions(-) diff --git a/scripts/simpletrace.py

[Qemu-devel] [PATCH v7 1/3] monitor: remove unused do_info_trace

2012-07-03 Thread Harsh Prateek Bora
Going forward with simpletrace v2 variable size trace records, we cannot have a generic function to print trace event info and therefore this interface becomes invalid. As per Stefan Hajnoczi: This command is only available from the human monitor. It's not very useful because it historically

[Qemu-devel] [PATCH v7 2/3] Simpletrace v2: Support multiple arguments, strings.

2012-07-03 Thread Harsh Prateek Bora
Existing simpletrace backend allows to trace at max 6 args and does not support strings. This newer tracelog format gets rid of fixed size records and therefore allows to trace variable number of args including strings. Sample trace with strings: v9fs_version 0.000 tag=0x id=0x64 msize=0x2000

[Qemu-devel] [PATCH v7 0/3] Simpletrace v2: Support multiple args, strings.

2012-07-03 Thread Harsh Prateek Bora
Existing simpletrace backend allows to trace at max 6 args and does not support strings. This newer tracelog format gets rid of fixed size records and therefore allows to trace variable number of args including strings. Sample trace: v9fs_version 0.000 tag=0x id=0x64 msize=0x2000

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-03 Thread Kevin Wolf
Am 03.07.2012 00:31, schrieb Eric Blake: On 07/02/2012 04:02 PM, Corey Bryant wrote: Here's another option that Kevin and I discussed today on IRC. I've modified a few minor details since the discussion. And Kevin please correct me if anything is wrong. Proposal Four: Pass a set of fds

Re: [Qemu-devel] [PATCH] console: Implementing blinking of cursor

2012-07-03 Thread Alon Levy
On Tue, Jul 03, 2012 at 11:05:50AM +0200, Jan Kiszka wrote: On 2012-07-03 10:59, Alon Levy wrote: On Mon, Jul 02, 2012 at 10:20:17AM +0200, Jan Kiszka wrote: One comment below. Reviewed-by: Alon Levy al...@redhat.com Let the text console cursor blink at 5 HZ. Signed-off-by:

Re: [Qemu-devel] [PATCH 0/4 v2] target-i386: move tcg intialization inside CPU object

2012-07-03 Thread Igor Mammedov
On 06/28/2012 02:21 PM, Jan Kiszka wrote: On 2012-06-25 15:55, Igor Mammedov wrote: v2: - drop usage of prev_debug_excp_handler consistently in all users - split from reset patches to avoid confusion of inter-dependency Compile Run tested: target-i386: tcg and kvm mode

Re: [Qemu-devel] [PATCH 1/6] qemu-log: move logging to qemu-log.c

2012-07-03 Thread Kevin Wolf
Am 09.06.2012 14:12, schrieb Blue Swirl: Move logging functions from exec.c to qemu-log.c, compile it only once. Signed-off-by: Blue Swirl blauwir...@gmail.com This broke the TARGET_I386 specific logging options. Kevin

[Qemu-devel] KVM call minutes June 29

2012-07-03 Thread Juan Quintela
Isaku reminds me that I forgot to pust that minutes: 2012-06-19 -- - migration * xbrle: ok * huge memory: needs migration-thread, but should be ok * postcopy: ask for latency: maximum/avg/std deviation ask for vcpu utilization RDMA? * xbrle don't fix all

Re: [Qemu-devel] [RESEND PATCH v2 1/4] PPC: e500: rename mpc8544ds into generic file

2012-07-03 Thread Andreas Färber
Am 03.07.2012 01:03, schrieb Scott Wood: Rename the file (with no changes other than fixing up the header paths) in preparation for refactoring into a generic e500 platform. Also move it into the newly created ppc/ directory. Signed-off-by: Scott Wood scottw...@freescale.com --- v2: Use

Re: [Qemu-devel] [PATCH 11/12] ram: iterate phase

2012-07-03 Thread Juan Quintela
Igor Mitsyanko i.mitsya...@gmail.com wrote: On 6/28/2012 11:22 PM, Juan Quintela wrote: We only need to synchronize the bitmap when the number of dirty pages is low. Not every time that we call the function. Signed-off-by: Juan Quintela quint...@redhat.com --- arch_init.c |9 ++---

Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/4] PPC: e500: rename mpc8544ds into generic file

2012-07-03 Thread Paolo Bonzini
Il 02/07/2012 23:17, Alexander Graf ha scritto: No, plain e500.o won't work no matter where you put it in the makefile (unless you add more global prefix setting). I think he's suggesting that the plan is to eventually migrate to everything specifying its full path, though I don't see why.

Re: [Qemu-devel] [PATCH] usb: selective endpoint initialization

2012-07-03 Thread Jan Kiszka
On 2012-07-03 11:17, Gerd Hoffmann wrote: Hi, BTW, there are still plenty of husb: out of buffers for iso stream messages. Can we do anything about it, or does the the guest selects too few buffers here (for a virtualized setup)? Try increase isobufs (usb-host property, default is 4).

Re: [Qemu-devel] [PATCH] add text about how to use qemu-nbd with qemu

2012-07-03 Thread Paolo Bonzini
Il 03/07/2012 13:05, xiaw...@linux.vnet.ibm.com ha scritto: + + Note: When qemu-nbd was used to export a disk that would be used by QEMU +block device, -t or --persistent must be set for that QEMU nbd client would try +connect more than one time. For eg: + qemu-nbd ./simple.img -p 10809

Re: [Qemu-devel] [PATCH] usb: selective endpoint initialization

2012-07-03 Thread Gerd Hoffmann
On 07/03/12 13:39, Jan Kiszka wrote: On 2012-07-03 11:17, Gerd Hoffmann wrote: Hi, BTW, there are still plenty of husb: out of buffers for iso stream messages. Can we do anything about it, or does the the guest selects too few buffers here (for a virtualized setup)? Try increase isobufs

Re: [Qemu-devel] [PATCH] fix typo of block stats query cmds examples

2012-07-03 Thread Kevin Wolf
Am 28.06.2012 06:36, schrieb lvro...@linux.vnet.ibm.com: From: lvroyce lvro...@linux.vnet.ibm.com Signed-off-by: Royce Lv lvro...@linux.vnet.ibm.com In fact there's also a whole bunch of commas missing across all examples touched in this patch. Kevin

Re: [Qemu-devel] KVM call agenda for Tuesday, July 3rd

2012-07-03 Thread Kevin Wolf
Am 02.07.2012 19:33, schrieb Eric Blake: On 07/02/2012 04:16 AM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. Can we discuss the future of 'getfd', the possibility of 'pass-fd', or even the enhancement of all existing monitor commands to take an

Re: [Qemu-devel] [PATCH v2] x86: Fixed incorrect segment base address addition in 64-bits mode

2012-07-03 Thread Max Filippov
On Tue, Jul 3, 2012 at 2:20 AM, Vitaly Chipounov vitaly.chipou...@epfl.ch wrote: According to the Intel manual Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3, 3.4.4 Segment Loading Instructions in IA-32e Mode: When in compatibility mode, FS and GS overrides operate as

Re: [Qemu-devel] race between kvm-kmod-3.0 and kvm-kmod-3.3 // was: race condition in qemu-kvm-1.0.1

2012-07-03 Thread Peter Lieven
Further output from my testing. Working: Linux 2.6.38 with included kvm module Linux 3.0.0 with included kvm module Not-Working: Linux 3.2.0 with included kvm module Linux 2.6.28 with kvm-kmod 3.4 Linux 3.0.0 with kvm-kmod 3.4 Linux 3.2.0 with kvm-kmod 3.4 I can trigger the race with any of

Re: [Qemu-devel] [PATCH] blockdev: warn when copy_on_read=on and readonly=on

2012-07-03 Thread Kevin Wolf
Am 27.06.2012 19:03, schrieb Stefan Hajnoczi: If the image is read-only then it's not possible to copy read data into it. Therefore copy-on-read is automatically disabled for read-only images. Up until now this behavior was silent, add a warning so the user knows why copy-on-read is not

Re: [Qemu-devel] [PATCH 2/6] sheepdog: restart I/O when socket becomes ready in do_co_req()

2012-07-03 Thread Kevin Wolf
Am 27.06.2012 00:26, schrieb MORITA Kazutaka: Currently, no one reenters the yielded coroutine. This fixes it. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) Paolo, is this how

[Qemu-devel] [PATCH] slirp: Ensure smbd and shared directory exist when enable smb

2012-07-03 Thread Dunrong Huang
Users may pass the following parameters to qemu: $ qemu-kvm -net nic -net user,smb= ... $ qemu-kvm -net nic -net user,smb ... $ qemu-kvm -net nic -net user,smb=bad_directory ... In these cases, qemu started successfully while samba server failed to start. Users will confuse since

Re: [Qemu-devel] race between kvm-kmod-3.0 and kvm-kmod-3.3 // was: race condition in qemu-kvm-1.0.1

2012-07-03 Thread Avi Kivity
On 07/03/2012 04:01 PM, Peter Lieven wrote: Further output from my testing. Working: Linux 2.6.38 with included kvm module Linux 3.0.0 with included kvm module Not-Working: Linux 3.2.0 with included kvm module Linux 2.6.28 with kvm-kmod 3.4 Linux 3.0.0 with kvm-kmod 3.4 Linux 3.2.0

Re: [Qemu-devel] KVM call agenda for Tuesday, July 3rd

2012-07-03 Thread Corey Bryant
On 07/03/2012 08:33 AM, Kevin Wolf wrote: Am 02.07.2012 19:33, schrieb Eric Blake: On 07/02/2012 04:16 AM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. Can we discuss the future of 'getfd', the possibility of 'pass-fd', or even the enhancement

Re: [Qemu-devel] race between kvm-kmod-3.0 and kvm-kmod-3.3 // was: race condition in qemu-kvm-1.0.1

2012-07-03 Thread Peter Lieven
On 03.07.2012 15:13, Avi Kivity wrote: On 07/03/2012 04:01 PM, Peter Lieven wrote: Further output from my testing. Working: Linux 2.6.38 with included kvm module Linux 3.0.0 with included kvm module Not-Working: Linux 3.2.0 with included kvm module Linux 2.6.28 with kvm-kmod 3.4 Linux 3.0.0

Re: [Qemu-devel] [PATCH 3/6] sheepdog: use coroutine based socket functions in coroutine context

2012-07-03 Thread Kevin Wolf
Am 27.06.2012 00:26, schrieb MORITA Kazutaka: This removes blocking network I/Os in coroutine context. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/block/sheepdog.c

[Qemu-devel] [PATCH 1/2] virtio-blk: support VIRTIO_BLK_F_CONFIG_WCE

2012-07-03 Thread Paolo Bonzini
Introduce a new feature bit and configuration field that provide support for toggling the cache mode between writethrough and writeback. Also rename VIRTIO_BLK_F_WCACHE to VIRTIO_BLK_F_WCE for consistency with the spec. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/virtio-blk.c | 16

[Qemu-devel] [QEMU PATCH 0/2] virtio-blk: writeback cache enable improvements

2012-07-03 Thread Paolo Bonzini
These patches let virtio-blk use the new support for toggling the cache mode between writethrough and writeback. The first patch introduces a new feature bit and configuration field to do this. The second patch disables writeback caching for guests that do not negotiate VIRTIO_BLK_F_WCACHE

[Qemu-devel] [PATCH 2/2] virtio-blk: disable write cache if not negotiated

2012-07-03 Thread Paolo Bonzini
If the guest does not support flushes, we should run in writethrough mode. The setting is temporary until the next reset, so that for example the BIOS will run in writethrough mode while Linux will run with a writeback cache. VIRTIO_BLK_F_FLUSH has been introduced in Linux 2.6.32 (in 2009) and

Re: [Qemu-devel] race between kvm-kmod-3.0 and kvm-kmod-3.3 // was: race condition in qemu-kvm-1.0.1

2012-07-03 Thread Avi Kivity
On 07/03/2012 04:15 PM, Peter Lieven wrote: On 03.07.2012 15:13, Avi Kivity wrote: On 07/03/2012 04:01 PM, Peter Lieven wrote: Further output from my testing. Working: Linux 2.6.38 with included kvm module Linux 3.0.0 with included kvm module Not-Working: Linux 3.2.0 with included kvm

Re: [Qemu-devel] [PATCH 0/6] sheepdog: various fixes

2012-07-03 Thread Kevin Wolf
Am 27.06.2012 00:26, schrieb MORITA Kazutaka: See individual patches for details. MORITA Kazutaka (6): sheepdog: fix dprintf format strings sheepdog: restart I/O when socket becomes ready in do_co_req() sheepdog: use coroutine based socket functions in coroutine context sheepdog:

[Qemu-devel] [PATCH] Use clean shutdown request for ctrl-a x

2012-07-03 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau chout...@adacore.com --- qemu-char.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-char.c b/qemu-char.c index c2aaaee..1f43c95 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -353,7 +353,7 @@ static int mux_proc_byte(CharDriverState

Re: [Qemu-devel] [PATCH 2/6] sheepdog: restart I/O when socket becomes ready in do_co_req()

2012-07-03 Thread Paolo Bonzini
Il 03/07/2012 15:09, Kevin Wolf ha scritto: Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) Paolo, is this how qemu_co_recv/send are supposed to be used? Yes. Shouldn't the

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-03 Thread Corey Bryant
On 07/02/2012 06:31 PM, Eric Blake wrote: On 07/02/2012 04:02 PM, Corey Bryant wrote: Here's another option that Kevin and I discussed today on IRC. I've modified a few minor details since the discussion. And Kevin please correct me if anything is wrong. Proposal Four: Pass a set of fds

Re: [Qemu-devel] [PATCH 1/2] virtio-blk: support VIRTIO_BLK_F_CONFIG_WCE

2012-07-03 Thread Kevin Wolf
Am 03.07.2012 15:20, schrieb Paolo Bonzini: Introduce a new feature bit and configuration field that provide support for toggling the cache mode between writethrough and writeback. Also rename VIRTIO_BLK_F_WCACHE to VIRTIO_BLK_F_WCE for consistency with the spec. My spec (and my kernel as

Re: [Qemu-devel] [PATCH 2/2] virtio-blk: disable write cache if not negotiated

2012-07-03 Thread Kevin Wolf
Am 03.07.2012 15:20, schrieb Paolo Bonzini: If the guest does not support flushes, we should run in writethrough mode. The setting is temporary until the next reset, so that for example the BIOS will run in writethrough mode while Linux will run with a writeback cache. VIRTIO_BLK_F_FLUSH

Re: [Qemu-devel] [PATCH 2/2] virtio-blk: disable write cache if not negotiated

2012-07-03 Thread Paolo Bonzini
Il 03/07/2012 15:49, Kevin Wolf ha scritto: If the guest does not support flushes, we should run in writethrough mode. The setting is temporary until the next reset, so that for example the BIOS will run in writethrough mode while Linux will run with a writeback cache.

[Qemu-devel] [PATCH v14 03/13] Add XBZRLE documentation

2012-07-03 Thread Orit Wasserman
Signed-off-by: Orit Wasserman owass...@redhat.com --- docs/xbzrle.txt | 133 +++ 1 files changed, 133 insertions(+), 0 deletions(-) create mode 100644 docs/xbzrle.txt diff --git a/docs/xbzrle.txt b/docs/xbzrle.txt new file mode 100644 index

[Qemu-devel] [PATCH v14 07/13] Add debugging infrastructure

2012-07-03 Thread Orit Wasserman
Signed-off-by: Orit Wasserman owass...@redhat.com --- arch_init.c | 33 +++-- 1 files changed, 27 insertions(+), 6 deletions(-) diff --git a/arch_init.c b/arch_init.c index 9dafb6e..ee20c33 100644 --- a/arch_init.c +++ b/arch_init.c @@ -44,6 +44,14 @@ #include

Re: [Qemu-devel] [PATCH] Use clean shutdown request for ctrl-a x

2012-07-03 Thread Peter Maydell
On 3 July 2012 14:38, Fabien Chouteau chout...@adacore.com wrote: Signed-off-by: Fabien Chouteau chout...@adacore.com --- qemu-char.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-char.c b/qemu-char.c index c2aaaee..1f43c95 100644 --- a/qemu-char.c +++

[Qemu-devel] [PATCH v14 06/13] Add save_block_hdr function

2012-07-03 Thread Orit Wasserman
Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com Signed-off-by: Orit Wasserman owass...@redhat.com --- arch_init.c | 26 ++ 1 files changed, 14 insertions(+), 12

[Qemu-devel] [PATCH v14 05/13] Add uleb encoding/decoding functions

2012-07-03 Thread Orit Wasserman
Implement Unsigned Little Endian Base 128. Signed-off-by: Orit Wasserman owass...@redhat.com --- cutils.c | 32 qemu-common.h |8 2 files changed, 40 insertions(+), 0 deletions(-) diff --git a/cutils.c b/cutils.c index af308cd..3f81d53 100644

[Qemu-devel] [PATCH v14 08/13] Change ram_save_block to return -1 if there are no more changes

2012-07-03 Thread Orit Wasserman
It will return 0 if the page is unmodifed. Signed-off-by: Orit Wasserman owass...@redhat.com --- arch_init.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/arch_init.c b/arch_init.c index ee20c33..e763909 100644 --- a/arch_init.c +++ b/arch_init.c @@ -188,7

[Qemu-devel] [PATCH v14 11/13] Add XBZRLE to ram_save_block and ram_save_live

2012-07-03 Thread Orit Wasserman
In the outgoing migration check to see if the page is cached and changed than send compressed page by using save_xbrle_page function. In the incoming migration check to see if RAM_SAVE_FLAG_XBRLE is set and decompress the page (by using load_xbrle function). Signed-off-by: Benoit Hudzia

[Qemu-devel] [PATCH v14 09/13] Add migration_end function

2012-07-03 Thread Orit Wasserman
Signed-off-by: Orit Wasserman owass...@redhat.com --- arch_init.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch_init.c b/arch_init.c index e763909..66df017 100644 --- a/arch_init.c +++ b/arch_init.c @@ -304,6 +304,11 @@ static void sort_ram_list(void)

Re: [Qemu-devel] [PATCH 1/2] virtio-blk: support VIRTIO_BLK_F_CONFIG_WCE

2012-07-03 Thread Paolo Bonzini
Il 03/07/2012 15:46, Kevin Wolf ha scritto: Introduce a new feature bit and configuration field that provide support for toggling the cache mode between writethrough and writeback. Also rename VIRTIO_BLK_F_WCACHE to VIRTIO_BLK_F_WCE for consistency with the spec. My spec (and my kernel

[Qemu-devel] [PATCH v14 04/13] Add cache handling functions

2012-07-03 Thread Orit Wasserman
Add LRU page cache mechanism. The page are accessed by their address. Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com Signed-off-by: Orit Wasserman owass...@redhat.com --- Makefile.objs

[Qemu-devel] [PATCH v14 02/13] Add migration capabilities

2012-07-03 Thread Orit Wasserman
Add migration capabilities that can be queried by the management. The management can query the source QEMU and the destination QEMU in order to verify both support some migration capability (currently only XBZRLE). The management can enable a capability for the next migration by using

Re: [Qemu-devel] [PATCH] console: Implementing blinking of cursor

2012-07-03 Thread Stefan Weil
Am 02.07.2012 10:20, schrieb Jan Kiszka: Let the text console cursor blink at 5 HZ. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- console.c | 26 +- 1 files changed, 25 insertions(+), 1 deletions(-) Hi Jan, I know that there was a bug report. Nevertheless I'd

[Qemu-devel] [PATCH v14 13/13] Add XBZRLE statistics

2012-07-03 Thread Orit Wasserman
Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com Signed-off-by: Orit Wasserman owass...@redhat.com --- arch_init.c | 68 +- hmp.c

Re: [Qemu-devel] [PATCH v6 5/6] fdc_test: update media_change test

2012-07-03 Thread Pavel Hrdina
On 06/25/2012 11:50 AM, Kevin Wolf wrote: Am 22.06.2012 12:33, schrieb Pavel Hrdina: After rewrite DSKCHG bit handling the test has to be updated. Now is needed to seek to different track to clear DSKCHG bit. Signed-off-by: Pavel Hrdinaphrd...@redhat.com --- tests/fdc-test.c | 29

[Qemu-devel] [PATCH v14 00/13] XBZRLE delta for live migration of large memory app

2012-07-03 Thread Orit Wasserman
Changes from v13: - Fix round to power of 2 of cache size - Add more checks to the XBZRLE encoding. - use comparison instead of XOR when calculating zrun_len - use strcmp trick for calculating nzrun_len (algorithm from Eric Blake) - Fix other comments by

Re: [Qemu-devel] [PATCH] Use clean shutdown request for ctrl-a x

2012-07-03 Thread Paolo Bonzini
Il 03/07/2012 16:00, Peter Maydell ha scritto: I was just talking on #qemu this morning about the equivalent question of whether the ARM semihosting exit function ought to be doing a qemu_system_shutdown_request rather than a plain exit()... The interesting question for the qemu-char case is

[Qemu-devel] [PATCH v14 01/13] Add MigrationParams structure

2012-07-03 Thread Orit Wasserman
From: Isaku Yamahata yamah...@valinux.co.jp Signed-off-by: Isaku Yamahata yamah...@valinux.co.jp --- block-migration.c |8 migration.c | 13 - migration.h |8 ++-- qemu-common.h |1 + savevm.c | 13 + sysemu.h

Re: [Qemu-devel] [PATCH] console: Implementing blinking of cursor

2012-07-03 Thread Jan Kiszka
On 2012-07-03 16:41, Stefan Weil wrote: Am 02.07.2012 10:20, schrieb Jan Kiszka: Let the text console cursor blink at 5 HZ. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- console.c | 26 +- 1 files changed, 25 insertions(+), 1 deletions(-) Hi Jan, I know

[Qemu-devel] [PATCH v14 12/13] Add set_cachesize command

2012-07-03 Thread Orit Wasserman
Change XBZRLE cache size in bytes (the size should be a power of 2). If XBZRLE cache size is too small there will be many cache miss. Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com

Re: [Qemu-devel] [PATCH 0/6] blkdebug changes extracted from 1.2 streaming patches

2012-07-03 Thread Paolo Bonzini
Il 06/06/2012 08:10, Paolo Bonzini ha scritto: Hi, these patches are prerequisites for testing streaming error handling. They should be useful on their own, so I am sending them early to keep the queue small. Paolo Bonzini (6): blkdebug: remove sync i/o events blkdebug: tiny cleanup

[Qemu-devel] [PATCH v14 10/13] Add xbzrle_encode_buffer and xbzrle_decode_buffer functions

2012-07-03 Thread Orit Wasserman
Signed-off-by: Benoit Hudzia benoit.hud...@sap.com Signed-off-by: Petter Svard pett...@cs.umu.se Signed-off-by: Aidan Shribman aidan.shrib...@sap.com Signed-off-by: Orit Wasserman owass...@redhat.com --- migration.h |4 ++ savevm.c| 172

Re: [Qemu-devel] [PATCH] Use clean shutdown request for ctrl-a x

2012-07-03 Thread Fabien Chouteau
On 07/03/2012 04:49 PM, Paolo Bonzini wrote: Il 03/07/2012 16:00, Peter Maydell ha scritto: I was just talking on #qemu this morning about the equivalent question of whether the ARM semihosting exit function ought to be doing a qemu_system_shutdown_request rather than a plain exit()... The

Re: [Qemu-devel] [PATCH 4/6] blkdebug: store list of active rules

2012-07-03 Thread Kevin Wolf
Am 06.06.2012 08:10, schrieb Paolo Bonzini: This prepares for the next patch, where some active rules may actually not trigger depending on input to readv/writev. Store the active rules in a SIMPLEQ (so that it can be emptied easily with QSIMPLEQ_INIT), and fetch the errno/once/immediately

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-03 Thread Corey Bryant
On 07/02/2012 06:02 PM, Corey Bryant wrote: On 06/26/2012 06:54 PM, Eric Blake wrote: On 06/26/2012 04:28 PM, Corey Bryant wrote: With this proposed series, we have usage akin to: 1. pass_fd FDSET={M} - returns a string /dev/fd/N showing QEMU's view of the FD 2. drive_add

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-03 Thread Kevin Wolf
Am 03.07.2012 17:40, schrieb Corey Bryant: Thanks again for taking time to discuss this at today's QEMU community call. Here's the proposal we discussed at the call. Please let me know if I missed anything or if there are any issues with this design. Proposal Five: New monitor commands

Re: [Qemu-devel] [PATCH 4/6] blkdebug: store list of active rules

2012-07-03 Thread Paolo Bonzini
Il 03/07/2012 17:40, Kevin Wolf ha scritto: case ACTION_INJECT_ERROR: -vars-inject_errno = rule-options.inject.error; -vars-inject_once= rule-options.inject.once; -vars-inject_immediately = rule-options.inject.immediately; +if

Re: [Qemu-devel] KVM call agenda for Tuesday, July 3rd

2012-07-03 Thread 王永博
does KVM have the function like vmsafe to develop security software for Virtualization 。 2012/7/2 Juan Quintela quint...@redhat.com: Hi Please send in any agenda items you are interested in covering. Later, Juan. -- To unsubscribe from this list: send the line unsubscribe kvm in the

[Qemu-devel] qemu doesn't handle big frame in codes for emulating e1000 NIC

2012-07-03 Thread Rugang Chen
I use e1000 NIC in virtual guest, and the driver in the guest has disable LPE(write ~E1000_RCTL_LPE to E1000_RCTL register of e1000 NIC). But the virtual NIC still forward big frame(bigger than MTU set to the driver) to the driver. And in the file hw/e1000.c, I don't say any codes that handle

[Qemu-devel] [Bug 1020484] [NEW] RFE: Support spice via unix domain socket

2012-07-03 Thread Till Maas
Public bug reported: According to the man page, spice can be only used via TCP/IP in opposite to VNC, which can also be configured to listen on a unix domain socket. To make it easy to use spice without exposing the interface, please support unix domain sockets as well. I can try to provide a

[Qemu-devel] q35 and ahci

2012-07-03 Thread Jason Baron
Hi, Update on q35 testing with various os's. Linux - -RHEL6.3 installs + runs -Fedora 16 install + runs -Fedora 17 - squashfs errors running on already installed f17 seems ok. Windows --- -W7 - install error: A required cd/dvd device driver is missing. If you have a driver floppy

[Qemu-devel] [PATCH] add text about how to use qemu-nbd with qemu

2012-07-03 Thread xiawenc
From: Wenchao Xia xiaw...@linux.vnet.ibm.com Qemu system emulator reports only fails that make people confused about why, when it is invoked with nbd block device tring to connect qemu-nbd server. In fact qemu will try connect server for several times but server only accept one connect by

Re: [Qemu-devel] [PATCH] add text about how to use qemu-nbd with qemu

2012-07-03 Thread Wei-Ren Chen
+ + Note: When qemu-nbd was used to export a disk that would be used by QEMU +block device, -t or --persistent must be set for that QEMU nbd client would try +connect more than one time. For eg: ^^ Not a native english speaker, but I never see such usage

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-03 Thread Corey Bryant
On 07/03/2012 11:59 AM, Kevin Wolf wrote: Am 03.07.2012 17:40, schrieb Corey Bryant: Thanks again for taking time to discuss this at today's QEMU community call. Here's the proposal we discussed at the call. Please let me know if I missed anything or if there are any issues with this

Re: [Qemu-devel] race condition in qemu-kvm-1.0.1

2012-07-03 Thread Marcelo Tosatti
On Wed, Jun 27, 2012 at 12:35:22PM +0200, Peter Lieven wrote: Hi, we recently came across multiple VMs racing and stopping working. It seems to happen when the system is at 100% cpu. One way to reproduce this is: qemu-kvm-1.0.1 with vnc-thread enabled cmdline (or similar):

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-03 Thread Eric Blake
On 07/03/2012 10:25 AM, Corey Bryant wrote: I thought qemu would rather return the number of the fdset (which it also assigns if none it passed, i.e. for fdset creation). Does libvirt need the number of an individual fd? If libvirt prefers to assign fdset numbers itself, I'm not against it,

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-03 Thread Corey Bryant
On 07/03/2012 01:03 PM, Eric Blake wrote: On 07/03/2012 10:25 AM, Corey Bryant wrote: I thought qemu would rather return the number of the fdset (which it also assigns if none it passed, i.e. for fdset creation). Does libvirt need the number of an individual fd? If libvirt prefers to assign

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-03 Thread Eric Blake
On 07/03/2012 11:46 AM, Corey Bryant wrote: Yes, I think adding a +1 to the refcount for the monitor makes sense. I'm a bit unsure how to increment the refcount when a monitor reconnects though. Maybe it is as simple as adding a +1 to each fd's refcount when the next QMP monitor

Re: [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-03 Thread Corey Bryant
On 07/03/2012 02:00 PM, Eric Blake wrote: On 07/03/2012 11:46 AM, Corey Bryant wrote: Yes, I think adding a +1 to the refcount for the monitor makes sense. I'm a bit unsure how to increment the refcount when a monitor reconnects though. Maybe it is as simple as adding a +1 to each fd's

Re: [Qemu-devel] q35 and ahci

2012-07-03 Thread Alexander Graf
On 03.07.2012, at 18:16, Jason Baron wrote: Hi, Update on q35 testing with various os's. Linux - -RHEL6.3 installs + runs -Fedora 16 install + runs -Fedora 17 - squashfs errors running on already installed f17 seems ok. Windows --- -W7 - install error: A required

Re: [Qemu-devel] [PATCH v14 02/13] Add migration capabilities

2012-07-03 Thread Eric Blake
On 07/03/2012 07:52 AM, Orit Wasserman wrote: Add migration capabilities that can be queried by the management. The management can query the source QEMU and the destination QEMU in order to verify both support some migration capability (currently only XBZRLE). The management can enable a

Re: [Qemu-devel] q35 and ahci

2012-07-03 Thread Jason Baron
On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote: On 03.07.2012, at 18:16, Jason Baron wrote: Hi, Update on q35 testing with various os's. Linux - -RHEL6.3 installs + runs -Fedora 16 install + runs -Fedora 17 - squashfs errors running on already

Re: [Qemu-devel] [PATCH 08/32] hd-geometry: Move disk geometry guessing back from block.c

2012-07-03 Thread Blue Swirl
On Sat, Jun 30, 2012 at 5:50 AM, Markus Armbruster arm...@redhat.com wrote: Blue Swirl blauwir...@gmail.com writes: On Fri, Jun 29, 2012 at 3:34 PM, Markus Armbruster arm...@redhat.com wrote: Commit f3d54fc4 factored it out of hw/ide.c for reuse. Sensible, except it was put into block.c.

Re: [Qemu-devel] q35 and ahci

2012-07-03 Thread Alexander Graf
On 03.07.2012, at 20:38, Jason Baron wrote: On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote: On 03.07.2012, at 18:16, Jason Baron wrote: Hi, Update on q35 testing with various os's. Linux - -RHEL6.3 installs + runs -Fedora 16 install + runs -Fedora 17 -

Re: [Qemu-devel] [PATCH] target-i386: Fix compilation with --enable-debug

2012-07-03 Thread Blue Swirl
On Sat, Jun 30, 2012 at 1:46 PM, Stefan Weil s...@weilnetz.de wrote: Am 30.06.2012 14:16, schrieb Dunrong Huang: 2012/6/30 Stefan Weil s...@weilnetz.de: commit c4baa0503d9623f1ce891f525ccd140c598bc29a improved SSE table type safety which now raises compiler errors when latest QEMU was

Re: [Qemu-devel] q35 and ahci

2012-07-03 Thread Jason Baron
On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote: On 03.07.2012, at 20:38, Jason Baron wrote: On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote: On 03.07.2012, at 18:16, Jason Baron wrote: Hi, Update on q35 testing with various os's. Linux -

Re: [Qemu-devel] [PATCH] w32: Fix broken build (missing include file)

2012-07-03 Thread Blue Swirl
On Sun, Jul 1, 2012 at 2:26 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 16/06/2012 20:48, Artyom Tarasenko ha scritto: But still, it's not possible for all contributions, right? To sum this up: GPL v2+ are allowed non-GPL contributions are allowed Yes, as long as they are GPLv2- and

Re: [Qemu-devel] q35 and ahci

2012-07-03 Thread Alexander Graf
On 03.07.2012, at 20:46, Jason Baron wrote: On Tue, Jul 03, 2012 at 08:41:29PM +0200, Alexander Graf wrote: On 03.07.2012, at 20:38, Jason Baron wrote: On Tue, Jul 03, 2012 at 08:25:52PM +0200, Alexander Graf wrote: On 03.07.2012, at 18:16, Jason Baron wrote: Hi, Update on q35

  1   2   >