Re: [Qemu-devel] [RFC v2 PATCH 4/4] virtio-net: notify guest to annouce itself

2011-10-25 Thread Stefan Hajnoczi
On Fri, Oct 21, 2011 at 10:39 PM, Jason Wang wrote: > diff --git a/hw/virtio-net.c b/hw/virtio-net.c > index 8c2f460..7f844e7 100644 > --- a/hw/virtio-net.c > +++ b/hw/virtio-net.c > @@ -95,6 +95,10 @@ static void virtio_net_set_config(VirtIODevice *vdev, > const uint8_t *config) >         memcpy

Re: [Qemu-devel] about NPIV with qemu-kvm.

2011-10-25 Thread Hannes Reinecke
On 10/26/2011 06:40 AM, ya su wrote: > hi, hannes: > > I want to use NPIV with qemu-kvm, I issued the following command: > > echo ':' > > /sys/class/fc_host/host0/vport_create > > and it will produce a new host6 and one vport succesfully, but it > does

Re: [Qemu-devel] [RFC v2 PATCH 5/4 PATCH] virtio-net: send gratuitous packet when needed

2011-10-25 Thread Jason Wang
On 10/25/2011 11:41 PM, Michael S. Tsirkin wrote: > On Tue, Oct 25, 2011 at 10:50:41AM +0800, Jason Wang wrote: >> On 10/24/2011 01:25 PM, Michael S. Tsirkin wrote: >>> On Mon, Oct 24, 2011 at 02:54:59PM +1030, Rusty Russell wrote: On Sat, 22 Oct 2011 13:43:11 +0800, Jason Wang wrote: > T

[Qemu-devel] about NPIV with qemu-kvm.

2011-10-25 Thread ya su
hi, hannes: I want to use NPIV with qemu-kvm, I issued the following command: echo ':' > /sys/class/fc_host/host0/vport_create and it will produce a new host6 and one vport succesfully, but it does not create any virtual hba pci device. so I don't know

Re: [Qemu-devel] KVM call agenda for October 25

2011-10-25 Thread Alexander Graf
On 25.10.2011, at 17:32, Kevin Wolf wrote: > Am 25.10.2011 16:06, schrieb Anthony Liguori: >> On 10/25/2011 08:56 AM, Kevin Wolf wrote: >>> Am 25.10.2011 15:05, schrieb Anthony Liguori: On 10/25/2011 07:35 AM, Kevin Wolf wrote: > Am 24.10.2011 13:35, schrieb Paolo Bonzini: >> On

Re: [Qemu-devel] [Bug 881637] [NEW] QEMU fails to build on OpenBSD/hppa

2011-10-25 Thread Richard Henderson
On 10/25/2011 12:46 PM, Brad Smith wrote: > Public bug reported: > > Trying to build previous QEMU releases as well as git code fails on > OpenBSD/hppa... > > cc -I/home/hack/jasper/qemu/slirp -I. -I/home/hack/jasper/qemu > -I/home/hack/jasper/qemu/fpu -I/home/hack/jasper/qemu/tcg > -I/home/hac

Re: [Qemu-devel] [PATCH 7/9] Sparc: convert interrupt helpers to trace framework

2011-10-25 Thread Richard Henderson
On 10/25/2011 02:16 PM, Blue Swirl wrote: > Signed-off-by: Blue Swirl > --- > target-sparc/int32_helper.c | 13 +++-- > target-sparc/int64_helper.c | 29 + > trace-events|7 +++ > 3 files changed, 23 insertions(+), 26 deletions(-) R

Re: [Qemu-devel] [PATCH 2/9] Sparc: avoid AREG0 for softint op helpers and Leon cache control

2011-10-25 Thread Richard Henderson
On 10/25/2011 02:14 PM, Blue Swirl wrote: > Make softint op helpers and Leon cache irq manager take a parameter > for CPUState instead of relying on global env. Move the functions > to int{32,64}_helper.c. > > Signed-off-by: Blue Swirl > --- > target-sparc/cpu.h | 31 +++--- >

[Qemu-devel] [PATCH 8/9] Sparc: convert win_helper to trace framework

2011-10-25 Thread Blue Swirl
Reviewed-by: Richard Henderson Signed-off-by: Blue Swirl --- target-sparc/win_helper.c | 30 -- trace-events |8 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/target-sparc/win_helper.c b/target-sparc/win_helper.c index f4

[Qemu-devel] [PATCH 7/9] Sparc: convert interrupt helpers to trace framework

2011-10-25 Thread Blue Swirl
Signed-off-by: Blue Swirl --- target-sparc/int32_helper.c | 13 +++-- target-sparc/int64_helper.c | 29 + trace-events|7 +++ 3 files changed, 23 insertions(+), 26 deletions(-) diff --git a/target-sparc/int32_helper.c b/target-sparc

[Qemu-devel] [PATCH 6/9] Sparc: convert mmu_helper to trace framework

2011-10-25 Thread Blue Swirl
Reviewed-by: Richard Henderson Signed-off-by: Blue Swirl --- target-sparc/mmu_helper.c | 64 ++--- trace-events | 10 +++ 2 files changed, 30 insertions(+), 44 deletions(-) diff --git a/target-sparc/mmu_helper.c b/target-sparc/mmu_hel

[Qemu-devel] [PATCH 4/9] Sparc: fix coding style in helper.c

2011-10-25 Thread Blue Swirl
Before the next patch, fix coding style of the areas affected. Reviewed-by: Richard Henderson Signed-off-by: Blue Swirl --- target-sparc/helper.c | 95 +++-- 1 files changed, 52 insertions(+), 43 deletions(-) diff --git a/target-sparc/helper.c b/ta

[Qemu-devel] [PATCH 3/9] Sparc: avoid AREG0 for division op helpers

2011-10-25 Thread Blue Swirl
Make [su]div{,cc} helpers take a parameter for CPUState instead of relying on global env. Move the functions to helper.c. Reviewed-by: Richard Henderson Signed-off-by: Blue Swirl --- target-sparc/helper.c| 76 ++ target-sparc/helper.h|8

[Qemu-devel] [PATCH 2/9] Sparc: avoid AREG0 for softint op helpers and Leon cache control

2011-10-25 Thread Blue Swirl
Make softint op helpers and Leon cache irq manager take a parameter for CPUState instead of relying on global env. Move the functions to int{32,64}_helper.c. Signed-off-by: Blue Swirl --- target-sparc/cpu.h | 31 +++--- target-sparc/helper.h |6 +- target-sparc/int32

[Qemu-devel] [PATCH 1/9] Sparc: avoid AREG0 for CWP and PSTATE helpers

2011-10-25 Thread Blue Swirl
Make CWP and PSTATE helpers take a parameter for CPUState instead of relying on global env. Remove wrapper functions. Reviewed-by: Richard Henderson Signed-off-by: Blue Swirl --- Makefile.target |2 +- target-sparc/helper.h | 32 +++--- target-sparc/translate.c | 34 -

[Qemu-devel] [PATCH 0/9] AREG0 patches v3

2011-10-25 Thread Blue Swirl
v3: fixed vanishing do_modify_softint(). URL git://repo.or.cz/qemu/blueswirl.git http://repo.or.cz/r/qemu/blueswirl.git Blue Swirl (9): Sparc: avoid AREG0 for CWP and PSTATE helpers Sparc: avoid AREG0 for softint op helpers and Leon cache control Sparc: avoid AREG0 for division

Re: [Qemu-devel] Executing from a rom device - Re: [PATCH 2/4] pc: Support system flash memory with pflash

2011-10-25 Thread Jordan Justen
Avi, all, Would it be acceptable to implement the pflash support for qemu only at this time? If kvm is enabled, I could install ram (in read-only mode) as is done today for the firmware to execute from. Later, when the additional kvm feature you described below is implemented, then I can update

Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's

2011-10-25 Thread Andreas Färber
Am 25.10.2011 17:50, schrieb Juan Quintela: > Andreas Färber wrote: >>> diff --git a/target-m68k/machine.c b/target-m68k/machine.c >>> index e69de29..86b6fe9 100644 >>> --- a/target-m68k/machine.c >>> +++ b/target-m68k/machine.c >>> @@ -0,0 +1,10 @@ >>> + >>> +#include "hw/hw.h" >>> + >>> +/* To m

Re: [Qemu-devel] [PATCH 24/25] vmstate: port arm cpu

2011-10-25 Thread Paul Brook
> >> +env->uncached_cpsr = env->cpsr_vmstate & CPSR_M; > >> +cpsr_write(env, env->cpsr_vmstate, 0x); > > > > [1] Maybe a necessary hack, but still a wart from requiring static table > > driven vmstate descriptions. > > I wonder if we shouldn't make it easier to do what I do for Al

Re: [Qemu-devel] [PATCH] target-sparc: Fix use of g_new0 / g_free

2011-10-25 Thread Blue Swirl
Thanks, applied. On Tue, Oct 25, 2011 at 05:16, Stefan Weil wrote: > g_malloc0 needs g_free instead of free. > While fixing this, I also replaced g_malloc0 by g_new0 > as was suggested by Stuart Brady. > > Cc: Blue Swirl > Signed-off-by: Stefan Weil > --- >  target-sparc/cpu_init.c |    8 -

Re: [Qemu-devel] [PATCH] target-sparc: Fix order of function parameters

2011-10-25 Thread Blue Swirl
Thanks, applied. On Mon, Oct 24, 2011 at 20:29, Stefan Weil wrote: > The MinGW-w64 gcc complains about wrong parameters for > gen_helper_fpadd16_s and three other functions. > > gen_helper_fpadd16_s is declared like this (hidden in lots of macros): > > static inline void >  gen_helper_fpadd16s(TC

Re: [Qemu-devel] [PATCH 17/25] vmstate: make incompatible change for sparc

2011-10-25 Thread Blue Swirl
On Tue, Oct 25, 2011 at 14:00, Juan Quintela wrote: > With this change, we sent arrays as arrays, making state description > much simpler.  The change is incompatible, but as far as I know, sparc > don't care about migration compatibility beteween versions. Can't speak for other sparc, but at lea

Re: [Qemu-devel] [PATCH 1/1] Introduce a new bus "ICC" to connect APIC

2011-10-25 Thread Blue Swirl
On Tue, Oct 25, 2011 at 08:55, liu ping fan wrote: > On Sun, Oct 23, 2011 at 12:40:08PM +, Blue Swirl wrote: >> On Wed, Oct 19, 2011 at 01:55,   wrote: >> > From: Liu Ping Fan >> > >> > Introduce a new structure CPUS as the controller of ICC (INTERRUPT >> > CONTROLLER COMMUNICATIONS), and new

[Qemu-devel] [PATCH v2] main-loop: Add missing include file

2011-10-25 Thread Stefan Weil
stdint.h defines the POSIX data types and is needed for MinGW-w64 (and maybe other hosts). v2: Instead of adding stdint.h directly, qemu-common.h is now included and duplicate include statements were removed. Signed-off-by: Stefan Weil --- main-loop.c | 30 +- 1 fi

[Qemu-devel] [Bug 881637] [NEW] QEMU fails to build on OpenBSD/hppa

2011-10-25 Thread Brad Smith
Public bug reported: Trying to build previous QEMU releases as well as git code fails on OpenBSD/hppa... cc -I/home/hack/jasper/qemu/slirp -I. -I/home/hack/jasper/qemu -I/home/hack/jasper/qemu/fpu -I/home/hack/jasper/qemu/tcg -I/home/hack/jasper/qemu/tcg/hppa -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE

Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppcr: Avoid decrementer related kvm exits

2011-10-25 Thread Scott Wood
On 10/14/2011 01:44 AM, Alexander Graf wrote: > Wouldn't a simple > > if (kvm_enabled()) { > return; > } > > in the beginning of the function make more sense? There's no code connecting > the in-qemu and the in-kvm decrementors atm, so any logic applying to the > in-qemu one is moot for kvm

[Qemu-devel] [PATCH v2] target-xtensa: raise an exception for invalid and reserved opcodes

2011-10-25 Thread Max Filippov
This includes opcodes from disabled features and those marked reserved in the ISA. Also end TB on opcodes that definitely generate an exception: illegal instructions, syscall and privileged instructions. Signed-off-by: Max Filippov --- v1 -> v2 changes: - end TB on opcodes that definitely genera

Re: [Qemu-devel] [PATCH 24/25] vmstate: port arm cpu

2011-10-25 Thread Richard Henderson
On 10/25/2011 11:27 AM, Paul Brook wrote: >> -/* Avoid mode switch when restoring CPSR. */ >> -env->uncached_cpsr = val & CPSR_M; >> -cpsr_write(env, val, 0x); >> + >> +env->uncached_cpsr = env->cpsr_vmstate & CPSR_M; >> +cpsr_write(env, env->cpsr_vmstate, 0x);

Re: [Qemu-devel] [PATCH 06/25] vmstate: use new style for lm32 cpus

2011-10-25 Thread Michael Walle
Am Dienstag 25 Oktober 2011, 16:00:40 schrieb Juan Quintela: > Signed-off-by: Juan Quintela > CC: Michael Walle > --- > target-lm32/cpu.h |2 -- > target-lm32/machine.c | 12 +--- > 2 files changed, 1 insertions(+), 13 deletions(-) > > diff --git a/target-lm32/cpu.h b/target-

Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's

2011-10-25 Thread Michael Walle
Am Dienstag 25 Oktober 2011, 16:00:37 schrieb Juan Quintela: > This makes several changes: > - exports VMStateDescription vmstate_cpu non-static. > - makes sure that every cpu has a vmstate_cpu or cpu_save/load defined > - for the architecture that had nothing, it just register the cpu as > unmigra

Re: [Qemu-devel] [PATCH] qmp: report TRAY_STATE_CHANGED events

2011-10-25 Thread Luiz Capitulino
On Tue, 25 Oct 2011 18:26:58 +0200 Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > QMP/qmp-events.txt | 20 > block.c|9 + > monitor.c |3 +++ > monitor.h |1 + > 4 files changed, 33 insertions(+), 0 deletions(

Re: [Qemu-devel] [PATCH 1/5] monitor: screen_dump async

2011-10-25 Thread Luiz Capitulino
On Tue, 25 Oct 2011 15:21:11 +0200 Alon Levy wrote: > On Tue, Oct 25, 2011 at 10:51:30AM -0200, Luiz Capitulino wrote: > > On Tue, 25 Oct 2011 12:13:09 +0200 > > Alon Levy wrote: > > > > > On Mon, Oct 24, 2011 at 10:31:48PM -0200, Luiz Capitulino wrote: > > > > On Mon, 24 Oct 2011 19:29:37 +020

Re: [Qemu-devel] [PATCH 24/25] vmstate: port arm cpu

2011-10-25 Thread Paul Brook
> -/* Avoid mode switch when restoring CPSR. */ > -env->uncached_cpsr = val & CPSR_M; > -cpsr_write(env, val, 0x); > + > +env->uncached_cpsr = env->cpsr_vmstate & CPSR_M; > +cpsr_write(env, env->cpsr_vmstate, 0x); You've removed the helpful comment explaining w

Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's

2011-10-25 Thread Richard Henderson
On 10/25/2011 07:00 AM, Juan Quintela wrote: > This makes several changes: > - exports VMStateDescription vmstate_cpu non-static. > - makes sure that every cpu has a vmstate_cpu or cpu_save/load defined > - for the architecture that had nothing, it just register the cpu as > unmigratable. > - Depe

Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's

2011-10-25 Thread Max Filippov
> This makes several changes: > - exports VMStateDescription vmstate_cpu non-static. > - makes sure that every cpu has a vmstate_cpu or cpu_save/load defined > - for the architecture that had nothing, it just register the cpu as > unmigratable. > - Depending on CPU_SAVE_VERSION we register old/new

Re: [Qemu-devel] [PATCH] savevm: qemu_fille_buffer() used to return one error for reads of size 0.

2011-10-25 Thread Markus Armbruster
Juan Quintela writes: > Signed-off-by: Juan Quintela > --- > savevm.c |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/savevm.c b/savevm.c > index f01838f..bee16c0 100644 > --- a/savevm.c > +++ b/savevm.c > @@ -476,6 +476,8 @@ static void qemu_fill_buffer(QEMUFile

[Qemu-devel] [PATCH 2/3] sparc-linux-user: Fixup sending SIGSEGV

2011-10-25 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 2bc10ed..c36a8af 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1148,7 +1148,7 @@ void cpu_loop (CPUSPARCState

Re: [Qemu-devel] [PATCH] target-xtensa: raise an exception for invalid and reserved opcodes

2011-10-25 Thread Richard Henderson
On 10/25/2011 10:24 AM, Max Filippov wrote: > Do you mean that I have to end the TB on every instruction that will > definitely raise an exception? > Or on every instruction that potentially raises an exception? > I didn't do any of the above anywhere. Normally we do end the TB on every instructi

[Qemu-devel] [PATCH 0/3] sparc-linux-user improvments

2011-10-25 Thread Richard Henderson
These are three patches split out from my recent Sparc VIS emulation series that are totally independent of target-sparc/. r~ Richard Henderson (3): sparc-linux-user: Handle SIGILL. sparc-linux-user: Fixup sending SIGSEGV sparc-linux-user: Add some missing syscall numbers linux-user/ma

[Qemu-devel] [PATCH 3/3] sparc-linux-user: Add some missing syscall numbers

2011-10-25 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/sparc/syscall_nr.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/linux-user/sparc/syscall_nr.h b/linux-user/sparc/syscall_nr.h index be503f2..f201f9f 100644 --- a/linux-user/sparc/syscall_nr.h +++ b/linux-user/sparc/sysc

[Qemu-devel] [PATCH 1/3] sparc-linux-user: Handle SIGILL.

2011-10-25 Thread Richard Henderson
Signed-off-by: Richard Henderson --- linux-user/main.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index e7dad54..2bc10ed 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1191,6 +1191,15 @@ void cpu_loop (CPUSPAR

[Qemu-devel] [PATCH] tcg: Optimize some forms of deposit.

2011-10-25 Thread Richard Henderson
If the deposit replaces the entire word, optimize to a move. If we're inserting to the top of the word, avoid the mask of arg2 as we'll be shifting out all of the garbage and shifting in zeros. If the host is 32-bit, reduce a 64-bit deposit to a 32-bit deposit when possible. Signed-off-by: Richa

Re: [Qemu-devel] [PATCH] target-xtensa: raise an exception for invalid and reserved opcodes

2011-10-25 Thread Max Filippov
> > This includes opcodes from disabled features and those marked reserved in > > the ISA. > > > > Signed-off-by: Max Filippov > > --- > > target-xtensa/translate.c |1 + > > 1 files changed, 1 insertions(+), 0 deletions(-) > > > > diff --git a/target-xtensa/translate.c b/target-xtensa/trans

[Qemu-devel] [PATCH] savevm: qemu_fille_buffer() used to return one error for reads of size 0.

2011-10-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- savevm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/savevm.c b/savevm.c index f01838f..bee16c0 100644 --- a/savevm.c +++ b/savevm.c @@ -476,6 +476,8 @@ static void qemu_fill_buffer(QEMUFile *f) if (len > 0) { f->buf_siz

Re: [Qemu-devel] [PATCH] target-xtensa: raise an exception for invalid and reserved opcodes

2011-10-25 Thread Peter Maydell
On 25 October 2011 17:44, Max Filippov wrote: > This includes opcodes from disabled features and those marked reserved in the > ISA. > > Signed-off-by: Max Filippov > --- >  target-xtensa/translate.c |    1 + >  1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/target-xtensa/tran

[Qemu-devel] [PATCH] target-xtensa: raise an exception for invalid and reserved opcodes

2011-10-25 Thread Max Filippov
This includes opcodes from disabled features and those marked reserved in the ISA. Signed-off-by: Max Filippov --- target-xtensa/translate.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 1688bb2..792eff1 1006

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-25 Thread Lucas Meneghel Rodrigues
On 10/25/2011 01:03 PM, Eduardo Habkost wrote: On Tue, Oct 25, 2011 at 03:27:35PM +0200, Gerd Hoffmann wrote: [...] A while ago I played with some simple IDE tests. It basically was a small x86 kernel with an empty image that sends IDE commands and prints some results, and a script that invokes

[Qemu-devel] [PATCH] qmp: report TRAY_STATE_CHANGED events

2011-10-25 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- QMP/qmp-events.txt | 20 block.c|9 + monitor.c |3 +++ monitor.h |1 + 4 files changed, 33 insertions(+), 0 deletions(-) diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt index 0ce5d4e..

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-25 Thread Gerd Hoffmann
Hi, > Just trying to enumerate the kind of tests somebody may need: > > A) Simple unit tests for internal qemu C functions >- 'make check' can run them, using either libcheck or gtest. Yes, those tests should work and succeed anywhere where qemu compiles. > B) Functional tests that tests

Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's

2011-10-25 Thread Juan Quintela
Andreas Färber wrote: > Am 25.10.2011 16:00, schrieb Juan Quintela: >> This makes several changes: >> - exports VMStateDescription vmstate_cpu non-static. >> - makes sure that every cpu has a vmstate_cpu or cpu_save/load defined >> - for the architecture that had nothing, it just register the cpu

Re: [Qemu-devel] Windows 98 installer

2011-10-25 Thread Michael Karcher
Am Dienstag, den 25.10.2011, 10:15 +0200 schrieb Avi Kivity: > On 10/24/2011 08:21 PM, Michael Karcher wrote: > > If you know the 8086 architecture by heart, and also know the qemu code, > > you could get the idea that there might be an emulation bug causing the > > premature acceptance of the seco

Re: [Qemu-devel] [RFC v2 PATCH 5/4 PATCH] virtio-net: send gratuitous packet when needed

2011-10-25 Thread Michael S. Tsirkin
On Tue, Oct 25, 2011 at 10:50:41AM +0800, Jason Wang wrote: > On 10/24/2011 01:25 PM, Michael S. Tsirkin wrote: > > On Mon, Oct 24, 2011 at 02:54:59PM +1030, Rusty Russell wrote: > >> On Sat, 22 Oct 2011 13:43:11 +0800, Jason Wang wrote: > >>> This make let virtio-net driver can send gratituous pa

Re: [Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's

2011-10-25 Thread Andreas Färber
Am 25.10.2011 16:00, schrieb Juan Quintela: > This makes several changes: > - exports VMStateDescription vmstate_cpu non-static. > - makes sure that every cpu has a vmstate_cpu or cpu_save/load defined > - for the architecture that had nothing, it just register the cpu as > unmigratable. > - Depen

Re: [Qemu-devel] KVM call agenda for October 25

2011-10-25 Thread Kevin Wolf
Am 25.10.2011 16:06, schrieb Anthony Liguori: > On 10/25/2011 08:56 AM, Kevin Wolf wrote: >> Am 25.10.2011 15:05, schrieb Anthony Liguori: >>> On 10/25/2011 07:35 AM, Kevin Wolf wrote: Am 24.10.2011 13:35, schrieb Paolo Bonzini: > On 10/24/2011 01:04 PM, Juan Quintela wrote: >> >>

Re: [Qemu-devel] Qemu on Windows (Host) rather ignores AltGr Key (de keyboard)

2011-10-25 Thread Robert
Robert wrote: Qemu Manager 7.0 with QEMU 0.11.1 (last qemu with KQEMU accelerator) on German Windows XP, German Keyboard: I cannot type any characters which require the AltGr key. And "| @ \" are very important! I couln't find any solution. A Debian 6 runs works well otherwise with this lates

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-25 Thread Kevin Wolf
Am 25.10.2011 17:03, schrieb Eduardo Habkost: > On Tue, Oct 25, 2011 at 03:27:35PM +0200, Gerd Hoffmann wrote: > [...] >>> A while ago I played with some simple IDE tests. It basically was a >>> small x86 kernel with an empty image that sends IDE commands and prints >>> some results, and a script t

Re: [Qemu-devel] [PATCH 1/2] hda: do not mix output and input streams, RHBZ #740493

2011-10-25 Thread malc
On Tue, 25 Oct 2011, Marc-Andr? Lureau wrote: > Windows 7 may use the same stream number for input and output. > That will result in lot of garbage on playback. > > The hardcoded value of 4 needs to be in sync with GCAP streams > description and IN/OUT registers. > > Signed-off-by: Marc-Andr? Lu

Re: [Qemu-devel] gcc auto-omit-frame-pointer vs msvc longjmp

2011-10-25 Thread Bob Breuer
Kai Tietz wrote: > 2011/10/24 Bob Breuer : >> Kai Tietz wrote: >>> Hi, >>> >>> For trunk-version I have a tentative patch for this issue. On 4.6.x >>> and older branches this doesn't work, as here we can't differenciate >>> that easy between ms- and sysv-abi. >>> >>> But could somebody give this p

[Qemu-devel] [PATCH 04/25] vmstate: unicore32 don't support cpu migration

2011-10-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- target-unicore32/cpu.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/target-unicore32/cpu.h b/target-unicore32/cpu.h index b4e72cf..5632272 100644 --- a/target-unicore32/cpu.h +++ b/target-unicore32/cpu.h @@ -132,8 +132,6 @@ int uc32_cp

[Qemu-devel] [PATCH 08/25] vmstate: port cris cpu to vmstate

2011-10-25 Thread Juan Quintela
Have to define TLBSet struct. Multidimensional arrays in C are a mess, just unroll them. Signed-off-by: Juan Quintela CC: Edgar E. Iglesias --- target-cris/cpu.h | 13 ++--- target-cris/machine.c | 138 +++-- 2 files changed, 60 insertions(+),

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-25 Thread Eduardo Habkost
On Tue, Oct 25, 2011 at 03:27:35PM +0200, Gerd Hoffmann wrote: [...] > > A while ago I played with some simple IDE tests. It basically was a > > small x86 kernel with an empty image that sends IDE commands and prints > > some results, and a script that invokes the guest and checks whether the > > t

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-25 Thread Anthony Liguori
On 10/25/2011 07:21 AM, Kevin Wolf wrote: Am 24.10.2011 20:57, schrieb Anthony Liguori: On 10/24/2011 01:43 PM, Eduardo Habkost wrote: On Mon, Sep 05, 2011 at 09:55:20AM +0200, Markus Armbruster wrote: Gerd Hoffmann writes: Hi, This patch series intends to make unit testing easier. I

[Qemu-devel] [PATCH 07/25] vmstate: make microblaze cpus not migrateable

2011-10-25 Thread Juan Quintela
Signed-off-by: Juan Quintela CC: Edgar E. Iglesias --- target-microblaze/cpu.h |2 -- target-microblaze/machine.c | 15 +++ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h index 3530286..fc5c098 100644 --- a/

[Qemu-devel] [PATCH 2/2] hda: do not mix output and input stream states, RHBZ #740493

2011-10-25 Thread Marc-André Lureau
Windows 7 may use the same stream number for input and output. Current code will confuse streams. Changes since v1: - keep running_compat[] for migration version 1 - add running_real[] for migration version 2 Signed-off-by: Marc-André Lureau --- hw/hda-audio.c | 26 +++---

[Qemu-devel] [PATCH 1/2] hda: do not mix output and input streams, RHBZ #740493

2011-10-25 Thread Marc-André Lureau
Windows 7 may use the same stream number for input and output. That will result in lot of garbage on playback. The hardcoded value of 4 needs to be in sync with GCAP streams description and IN/OUT registers. Signed-off-by: Marc-André Lureau --- hw/intel-hda.c |9 + 1 files changed,

[Qemu-devel] [PATCH 05/25] vmstate: use new cpu style for x86

2011-10-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- target-i386/cpu.h |2 -- target-i386/machine.c | 12 +--- 2 files changed, 1 insertions(+), 13 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index a973f2e..ef6f9f4 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -949,

[Qemu-devel] [PATCH 12/25] vmstate: Introduce VMSTATE_STRUCT_VARRAY_INT32_TEST

2011-10-25 Thread Juan Quintela
We have an array of structs whose size is an int32 in the same struct that depends on a test value to know if it is there or not. Signed-off-by: Juan Quintela --- hw/hw.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 3044cec..798732f 1

[Qemu-devel] [PATCH 13/25] vmstate: port ppc cpu

2011-10-25 Thread Juan Quintela
Added sdr1_vmstate because storing the value requires calling ppc_store_sdr1(). The position when the function is called also changes (I think it is save). Signed-off-by: Juan Quintela CC: Alexander Graf --- target-ppc/cpu.h |4 +- target-ppc/machine.c | 245 ++-

[Qemu-devel] [PATCH 06/25] vmstate: use new style for lm32 cpus

2011-10-25 Thread Juan Quintela
Signed-off-by: Juan Quintela CC: Michael Walle --- target-lm32/cpu.h |2 -- target-lm32/machine.c | 12 +--- 2 files changed, 1 insertions(+), 13 deletions(-) diff --git a/target-lm32/cpu.h b/target-lm32/cpu.h index 037ef52..bd37af8 100644 --- a/target-lm32/cpu.h +++ b/target

Re: [Qemu-devel] GPLv3 troubles

2011-10-25 Thread Dor Laor
On 10/18/2011 03:03 PM, Anthony Liguori wrote: On 10/18/2011 03:01 AM, Markus Armbruster wrote: Avi Kivity writes: On 10/17/2011 07:46 PM, Stefan Weil wrote: So let's start. For any of my contributions, I agree to GPL v2 or later. Later generations should have the possibility to replace GPL

[Qemu-devel] [PATCH 02/25] vmstate: Simplify test for CPU_SAVE_VERSION

2011-10-25 Thread Juan Quintela
Some cpu's definitions define CPU_SAVE_VERSION, others not, but they have defined cpu_save/load. Signed-off-by: Juan Quintela --- exec.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 9dc4edb..165cfe8 100644 --- a/exec.c +++ b/exec.c @@ -591,7

[Qemu-devel] [PATCH 15/25] vmstate: define vmstate_info_uinttls

2011-10-25 Thread Juan Quintela
We are going to define arrays of this type, so we need the integer type. Signed-off-by: Juan Quintela --- hw/hw.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 727d563..306127a 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -947,11 +947,13 @@ extern con

[Qemu-devel] [PATCH 14/25] vmstate: introduce VMSTATE_VARRAY_MULTIPLY

2011-10-25 Thread Juan Quintela
Thiss allows to sent a partial array where the size is another structure field multiplied by a constant. Signed-off-by: Juan Quintela --- hw/hw.h | 11 +++ savevm.c |6 ++ 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 798732f..727d563

[Qemu-devel] [PATCH 03/25] vmstate: make all architectures export a way to migrate cpu's

2011-10-25 Thread Juan Quintela
This makes several changes: - exports VMStateDescription vmstate_cpu non-static. - makes sure that every cpu has a vmstate_cpu or cpu_save/load defined - for the architecture that had nothing, it just register the cpu as unmigratable. - Depending on CPU_SAVE_VERSION we register old/new migration s

[Qemu-devel] [PATCH 21/25] mips: bump migration version to 4

2011-10-25 Thread Juan Quintela
bcond state was stored as int32, but it is target_ulong. Change migration state to reflect that. Signed-off-by: Juan Quintela CC: Aurelien Jarno --- target-mips/cpu.h |2 +- target-mips/machine.c | 10 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/target-m

[Qemu-devel] [PATCH 22/25] vmstate: port mips cpu

2011-10-25 Thread Juan Quintela
Signed-off-by: Juan Quintela CC: Aurelien Jarno --- target-mips/cpu.h |4 +- target-mips/machine.c | 466 +++-- 2 files changed, 185 insertions(+), 285 deletions(-) diff --git a/target-mips/cpu.h b/target-mips/cpu.h index 7810924..9bb7379 100

[Qemu-devel] [PATCH 16/25] vmstate: port sparc cpu

2011-10-25 Thread Juan Quintela
Signed-off-by: Juan Quintela CC: Blue Swirl --- hw/sun4u.c | 20 -- target-sparc/cpu.h |8 +- target-sparc/machine.c | 482 3 files changed, 282 insertions(+), 228 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index eaa

[Qemu-devel] [PATCH 23/25] arm: save always 32 fpu registers

2011-10-25 Thread Juan Quintela
This way, we fix a bug (we were overwritten the 16 first registers on load), and we don't need to check for ARM_FEATUR_VPF3, we always send the 32 registers. Signed-off-by: Juan Quintela CC: Paul Brook CC: Peter Maydell --- target-arm/cpu.h |2 +- target-arm/machine.c | 22 ++

[Qemu-devel] [PATCH 25/25] vmstate: all cpus converted

2011-10-25 Thread Juan Quintela
We don't have any more CPU_SAVEVM_VERSION users, neither cpu_save/load() ones. Signed-off-by: Juan Quintela --- exec.c|5 - qemu-common.h |4 2 files changed, 0 insertions(+), 9 deletions(-) diff --git a/exec.c b/exec.c index 09f3f01..cc84378 100644 --- a/exec.c +++ b/e

[Qemu-devel] [PATCH 19/25] mips: make mvp an embedded struct instead of pointer

2011-10-25 Thread Juan Quintela
Adjust all callers. Signed-off-by: Juan Quintela CC: Aurelien Jarno --- hw/mips_malta.c |4 ++-- target-mips/cpu.h|4 ++-- target-mips/machine.c| 12 ++-- target-mips/op_helper.c | 30 +- target-mips/translate

[Qemu-devel] [PATCH 00/25] VMState port of all cpus

2011-10-25 Thread Juan Quintela
Hi This series port all cpus to use vmstate. - 1st patch is a fix of vmstate. - I discussed the arm changes over irc with Peter, he agreed that some simplification could be good, but he didn't saw the patches O:-) - mips: no pci chipset has been ported, so migration don't work there. I have em

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-25 Thread Kevin Wolf
Am 25.10.2011 15:27, schrieb Gerd Hoffmann: > Hi, > >>> I was hoping for more, but maybe we just need to start here and grow >>> organically, I'll queue it again. >> >> A while ago I played with some simple IDE tests. It basically was a >> small x86 kernel with an empty image that sends IDE com

[Qemu-devel] [PATCH 18/25] mips_fulong2e: cpu vmstate already registered in cpu_exec_init

2011-10-25 Thread Juan Quintela
This is the second place that register cpu migration code, it is done in general in cpu_exec_init(), just remove this call. Signed-off-by: Juan Quintela CC: Huacai Chen --- hw/mips_fulong2e.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/hw/mips_fulong2e.c b/hw/mips_f

[Qemu-devel] [PATCH 09/25] vmstate: machine.c is only compiled for !CONFIG_USER_ONLY

2011-10-25 Thread Juan Quintela
Signed-off-by: Juan Quintela CC: Alexander Graf --- target-ppc/machine.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/target-ppc/machine.c b/target-ppc/machine.c index 1c40d43..226b4a5 100644 --- a/target-ppc/machine.c +++ b/target-ppc/machine.c @@ -32,7 +32,6

[Qemu-devel] [PATCH 01/25] vmstate: Fix VMSTATE_VARRAY_UINT32

2011-10-25 Thread Juan Quintela
We didn't saved elemnts with that size (brown paper bag for me). Signed-off-by: Juan Quintela --- savevm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/savevm.c b/savevm.c index f01838f..557eba4 100644 --- a/savevm.c +++ b/savevm.c @@ -1457,6 +1457,8 @@ void vmstate_

[Qemu-devel] [PATCH 24/25] vmstate: port arm cpu

2011-10-25 Thread Juan Quintela
Use one subsection for each feature. This means that we don't need to bump the version field each time that a new feature gets introduced. Introduce cpsr_vmstate field, as I am not sure if I can "use" uncached_cpsr for saving state. Signed-off-by: Juan Quintela CC: Paul Brook CC: Peter Maydell

[Qemu-devel] [PATCH 20/25] mips: make tlb an embedded struct instead of a pointer

2011-10-25 Thread Juan Quintela
Adjust all callers. Signed-off-by: Juan Quintela CC: Aurelien Jarno --- hw/mips_timer.c |2 +- target-mips/cpu.h|2 +- target-mips/helper.c | 30 +- target-mips/machine.c| 56 +- tar

[Qemu-devel] [PATCH 17/25] vmstate: make incompatible change for sparc

2011-10-25 Thread Juan Quintela
With this change, we sent arrays as arrays, making state description much simpler. The change is incompatible, but as far as I know, sparc don't care about migration compatibility beteween versions. Signed-off-by: Juan Quintela CC: Blue Swirl --- target-sparc/machine.c | 172 +++--

Re: [Qemu-devel] KVM call agenda for October 25

2011-10-25 Thread Anthony Liguori
On 10/25/2011 08:56 AM, Kevin Wolf wrote: Am 25.10.2011 15:05, schrieb Anthony Liguori: On 10/25/2011 07:35 AM, Kevin Wolf wrote: Am 24.10.2011 13:35, schrieb Paolo Bonzini: On 10/24/2011 01:04 PM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. - W

[Qemu-devel] [PATCH 11/25] vmstate: introduce float64 arrays

2011-10-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h |4 savevm.c | 30 ++ 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 014cdc1..3044cec 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -355,6 +355,7 @@ extern const VMStateInfo vmstate_i

[Qemu-devel] [PATCH 10/25] vmstate: introduce float32 arrays

2011-10-25 Thread Juan Quintela
Signed-off-by: Juan Quintela --- hw/hw.h |5 + savevm.c | 30 ++ 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 0f0200a..014cdc1 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -354,6 +354,8 @@ extern const VMStateInfo vmstate_

Re: [Qemu-devel] KVM call agenda for October 25

2011-10-25 Thread Kevin Wolf
Am 25.10.2011 15:05, schrieb Anthony Liguori: > On 10/25/2011 07:35 AM, Kevin Wolf wrote: >> Am 24.10.2011 13:35, schrieb Paolo Bonzini: >>> On 10/24/2011 01:04 PM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. >>> >>> - What's left to m

[Qemu-devel] [PULL] libcacard patches

2011-10-25 Thread Alon Levy
The following changes since commit 952e849c150b4f1b89f8728cba00f925c1d6e75b: Merge remote-tracking branch 'bonzini/split-main-loop-for-anthony' into staging (2011-10-24 10:51:12 -0500) are available in the git repository at: git://anongit.freedesktop.org/~alon/qemu pull-libcacard-assert Al

[Qemu-devel] [PATCH] qxl: create slots on post_load in vga state

2011-10-25 Thread Alon Levy
RHBZ 740547 If we migrate when the device is in vga state the guest still believes the slots are created, and will cause operations that reference the slots, causing a "panic: virtual address out of range" on the first of them. Easy to see by migrating in vga mode with a driver loaded, for instanc

Re: [Qemu-devel] [PATCH] qxl: create slots on post_load in vga state

2011-10-25 Thread Alon Levy
On Tue, Oct 25, 2011 at 03:05:08PM +0200, Alon Levy wrote: > RHBZ 740547 > NACK self, dprint contains delta that isn't being used, will resend. > If we migrate when the device is in vga state the guest > still believes the slots are created, and will cause operations > that reference the slots,

Re: [Qemu-devel] KVM call agenda for October 25

2011-10-25 Thread Andreas Färber
Am 25.10.2011 15:18, schrieb Dor Laor: > [...] it would be nice to mark a VM un-migratable [snip] Speaking of which, I'm working on the missing migration support for AHCI but fear I won't quite make it for the Nov 1 deadline. Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, G

Re: [Qemu-devel] [PATCH 0/2] qxl: local rendering fixes.

2011-10-25 Thread Alon Levy
On Tue, Oct 25, 2011 at 02:34:31PM +0200, Gerd Hoffmann wrote: > Hi, > Both look good (do we ACK here?) I'll rebase my controvertial monitor async patches on this. > These two patches fix up some issues we have with local rendering, > i.e. spice-server rendering the screen instead of spice-cl

Re: [Qemu-devel] KVM call agenda for October 25

2011-10-25 Thread Anthony Liguori
On 10/25/2011 08:18 AM, Dor Laor wrote: On 10/25/2011 03:05 PM, Anthony Liguori wrote: On 10/25/2011 07:35 AM, Kevin Wolf wrote: Am 24.10.2011 13:35, schrieb Paolo Bonzini: On 10/24/2011 01:04 PM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. - Wh

Re: [Qemu-devel] [PATCH 0/4] add "make check"

2011-10-25 Thread Gerd Hoffmann
Hi, >> I was hoping for more, but maybe we just need to start here and grow >> organically, I'll queue it again. > > A while ago I played with some simple IDE tests. It basically was a > small x86 kernel with an empty image that sends IDE commands and prints > some results, and a script that i

Re: [Qemu-devel] [PATCH 1/5] monitor: screen_dump async

2011-10-25 Thread Alon Levy
On Tue, Oct 25, 2011 at 10:51:30AM -0200, Luiz Capitulino wrote: > On Tue, 25 Oct 2011 12:13:09 +0200 > Alon Levy wrote: > > > On Mon, Oct 24, 2011 at 10:31:48PM -0200, Luiz Capitulino wrote: > > > On Mon, 24 Oct 2011 19:29:37 +0200 > > > Alon Levy wrote: > > > > > > > On Mon, Oct 24, 2011 at 0

  1   2   3   >