[Qemu-devel] [PATCH] Fix multiple qemu-options.def generation

2011-01-14 Thread Pavel Dovgaluk
This patch fixes generation of multiple instances of qemu-options.def by make script (at least for building in Windows). Previous version had the following problem: you can built qemu, break the contents of qemu-options.hx and build qemu successfully again. Broken qemu-options.hx will not affect

[Qemu-devel] Re: [PATCH uq/master 2/2] MCE, unpoison memory address across reboot

2011-01-14 Thread Jan Kiszka
Am 14.01.2011 02:51, Huang Ying wrote: > On Thu, 2011-01-13 at 17:01 +0800, Jan Kiszka wrote: >> Am 13.01.2011 09:34, Huang Ying wrote: >>> In Linux kernel HWPoison processing implementation, the virtual >>> address in processes mapping the error physical memory page is marked >>> as HWPoison. So

Re: [Qemu-devel] Re: [Spice-devel] paravirtual mouse/tablet

2011-01-14 Thread Gerd Hoffmann
Hi, I think that has to be outside of the device. There are so many ways to map mice to multi heads. In fact, one mouse could easily map to a single device. It's almost something that really should be part of the guest configuration. Ok, reasonable. Multihead with spice pretty much requires

Re: [Qemu-devel] [PATCH] Fix multiple qemu-options.def generation

2011-01-14 Thread Stefan Hajnoczi
2011/1/14 Pavel Dovgaluk : > -qemu-options.def: $(SRC_PATH)/qemu-options.hx > +%qemu-options.def: $(SRC_PATH)/qemu-options.hx What tree is this patch against? qemu.git/master does have a rule for qemu-options.def in Makefile.objs. Please retest on qemu.git/master and send a new patch if necessar

[Qemu-devel] Re: [PATCH 0/8] make -qmp stdio usable

2011-01-14 Thread Paolo Bonzini
On 12/23/2010 01:42 PM, Paolo Bonzini wrote: This patch series is a rewritten version of the patch to disable raw mode on the terminal when "-qmp stdio" is given on the command-line. The rewritten series has several advantages, including working for text consoles ("-qmp vc2") and especially work

[Qemu-devel] Re: [PATCH v3 00/15] preparation for autoconfy configure script

2011-01-14 Thread Paolo Bonzini
On 12/23/2010 11:43 AM, Paolo Bonzini wrote: This is part two of the configure series. It does various miscellaneous changes to the configure script that make it possible to later handle an autoconfy command-line. The rest is left for after 0.14, unless the release takes much more than expected

Re: [Qemu-devel] [PATCH 1/8] fix 'no such file' error from make_device_config.sh

2011-01-14 Thread Markus Armbruster
David Ahern writes: > On 01/13/11 06:43, Markus Armbruster wrote: >> David Ahern writes: >> >>> make_device_config currently emits an error: >>> >>> make config-all-devices.mak >>> GEN x86_64-softmmu/config-devices.mak >>> /home/dsa/kvm/releases/qemu.git/make_device_config.sh: line 21: >>>

Re: [Qemu-devel] [patch 2/3] live block copy

2011-01-14 Thread Stefan Hajnoczi
On Thu, Dec 16, 2010 at 5:44 PM, Marcelo Tosatti wrote: > Add support for live block copy. > > Signed-off-by: Marcelo Tosatti Are you still pushing this, are you looking for reviews? Stefan

Re: [Qemu-devel] Re: [Spice-devel] paravirtual mouse/tablet

2011-01-14 Thread Daniel P. Berrange
On Fri, Jan 14, 2011 at 09:49:40AM +0100, Gerd Hoffmann wrote: > >>>That maybe implies that we need an offscreen coordinate for the > >>>mouse so that you can hide the mouse when it leaves one window. > >> > >>Hmm? I fail to see why multihead is special here. > > > >If you show two mice in the gues

RE: [Qemu-devel] [PATCH] Fix multiple qemu-options.def generation

2011-01-14 Thread Pavel Dovgaluk
> 2011/1/14 Pavel Dovgaluk : > > -qemu-options.def: $(SRC_PATH)/qemu-options.hx > > +%qemu-options.def: $(SRC_PATH)/qemu-options.hx > > What tree is this patch against? qemu.git/master does have a rule for > qemu-options.def in Makefile.objs. Please retest on qemu.git/master > and send a new pat

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Gerd Hoffmann
Hi, * multitouch capabilities would be good to design in a mouse protocol for 2011, so having say 16 x/y pairs would be better Point. What do we need here? Finger $n down, finger $n up, finger $n moved to $x,$y? Does it make sense to just add this to the move+buttonup/down structs? Or

[Qemu-devel] [PATCH 4/7] vnc: fix numlock+capslock tracking

2011-01-14 Thread Gerd Hoffmann
This patch makes the numlock+capslock tracking logic only look at keydown events. Without this patch the vnc server will insert bogous capslock keypress in case it sees the following key sequence: shift down --- 'A' down --- shift up --- 'A' up ^ here

[Qemu-devel] [PATCH 0/7] usb: add migration support.

2011-01-14 Thread Gerd Hoffmann
Hi, This patch series kickstarts migration support for USB devices. For starters we'll cover the hub and the HID devices. The patch series also adds event queues for the usb mouse/table (thanks to Paolo and the Xen folks) and the usb keyboard, so we can have the queue included in the migration

[Qemu-devel] [PATCH 2/7] usb keyboard: add event event queue

2011-01-14 Thread Gerd Hoffmann
This patch adds a event queue to the usb keyboard. This makes sure the guest will see all key events even if they come in bursts. With this patch applied sending Ctrl-Alt-Del using vncviewer's F8 menu works. Also with autosuspend enabled the first keypress on a suspended keyboard takes a little l

[Qemu-devel] [PATCH 1/7] add event queueing to USB HID

2011-01-14 Thread Gerd Hoffmann
From: Paolo Bonzini The polling nature of the USB HID device makes it very hard to double click or drag while on a high-latency VNC connection. This patch, based on work done in the Xen qemu-dm tree by Ian Jackson, fixes this bug by adding an event queue to the device. The event queue associate

Re: [Qemu-devel] [PATCH v4 18/32] usb: uhci: remote wakeup support.

2011-01-14 Thread Gerd Hoffmann
On 01/12/11 13:25, Stefan Hajnoczi wrote: On Wed, Jan 12, 2011 at 11:20 AM, Gerd Hoffmann wrote: Add support for remote wakeup to the UHCI adapter. It would be nice to document the guest configuration steps for users so they can take advantage of this. Perhaps on the qemu.org wiki? Or http:

[Qemu-devel] [PATCH 6/7] usb hub: add migration support

2011-01-14 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb-hub.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/hw/usb-hub.c b/hw/usb-hub.c index 78698ca..3dd31ba 100644 --- a/hw/usb-hub.c +++ b/hw/usb-hub.c @@ -544,11 +544,35 @@ static int usb_hub_initfn(USBDevice

[Qemu-devel] [PATCH 7/7] usb hid: add migration support

2011-01-14 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb-hid.c | 66 - 1 files changed, 64 insertions(+), 2 deletions(-) diff --git a/hw/usb-hid.c b/hw/usb-hid.c index 8148d66..32ee57c 100644 --- a/hw/usb-hid.c +++ b/hw/usb-hid.c @@ -65,7 +65,7 @@ typedef

[Qemu-devel] [PATCH 3/7] usb hid: move head+n to common struct

2011-01-14 Thread Gerd Hoffmann
This patch moves the 'head' and 'n' fields from USBMouseState and USBKeyboardState to the common USBHIDState struct. Signed-off-by: Gerd Hoffmann --- hw/usb-hid.c | 46 ++ 1 files changed, 22 insertions(+), 24 deletions(-) diff --git a/hw/usb-hid.c

[Qemu-devel] [PATCH 5/7] usb core: add migration support

2011-01-14 Thread Gerd Hoffmann
Yes, seriously. There is no migration support at all for usb devices. They loose state, especially the device address, and stop responding because of that. Oops. Luckily there is so much broken usb hardware out there that the guest usually just kicks the device hard (via port reset and reinitial

[Qemu-devel] paravirtual tablet v2

2011-01-14 Thread Gerd Hoffmann
Hi, Updated according to the feedback. Multitouch not added (yet). cheers, Gerd #ifndef __QEMU_PVTABLET__ #define __QEMU_PVTABLET__ 1 /* * qemu patavirtual tablet interface */ #include /* * our virtio-serial channel name(s) */ #define QEMU_PVTABLET_FORMAT "org.qemu.pvtablet.%d" enu

Re: [Qemu-devel] [patch 2/3] live block copy

2011-01-14 Thread Marcelo Tosatti
On Fri, Jan 14, 2011 at 10:46:53AM +, Stefan Hajnoczi wrote: > On Thu, Dec 16, 2010 at 5:44 PM, Marcelo Tosatti wrote: > > Add support for live block copy. > > > > Signed-off-by: Marcelo Tosatti > > Are you still pushing this, are you looking for reviews? > > Stefan Reviews are welcome. Th

[Qemu-devel] CRIS & MicroBlaze test images

2011-01-14 Thread Edgar E. Iglesias
Hi, I've put CRIS and MB test images at: http://wiki.qemu.org/Download#QEMU_disk_images There's a set of test programs and a /selftest.sh script to simplify running the tests. I've only tested on i386 and x86_64 hosts. I hope but don't know if they'll run OK on other tcg hosts. Cheers

Re: [Qemu-devel] Re: [Spice-devel] paravirtual mouse/tablet

2011-01-14 Thread Anthony Liguori
On 01/14/2011 04:48 AM, Daniel P. Berrange wrote: NB having all mice bound to one cursor is merely the historical default behaviour. IIUC the recent "Multi-Pointer X" feature lets you now have multiple cursors, one per pointing device. https://secure.wikimedia.org/wikipedia/en/wiki/Multi-Pointer

Re: [Qemu-devel] paravirtual tablet v2

2011-01-14 Thread Anthony Liguori
On 01/14/2011 06:02 AM, Gerd Hoffmann wrote: Hi, Updated according to the feedback. Multitouch not added (yet). cheers, Gerd #ifndef __QEMU_PVTABLET__ #define __QEMU_PVTABLET__ 1 /* * qemu patavirtual tablet interface */ #include /* * our virtio-serial channel name(s) */ #define

[Qemu-devel] [PATCH 0/2] qcow2 metadata cache

2011-01-14 Thread Kevin Wolf
block-queue turned out to be too big effort to be useful for quickly fixing the performance problems that qcow2 got since we introduced the metadata flushes. While I still think the idea is right, it needs more time and qcow2 doesn't have more time. Let's come back to block-queue later when the mos

[Qemu-devel] [PATCH 2/2] qcow2: Use QcowCache

2011-01-14 Thread Kevin Wolf
Use the new functions of qcow2-cache.c for everything that works on refcount block and L2 tables. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 206 ++-- block/qcow2-refcount.c | 249 +++- block/qcow2.c

[Qemu-devel] [PATCH 1/2] qcow2: Add QcowCache

2011-01-14 Thread Kevin Wolf
This adds some new cache functions to qcow2 which can be used for caching refcount blocks and L2 tables. When used with cache=writethrough they work like the old caching code which is spread all over qcow2, so for this case we have merely a cleanup. The interesting case is with writeback caching (

Re: [Qemu-devel] paravirtual tablet v2

2011-01-14 Thread Gerd Hoffmann
/* * QEMU_PVTABLET_MSG_BTN_{DOWN,UP}, host -> guest * send button press+release events */ typedef struct qemu_pvtablet_button { uint32_t button; uint32_t mask; } qemu_pvtablet_button; What's the semantic of button and mask? I'd assume that mask is the new button mask but then I'm not sure what

Re: [Qemu-devel] Re: [Spice-devel] paravirtual mouse/tablet

2011-01-14 Thread Alon Levy
On Fri, Jan 14, 2011 at 10:48:50AM +, Daniel P. Berrange wrote: > On Fri, Jan 14, 2011 at 09:49:40AM +0100, Gerd Hoffmann wrote: > > >>>That maybe implies that we need an offscreen coordinate for the > > >>>mouse so that you can hide the mouse when it leaves one window. > > >> > > >>Hmm? I fail

[Qemu-devel] [Bug 702885] [NEW] "Internal resource leak" error with ARM NEON vmull.s32 insn

2011-01-14 Thread Wolfgang Schildbach
Public bug reported: This bug occurs in qemu, commit 78a59470e6bbc6e16dc4033767492649c1ae4cfd (most recent as of 01/14/2011). Compile, assemble, and link the code below, with the ARM tools. (I use ARM C/C++ Compiler, 4.1 [Build 462]). armasm --cpu Cortex-A8 --licensing=flex foo.s armcc --cpu Cor

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Alexander Graf
On 14.01.2011, at 12:27, Gerd Hoffmann wrote: > Hi, > >> * multitouch capabilities would be good to design in a mouse protocol >> for 2011, so having say 16 x/y pairs would be better > > Point. What do we need here? Finger $n down, finger $n up, finger $n moved > to $x,$y? Does it make sen

Re: [Qemu-devel] Re: [Spice-devel] paravirtual mouse/tablet

2011-01-14 Thread Daniel P. Berrange
On Fri, Jan 14, 2011 at 04:28:52PM +0200, Alon Levy wrote: > On Fri, Jan 14, 2011 at 10:48:50AM +, Daniel P. Berrange wrote: > > On Fri, Jan 14, 2011 at 09:49:40AM +0100, Gerd Hoffmann wrote: > > > >>>That maybe implies that we need an offscreen coordinate for the > > > >>>mouse so that you can

Re: [Spice-devel] [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Frédéric Grelot
> So it'd end up being (x,y,pressure) N times (I think 16 is fine for > the foreseeable future). It's highly speculative, but Microsoft just released Surface 2, and it is able to handle up to 40 different pressure points... It is aimed at people in reunion meeting around a table and manipulation

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Gerd Hoffmann
Hi, So it'd end up being (x,y,pressure) N times (I think 16 is fine for the foreseeable future). I'd tend to extend MOVE to (x,y,pressure,index) and send N events with the same timestamp. Needs to send only as many events as it finds fingers on the touchpad, i.e. usually just one or two,

Re: [Qemu-devel] [PATCH 1/8] fix 'no such file' error from make_device_config.sh

2011-01-14 Thread David Ahern
On 01/14/11 03:34, Markus Armbruster wrote: >>> What about: >>> >>> diff --git a/make_device_config.sh b/make_device_config.sh >>> index 596fc5b..711829c 100644 >>> --- a/make_device_config.sh >>> +++ b/make_device_config.sh >>> @@ -18,7 +18,7 @@ process_includes () { >>> >>> f=$src >>> whil

[Qemu-devel] Re: [RFC][PATCH 1/2] qcow2: Add QcowCache

2011-01-14 Thread Kevin Wolf
Am 14.01.2011 15:36, schrieb Stefan Hajnoczi: > On Mon, Jan 10, 2011 at 4:53 PM, Kevin Wolf wrote: >> +typedef struct QcowCachedTable { > > How about using Qcow2* naming? Just recently the old qcow_* functions > in qcow2.c were renamed and it would be nice to continue that. Will change it. >>

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Alexander Graf
On 14.01.2011, at 16:13, Gerd Hoffmann wrote: > Hi, > >> So it'd end up being (x,y,pressure) N times (I think 16 is fine for >> the foreseeable future). > > I'd tend to extend MOVE to (x,y,pressure,index) and send N events with the > same timestamp. Needs to send only as many events as it fi

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Anthony Liguori
On 01/14/2011 08:36 AM, Alexander Graf wrote: On 14.01.2011, at 12:27, Gerd Hoffmann wrote: Hi, * multitouch capabilities would be good to design in a mouse protocol for 2011, so having say 16 x/y pairs would be better Point. What do we need here? Finger $n down, finger

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Alexander Graf
On 14.01.2011, at 16:28, Alexander Graf wrote: > > On 14.01.2011, at 16:13, Gerd Hoffmann wrote: > >> Hi, >> >>> So it'd end up being (x,y,pressure) N times (I think 16 is fine for >>> the foreseeable future). >> >> I'd tend to extend MOVE to (x,y,pressure,index) and send N events with the >

Re: [Spice-devel] [Qemu-devel] Re: paravirtual mouse/tablet

2011-01-14 Thread Alon Levy
On Fri, Jan 14, 2011 at 02:52:35PM +, Daniel P. Berrange wrote: > On Fri, Jan 14, 2011 at 04:28:52PM +0200, Alon Levy wrote: > > On Fri, Jan 14, 2011 at 10:48:50AM +, Daniel P. Berrange wrote: > > > On Fri, Jan 14, 2011 at 09:49:40AM +0100, Gerd Hoffmann wrote: > > > > >>>That maybe implies

[Qemu-devel] [PATCH 0/3] allow online resizing of block devices

2011-01-14 Thread Christoph Hellwig
This patchset adds support for online resizing of block devices. The first patch adds a new resize monitor command which call into the existing image resize code. This is the meat of the series and probably needs quite a bit of review and help as I'm not sure about how to implement the error hand

[Qemu-devel] [PATCH 1/3] block: add resize monitor command

2011-01-14 Thread Christoph Hellwig
Add a monitor command that allows resizing of block devices while qemu is running. It uses the existing bdrv_truncate method already used by qemu-img to do it's work. Compared to qemu-img the size parsing is very simplicistic, but I think having a properly numering object is more useful for non-h

[Qemu-devel] [PATCH 2/3] block: tell drivers about an image resize

2011-01-14 Thread Christoph Hellwig
Add a new size_changed flag in the BlockDriverState and call the change_cb callback to notify drivers about a size change. Signed-off-by: Christoph Hellwig Index: qemu/block.c === --- qemu.orig/block.c 2011-01-14 17:05:49.52700336

[Qemu-devel] [PATCH 3/3] virtio-blk: tell the guest about size changes

2011-01-14 Thread Christoph Hellwig
Raise a config change interrupt when the size changed. This allows virtio-blk guest drivers to read-read the information from the config space once it got the config chaged interrupt. Signed-off-by: Christoph Hellwig Index: qemu/hw/virtio-blk.c ==

[Qemu-devel] Re: [PATCH 2/7] usb keyboard: add event event queue

2011-01-14 Thread Paolo Bonzini
On 01/14/2011 12:55 PM, Gerd Hoffmann wrote: This patch adds a event queue to the usb keyboard. This makes sure the guest will see all key events even if they come in bursts. With this patch applied sending Ctrl-Alt-Del using vncviewer's F8 menu works. Also with autosuspend enabled the first ke

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Gerd Hoffmann
Hi, For a simple tablet pressure and index would just be 0. For a simple tablet pressure would be MAX and index would be 0. But yes, I like the idea :). 0 for non-presses of course :). Sorry Right ;) There are three cases: (1) no pressure supported (i.e. your mouse moving around in th

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Gerd Hoffmann
Hi, I guess a mere tuple of (x,y,down) N times should be enough for the protocol, no? Surely, evdev has an interface to support this already. Let's just do what it does instead of inventing something that none of us can validate actually works. http://www.mjmwired.net/kernel/Documentation/

[Qemu-devel] Re: [PATCH 3/7] usb hid: move head+n to common struct

2011-01-14 Thread Paolo Bonzini
On 01/14/2011 12:55 PM, Gerd Hoffmann wrote: This patch moves the 'head' and 'n' fields from USBMouseState and USBKeyboardState to the common USBHIDState struct. Signed-off-by: Gerd Hoffmann --- hw/usb-hid.c | 46 ++ 1 files changed, 22 insertions

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Alexander Graf
On 14.01.2011, at 17:31, Gerd Hoffmann wrote: > Hi, > For a simple tablet pressure and index would just be 0. >>> >>> For a simple tablet pressure would be MAX and index would be 0. But yes, I >>> like the idea :). >> >> 0 for non-presses of course :). Sorry > > Right ;) > > There are

[Qemu-devel] paravirtual tablet v3

2011-01-14 Thread Gerd Hoffmann
Hi, Now v3 featuring multitouch ;) cheers, Gerd #ifndef __QEMU_PVTABLET__ #define __QEMU_PVTABLET__ 1 /* * qemu patavirtual tablet interface */ #include /* * our virtio-serial channel name(s) */ #define QEMU_PVTABLET_FORMAT "org.qemu.pvtablet.%d" enum qemu_pvtablet_type { QEMU_P

[Qemu-devel] Re: [RFC][PATCH 1/2] qcow2: Add QcowCache

2011-01-14 Thread Stefan Hajnoczi
On Fri, Jan 14, 2011 at 3:22 PM, Kevin Wolf wrote: > Am 14.01.2011 15:36, schrieb Stefan Hajnoczi: >> On Mon, Jan 10, 2011 at 4:53 PM, Kevin Wolf wrote: >>> +    for (i = 0; i < c->size; i++) { >>> +        c->entries[i].table = qemu_blockalign(bs, s->cluster_size); >>> +    } >> >> These could b

Re: [Qemu-devel] paravirtual mouse/tablet

2011-01-14 Thread Peter Maydell
On 14 January 2011 09:37, Anthony Liguori wrote: [multitouch] > Surely, evdev has an interface to support this already.  Let's just do what > it does instead of inventing something that none of us can validate actually > works. > > Or better yet, delay implementing it until someone actually knows

Re: [Qemu-devel] [PATCH 15/19] savevm: introduce qemu_savevm_trans_{begin, commit}.

2011-01-14 Thread Yoshiaki Tamura
2011/1/14 Blue Swirl : > On Thu, Jan 13, 2011 at 5:15 PM, Yoshiaki Tamura > wrote: >> Introduce qemu_savevm_state_{begin,commit} to send the memory and >> device info together, while avoiding cancelling memory state tracking. >> >> Signed-off-by: Yoshiaki Tamura >> --- >>  savevm.c |   88 >> +++

[Qemu-devel] [PATCH 06/19] virtio: decrement last_avail_idx with inuse before saving.

2011-01-14 Thread Yoshiaki Tamura
For regular migration inuse == 0 always as requests are flushed before save. However, event-tap log when enabled introduces an extra queue for requests which is not being flushed, thus the last inuse requests are left in the event-tap queue. Move the last_avail_idx value sent to the remote back to

[Qemu-devel] [PATCH 16/19] migration: introduce migrate_ft_trans_{put, get}_ready(), and modify migrate_fd_put_ready() when ft_mode is on.

2011-01-14 Thread Yoshiaki Tamura
Introduce migrate_ft_trans_put_ready() which kicks the FT transaction cycle. When ft_mode is on, migrate_fd_put_ready() would open ft_trans_file and turn on event_tap. To end or cancel FT transaction, ft_mode and event_tap is turned off. migrate_ft_trans_get_ready() is called to receive ack from

[Qemu-devel] [PATCH 10/19] Call init handler of event-tap at main() in vl.c.

2011-01-14 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura --- vl.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 8bbb785..9faeb27 100644 --- a/vl.c +++ b/vl.c @@ -162,6 +162,7 @@ int main(int argc, char **argv) #include "qemu-queue.h" #include "cpus.h" #include "arch_init.h

[Qemu-devel] [PATCH 12/19] Insert event_tap_mmio() to cpu_physical_memory_rw() in exec.c.

2011-01-14 Thread Yoshiaki Tamura
Record mmio write event to replay it upon failover. Signed-off-by: Yoshiaki Tamura --- exec.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index 49c28b1..4a171cc 100644 --- a/exec.c +++ b/exec.c @@ -33,6 +33,7 @@ #include "osdep.h" #include "kvm.h

[Qemu-devel] [PATCH 03/19] Introduce skip_header parameter to qemu_loadvm_state().

2011-01-14 Thread Yoshiaki Tamura
Introduce skip_header parameter to qemu_loadvm_state() so that it can be called iteratively without reading the header. Signed-off-by: Yoshiaki Tamura --- migration.c |2 +- savevm.c| 24 +--- sysemu.h|2 +- 3 files changed, 15 insertions(+), 13 deletions(-)

[Qemu-devel] [PATCH 19/19] migration: add a parser to accept FT migration incoming mode.

2011-01-14 Thread Yoshiaki Tamura
The option looks like, -incoming ::,ft_mode Signed-off-by: Yoshiaki Tamura --- migration.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/migration.c b/migration.c index 11bbdf8..7275f02 100644 --- a/migration.c +++ b/migration.c @@ -45,6 +45,12 @@ int qemu_start_i

[Qemu-devel] [PATCH 15/19] savevm: introduce qemu_savevm_trans_{begin, commit}.

2011-01-14 Thread Yoshiaki Tamura
Introduce qemu_savevm_state_{begin,commit} to send the memory and device info together, while avoiding cancelling memory state tracking. Signed-off-by: Yoshiaki Tamura --- savevm.c | 93 ++ sysemu.h |2 + 2 files changed, 95 inser

[Qemu-devel] [PATCH 00/19] Kemari for KVM v0.2.5

2011-01-14 Thread Yoshiaki Tamura
Hi, This patch series is a revised version of Kemari for KVM, which applied comments for the previous post. The current code is based on qemu.git d03d11260ee2d55579e8b76116e35ccdf5031833. The changes from v0.2.4 -> v0.2.5 are: - fixed braces and trailing spaces by using Blue's checkpatch.pl (Bl

[Qemu-devel] [PATCH 04/19] qemu-char: export socket_set_nodelay().

2011-01-14 Thread Yoshiaki Tamura
Signed-off-by: Yoshiaki Tamura --- qemu-char.c |2 +- qemu_socket.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index edc9ad6..737d347 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2116,7 +2116,7 @@ static void tcp_chr_telnet_init(int

[Qemu-devel] [PATCH 01/19] Make QEMUFile buf expandable, and introduce qemu_realloc_buffer() and qemu_clear_buffer().

2011-01-14 Thread Yoshiaki Tamura
Currently buf size is fixed at 32KB. It would be useful if it could be flexible. Signed-off-by: Yoshiaki Tamura --- hw/hw.h |2 ++ savevm.c | 20 +++- 2 files changed, 21 insertions(+), 1 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 163a683..a506688 100644 --- a/hw/

[Qemu-devel] [PATCH 08/19] savevm: introduce util functions to control ft_trans_file from savevm layer.

2011-01-14 Thread Yoshiaki Tamura
To utilize ft_trans_file function, savevm needs interfaces to be exported. Signed-off-by: Yoshiaki Tamura --- hw/hw.h |5 ++ savevm.c | 149 ++ 2 files changed, 154 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h ind

[Qemu-devel] [PATCH 18/19] Introduce -k option to enable FT migration mode (Kemari).

2011-01-14 Thread Yoshiaki Tamura
When -k option is set to migrate command, it will turn on ft_mode to start FT migration mode (Kemari). Signed-off-by: Yoshiaki Tamura --- hmp-commands.hx |7 --- migration.c |4 qmp-commands.hx |7 --- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/h

[Qemu-devel] [PATCH 02/19] Introduce read() to FdMigrationState.

2011-01-14 Thread Yoshiaki Tamura
Currently FdMigrationState doesn't support read(), and this patch introduces it to get response from the other side. Signed-off-by: Yoshiaki Tamura --- migration-tcp.c | 15 +++ migration.c | 13 + migration.h |3 +++ 3 files changed, 31 insertions(+), 0 d

[Qemu-devel] [PATCH 11/19] ioport: insert event_tap_ioport() to ioport_write().

2011-01-14 Thread Yoshiaki Tamura
Record ioport event to replay it upon failover. Signed-off-by: Yoshiaki Tamura --- ioport.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ioport.c b/ioport.c index aa4188a..74aebf5 100644 --- a/ioport.c +++ b/ioport.c @@ -27,6 +27,7 @@ #include "ioport.h" #include

[Qemu-devel] [PATCH 09/19] Introduce event-tap.

2011-01-14 Thread Yoshiaki Tamura
event-tap controls when to start FT transaction, and provides proxy functions to called from net/block devices. While FT transaction, it queues up net/block requests, and flush them when the transaction gets completed. Signed-off-by: Yoshiaki Tamura Signed-off-by: OHMURA Kei --- Makefile.targe

[Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Richard W.M. Jones
On Thu, Jan 13, 2011 at 08:27:17AM -0800, Boris Derzhavets wrote: > Windows 7 KVM install runs unbelievably fast on SL 6 ( alpha 3) vs F14 with > the > most recent libvirt stuff : Boris can you help me to parse this ... SL6 = Scientific Linux 6? And you're saying that Windows 7 is much faster o

[Qemu-devel] [PATCH 14/19] block: insert event-tap to bdrv_aio_writev() and bdrv_aio_flush().

2011-01-14 Thread Yoshiaki Tamura
event-tap function is called only when it is on, and requests sent from device emulators. Signed-off-by: Yoshiaki Tamura --- block.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index ff2795b..85bd8b8 100644 --- a/block.c +++ b/block.c @@

[Qemu-devel] [PATCH 13/19] net: insert event-tap to qemu_send_packet() and qemu_sendv_packet_async().

2011-01-14 Thread Yoshiaki Tamura
event-tap function is called only when it is on. Signed-off-by: Yoshiaki Tamura --- net.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/net.c b/net.c index 9ba5be2..1176124 100644 --- a/net.c +++ b/net.c @@ -36,6 +36,7 @@ #include "qemu-common.h" #include "qe

[Qemu-devel] SPARC emulations

2011-01-14 Thread Mateusz Loskot
Hi, I use QEMU to emulate SPARC for NetBSD. By default, it uses SUNW/SPARCStation-5. As far as I know, it is also possible to switch to SPARCStation-10. How can I find what other SPARCs are supported, if any? Also, is there any matrix with successfully tested combinations of architecture vs OS ?

[Qemu-devel] [PATCH 17/19] migration-tcp: modify tcp_accept_incoming_migration() to handle ft_mode, and add a hack not to close fd when ft_mode is enabled.

2011-01-14 Thread Yoshiaki Tamura
When ft_mode is set in the header, tcp_accept_incoming_migration() sets ft_trans_incoming() as a callback, and call qemu_file_get_notify() to receive FT transaction iteratively. We also need a hack no to close fd before moving to ft_transaction mode, so that we can reuse the fd for it. vm_change_

[Qemu-devel] [PATCH 07/19] Introduce fault tolerant VM transaction QEMUFile and ft_mode.

2011-01-14 Thread Yoshiaki Tamura
This code implements VM transaction protocol. Like buffered_file, it sits between savevm and migration layer. With this architecture, VM transaction protocol is implemented mostly independent from other existing code. Signed-off-by: Yoshiaki Tamura Signed-off-by: OHMURA Kei --- Makefile.objs

[Qemu-devel] Re: [PATCH v3 00/15] preparation for autoconfy configure script

2011-01-14 Thread Blue Swirl
Thanks, applied all. On Fri, Jan 14, 2011 at 9:58 AM, Paolo Bonzini wrote: > On 12/23/2010 11:43 AM, Paolo Bonzini wrote: >> >> This is part two of the configure series.  It does various miscellaneous >> changes to the configure script that make it possible to later handle >> an autoconfy command

[Qemu-devel] Re: [PATCH 6/8] x86_64 config: fix compile for CONFIG_VGA_ISA=n

2011-01-14 Thread David Ahern
On 01/14/11 00:31, Paolo Bonzini wrote: > On 01/13/2011 06:28 PM, David Ahern wrote: @@ -1087,8 +1087,10 @@ void pc_vga_init(PCIBus *pci_bus) } else if (std_vga_enabled) { if (pci_bus) { pci_vga_init(pci_bus); +#ifdef CONFIG_VGA_ISA

[Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Boris Derzhavets
> Boris can you help me to parse this ... > SL6 = Scientific Linux 6?  Yes, I work with SL6 alpha 4 > And you're saying that Windows 7 is much faster on SL6 than on Fedora 14? Installation itself . Packages deployment phase is much faster on SL 6 ( alpha 4), even if I don't pre-load viostor.sy

[Qemu-devel] [PATCH 05/19] vl.c: add deleted flag for deleting the handler.

2011-01-14 Thread Yoshiaki Tamura
Make deleting handlers robust against deletion of any elements in a handler by using a deleted flag like in file descriptors. Signed-off-by: Yoshiaki Tamura --- vl.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/vl.c b/vl.c index 0292184..8bbb785 100644 ---

[Qemu-devel] [PATCH V2 2/3] xen: Add xc_domain_add_to_physmap to xen_interface.

2011-01-14 Thread anthony . perard
From: Anthony PERARD This function will be used to support sync dirty bitmap. This come with a check against every Xen release, and special implementation for Xen version that doesn't have this specific call. This function will not be usable with Xen 3.3 because the behavior is different. Sign

[Qemu-devel] [PATCH V2 1/3] Introduce log_start/log_stop in CPUPhysMemoryClient

2011-01-14 Thread anthony . perard
From: Anthony PERARD In order to use log_start/log_stop with Xen as well in the vga code, this two operations have been put in CPUPhysMemoryClient. The two new functions cpu_physical_log_start,cpu_physical_log_stop are used in hw/vga.c and replace the kvm_log_start/stop. With this, vga does no l

[Qemu-devel] [PATCH V2 0/3] Xen VGA dirtybit support

2011-01-14 Thread anthony . perard
From: Anthony PERARD Hi, This three patches provides the support for sync dirty bitmap. The sync dirty bitmap is not provided for Xen 3.3. This series depends on the other series "Xen device model support". Change v1 -> v2: * Intruduce a patch to put log_start/log_stop in CPUPhysMemoryClient

[Qemu-devel] [PATCH V2 3/3] xen: Introduce VGA sync dirty bitmap support

2011-01-14 Thread anthony . perard
From: Anthony PERARD This patch introduces phys memory client for Xen. Only sync dirty_bitmap and set_memory are actually implemented. migration_log will stay empty for the moment. Xen can only log one range for bit change, so only the range in the first call will be synced. Signed-off-by: Ant

[Qemu-devel] [PATCH 00/11] misc cleanups for use of config settings

2011-01-14 Thread David Ahern
Start point for use of CONFIG options. This series addresses compiling out unwanted devices. v1 --> v2 - use Markus' solution for make_device_config - address comments from Paolo regarding CONFIG_FDC and CONFIG_VGA_ISA - add patch to actually use CONFIG options in C-code - add CONFIG_APPLESMC opti

[Qemu-devel] [PATCH 05/11] remove unused parallel_* variables from pc.c

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 18ec0df..6a55d2f 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -826,9 +826,6 @@ static const int ne2000_io[NE2000_NB_MAX] = { 0x300, 0x320, 0x340, 0x360,

[Qemu-devel] [PATCH 06/11] config: fix compile for CONFIG_NE2000_ISA=n

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc.c |4 hw/pc_piix.c |2 ++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 6a55d2f..e7514fd 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -822,9 +822,11 @@ static void load_linux(void *fw_cfg, #define NE2000_N

[Qemu-devel] [PATCH 02/11] config: settings from default-configs need to be included in header files

2011-01-14 Thread David Ahern
Currently, device config settings in the default-configs file are not propogated into the config*.h files. While the Makefile rules observe them through the *.mak files, the CONFIG options are not usable within the .c files. This patch adds the settings to the header files. To do that the host d

[Qemu-devel] [PATCH 01/11] fix 'no such file' error from make_device_config.sh

2011-01-14 Thread David Ahern
make_device_config currently emits an error: make config-all-devices.mak GEN x86_64-softmmu/config-devices.mak /home/dsa/kvm/releases/qemu.git/make_device_config.sh: line 21: /home/dsa/kvm/releases/qe Root cause is a space in the filename (determined by Markus Armbruster). Change from Marku

[Qemu-devel] [PATCH 08/11] config: fix compile for CONFIG_IDE_ISA=n

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc_piix.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 7d65e37..68f602f 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -38,9 +38,11 @@ #define MAX_IDE_BUS 2 +#ifdef CONFIG_IDE_ISA static

[Qemu-devel] [PATCH 03/11] config: fix compile for CONFIG_VMWARE_VGA=n

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index fface7d..50795e8 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1069,11 +1069,13 @@ void pc_vga_init(PCIBus *pci_bus) } else { isa_cirrus_vga_init

[Qemu-devel] [PATCH 11/11] config: allow none as a configure option to disable all sound cards

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- configure |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure b/configure index 438219b..8ae997c 100755 --- a/configure +++ b/configure @@ -77,7 +77,7 @@ cross_prefix="" cc="gcc" audio_drv_list="" audio_card_list="ac97 es1370 sb16

[Qemu-devel] [PATCH 04/11] config: fix compile for CONFIG_PARALLEL=n

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 50795e8..18ec0df 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -1138,11 +1138,13 @@ void pc_basic_device_init(qemu_irq *isa_irq, } } +#ifdef CONFIG_PARA

[Qemu-devel] [PATCH 07/11] config: handle CONFIG_VGA_ISA=n

2011-01-14 Thread David Ahern
Fix compile errors and remove -M isapc option for CONFIG_VGA_ISA=n. Signed-off-by: David Ahern --- hw/pc.c |2 ++ hw/pc_piix.c |6 ++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index e7514fd..11b570f 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -10

[Qemu-devel] [PATCH 09/11] config: fix compile for CONFIG_FDC=n

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- hw/pc.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 11b570f..b50bbc4 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -191,6 +191,7 @@ static void pic_irq_request(void *opaque, int irq, int level) #define REG_E

[Qemu-devel] [PATCH 10/11] config: add CONFIG_APPLESMC

2011-01-14 Thread David Ahern
Signed-off-by: David Ahern --- Makefile.target|3 ++- default-configs/i386-softmmu.mak |1 + default-configs/x86_64-softmmu.mak |1 + 3 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index f3ed066..24899ea 100644 --

Re: [Qemu-devel] [PATCH 0/4] target-arm: get IT bits right at exceptions

2011-01-14 Thread Aurelien Jarno
On Mon, Jan 10, 2011 at 11:11:48PM +, Peter Maydell wrote: > This patchset (when combined with my previous patchset "Translate > based on TB flags, not CPUState") is a fix for > https://bugs.launchpad.net/qemu/+bug/581335 > where we were not getting the IT (conditional execution) bits in > the

Re: [Qemu-devel] [PATCH v2 0/8] target-arm: Translate based on TB flags, not CPUState

2011-01-14 Thread Aurelien Jarno
On Tue, Jan 11, 2011 at 10:12:10PM +, Peter Maydell wrote: > This patchset corrects a number of places in the ARM translation code > which were generating code which was dependent on values in the CPUState > structure which might change at runtime. This is a bad idea for two > reasons. Firstly,

Re: [Qemu-devel] [PATCH 0/4] target-arm: Fix VRSQRTS

2011-01-14 Thread Aurelien Jarno
On Fri, Jan 07, 2011 at 09:26:23AM +, Peter Maydell wrote: > This patch series fixes various bugs in VRSQRTS including the > major one that it was calculating completely the wrong value > (missing a division by 2). > > It also introduces the infrastructure to support the ARM > "Standard FPSCR

Re: [Qemu-devel] SPARC emulations

2011-01-14 Thread Artyom Tarasenko
On Fri, Jan 14, 2011 at 6:56 PM, Mateusz Loskot wrote: > I use QEMU to emulate SPARC for NetBSD. > By default, it uses SUNW/SPARCStation-5. > As far as I know, it is also possible to switch to SPARCStation-10. > How can I find what other SPARCs are supported, if any? man qemu, the option -M ? is

[Qemu-devel] Re: [fedora-virt] Fedora Virt status

2011-01-14 Thread Scott Dowdle
Boris, - Original Message - > XML profiles for F14 and SL6 will be sent to you a bit latter. I > cannot reboot box right now. You don't have to reboot the box to look at the xml configs. On the vm host machine just look at/copy the VM config files in /etc/libvirtd/qemu/ (or something l

  1   2   >