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, wrote: > From: Li Zhang > > Functions pci_vga_init() and pci_

Re: [Qemu-devel] target ARM PC increment

2012-07-03 Thread Peter Maydell
On 3 July 2012 01:53, David Munday 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 > getting skipped or

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-syste

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

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 changi

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 > Let the text console cursor blink at 5 HZ. > > Signed-off-by: Jan Kiszka > --- > console.c | 26 +- > 1 files changed, 25 insertions(+), 1 deletions(-) > > diff

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 > >

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 > >> Let the text console cursor blink at 5 HZ. >> >> Signed-off-by: Jan Kiszka >> --- >> console.c | 26 +- >> 1 fil

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. > > > >

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 --- scripts/simpletrace.py | 116 +++- 1 file changed, 75 insertions(+), 41 deletions(-) diff --git a/scripts/simpletrace.py b/scripts/simpletrace.py in

[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 ha

[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 version=9P200

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 se

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 > > > >> Let the text console cursor blink at 5 HZ. > >> > >> Signed-off-

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 i386-linux-

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 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 > --- > v2: Use the right part of

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

2012-07-03 Thread Juan Quintela
Igor Mitsyanko 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 >> --- >> arch_init.c |9 ++--- >> 1 file changed, 6 inse

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'

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, defau

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 10

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)? >> >> Tr

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 > > > Signed-off-by: Royce Lv 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

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 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 defined by > 32

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 qem

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 n

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 > --- > block/sheepdog.c | 14 ++ > 1 files changed, 14 insertions(+), 0 deletions(-) Paolo, is this how qemu_co_recv/send are suppo

[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 samba

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 > Linu

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 of

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 wi

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 > --- > block/sheepdog.c | 10 -- > 1 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/block/sheepdog.c b/block/sheepdog.c > index

[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 --- hw/virtio-blk.c | 16 ++-- h

[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 (meani

[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 was

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

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 > sheep

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

2012-07-03 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau --- 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 *chr, MuxDriver *d, int

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 >> > --- >> > 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 functions take care

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 via

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

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_FLU

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 --- 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 000..f00d63f ---

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

2012-07-03 Thread Orit Wasserman
Signed-off-by: Orit Wasserman --- 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 "exec-memory.h" #includ

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 wrote: > > Signed-off-by: Fabien Chouteau > --- > 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 @@

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

2012-07-03 Thread Orit Wasserman
Signed-off-by: Benoit Hudzia Signed-off-by: Petter Svard Signed-off-by: Aidan Shribman Signed-off-by: Orit Wasserman --- arch_init.c | 26 ++ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/arch_init.c b/arch_init.c index a9e8b74..9dafb6e 100644 --- a

[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 --- 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 --- a/cutils.c +++

[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 --- 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 +188,7 @@ static int r

[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 Signed-of

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

2012-07-03 Thread Orit Wasserman
Signed-off-by: Orit Wasserman --- 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) g_free(blocks); } +

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

[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 Signed-off-by: Petter Svard Signed-off-by: Aidan Shribman Signed-off-by: Orit Wasserman --- Makefile.objs |1 + include/qemu/page_cache.h | 79 + page_cache.c

[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 migrate_set_p

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 --- console.c | 26 +- 1 files changed, 25 insertions(+), 1 deletions(-) Hi Jan, I know that there was a "bug" report. Nevertheless I'd like to ask whether QE

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

2012-07-03 Thread Orit Wasserman
Signed-off-by: Benoit Hudzia Signed-off-by: Petter Svard Signed-off-by: Aidan Shribman Signed-off-by: Orit Wasserman --- arch_init.c | 68 +- hmp.c| 13 ++ migration.c | 49 +

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 Hrdina --- 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 Eric

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 cas

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

2012-07-03 Thread Orit Wasserman
From: Isaku Yamahata Signed-off-by: Isaku Yamahata --- block-migration.c |8 migration.c | 13 - migration.h |8 ++-- qemu-common.h |1 + savevm.c | 13 + sysemu.h |3 ++- vmstate.h |2 +- 7 f

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 >> --- >> console.c | 26 +- >> 1 files changed, 25 insertions(+), 1 deletions(-) >> > > Hi Jan, > > I know that

[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 Signed-off-by: Petter Svard Signed-off-by: Aidan Shribman Signed-off-by: Orit Wasserman --- arch_init.c | 10 ++ hm

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

[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 Signed-off-by: Petter Svard Signed-off-by: Aidan Shribman Signed-off-by: Orit Wasserman --- migration.h |4 ++ savevm.c| 172 +++ 2 files changed, 176 insertions(+), 0 deletions(-) diff --git a/migra

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()... >

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_ad

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 comm

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; >> > +

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 : > > 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 body of a me

[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 han

[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 pat

[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 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 default. I paid some times to

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 u

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 design.

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): > /usr/

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 aga

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 con

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 ref

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: >

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 ca

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 > > run

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 wrote: > Blue Swirl writes: > >> On Fri, Jun 29, 2012 at 3:34 PM, Markus Armbruster wrote: >>> Commit f3d54fc4 factored it out of hw/ide.c for reuse. Sensible, >>> except it was put into block.c. Device-specific functionality should >>> be kep

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

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 wrote: > Am 30.06.2012 14:16, schrieb Dunrong Huang: > >> 2012/6/30 Stefan Weil : >>> >>> commit c4baa0503d9623f1ce891f525ccd140c598bc29a improved SSE table type >>> safety which now raises compiler errors when latest QEMU was configured with >>> --enab

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.

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 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 v3-compat

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, >>>

Re: [Qemu-devel] [PATCH] vga: Implement blinking of text cursor

2012-07-03 Thread Blue Swirl
On Mon, Jul 2, 2012 at 8:20 AM, Jan Kiszka wrote: > Let the text cursor blink at 5 Hz. No timer is used, instead we rely on > the fact that the display is updated periodically. > > Signed-off-by: Jan Kiszka > --- > hw/vga.c | 14 +- > hw/vga_int.h |2 ++ > 2 files changed,

Re: [Qemu-devel] [PATCH 07/17] x86: improve SSE table type safety

2012-07-03 Thread Blue Swirl
On Mon, Jul 2, 2012 at 8:53 AM, Markus Armbruster wrote: > Blue Swirl writes: > >> SSE function tables could easily be corrupted because of use >> of void pointers. >> >> Introduce function pointer types and helper variables in order >> to improve type safety. >> >> Split sse_op_table3 according

Re: [Qemu-devel] plan for device assignment upstream

2012-07-03 Thread Blue Swirl
On Mon, Jul 2, 2012 at 9:43 AM, Avi Kivity wrote: > On 07/02/2012 12:30 PM, Jan Kiszka wrote: >> On 2012-07-02 11:18, Michael S. Tsirkin wrote: >>> I've been thinking hard about Jan's patches for device >>> assignment. Basically while I thought it makes sense >>> to make all devices: assignment an

Re: [Qemu-devel] [PATCH 02/14] scsi: add a qdev property for the disk's WWN

2012-07-03 Thread Blue Swirl
On Mon, Jul 2, 2012 at 9:41 AM, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > hw/scsi-disk.c | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c > index 747e756..e87e57c 100644 > --- a/hw/scsi-disk.c > +++ b/hw/s

Re: [Qemu-devel] [PATCH 18/32] hd-geometry: Switch to uint32_t to match BlockConf

2012-07-03 Thread Blue Swirl
On Mon, Jul 2, 2012 at 2:34 PM, Stefan Hajnoczi wrote: > On Mon, Jul 2, 2012 at 3:15 PM, Markus Armbruster wrote: >> Andreas Färber writes: >> >>> Am 02.07.2012 14:55, schrieb Stefan Hajnoczi: On Fri, Jun 29, 2012 at 05:34:40PM +0200, Markus Armbruster wrote: > Best to use the same type

  1   2   >