[Qemu-devel] [PATCH v2 08/17] kvm: x86: Remove redundant mp_state initialization

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com kvm_arch_reset_vcpu initializes mp_state, and that function is invoked right after kvm_arch_init_vcpu. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- target-i386/kvm.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH v2 05/17] x86: Optionally dump code bytes on cpu_dump_state

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Introduce the cpu_dump_state flag CPU_DUMP_CODE and implement it for x86. This writes out the code bytes around the current instruction pointer. Make use of this feature in KVM to help debugging fatal vm exits. Signed-off-by: Jan Kiszka

[Qemu-devel] [PATCH v2 01/17] kvm: Fix coding style violations

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com No functional changes. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- kvm-all.c | 139 ++-- 1 files changed, 79 insertions(+), 60 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index

[Qemu-devel] [PATCH v2 09/17] kvm: x86: Fix xcr0 reset mismerge

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com For unknown reasons, xcr0 reset ended up in kvm_arch_update_guest_debug on upstream merge. Fix this and also remove the misleading comment (1 is THE reset value). Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- target-i386/kvm.c |3 +-- 1 files

[Qemu-devel] [PATCH v2 15/17] kvm: Drop smp_cpus argument from init functions

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com No longer used. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- kvm-all.c |4 ++-- kvm-stub.c |2 +- kvm.h |4 ++-- target-i386/kvm.c |2 +- target-ppc/kvm.c |2 +- target-s390x/kvm.c |2 +-

[Qemu-devel] [PATCH v2 14/17] kvm: x86: Introduce kvmclock device to save/restore its state

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com If kvmclock is used, which implies the kernel supports it, register a kvmclock device with the sysbus. Its main purpose is to save and restore the kernel state on migration, but this will also allow to visualize it one day. Signed-off-by: Jan Kiszka

[Qemu-devel] [PATCH v2 07/17] kvm: x86: Prepare kvm_get_mp_state for in-kernel irqchip

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com This code path will not yet be taken as we still lack in-kernel irqchip support. But qemu-kvm can already make use of it and drop its own mp_state access services. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- target-i386/kvm.c |3 +++ 1 files

[Qemu-devel] [PATCH v2 16/17] kvm: x86: Rework identity map and TSS setup for larger BIOS sizes

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com First of all, we only need this EPT identity and TSS reservation on Intel CPUs. Then, in order to support loading BIOSes 256K, reorder the code, adjusting the base if the kernel supports moving the identity map. We can drop the check for

[Qemu-devel] [PATCH v2 00/17] [uq/master] Prepare for more qemu-kvm merging

2011-01-03 Thread Jan Kiszka
All previously sent patches against current uq combined, some smaller tweaks applied, and 4 new patches added. Major news is support for using up to 16M BIOSes and optional code dump for cpu_dump_state. Those features are already present qemu-kvm but were reworked to provide cleaner upstream

[Qemu-devel] [PATCH v2 02/17] kvm: Drop return value of kvm_cpu_exec

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com It is not used, it is not needed, so let's remove it. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- kvm-all.c |6 ++ kvm-stub.c |4 ++-- kvm.h |2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/kvm-all.c

[Qemu-devel] [PATCH v2 11/17] kvm: x86: Reset paravirtual MSRs

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Make sure to clear MSR_KVM_SYSTEM_TIME, MSR_KVM_WALL_CLOCK, and MSR_KVM_ASYNC_PF_EN so that a freshly booted guest cannot be disturbed by old values. Signed-off-by: Jan Kiszka jan.kis...@siemens.com CC: Glauber Costa glom...@redhat.com ---

[Qemu-devel] [PATCH v2 13/17] kvm: Eliminate KVMState arguments

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com QEMU supports only one VM, so there is only one kvm_state per process, and we gain nothing passing a reference to it around. Eliminate any need to refer to it outside of kvm-all.c. Signed-off-by: Jan Kiszka jan.kis...@siemens.com CC: Alexander Graf

[Qemu-devel] [PATCH v2 10/17] kvm: x86: Refactor msr_star/hsave_pa setup and checks

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Simplify kvm_has_msr_star/hsave_pa to booleans and push their one-time initialization into kvm_arch_init. Also handle potential errors of that setup procedure. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- target-i386/kvm.c | 47

[Qemu-devel] [PATCH v2 06/17] kvm: x86: Align kvm_arch_put_registers code with comment

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com The ordering doesn't matter in this case, but better keep it consistent. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- target-i386/kvm.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/target-i386/kvm.c

[Qemu-devel] [PATCH v2 17/17] kvm: Drop dependencies on very old capabilities

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com COALESCED_MMIO, SYNC_MMU, EXT_CPUID, CLOCKSOURCE, NOP_IO_DELAY, PV_MMU - all these caps predate features on which we already depend at build time. Moreover, the check for KVM_CAP_EXT_CPUID is unneeded as we already test fail is a more recent feature is

[Qemu-devel] [PATCH v2 04/17] kvm: Improve reporting of fatal errors

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Report KVM_EXIT_UNKNOWN, KVM_EXIT_FAIL_ENTRY, and KVM_EXIT_EXCEPTION with more details to stderr. The latter two are so far x86-only, so move them into the arch-specific handler. Integrate the Intel real mode warning on KVM_EXIT_FAIL_ENTRY that qemu-kvm

[Qemu-devel] [PATCH v2 12/17] kvm: x86: Drop MCE MSRs write back restrictions

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com There is no need to restrict writing back MCE MSRs to reset or full state updates as setting their values has no side effects. Signed-off-by: Jan Kiszka jan.kis...@siemens.com CC: Huang Ying ying.hu...@intel.com --- target-i386/kvm.c | 12

[Qemu-devel] [PATCH v2 03/17] kvm: Stop on all fatal exit reasons

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Ensure that we stop the guest whenever we face a fatal or unknown exit reason. If we stop, we also have to enforce a cpu loop exit. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- kvm-all.c | 15 +++ target-i386/kvm.c |4

[Qemu-devel] Role of qemu_fair_mutex

2011-01-03 Thread Jan Kiszka
Hi, at least in kvm mode, the qemu_fair_mutex seems to have lost its function of balancing qemu_global_mutex access between the io-thread and vcpus. It's now only taken by the latter, isn't it? This and the fact that qemu-kvm does not use this kind of lock made me wonder what its role is and if

[Qemu-devel] [Bug 513273] Re: kvm with -vga std is broken since karmic

2011-01-03 Thread Theo Nolte
Building vgabios from source as described above added the missing modes for me too. But still the vga driver does not work properly - it builds the screen very slowly line by line and takes 20 seconds or more just for the login-screen. After some hours I gave up on vga and switched to the

[Qemu-devel] Re: Role of qemu_fair_mutex

2011-01-03 Thread Avi Kivity
On 01/03/2011 11:46 AM, Jan Kiszka wrote: Hi, at least in kvm mode, the qemu_fair_mutex seems to have lost its function of balancing qemu_global_mutex access between the io-thread and vcpus. It's now only taken by the latter, isn't it? This and the fact that qemu-kvm does not use this kind of

[Qemu-devel] Re: Role of qemu_fair_mutex

2011-01-03 Thread Jan Kiszka
Am 03.01.2011 11:01, Avi Kivity wrote: On 01/03/2011 11:46 AM, Jan Kiszka wrote: Hi, at least in kvm mode, the qemu_fair_mutex seems to have lost its function of balancing qemu_global_mutex access between the io-thread and vcpus. It's now only taken by the latter, isn't it? This and the

[Qemu-devel] Re: Role of qemu_fair_mutex

2011-01-03 Thread Avi Kivity
On 01/03/2011 12:03 PM, Jan Kiszka wrote: Am 03.01.2011 11:01, Avi Kivity wrote: On 01/03/2011 11:46 AM, Jan Kiszka wrote: Hi, at least in kvm mode, the qemu_fair_mutex seems to have lost its function of balancing qemu_global_mutex access between the io-thread and vcpus. It's now only

[Qemu-devel] Debugging a 64-bit kernel in qemu

2011-01-03 Thread Markus Duft
Hi! I have been playing a little with this: I'm writing a kernel for both x86 and x86-64. While doing so, i'd like to debug the kernel using qemu (and it's gdb stub) and gdb. This worked very well until qemu-0.11.1 (gdb version does not seem to play any role...). From there on, debugging the

Re: [Qemu-devel] [PATCH 0/5] usb-ccid (v11)

2011-01-03 Thread Gerd Hoffmann
On 12/17/10 20:44, Alon Levy wrote: This patchset adds three new devices, usb-ccid, ccid-card-passthru and ccid-card-emulated, providing a CCID bus, a simple passthru protocol implementing card requiring a client, and a standalone emulated card. It also introduces a new directory libcaccard

Re: [Qemu-devel] Where is ehci hiding ?

2011-01-03 Thread Gerd Hoffmann
On 12/21/10 16:16, Olivier Galibert wrote: Hi all, Google sees patches to hw/usb-ehci.c from time to time, in http://www.mail-archive.com/qemu-devel@nongnu.org/msg37741.html for instance. Where is that code hiding, since I just can't find it in the git tree? I'm busy working on the qemu

[Qemu-devel] KVM call agenda for Jan 4

2011-01-03 Thread Juan Quintela
Please send any agenda items you are interested in covering. thanks, Juan.

Re: [Qemu-devel] [PATCH 0/5] usb-ccid (v11)

2011-01-03 Thread Alon Levy
On Mon, Jan 03, 2011 at 11:39:01AM +0100, Gerd Hoffmann wrote: On 12/17/10 20:44, Alon Levy wrote: This patchset adds three new devices, usb-ccid, ccid-card-passthru and ccid-card-emulated, providing a CCID bus, a simple passthru protocol implementing card requiring a client, and a standalone

[Qemu-devel] Re: [PATCH v2 13/17] kvm: Eliminate KVMState arguments

2011-01-03 Thread Alexander Graf
On 03.01.2011, at 09:33, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com QEMU supports only one VM, so there is only one kvm_state per process, and we gain nothing passing a reference to it around. Eliminate any need to refer to it outside of kvm-all.c. Slightly unqemu'ish, but

[Qemu-devel] Re: Debugging a 64-bit kernel in qemu

2011-01-03 Thread Jan Kiszka
Am 03.01.2011 11:27, Markus Duft wrote: Hi! I have been playing a little with this: I'm writing a kernel for both x86 and x86-64. While doing so, i'd like to debug the kernel using qemu (and it's gdb stub) and gdb. This worked very well until qemu-0.11.1 (gdb version does not seem to

[Qemu-devel] qemu vs. kvm: When to flush the coalesced mmio buffer?

2011-01-03 Thread Jan Kiszka
Hi again, another subtle difference between qemu-kvm and upstream: When we leave the guest for an IO window (KVM_RUN returns EINTR or EAGAIN), we call kvm_flush_coalesced_mmio_buffer in qemu-kvm but not in upstream. When version is better? I can't find any rationales in both git logs. Jan

Re: [Qemu-devel] Re: Debugging a 64-bit kernel in qemu

2011-01-03 Thread Markus Duft
On 01/03/2011 12:15 PM, Jan Kiszka wrote: [snip] 1) is this a problem with qemu or was qemu fixed and gdb has a problem? (that's why i CCd the gdb list ;)). 2) is there any plan to fix this issue? 3) is there some kind of workaround i can use (i'd be happy with an ugly/unsupported patch

Re: [Qemu-devel] qemu vs. kvm: When to flush the coalesced mmio buffer?

2011-01-03 Thread Gleb Natapov
On Mon, Jan 03, 2011 at 01:11:32PM +0100, Jan Kiszka wrote: Hi again, another subtle difference between qemu-kvm and upstream: When we leave the guest for an IO window (KVM_RUN returns EINTR or EAGAIN), we call kvm_flush_coalesced_mmio_buffer in qemu-kvm but not in upstream. When version

Re: [Qemu-devel] Re: Debugging a 64-bit kernel in qemu

2011-01-03 Thread Markus Duft
On 01/03/2011 01:15 PM, Markus Duft wrote: On 01/03/2011 12:15 PM, Jan Kiszka wrote: [snip] [snip] actually, i find that Ted Harkington was right: in 0.11.1 i can debug 32 bit code with qemu-system-x86_64 well enough (which means i debugged all the 32 bit part of my kernel without ever seen

[Qemu-devel] Re: qemu vs. kvm: When to flush the coalesced mmio buffer?

2011-01-03 Thread Avi Kivity
On 01/03/2011 02:11 PM, Jan Kiszka wrote: Hi again, another subtle difference between qemu-kvm and upstream: When we leave the guest for an IO window (KVM_RUN returns EINTR or EAGAIN), we call kvm_flush_coalesced_mmio_buffer in qemu-kvm but not in upstream. When version is better? I can't find

[Qemu-devel] Re: qemu vs. kvm: When to flush the coalesced mmio buffer?

2011-01-03 Thread Jan Kiszka
Am 03.01.2011 13:32, Avi Kivity wrote: On 01/03/2011 02:11 PM, Jan Kiszka wrote: Hi again, another subtle difference between qemu-kvm and upstream: When we leave the guest for an IO window (KVM_RUN returns EINTR or EAGAIN), we call kvm_flush_coalesced_mmio_buffer in qemu-kvm but not in

[Qemu-devel] [PATCH 18/17] kvm: Flush coalesced mmio buffer on IO window exits

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com We must flush pending mmio writes if we leave kvm_cpu_exec for an IO window. Otherwise we risk to loose those requests when migrating to a different host during that window. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- kvm-all.c |4 ++-- 1

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-01-03 Thread Paolo Bonzini
The patch is in 0.13.0, so changing the status. ** Changed in: qemu Status: Invalid = Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/524447 Title: virsh save is very slow

[Qemu-devel] Re: Debugging a 64-bit kernel in qemu

2011-01-03 Thread Jan Kiszka
[ please keep CCs ] Am 03.01.2011 13:27, Markus Duft wrote: On 01/03/2011 01:15 PM, Markus Duft wrote: On 01/03/2011 12:15 PM, Jan Kiszka wrote: [snip] [snip] actually, i find that Ted Harkington was right: in 0.11.1 i can debug 32 bit code with qemu-system-x86_64 well enough (which means

Re: [Qemu-devel] Re: Debugging a 64-bit kernel in qemu

2011-01-03 Thread Markus Duft
On 01/03/2011 02:00 PM, Jan Kiszka wrote: [ please keep CCs ] Am 03.01.2011 13:27, Markus Duft wrote: On 01/03/2011 01:15 PM, Markus Duft wrote: On 01/03/2011 12:15 PM, Jan Kiszka wrote: [snip] [snip] actually, i find that Ted Harkington was right: in 0.11.1 i can debug 32 bit code with

[Qemu-devel] [PATCH v3 05/17] x86: Optionally dump code bytes on cpu_dump_state

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Introduce the cpu_dump_state flag CPU_DUMP_CODE and implement it for x86. This writes out the code bytes around the current instruction pointer. Make use of this feature in KVM to help debugging fatal vm exits. Signed-off-by: Jan Kiszka

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-01-03 Thread EsbenHaabendal
How should I interpret Fix Released? qemu in maverick is still 0.12.5 and 0.12.3 in lucid. Will this not be fixed in current stable LTS and non-LTS releases? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [Bug 638955] Re: emulated netcards don't work with recent sunos kernel

2011-01-03 Thread daniel pecka
is this issue dead ?? can i do something for help to fix it? regards, daniel -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/638955 Title: emulated netcards don't work with recent sunos kernel

Re: [Qemu-devel] Re: [PATCH v3] qemu, qmp: convert do_inject_nmi() to QObject, QError

2011-01-03 Thread Luiz Capitulino
On Mon, 20 Dec 2010 14:09:05 +0800 Lai Jiangshan la...@cn.fujitsu.com wrote: On 12/17/2010 11:25 PM, Avi Kivity wrote: On 12/17/2010 01:22 PM, Luiz Capitulino wrote: I think Avi's suggest is better, and I will use inject-nmi (without cpu-index argument) to send NMI to all cpus,

Re: [Qemu-devel] [PATCH 1/3] nmi: convert cpu_index to cpu-index

2011-01-03 Thread Luiz Capitulino
On Mon, 20 Dec 2010 18:00:34 +0100 Markus Armbruster arm...@redhat.com wrote: Lai Jiangshan la...@cn.fujitsu.com writes: cpu-index is better name. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- diff --git a/hmp-commands.hx b/hmp-commands.hx index 4befbe2..8de7aa3 100644

Re: [Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-01-03 Thread Michael Tokarev
03.01.2011 16:23, EsbenHaabendal wrote: How should I interpret Fix Released? qemu in maverick is still 0.12.5 and 0.12.3 in lucid. Not all the world is ubuntu. In qemu (and qemu-kvm) the issue is fixed in 0.13, which were released quite some time ago. Will this not be fixed in current

Re: [Qemu-devel] [PATCH 0/5] usb-ccid (v11)

2011-01-03 Thread Gerd Hoffmann
On 01/03/11 12:00, Alon Levy wrote: On Mon, Jan 03, 2011 at 11:39:01AM +0100, Gerd Hoffmann wrote: Patch series looks good to me now. Doesn't apply cleanly to master though (conflicts in configure), so it needs a rebase I guess. Also a git tree to pull from would be nice. rebased, pull

[Qemu-devel] [PATCH v2 6/6] SPARCV8 asr17 register support.

2011-01-03 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau chout...@adacore.com --- target-sparc/cpu.h |1 + target-sparc/helper.c|3 ++- target-sparc/translate.c | 10 ++ 3 files changed, 13 insertions(+), 1 deletions(-) diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index

[Qemu-devel] [PATCH v2 3/6] Emulation of GRLIB APB UART as defined in GRLIB IP Core User's Manual.

2011-01-03 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau chout...@adacore.com --- hw/grlib_apbuart.c | 208 1 files changed, 208 insertions(+), 0 deletions(-) diff --git a/hw/grlib_apbuart.c b/hw/grlib_apbuart.c new file mode 100644 index 000..a2ff8ed ---

[Qemu-devel] [PATCH v2 0/6] [RFC] New SPARC machine: Leon3

2011-01-03 Thread Fabien Chouteau
Hi everyone, New version of the Leon3 emulation. Many modifications since v1, mostly to follow the Qemu architecture and to implement features in a more generic way. Again, please feel free to comment. Regards,

[Qemu-devel] [PATCH v2 1/6] Emulation of GRLIB GPTimer as defined in GRLIB IP Core User's Manual.

2011-01-03 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau chout...@adacore.com --- hw/grlib_gptimer.c | 427 1 files changed, 427 insertions(+), 0 deletions(-) diff --git a/hw/grlib_gptimer.c b/hw/grlib_gptimer.c new file mode 100644 index 000..e33d506 ---

[Qemu-devel] [PATCH v2 5/6] Emulation of Leon3.

2011-01-03 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau chout...@adacore.com --- Makefile.target |5 +- hw/leon3.c | 202 ++ target-sparc/cpu.h | 39 ++--- target-sparc/helper.c|7 +- target-sparc/helper.h|1 +

Re: [Qemu-devel] [PATCH 0/5] usb-ccid (v11)

2011-01-03 Thread Alon Levy
On Mon, Jan 03, 2011 at 02:53:02PM +0100, Gerd Hoffmann wrote: On 01/03/11 12:00, Alon Levy wrote: On Mon, Jan 03, 2011 at 11:39:01AM +0100, Gerd Hoffmann wrote: Patch series looks good to me now. Doesn't apply cleanly to master though (conflicts in configure), so it needs a rebase I guess.

[Qemu-devel] [PATCH v2 2/6] Emulation of GRLIB IRQMP as defined in GRLIB IP Core User's Manual.

2011-01-03 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau chout...@adacore.com --- hw/grlib_irqmp.c | 402 ++ 1 files changed, 402 insertions(+), 0 deletions(-) diff --git a/hw/grlib_irqmp.c b/hw/grlib_irqmp.c new file mode 100644 index 000..9f947d1 --- /dev/null

[Qemu-devel] [PATCH v2 4/6] Header file for the GRLIB components.

2011-01-03 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau chout...@adacore.com --- hw/grlib.h | 121 1 files changed, 121 insertions(+), 0 deletions(-) diff --git a/hw/grlib.h b/hw/grlib.h new file mode 100644 index 000..bb3c01e --- /dev/null +++

Re: [Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-01-03 Thread EsbenHaabendal
Michael Tokarev m...@tls.msk.ru writes: 03.01.2011 16:23, EsbenHaabendal wrote: How should I interpret Fix Released? qemu in maverick is still 0.12.5 and 0.12.3 in lucid. Not all the world is ubuntu. In qemu (and qemu-kvm) the issue is fixed in 0.13, which were released quite some time

[Qemu-devel] softfloat: fix NaN propagation for MIPS and PowerPC + cleanup

2011-01-03 Thread Aurelien Jarno
This patch series start by a cleanup to remove dead HPPA code, and then implement correct NaN propagation rules for MIPS and PowerPC, following commit 354f211b1a49a7387929e22d6e63849fcba48f8a.

[Qemu-devel] [PATCH 1/6] softfloat: remove HPPA specific code

2011-01-03 Thread Aurelien Jarno
We don't have any HPPA target, so let's remove HPPA specific code. It can be re-added when someone adds an HPPA target. Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- fpu/softfloat-specialize.h |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH 2/6] softfloat: fix float{32, 64}_maybe_silence_nan() for MIPS

2011-01-03 Thread Aurelien Jarno
On targets that define sNaN with the sNaN bit as one, simply clearing this bit may correspond to an infinite value. Convert it to a default NaN if SNAN_BIT_IS_ONE, as it corresponds to the MIPS implementation, the only emulated CPU with SNAN_BIT_IS_ONE. When other CPU of this type are added, this

[Qemu-devel] [PATCH 4/6] softfloat: use float{32, 64, x80, 128}_maybe_silence_nan()

2011-01-03 Thread Aurelien Jarno
Use float{32,64,x80,128}_maybe_silence_nan() instead of toggling the sNaN bit manually. This allow per target implementation of sNaN to qNaN conversion. Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- fpu/softfloat-specialize.h | 55 +-- 1 files

[Qemu-devel] [PATCH 3/6] softfloat: add float{x80, 128}_maybe_silence_nan()

2011-01-03 Thread Aurelien Jarno
Add float{x80,128}_maybe_silence_nan() functions, they will be need by propagateFloat{x80,128}NaN(). Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- fpu/softfloat-specialize.h | 38 ++ fpu/softfloat.h|2 ++ 2 files changed, 40

[Qemu-devel] [PATCH 5/6] target-mips: Implement correct NaN propagation rules

2011-01-03 Thread Aurelien Jarno
Implement the correct NaN propagation rules for MIPS targets by providing an appropriate pickNaN function. Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- fpu/softfloat-specialize.h | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PATCH 6/6] target-ppc: Implement correct NaN propagation rules

2011-01-03 Thread Aurelien Jarno
Implement the correct NaN propagation rules for ARM targets by providing an appropriate pickNaN function. Also fix the #ifdef tests for default NaN definition, the correct name is TARGET_PPC instead of TARGET_POWERPC. Cc: Alexander Graf ag...@suse.de Signed-off-by: Aurelien Jarno

[Qemu-devel] [PATCH 1/3] add migration state change notifiers

2011-01-03 Thread Gerd Hoffmann
This patch adds functions to register and unregister notifiers for migration state changes and a function to query the migration state. The notifier is called on every state change. Once after establishing a new migration object (which is in active state then) and once when the state changes from

[Qemu-devel] [PATCH 3/3] spice: MAINTAINERS update

2011-01-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- MAINTAINERS |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 59effc7..25103dd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -383,6 +383,14 @@ S: Odd Fixes F: gdbstub* F: gdb-xml/

[Qemu-devel] [PATCH 0/2] migration notifiers and spice client migration

2011-01-03 Thread Gerd Hoffmann
Hi, This patch series adds spice client migration support to qemu, i.e. allow the spice client to reconnect automatically to the new host after vm migration. It also adds a notifier for migration state changes because spice needs to know when the migration completed and whenever it was

[Qemu-devel] [PATCH 2/3] spice: client migration.

2011-01-03 Thread Gerd Hoffmann
Handle spice client migration, i.e. inform a spice client connected about the new host and connection parameters, so it can move over the connection automatically. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hmp-commands.hx | 20 qmp-commands.hx | 35

Re: [Qemu-devel] [Bug 670769] Re: CDROM size not updated when changing image files

2011-01-03 Thread Alex Davis
I code, therefore I am --- On Wed, 11/10/10, agraf 670...@bugs.launchpad.net wrote: From: agraf 670...@bugs.launchpad.net Subject: Re: [Qemu-devel] [Bug 670769] Re: CDROM size not updated when changing image files To: alex14...@yahoo.com Date: Wednesday, November 10, 2010, 8:11 AM On

Re: [Qemu-devel] [PATCH 2/6] softfloat: fix float{32, 64}_maybe_silence_nan() for MIPS

2011-01-03 Thread Peter Maydell
On 3 January 2011 14:34, Aurelien Jarno aurel...@aurel32.net wrote: On targets that define sNaN with the sNaN bit as one, simply clearing this bit may correspond to an infinite value. Convert it to a default NaN if SNAN_BIT_IS_ONE, as it corresponds to the MIPS implementation, the only

[Qemu-devel] [Bug 696834] [NEW] FP exception reporting not working on NetBSD host

2011-01-03 Thread Paul Goyette
Public bug reported: I recognize that NetBSD is not one of the officially supported host OS. However, qemu 0.13.0 is available in the NetBSD pkgsrc collection, and works quite well. Well, with one exception (pun intended): It seems that Floating Point exceptions don't get reported properly. The

Re: [Qemu-devel] [PATCH 1/6] softfloat: remove HPPA specific code

2011-01-03 Thread Peter Maydell
On 3 January 2011 14:34, Aurelien Jarno aurel...@aurel32.net wrote: We don't have any HPPA target, so let's remove HPPA specific code. It can be re-added when someone adds an HPPA target. Signed-off-by: Aurelien Jarno aurel...@aurel32.net Reviewed-by: Peter Maydell peter.mayd...@linaro.org

Re: [Qemu-devel] [PATCH 2/6] softfloat: fix float{32, 64}_maybe_silence_nan() for MIPS

2011-01-03 Thread Aurelien Jarno
Peter Maydell a écrit : On 3 January 2011 14:34, Aurelien Jarno aurel...@aurel32.net wrote: On targets that define sNaN with the sNaN bit as one, simply clearing this bit may correspond to an infinite value. Convert it to a default NaN if SNAN_BIT_IS_ONE, as it corresponds to the MIPS

Re: [Qemu-devel] [PATCH 1/6] softfloat: remove HPPA specific code

2011-01-03 Thread Aurelien Jarno
Peter Maydell a écrit : On 3 January 2011 14:34, Aurelien Jarno aurel...@aurel32.net wrote: We don't have any HPPA target, so let's remove HPPA specific code. It can be re-added when someone adds an HPPA target. Signed-off-by: Aurelien Jarno aurel...@aurel32.net Reviewed-by: Peter Maydell

Re: [Qemu-devel] [Bug 696834] [NEW] FP exception reporting not working on NetBSD host

2011-01-03 Thread Paulo Cezar
On Mon, Jan 3, 2011 at 12:14 PM, Paul Goyette 696...@bugs.launchpad.netwrote: Public bug reported: I recognize that NetBSD is not one of the officially supported host OS. However, qemu 0.13.0 is available in the NetBSD pkgsrc collection, and works quite well. Well, with one exception (pun

[Qemu-devel] xAPIC version register for P4/Xeon CPUs

2011-01-03 Thread Markus Duft
Hi! Another question: Shouldn't the APIC version be 0x14 for CPUs since P4/Xeon? At least according to the Intel docs, since then the xAPIC is used, which has 0x14 as version (see intel manuals, vol 3a 10.4.8 Local APIC Version Register. reading the APIC version register yields 0x11 for all

Re: [Qemu-devel] [PATCH 3/6] softfloat: add float{x80, 128}_maybe_silence_nan()

2011-01-03 Thread Peter Maydell
On 3 January 2011 14:34, Aurelien Jarno aurel...@aurel32.net wrote: Add float{x80,128}_maybe_silence_nan() functions, they will be need by propagateFloat{x80,128}NaN(). Signed-off-by: Aurelien Jarno aurel...@aurel32.net Reviewed-by: Peter Maydell peter.mayd...@linaro.org -- PMM

Re: [Qemu-devel] [Bug 696834] [NEW] FP exception reporting not working on NetBSD host

2011-01-03 Thread Paul Goyette
On Mon, 3 Jan 2011, Paulo Cezar A Junior wrote: snip printf(FPE signal handler invoked %d times.\n); this printf() does miss an argument :-) Yes, it does. The signal handler is also missing a line: siglongjmp(sigfpe_flt_env, 1); That's what I get for extracting bitspieces

[Qemu-devel] Re: [PATCH v2 14/17] kvm: x86: Introduce kvmclock device to save/restore its state

2011-01-03 Thread Avi Kivity
On 01/03/2011 10:33 AM, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com If kvmclock is used, which implies the kernel supports it, register a kvmclock device with the sysbus. Its main purpose is to save and restore the kernel state on migration, but this will also allow to visualize it

[Qemu-devel] [PATCH 0/5] usb-ccid (v12)

2011-01-03 Thread Alon Levy
This patchset adds three new devices, usb-ccid, ccid-card-passthru and ccid-card-emulated, providing a CCID bus, a simple passthru protocol implementing card requiring a client, and a standalone emulated card. It also introduces a new directory libcaccard with CAC card emulation, CAC is a type of

[Qemu-devel] [PATCH 2/5] ccid: add passthru card device

2011-01-03 Thread Alon Levy
The passthru ccid card is a device sitting on the usb-ccid bus and using a chardevice to communicate with a remote device using the VSCard protocol defined in libcacard/vscard_common.h Usage docs available in following patch in docs/ccid.txt Signed-off-by: Alon Levy al...@redhat.com ---

[Qemu-devel] Re: [PATCH v2 17/17] kvm: Drop dependencies on very old capabilities

2011-01-03 Thread Avi Kivity
On 01/03/2011 10:33 AM, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com COALESCED_MMIO, SYNC_MMU, EXT_CPUID, CLOCKSOURCE, NOP_IO_DELAY, PV_MMU - all these caps predate features on which we already depend at build time. Moreover, the check for KVM_CAP_EXT_CPUID is unneeded as we already

[Qemu-devel] [PATCH 5/5] ccid: add docs

2011-01-03 Thread Alon Levy
Add documentation for the usb-ccid device and accompanying two card devices, ccid-card-emulated and ccid-card-passthru. --- docs/ccid.txt | 135 + 1 files changed, 135 insertions(+), 0 deletions(-) create mode 100644 docs/ccid.txt diff

[Qemu-devel] [PATCH 4/5] ccid: add ccid-card-emulated device (v2)

2011-01-03 Thread Alon Levy
This devices uses libcacard (internal) to emulate a smartcard conforming to the CAC standard. It attaches to the usb-ccid bus. Usage instructions (example command lines) are in the following patch in docs/ccid.txt. It uses libcacard which uses nss, so it can work with both hw cards and

[Qemu-devel] Re: [PATCH v2 00/17] [uq/master] Prepare for more qemu-kvm merging

2011-01-03 Thread Avi Kivity
On 01/03/2011 10:32 AM, Jan Kiszka wrote: All previously sent patches against current uq combined, some smaller tweaks applied, and 4 new patches added. Major news is support for using up to 16M BIOSes and optional code dump for cpu_dump_state. Those features are already present qemu-kvm but

[Qemu-devel] Re: [PATCH v2 16/17] kvm: x86: Rework identity map and TSS setup for larger BIOS sizes

2011-01-03 Thread Avi Kivity
On 01/03/2011 10:33 AM, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com First of all, we only need this EPT identity and TSS reservation on Intel CPUs. kvm-amd will ignore it just fine. I'd like to keep arch differences away from userspace. Then, in order to support loading

[Qemu-devel] [PATCH 0/2] ARM: Fix VQSHL/VQSHLU immediate forms

2011-01-03 Thread Peter Maydell
This patchset fixes errors in the decoding and implementation of the immediate forms of the VQSHL/VQSHLU ARM instructions. Tested in the usual random-instruction-set way. This is the final part of the maemo-qemu tree commit 03a2445a fixes (the first part being the already-committed VQSHL-reg

Re: [Qemu-devel] [Bug 696834] [NEW] FP exception reporting not working on NetBSD host

2011-01-03 Thread Paul Goyette
On Mon, 3 Jan 2011, Paul Goyette wrote: The following is a complete, standalone test program: #include ieeefp.h #include setjmp.h #include signal.h #include stdio.h volatile int flt_signal = 0; static sigjmp_buf sigfpe_flt_env; static void

[Qemu-devel] [PATCH 1/2] ARM: add neon helpers for VQSHLU

2011-01-03 Thread Peter Maydell
Add neon helper functions to implement VQSHLU, which is a signed-to-unsigned version of VQSHL available only as an immediate form. Signed-off-by: Juha Riihimäki juha.riihim...@nokia.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/helpers.h |4 +++

[Qemu-devel] [PATCH 2/2] ARM: Fix decoding of VQSHL/VQSHLU immediate forms

2011-01-03 Thread Peter Maydell
From: Juha Riihimäki juha.riihim...@nokia.com Fix errors in the decoding of ARM VQSHL/VQSHLU immediate forms, including using the new VQSHLU helper functions where appropriate. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/translate.c | 51

[Qemu-devel] Re: [PATCH v2 14/17] kvm: x86: Introduce kvmclock device to save/restore its state

2011-01-03 Thread Jan Kiszka
Am 03.01.2011 17:04, Avi Kivity wrote: On 01/03/2011 10:33 AM, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com If kvmclock is used, which implies the kernel supports it, register a kvmclock device with the sysbus. Its main purpose is to save and restore the kernel state on

[Qemu-devel] Re: [PATCH v2 14/17] kvm: x86: Introduce kvmclock device to save/restore its state

2011-01-03 Thread Glauber Costa
On Mon, 2011-01-03 at 18:04 +0200, Avi Kivity wrote: On 01/03/2011 10:33 AM, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com If kvmclock is used, which implies the kernel supports it, register a kvmclock device with the sysbus. Its main purpose is to save and restore the kernel

[Qemu-devel] Re: [PATCH v2 11/17] kvm: x86: Reset paravirtual MSRs

2011-01-03 Thread Glauber Costa
On Mon, 2011-01-03 at 09:33 +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com Make sure to clear MSR_KVM_SYSTEM_TIME, MSR_KVM_WALL_CLOCK, and MSR_KVM_ASYNC_PF_EN so that a freshly booted guest cannot be disturbed by old values. Signed-off-by: Jan Kiszka

[Qemu-devel] Re: [PATCH v2 14/17] kvm: x86: Introduce kvmclock device to save/restore its state

2011-01-03 Thread Glauber Costa
On Mon, 2011-01-03 at 09:33 +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com If kvmclock is used, which implies the kernel supports it, register a kvmclock device with the sysbus. Its main purpose is to save and restore the kernel state on migration, but this will also allow

[Qemu-devel] Re: [PATCH v2 11/17] kvm: x86: Reset paravirtual MSRs

2011-01-03 Thread Jan Kiszka
Am 03.01.2011 17:40, Glauber Costa wrote: On Mon, 2011-01-03 at 09:33 +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com Make sure to clear MSR_KVM_SYSTEM_TIME, MSR_KVM_WALL_CLOCK, and MSR_KVM_ASYNC_PF_EN so that a freshly booted guest cannot be disturbed by old values.

[Qemu-devel] Re: [PATCH v2 14/17] kvm: x86: Introduce kvmclock device to save/restore its state

2011-01-03 Thread Jan Kiszka
Am 03.01.2011 17:37, Glauber Costa wrote: On Mon, 2011-01-03 at 09:33 +0100, Jan Kiszka wrote: From: Jan Kiszka jan.kis...@siemens.com If kvmclock is used, which implies the kernel supports it, register a kvmclock device with the sysbus. Its main purpose is to save and restore the kernel

[Qemu-devel] Re: [PATCH v2 16/17] kvm: x86: Rework identity map and TSS setup for larger BIOS sizes

2011-01-03 Thread Jan Kiszka
Am 03.01.2011 17:06, Avi Kivity wrote: On 01/03/2011 10:33 AM, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com First of all, we only need this EPT identity and TSS reservation on Intel CPUs. kvm-amd will ignore it just fine. I'd like to keep arch differences away from userspace.

[Qemu-devel] Re: [PATCH v2 16/17] kvm: x86: Rework identity map and TSS setup for larger BIOS sizes

2011-01-03 Thread Avi Kivity
On 01/03/2011 06:52 PM, Jan Kiszka wrote: Am 03.01.2011 17:06, Avi Kivity wrote: On 01/03/2011 10:33 AM, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com First of all, we only need this EPT identity and TSS reservation on Intel CPUs. kvm-amd will ignore it just fine. I'd

[Qemu-devel] [PATCH 0/2] ARM/softfloat: support flushing denormals on input

2011-01-03 Thread Peter Maydell
On ARM, the FPSCR FZ bit (which controls whether denormals should be flushed to zero) is supposed to cause this flushing to occur both when the output of a calculation is a denormal (already implemented in softfloat) and also when the input to a calculation is a denormal (not implemented, as noted

Re: [Qemu-devel] [PATCH 0/2] ARM: Fix VQSHL/VQSHLU immediate forms

2011-01-03 Thread Peter Maydell
On 3 January 2011 16:20, Peter Maydell peter.mayd...@linaro.org wrote: This patchset fixes errors in the decoding and implementation of the immediate forms of the VQSHL/VQSHLU ARM instructions. Tested in the usual random-instruction-set way. This is the final part of the maemo-qemu tree commit

[Qemu-devel] Re: [PATCH v2 17/17] kvm: Drop dependencies on very old capabilities

2011-01-03 Thread Avi Kivity
On 01/03/2011 06:54 PM, Jan Kiszka wrote: Am 03.01.2011 17:08, Avi Kivity wrote: On 01/03/2011 10:33 AM, Jan Kiszka wrote: From: Jan Kiszkajan.kis...@siemens.com COALESCED_MMIO, SYNC_MMU, EXT_CPUID, CLOCKSOURCE, NOP_IO_DELAY, PV_MMU - all these caps predate features on which we already

  1   2   >