[Qemu-devel] [PATCH v3 01/12] Revert "vnc: set the right prefered encoding"

2010-05-19 Thread Corentin Chary
This patch was wrong, because the loop was already reversed, so the first encoding was correctly set at the end of the loopp. This reverts commit 14eb8b6829ad9dee7035de729e083844a425f274. Signed-off-by: Corentin Chary --- vnc.c | 14 -- 1 files changed, 4 insertions(+), 10 deletio

[Qemu-devel] [PATCH v3 00/12] *** SUBJECT HERE ***

2010-05-19 Thread Corentin Chary
Since v2: * Fixed coding style. * Splitted some patchs * Added missing copyrights * Reverted set_encoding patch Since v1: added commit descriptions for all patchs Hi, I this series you'll find zlib fixes and a new encoding: tight. Tight implementation is inspired (stolen ?) from libvncserver/tigh

[Qemu-devel] [PATCH v3 04/12] vnc: only use a single zlib stream

2010-05-19 Thread Corentin Chary
According to http://tigervnc.org/cgi-bin/rfbproto#zlib-encoding zlib encoding only uses a single stream. Current implementation defines 4 streams but only uses the first one. Remove them and only use a single stream. Signed-off-by: Corentin Chary --- vnc-encoding-zlib.c | 12 +--- vnc.

[Qemu-devel] [PATCH v3 03/12] vnc: really call zlib if we want zlib

2010-05-19 Thread Corentin Chary
send_framebuffer_update() was calling hextile instead of zlib since commit 70a4568fe0c5a64adaa3da5030b7109e5199e692. Signed-off-by: Corentin Chary --- vnc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vnc.c b/vnc.c index d0402b9..e81a2a5 100644 --- a/vnc.c +++ b/vnc

[Qemu-devel] [PATCH v3 05/12] vnc: adjust compression zstream level

2010-05-19 Thread Corentin Chary
Adjust zlib compression level if needed by calling deflateParams. Signed-off-by: Corentin Chary --- vnc-encoding-zlib.c |9 - vnc.h |1 + 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/vnc-encoding-zlib.c b/vnc-encoding-zlib.c index 6a16a79..29dd1b7

[Qemu-devel] [PATCH v3 02/12] vnc: explain why set_encodings loop is reversed

2010-05-19 Thread Corentin Chary
Add a small comment to explain why we need to start from the end of the array to set the right prefered encoding. Signed-off-by: Corentin Chary --- vnc.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/vnc.c b/vnc.c index b1a3fdb..d0402b9 100644 --- a/vnc.c +++ b/vnc

[Qemu-devel] [PATCH v3 12/12] vnc: tight: add palette encoding

2010-05-19 Thread Corentin Chary
Add palette tight encoding. Palette encoding will try to count the number of colors for a given rectangle, and if this number is low enough (< 256) it will send the palette + the rectangle with indexed colors. Signed-off-by: Corentin Chary --- vnc-encoding-tight.c | 437

[Qemu-devel] Re: qemu-kvm hangs if multipath device is queing

2010-05-19 Thread Christoph Hellwig
On Tue, May 18, 2010 at 03:22:36PM +0200, Kevin Wolf wrote: > I think it's stuck here in an endless loop: > > while (laiocb->ret == -EINPROGRESS) > qemu_laio_completion_cb(laiocb->ctx); > > Can you verify this by single-stepping one or two loop iterations? ret > and errno after the re

[Qemu-devel] [PATCH v3 08/12] vnc: remove a memory leak in zlib

2010-05-19 Thread Corentin Chary
Makes sure we free all ressources used in zlib encoding (zlib stream and buffer). Signed-off-by: Corentin Chary --- vnc-encoding-zlib.c |8 vnc.c |2 ++ vnc.h |1 + 3 files changed, 11 insertions(+), 0 deletions(-) diff --git a/vnc-encoding-zlib.

[Qemu-devel] [PATCH v3 09/12] vnc: return the number of rectangles

2010-05-19 Thread Corentin Chary
Some encodings like tight supports tiling (spliting in multiple sub-rectangles). So we needed a way to tell vnc_update_client() how much rectangles are in the buffer. zlib, raw and hextile always send a full rectangle. Signed-off-by: Corentin Chary --- vnc-encoding-hextile.c |5 +++-- vnc-e

[Qemu-devel] [PATCH v3 11/12] vnc: add support for tight fill encoding

2010-05-19 Thread Corentin Chary
Fill encoding detects rectangles using only one color and send only one pixel value. Signed-off-by: Corentin Chary --- vnc-encoding-tight.c | 257 +- 1 files changed, 255 insertions(+), 2 deletions(-) diff --git a/vnc-encoding-tight.c b/vnc-encod

[Qemu-devel] [PATCH v3 07/12] vnc: add buffer_free()

2010-05-19 Thread Corentin Chary
Add a buffer_free() helper to free vnc buffers and remove some duplicated code in vnc_disconnect_finish(). Signed-off-by: Corentin Chary --- vnc.c | 18 ++ vnc.h |1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/vnc.c b/vnc.c index a5a0456..8f256b3 10064

[Qemu-devel] [PATCH v3 06/12] vnc: don't clear zlib stream on set_encoding

2010-05-19 Thread Corentin Chary
On init, values are already NULL, but we shouldn't try to reset them each time a client send a set encoding command because this break everything. For example, libvncclient re-send a set encoding command if the framebuffer is resized. This fix framebuffer resizing for zlib encoding. Signed-off-by

[Qemu-devel] [PATCH v3 10/12] vnc: add basic tight support

2010-05-19 Thread Corentin Chary
Add support for tight encoding [1]. This patch only add support for "basic" tight compression without any filter. [1] http://tigervnc.org/cgi-bin/rfbproto#tight-encoding. Signed-off-by: Corentin Chary --- Makefile |2 + Makefile.objs|1 + vnc-encoding-tight.c | 295

Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used index into ring itself

2010-05-19 Thread Avi Kivity
On 05/19/2010 10:39 AM, Rusty Russell wrote: I think we're talking about the last 2 entries of the avail ring. That means the worst case is 1 false bounce every time around the ring. It's low, but why introduce an inefficiency when you can avoid doing it for the same effort? I think that'

[Qemu-devel] Re: [PATCH +stable] block: don't attempt to merge overlapping requests

2010-05-19 Thread Avi Kivity
On 05/18/2010 10:22 PM, Stefan Hajnoczi wrote: On Tue, May 18, 2010 at 6:18 PM, Avi Kivity wrote: The block multiwrite code pretends to be able to merge overlapping requests, but doesn't do so in fact. This leads to I/O errors (for example on mkfs of a large virtio disk). Are overla

Re: [Qemu-devel] [PATCH 1/8] qdev: Allow device addressing via 'driver.instance'

2010-05-19 Thread Avi Kivity
On 05/18/2010 03:31 PM, Gerd Hoffmann wrote: On 05/18/10 14:15, Markus Armbruster wrote: Jan Kiszka writes: Extend qbus_find_dev to allow addressing of devices without an unique id via an optional instance number. The new formats are 'driver.instance' and 'alias.instance'. Signed-off-by: Ja

[Qemu-devel] [PATCH] qemu-kvm: Enable xsave related CPUID

2010-05-19 Thread Sheng Yang
Signed-off-by: Sheng Yang --- target-i386/cpuid.c | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index eebf038..21e94f3 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -1067,6 +1067,

[Qemu-devel] [PATCH v2] KVM: VMX: Enable XSAVE/XRSTORE for guest

2010-05-19 Thread Sheng Yang
From: Dexuan Cui Enable XSAVE/XRSTORE for guest. Change from V1: 1. Use FPU API. 2. Fix CPUID issue. 3. Save/restore all possible guest xstate fields when switching. Because we don't know which fields guest has already touched. Signed-off-by: Dexuan Cui Signed-off-by: Sheng Yang --- arch/x8

[Qemu-devel] Re: qemu-kvm hangs if multipath device is queing

2010-05-19 Thread Kevin Wolf
Am 19.05.2010 09:29, schrieb Christoph Hellwig: > On Tue, May 18, 2010 at 03:22:36PM +0200, Kevin Wolf wrote: >> I think it's stuck here in an endless loop: >> >> while (laiocb->ret == -EINPROGRESS) >> qemu_laio_completion_cb(laiocb->ctx); >> >> Can you verify this by single-stepping on

[Qemu-devel] Re: [PATCH +stable] block: don't attempt to merge overlapping requests

2010-05-19 Thread Stefan Hajnoczi
On Wed, May 19, 2010 at 9:09 AM, Avi Kivity wrote: > On 05/18/2010 10:22 PM, Stefan Hajnoczi wrote: >> What cache= mode are you running? > > writeback. In the cache=writeback case the virtio-blk guest driver does: blk_queue_ordered(q, QUEUE_ORDERED_DRAIN_FLUSH, ...) Stefan

[Qemu-devel] Re: [PATCH +stable] block: don't attempt to merge overlapping requests

2010-05-19 Thread Avi Kivity
On 05/19/2010 12:01 PM, Stefan Hajnoczi wrote: On Wed, May 19, 2010 at 9:09 AM, Avi Kivity wrote: On 05/18/2010 10:22 PM, Stefan Hajnoczi wrote: What cache= mode are you running? writeback. In the cache=writeback case the virtio-blk guest driver does: blk_queue_order

[Qemu-devel] Re: [PATCH 2/3] QMP: Introduce commands documentation

2010-05-19 Thread Jan Kiszka
Luiz Capitulino wrote: > From: Jan Kiszka > > One of the most important missing feature in QMP today is its > supported commands documentation. > > The plan is to make it part of self-description support, however > self-description is a big task we have been postponing for a > long time now and

[Qemu-devel] Re: qemu-kvm hangs if multipath device is queing

2010-05-19 Thread Peter Lieven
Kevin Wolf wrote: Am 19.05.2010 09:29, schrieb Christoph Hellwig: On Tue, May 18, 2010 at 03:22:36PM +0200, Kevin Wolf wrote: I think it's stuck here in an endless loop: while (laiocb->ret == -EINPROGRESS) qemu_laio_completion_cb(laiocb->ctx); Can you verify this by single

[Qemu-devel] Re: [PATCH +stable] block: don't attempt to merge overlapping requests

2010-05-19 Thread Stefan Hajnoczi
On Wed, May 19, 2010 at 10:06 AM, Avi Kivity wrote: >> In the cache=writeback case the virtio-blk guest driver does: >> >> blk_queue_ordered(q, QUEUE_ORDERED_DRAIN_FLUSH, ...) >> > > I don't follow.  What's the implication? I was wondering whether the queue is incorrectly set to a mode where over

[Qemu-devel] [PATCH] virtio-serial-bus: fix ports_map allocation on init

2010-05-19 Thread Amit Shah
From: Alon Levy Fix for too small allocation to ports_map Signed-off-by: Alon Levy Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/virtio-serial-bus.c b/hw/virtio-serial-bus.c index 3ce95e8..7f9d28f 100644 --- a

[Qemu-devel] Re: [PATCH +stable] block: don't attempt to merge overlapping requests

2010-05-19 Thread Christoph Hellwig
On Wed, May 19, 2010 at 10:23:44AM +0100, Stefan Hajnoczi wrote: > On Wed, May 19, 2010 at 10:06 AM, Avi Kivity wrote: > >> In the cache=writeback case the virtio-blk guest driver does: > >> > >> blk_queue_ordered(q, QUEUE_ORDERED_DRAIN_FLUSH, ...) > >> > > > > I don't follow. ?What's the implicat

[Qemu-devel] [PATCH 2/2] all vga: fail graicefully when vga ports are taken

2010-05-19 Thread Gerd Hoffmann
Try to pci hotplug a vga card, watch qemu die with hw_error(). This patch fixes it. [v2: code style fixes] Signed-off-by: Gerd Hoffmann --- hw/cirrus_vga.c |4 hw/vga-pci.c|4 hw/vmware_vga.c |4 3 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/c

[Qemu-devel] [PATCH 1/2] ioport: add function to check whenever a port is assigned or not

2010-05-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ioport.c |5 + ioport.h |1 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ioport.c b/ioport.c index 53dd87a..b718047 100644 --- a/ioport.c +++ b/ioport.c @@ -190,6 +190,11 @@ void isa_unassign_ioport(pio_addr_t start, int length)

[Qemu-devel] Re: KVM call agenda for May 18

2010-05-19 Thread Christoph Hellwig
On Tue, May 18, 2010 at 08:52:36AM -0500, Anthony Liguori wrote: > This should be filed in launchpad as a qemu bug and it should be tested > against the latest git. This bug sounds like we're using an int to > represent sector offset somewhere but there's not enough info in the bug > report

[Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions.

2010-05-19 Thread Gerd Hoffmann
Then there would be no need of parsing. You would need _two_ bitmaps (e.g. mask and cursor, so that mask=1 gives transparent, mask=0 cursor=0 gives black and mask=0 cursor=1 gives white). Yes, but it's still packed more efficiently. Well. You can't have both. We can have a efficiently pa

Re: [Qemu-devel] Qemu-KVM 0.12.4 Guest entered Paused State

2010-05-19 Thread Peter Lieven
Anthony Liguori wrote: On 05/17/2010 10:16 AM, Peter Lieven wrote: Hi, i have a VM where I just did a dist-upgrade in Ubuntu and the VM entered paused state without any obvious reason. Is there a way to debug why this happened? I have not touched the VM by now to leave the opportunity to debug

Re: [Qemu-devel] [PATCH v3 00/12] *** SUBJECT HERE ***

2010-05-19 Thread Corentin Chary
Arg ... I did it *again* ... sorry for the stupid title .. -- Corentin Chary http://xf.iksaif.net

[Qemu-devel] [PATCH] virtio-blk: fix barrier support

2010-05-19 Thread Christoph Hellwig
Before issuing the barrier to the block driver we need to flush our oustanding queue of write requests, as the flush is supposed to be issued after them. Signed-off-by: Christoph Hellwig Index: qemu/hw/virtio-blk.c === --- qemu.orig

Re: [Qemu-devel] [PATCH 2/2] migration: Fix calculation of bytes_transferred

2010-05-19 Thread Pierre Riteau
Anyone interested by this diff? On 12 mai 2010, at 15:12, Pierre Riteau wrote: > When a page with all identical bytes is transferred, it is counted > as a full page (TARGET_PAGE_SIZE) although only one byte is actually > sent. Fix this by changing ram_save_block() to return the number of > bytes

Re: [Qemu-devel] [PATCH RFC] virtio: put last seen used index into ring itself

2010-05-19 Thread Rusty Russell
On Wed, 12 May 2010 04:57:22 am Avi Kivity wrote: > On 05/07/2010 06:23 AM, Rusty Russell wrote: > > On Thu, 6 May 2010 07:30:00 pm Avi Kivity wrote: > > > >> On 05/05/2010 11:58 PM, Michael S. Tsirkin wrote: > >> > >>> + /* We publish the last-seen used index at the end of the available

Re: [Qemu-devel] opensuse 11.2 guest hangs after live migration with clocksource=kvm-clock

2010-05-19 Thread Peter Lieven
Peter Lieven wrote: Hi all, i would like to debug a problem that I encountered some time ago with opensuse 11.2 and also with Ubuntu (karmic/lucid). If I run an opensuse guest 64-bit and do not touch the clocksource settings the guest almost everytime hangs after live migration at: (gdb) t

Re: [Qemu-devel] [PATCH] virtio-blk: fix barrier support

2010-05-19 Thread Kevin Wolf
Am 19.05.2010 12:40, schrieb Christoph Hellwig: > Before issuing the barrier to the block driver we need to flush our oustanding > queue of write requests, as the flush is supposed to be issued after them. > > Signed-off-by: Christoph Hellwig Thanks, applied to the block branch. I'm going to se

[Qemu-devel] Latest git does not compile target_to_host_rlim()

2010-05-19 Thread Riccardo Magliocchetti
Hello, latest git does not compile on debian sid 32 bit (kernel 64 bit), gcc 4.4.4: CCalpha-linux-user/syscall.o cc1: warnings being treated as errors /home/rm/src/qemu/linux-user/syscall.c: In function ‘target_to_host_rlim’: /home/rm/src/qemu/linux-user/syscall.c:836: error: integer cons

Re: [Qemu-devel] [PATCH] Add QEMU DirectFB display driver

2010-05-19 Thread Stefano Stabellini
On Tue, 18 May 2010, Gerd Hoffmann wrote: > On 05/13/10 17:53, Julian Pidancet wrote: > > This patch implements a DirectFB driver for QEMU. It allows Qemu to > > draw a VM graphic output directly in the framebuffer of the host, > > without having to rely on X11. > > Managed to build it after hacki

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Miguel Di Ciurcio Filho
On Wed, May 19, 2010 at 2:04 AM, Aurelien Jarno wrote: > > The idea is nice, but would it be possible to hold this on a week-end, > I personally won't be able to attend such thing on a day week. > > Or maybe holding that on two days: friday and saturday so that people > can participate at least on

[Qemu-devel] Re: [PATCH 2/3] QMP: Introduce commands documentation

2010-05-19 Thread Luiz Capitulino
On Wed, 19 May 2010 11:15:16 +0200 Jan Kiszka wrote: > Luiz Capitulino wrote: > > From: Jan Kiszka > > > > One of the most important missing feature in QMP today is its > > supported commands documentation. > > > > The plan is to make it part of self-description support, however > > self-descr

[Qemu-devel] latest git target-sparc/translate.c does not compile with --disable-kvm --enable-debug

2010-05-19 Thread Riccardo Magliocchetti
Hello, latest git does not compile on a mixed debian sid 32 bit / kernel 64 bit on x86-64, gcc is 4.4.4. $ ./configure --disable-kvm --enable-debug CCsparc64-softmmu/translate.o /home/rm/src/qemu/target-sparc/translate.c: In function ‘gen_op_addxi_cc’: /home/rm/src/qemu/target-sparc/tra

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Anthony Liguori
On 05/18/2010 08:45 PM, Jamie Lokier wrote: Natalia Portillo wrote: Hi, - We'll try to migrate as many confirmable bugs from the Source Forge tracker to Launchpad. I think that part of the bug day should also include retesting OSes that appear in OS Support List as having

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Michael Tokarev
Anthony Liguori wrote: [] > For the Bug Day, anything is interesting IMHO. My main interest is to > get as many people involved in testing and bug fixing as possible. If > folks are interested in testing specific things like unusual or older > OSes, I'm happy to see it! Well, interesting or not,

[Qemu-devel] Re: [PATCH 2/3] QMP: Introduce commands documentation

2010-05-19 Thread Jan Kiszka
Luiz Capitulino wrote: > On Wed, 19 May 2010 11:15:16 +0200 > Jan Kiszka wrote: > >> Luiz Capitulino wrote: >>> From: Jan Kiszka >>> >>> One of the most important missing feature in QMP today is its >>> supported commands documentation. >>> >>> The plan is to make it part of self-description sup

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Anthony Liguori
On 05/19/2010 08:19 AM, Michael Tokarev wrote: Anthony Liguori wrote: [] For the Bug Day, anything is interesting IMHO. My main interest is to get as many people involved in testing and bug fixing as possible. If folks are interested in testing specific things like unusual or older OSes, I

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Anthony Liguori
On 05/19/2010 12:04 AM, Aurelien Jarno wrote: On Tue, May 18, 2010 at 05:38:27PM -0500, Anthony Liguori wrote: Hi, In an effort to improve the 0.13 release quality, I'd like to host a Bug Day on June 1st, 2010. I've setup a quick wiki page with some more info (http://wiki.qemu.org/BugDay/J

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Anthony Liguori
On 05/18/2010 08:48 PM, Natalia Portillo wrote: El 19/05/2010, a las 02:45, Jamie Lokier escribió: Natalia Portillo wrote: Hi, - We'll try to migrate as many confirmable bugs from the Source Forge tracker to Launchpad. I think that part of the bug day should also include retesting OSes tha

Re: [Qemu-devel] [PATCH] Add QEMU DirectFB display driver

2010-05-19 Thread Gerd Hoffmann
Hi, I think the only way to fix this is to handle VT acquire and release events ourselves. Hmm. I suspect sdl and directfb wanna do this too, so I'm not sure this will actually work out. At this point I am not sure if it is worth doing it in the DirectFB frontend or in the SDL frontend

[Qemu-devel] Re: [PATCH 2/3] QMP: Introduce commands documentation

2010-05-19 Thread Luiz Capitulino
On Wed, 19 May 2010 15:30:43 +0200 Jan Kiszka wrote: > Luiz Capitulino wrote: [...] > > I didn't submit the syntax checking bits on purpose, there's something > > failing there and I didn't want to check it now. > > You already did for QMP, just skipped the STEXI/ETEXI balancing checks. > And

Re: [Qemu-devel] [PATCH] Add QEMU DirectFB display driver

2010-05-19 Thread Stefano Stabellini
On Wed, 19 May 2010, Gerd Hoffmann wrote: >Hi, > > > I think the only way to fix this is to handle VT acquire and release > > events ourselves. > > Hmm. I suspect sdl and directfb wanna do this too, so I'm not sure this > will actually work out. > > > At this point I am not sure if it is w

[Qemu-devel] Re: [PATCH 2/3] QMP: Introduce commands documentation

2010-05-19 Thread Jan Kiszka
Luiz Capitulino wrote: > On Wed, 19 May 2010 15:30:43 +0200 > Jan Kiszka wrote: > >> Luiz Capitulino wrote: > > [...] > >>> I didn't submit the syntax checking bits on purpose, there's something >>> failing there and I didn't want to check it now. >> You already did for QMP, just skipped the S

[Qemu-devel] Re: [PATCH 2/3] QMP: Introduce commands documentation

2010-05-19 Thread Luiz Capitulino
On Wed, 19 May 2010 15:50:56 +0200 Jan Kiszka wrote: > Luiz Capitulino wrote: > > On Wed, 19 May 2010 15:30:43 +0200 > > Jan Kiszka wrote: > > > >> Luiz Capitulino wrote: > > > > [...] > > > >>> I didn't submit the syntax checking bits on purpose, there's something > >>> failing there and I

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Natalia Portillo
Hi, >>> There have been reports of several legacy OSes being unable to install >>> or boot in the newer qemu while working in the older one. They're >>> probably not in the "OS Support List" though. Are they effectively >>> uninteresting for the purpose of the 0.13 release? >>> > > For the

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Natalia Portillo
Hi, >> There are a couple of. >> >> The majority of them are because SeaBIOS not behaving like real hardware >> should and must do. >> >> If you know any OS that's not in the OS Support List and is broken please >> commit. > > If something is broken, please file a bug against it. The OS Supp

[Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Riccardo Magliocchetti
Hello, i have quite a few free time in these days so i've anticipated the bug day and started looking for some low hanging fruit. I've found a couple of sf.net bugs that are obsoleted / fixed: - Compilation fails when configure with -DDEBUG #1945129 : code has been updated and the issue is n

[Qemu-devel] [PATCH v2 0/6] MIPS: Initial support for fulong (Loongson-2E based) mini pc

2010-05-19 Thread chen huacai
Change from v1: 1, fulong support is limited to mips64el only (doesn't affect mips, mips64 and mipsel) 2, qdev model is used for Bonito north bridge 3, code style and other errors have been fixed This series of patches are for qemu master branch. They make qemu initially support fulong (Loongson-2

[Qemu-devel] [PATCH v2 1/6] MIPS: Initial support of bonito north bridge used by fulong mini pc

2010-05-19 Thread Huacai Chen
Signed-off-by: Huacai Chen --- Makefile.target |1 + default-configs/mips64el-softmmu.mak |1 + hw/bonito.c | 950 ++ hw/mips.h|3 + 4 files changed, 955 insertions(+), 0 deletio

[Qemu-devel] [PATCH v2 2/6] MIPS: Initial support of vt82686b south bridge used by fulong mini pc

2010-05-19 Thread Huacai Chen
Signed-off-by: Huacai Chen --- Makefile.target |2 +- hw/pc.h |7 + hw/pci_ids.h|8 + hw/vt82c686.c | 786 +++ 4 files changed, 802 insertions(+), 1 deletions(-) create mode 100644 hw/vt82c686.c diff --git a/Makefile

[Qemu-devel] [PATCH v2 3/6] MIPS: Initial support of VIA IDE controller used by fulong mini pc

2010-05-19 Thread Huacai Chen
Signed-off-by: Huacai Chen --- Makefile.objs|1 + default-configs/mips64el-softmmu.mak |1 + hw/ide.h |1 + hw/ide/via.c | 185 ++ 4 files changed, 188 insertions(+), 0 deletio

[Qemu-devel] [PATCH v2 4/6] MIPS: Initial support of VIA USB controller used by fulong mini pc

2010-05-19 Thread Huacai Chen
Signed-off-by: Huacai Chen --- hw/usb-uhci.c | 30 ++ hw/usb-uhci.h |1 + 2 files changed, 31 insertions(+), 0 deletions(-) diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 624d55b..5fd5388 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -1152,6 +1152,26 @@ st

[Qemu-devel] [PATCH v2 5/6] MIPS: Initial support of fulong mini pc (CPU definition, machine construction, etc.)

2010-05-19 Thread Huacai Chen
Signed-off-by: Huacai Chen --- Makefile.target |2 +- hw/mips_fulong2e.c | 421 ++ target-mips/translate_init.c | 35 3 files changed, 457 insertions(+), 1 deletions(-) create mode 100644 hw/mips_fulong2e.c diff --git a/

[Qemu-devel] Re: [PATCH 0/3] Fix ADDX compilation plus improvements, v2

2010-05-19 Thread Richard Henderson
http://lists.nongnu.org/archive/html/qemu-devel/2010-05/msg00922.html I would appreciate it if you would at least apply the first patch from this series. The sparc target has been broken for a week. CCsparc64-softmmu/translate.o /home/rth/qemu/qemu/target-sparc/translate.c: In function 'ge

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Luiz Capitulino
On Tue, 18 May 2010 17:38:27 -0500 Anthony Liguori wrote: > Hi, > > In an effort to improve the 0.13 release quality, I'd like to host a Bug > Day on June 1st, 2010. I've setup a quick wiki page with some more info > (http://wiki.qemu.org/BugDay/June2010). Tuesday is our call conf day and o

[Qemu-devel] Reporting unknown keycodes...

2010-05-19 Thread Seth Goldberg
Hi, With qemu 0.12.4 (and earier revisions), I see: unknown keycodes `sun(type6_usb)_aliases(qwerty)', please report to qemu-devel@nongnu.org Let me know if you need anything further. Thanks, --S

[Qemu-devel] Re: [PATCH 10/12] kvm: enable smp > 1

2010-05-19 Thread Udo Lembke
Jan Kiszka schrieb: ... --enable-io-thread? If you had it disabled, it would also answer my question if -smp works without problems without that feature. Jan Hi, i have a dumb question: what is the "--enable-io-thread"? Is this a kvm-switch? My kvm 0.12.4 don't accept this switch. I'm kno

[Qemu-devel] Update the http configuration on git.qemu.org

2010-05-19 Thread Bernhard Kohl
Hi, could you please run "git update-server-info" on the server and enable the hooks? At least seabios.git and vgabios.git cannot be accessed via http://. And the cgit does not show any tags for all repositories on http://git.qemu.org/ Thanks, Bernhard

Re: [Qemu-devel] [PATCH] Add QEMU DirectFB display driver

2010-05-19 Thread Gerd Hoffmann
Hi, Which makes me think we should just go the direct route. No SDL. No directfb. No other funky library which provides us with nothing but bugs. Programming fbdev isn't that hard after all. Especially if you skip all the (IMHO pointless) video mode switching bits. Agreed, actually I wa

Re: [Qemu-devel] [PATCH] Add QEMU DirectFB display driver

2010-05-19 Thread Stefano Stabellini
On Wed, 19 May 2010, Gerd Hoffmann wrote: >Hi, > > >> Which makes me think we should just go the direct route. No SDL. No > >> directfb. No other funky library which provides us with nothing but > >> bugs. Programming fbdev isn't that hard after all. Especially if you > >> skip all the (I

Re: [Qemu-devel] Update the http configuration on git.qemu.org

2010-05-19 Thread Stefan Hajnoczi
It's the post-update hook that needs chmod +x, I believe. Stefan

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Jamie Lokier
Michael Tokarev wrote: > Anthony Liguori wrote: > [] > > For the Bug Day, anything is interesting IMHO. My main interest is to > > get as many people involved in testing and bug fixing as possible. If > > folks are interested in testing specific things like unusual or older > > OSes, I'm happy to

[Qemu-devel] [PATCH 3/7] Revert "monitor: Convert do_pci_device_hot_remove() to QObject"

2010-05-19 Thread Luiz Capitulino
From: Markus Armbruster We don't want pci_del in QMP. Use device_del instead. This reverts commit 6848d827162fea039f2658414a4adb6164a4f9b0. Conflicts: hw/pci-hotplug.c sysemu.h Signed-off-by: Markus Armbruster --- hw/pci-hotplug.c |5 ++--- qemu-monitor.hx |3 +--

[Qemu-devel] [PATCH 2/7] Revert "PCI: Convert pci_device_hot_add() to QObject"

2010-05-19 Thread Luiz Capitulino
From: Markus Armbruster Short story: We don't want pci_add in QMP. Long story follows. pci_add can do two things: * Hot plug a PCI NIC. device_add is more general. * Hot plug a PCI disk controller, and a drive connected to it. The controller is either virtio-blk-pci (if=virtio) or lsi53c8

[Qemu-devel] [PATCH 1/7] QMP: Add "Downstream extension of QMP" to spec

2010-05-19 Thread Luiz Capitulino
From: Markus Armbruster Signed-off-by: Markus Armbruster --- QMP/qmp-spec.txt | 55 ++ 1 files changed, 55 insertions(+), 0 deletions(-) diff --git a/QMP/qmp-spec.txt b/QMP/qmp-spec.txt index f3c0327..9d30a8c 100644 --- a/QMP/qmp-spec.txt +

[Qemu-devel] [PATCH 7/7] Fix qtypes' licenses

2010-05-19 Thread Luiz Capitulino
- Change from GPL to LGPL - Add license text when missing - Minor cosmetic changes to make all headers look the same Signed-off-by: Luiz Capitulino --- check-qdict.c |3 +++ check-qfloat.c |5 - check-qint.c|3 +++ check-qlist.c |4 ++-- check-qstring.c |3 +++ q

[Qemu-devel] [PATCH 4/7] Revert "Monitor: Return before exiting with 'quit'"

2010-05-19 Thread Luiz Capitulino
This reverts commit 0e8d2b5575938b8876a3c4bb66ee13c5d306fb6d. Next commits will do the same thing in a better way. Signed-off-by: Luiz Capitulino --- monitor.c |3 +-- sysemu.h |2 -- vl.c | 18 -- 3 files changed, 1 insertions(+), 22 deletions(-) diff --git a/m

Re: [Qemu-devel] [PATCH] Add QEMU DirectFB display driver

2010-05-19 Thread Julian Pidancet
On 05/19/2010 02:52 PM, Stefano Stabellini wrote: > On Wed, 19 May 2010, Gerd Hoffmann wrote: >>Hi, >> >>> I think the only way to fix this is to handle VT acquire and release >>> events ourselves. >> >> Hmm. I suspect sdl and directfb wanna do this too, so I'm not sure this >> will actually

[Qemu-devel] [PATCH 0/7][PULL]: QMP/Monitor queue

2010-05-19 Thread Luiz Capitulino
Hi Anthony, The following QMP/Monitor patches have been sent to the list and look good to me. I have also tested most of them. Please, note that I didn't add the QMP doc patches, since they are still under discussion. The changes (since 0d5d46993840c1e6a04c1db38a554aad4ee83835) are available

[Qemu-devel] [PATCH 5/7] sysemu: Export 'no_shutdown'

2010-05-19 Thread Luiz Capitulino
It's a global variable already, do_quit() will use it. Signed-off-by: Luiz Capitulino --- sysemu.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sysemu.h b/sysemu.h index 48ee66c..879446a 100644 --- a/sysemu.h +++ b/sysemu.h @@ -128,6 +128,7 @@ extern int max_cpus; ex

[Qemu-devel] Re: [PATCH 10/12] kvm: enable smp > 1

2010-05-19 Thread Avi Kivity
On 05/19/2010 12:57 PM, Udo Lembke wrote: Jan Kiszka schrieb: ... --enable-io-thread? If you had it disabled, it would also answer my question if -smp works without problems without that feature. Jan Hi, i have a dumb question: what is the "--enable-io-thread"? Is this a kvm-switch? It's

[Qemu-devel] [PATCH 6/7] Monitor: Return before exiting with 'quit'

2010-05-19 Thread Luiz Capitulino
This is a new version of the (now reverted) following commit: 0e8d2b5575938b8876a3c4bb66ee13c5d306fb6d The 'quit' Monitor command (implemented by do_quit()) calls exit() directly, this is problematic under QMP because QEMU exits before having a chance to send the ok response. Clients don't know

Re: [Qemu-devel] [PATCH] Add QEMU DirectFB display driver

2010-05-19 Thread Jamie Lokier
Julian Pidancet wrote: > So after all, why not implementing our own VT switching and using > directly the fbdev interface. It's a good idea. VT switching isn't hard to track reliably. Being able to tell qemu, through the monitor, to attach/detach from a particular VT might be a nice easy bonus t

Re: [Qemu-devel] Latest git does not compile target_to_host_rlim()

2010-05-19 Thread Aurelien Jarno
On Wed, May 19, 2010 at 01:51:35PM +0200, Riccardo Magliocchetti wrote: > Hello, > > latest git does not compile on debian sid 32 bit (kernel 64 bit), > gcc 4.4.4: > > CCalpha-linux-user/syscall.o > cc1: warnings being treated as errors > /home/rm/src/qemu/linux-user/syscall.c: In function ‘

Re: [Qemu-devel] Update the http configuration on git.qemu.org

2010-05-19 Thread Anthony Liguori
On 05/19/2010 10:15 AM, Bernhard Kohl wrote: Hi, could you please run "git update-server-info" on the server and enable the hooks? At least seabios.git and vgabios.git cannot be accessed via http://. Sure. I'd prefer people didn't use http because it's pretty inefficient but I understand it'

[Qemu-devel] [PATCH 3/3] Fix hw/gt64xxx.c compilation with DEBUG defined

2010-05-19 Thread Riccardo Magliocchetti
Use TARGET_FMT_plx as format placeholder for target_phys_addr_t Signed-off-by: Riccardo Magliocchetti --- hw/gt64xxx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index 55971b9..7691e1d 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -276

[Qemu-devel] [PATCH 2/3] Fix __VA__ARGS__ typo in cris mmu.c

2010-05-19 Thread Riccardo Magliocchetti
Fix compilation with DEBUG defined Signed-off-by: Riccardo Magliocchetti --- target-cris/mmu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-cris/mmu.c b/target-cris/mmu.c index 2a5ded8..d09e921 100644 --- a/target-cris/mmu.c +++ b/target-cris/mmu.c @@ -31,7 +3

Re: [Qemu-devel] Update the http configuration on git.qemu.org

2010-05-19 Thread Pierre Riteau
On 19 mai 2010, at 18:28, Anthony Liguori wrote: > On 05/19/2010 10:15 AM, Bernhard Kohl wrote: >> Hi, >> >> could you please run "git update-server-info" on the server >> and enable the hooks? At least seabios.git and vgabios.git >> cannot be accessed via http://. > > Sure. I'd prefer people d

[Qemu-devel] Re: [PATCH v2] KVM: VMX: Enable XSAVE/XRSTORE for guest

2010-05-19 Thread Avi Kivity
On 05/19/2010 11:34 AM, Sheng Yang wrote: From: Dexuan Cui Enable XSAVE/XRSTORE for guest. Change from V1: 1. Use FPU API. 2. Fix CPUID issue. 3. Save/restore all possible guest xstate fields when switching. Because we don't know which fields guest has already touched. Signed-off-by: Dexuan C

[Qemu-devel] [PATCH 1/3] Fix typo in balloon help

2010-05-19 Thread Riccardo Magliocchetti
Fix launchpad #563883 Signed-off-by: Riccardo Magliocchetti --- qemu-monitor.hx |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-monitor.hx b/qemu-monitor.hx index a8f194c..ed7def9 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -979,7 +979,7 @@ ETEXI

[Qemu-devel] Re: [PATCH] qemu-kvm: Enable xsave related CPUID

2010-05-19 Thread Avi Kivity
On 05/19/2010 11:34 AM, Sheng Yang wrote: Signed-off-by: Sheng Yang --- target-i386/cpuid.c | 32 Can send to Anthony directly, while tcg doesn't support xsave/ymm, all the code here is generic. 1 files changed, 32 insertions(+), 0 deletions(-) dif

Re: [Qemu-devel] [RFC] Bug Day - June 1st, 2010

2010-05-19 Thread Anthony Liguori
On 05/19/2010 09:52 AM, Luiz Capitulino wrote: On Tue, 18 May 2010 17:38:27 -0500 Anthony Liguori wrote: Hi, In an effort to improve the 0.13 release quality, I'd like to host a Bug Day on June 1st, 2010. I've setup a quick wiki page with some more info (http://wiki.qemu.org/BugDay/June2

[Qemu-devel] Re: KVM call minutes for May 18

2010-05-19 Thread Avi Kivity
On 05/18/2010 05:29 PM, Chris Wright wrote: sourceforge bug tracker... - sucks - unclear if there's active triage - anthony prefers the launchpad instance Kernel bugs can go to bugzilla.kernel.org. Of course it isn't always clear if a bug is a kernel or qemu bug. Recommend we ask users

[Qemu-devel] Re: kvm: network problem with Solaris 10u8 guest

2010-05-19 Thread Avi Kivity
On 05/19/2010 04:46 PM, Harald Dunkel wrote: Hi folks, Please post kvm issues to the kvm mailing list. I am trying to run Solaris 10u8 as a guest in kvm (kernel 2.6.33.2). Problem: The virtual network devices don't work with this Solaris version. e1000 and pcnet work just by chance, as

Re: [Qemu-devel] Latest git does not compile target_to_host_rlim()

2010-05-19 Thread Riccardo Magliocchetti
Il 19/05/2010 18:38, Aurelien Jarno ha scritto: On Wed, May 19, 2010 at 01:51:35PM +0200, Riccardo Magliocchetti wrote: Hello, latest git does not compile on debian sid 32 bit (kernel 64 bit), gcc 4.4.4: CCalpha-linux-user/syscall.o cc1: warnings being treated as errors /home/rm/src/qemu

Re: [Qemu-devel] Latest git does not compile target_to_host_rlim()

2010-05-19 Thread Aurelien Jarno
On Wed, May 19, 2010 at 07:09:55PM +0200, Riccardo Magliocchetti wrote: > Il 19/05/2010 18:38, Aurelien Jarno ha scritto: >> On Wed, May 19, 2010 at 01:51:35PM +0200, Riccardo Magliocchetti wrote: >>> Hello, >>> >>> latest git does not compile on debian sid 32 bit (kernel 64 bit), >>> gcc 4.4.4: >>

[Qemu-devel] [PATCH] Name the default PCI bus "pci.0" on all architectures

2010-05-19 Thread Daniel P. Berrange
The system emulators for each arch are using inconsistent naming for the default PCI bus "pci" vs "pci.0". Since it is conceivable we'll have multiple PCI buses in the future standardize on "pci.0" for all architectures. This ensures mgmt apps can rely on a name when assigning PCI devices an addres

Re: [Qemu-devel] [PATCH 02/22] tcg-i386: Tidy initialization of tcg_target_call_clobber_regs.

2010-05-19 Thread Aurelien Jarno
On Tue, Apr 13, 2010 at 03:26:17PM -0700, Richard Henderson wrote: > Setting the registers one by one is easier to read, and gets > optimized by the compiler just the same. > > Signed-off-by: Richard Henderson > --- > tcg/i386/tcg-target.c | 11 ++- > 1 files changed, 6 insertions(+),

Re: [Qemu-devel] [PATCH 03/22] tcg-i386: Tidy ext8u and ext16u operations.

2010-05-19 Thread Aurelien Jarno
Hi, On Tue, Apr 13, 2010 at 03:59:20PM -0700, Richard Henderson wrote: > Define OPC_MOVZBL and OPC_MOVZWL. Factor opcode emission to > separate functions. Don't restrict the input register to the > low 4 "q" registers; emit an AND instead if needed. I am fine about the cleaning part, but I don'

Re: [Qemu-devel] [PATCH 01/22] tcg-i386: Allocate call-saved registers first.

2010-05-19 Thread Aurelien Jarno
On Tue, Apr 13, 2010 at 03:23:53PM -0700, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > tcg/i386/tcg-target.c | 13 + > 1 files changed, 9 insertions(+), 4 deletions(-) Thanks, applied. > diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c > index e684

  1   2   >