[Qemu-devel] LinkedIn Messages, 1/04/2011

2011-01-03 Thread LinkedIn Communication
LinkedIn REMINDERS: Invitation Reminders: * View Invitation from Anbang Ruan http://www.linkedin.com/e/-kkb1ec-giie1dcq-39/qTMmi8QEI_f3FNXUkL1mvZgy00BGYniwg3/blk/I77735332_11/0NclYOcPcRcPsTdQALqnpPbOYWrSlI/svi/ PENDING MESSAGES: There are a total of 3 message

[Qemu-devel] [PATCH 11/13] Move threadlet code to qemu-threadlets.c

2011-01-03 Thread Arun R Bharadwaj
This patch moves the threadlet queue API code to qemu-threadlets.c where these APIs can be used by other subsystems. Signed-off-by: Arun R Bharadwaj --- Makefile.objs |1 posix-aio-compat.c | 151 qemu-thread.h |1 qemu-th

[Qemu-devel] [PATCH 10/13] Remove all instances of CONFIG_THREAD

2011-01-03 Thread Arun R Bharadwaj
Remove all instances of CONFIG_THREAD, which is not used anymore. Signed-off-by: Arun R Bharadwaj --- configure |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a079a49..addf733 100755 --- a/configure +++ b/configure @@ -2456,7 +2456,6 @@ if t

[Qemu-devel] [PATCH 08/13] Remove thread_create routine.

2011-01-03 Thread Arun R Bharadwaj
Remove thread_create and use qemu_thread_create instead. Signed-off-by: Arun R Bharadwaj --- posix-aio-compat.c | 19 ++- 1 files changed, 2 insertions(+), 17 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index fd9fcfd..3b01c9b 100644 --- a/posix-aio-compat

[Qemu-devel] [PATCH 12/13] Threadlets: Add functionality to create private queues.

2011-01-03 Thread Arun R Bharadwaj
This patch allows subsystems to create their own private queues with associated pools of threads. Signed-off-by: Arun R Bharadwaj --- qemu-threadlets.c | 80 ++--- qemu-threadlets.h |4 +++ 2 files changed, 62 insertions(+), 22 deletions(-)

[Qemu-devel] [PATCH 07/13] Remove active field in qemu_aiocb structure.

2011-01-03 Thread Arun R Bharadwaj
The active field in the qemu_aiocb structure is now useless. Remove it. Signed-off-by: Arun R Bharadwaj --- posix-aio-compat.c | 17 ++--- 1 files changed, 6 insertions(+), 11 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index 8f1a9b6..fd9fcfd 100644 --- a/pos

[Qemu-devel] [PATCH 09/13] Threadlet: Add aio_signal_handler threadlet API

2011-01-03 Thread Arun R Bharadwaj
This patch adds aio_signal_handler threadlet API. Earler posix-aio-compat.c had its own signal handler code. Now abstract this, in the later patch it is moved to a generic code so that it can be used by other subsystems. Signed-off-by: Arun R Bharadwaj --- posix-aio-compat.c | 49 +

[Qemu-devel] [PATCH 13/13] Threadlets: Add documentation

2011-01-03 Thread Arun R Bharadwaj
Signed-off-by: Arun R Bharadwaj Signed-off-by: Gautham R Shenoy --- docs/async-support.txt | 141 1 files changed, 141 insertions(+), 0 deletions(-) create mode 100644 docs/async-support.txt diff --git a/docs/async-support.txt b/docs/async-supp

[Qemu-devel] [PATCH 06/13] Threadlet: Add dequeue_work threadlet API

2011-01-03 Thread Arun R Bharadwaj
This patch adds dequeue_work threadlet API and shows how the paio_cancel changes to dequeue_work. Signed-off-by: Arun R Bharadwaj --- posix-aio-compat.c | 46 ++ 1 files changed, 26 insertions(+), 20 deletions(-) diff --git a/posix-aio-compat.c b/po

[Qemu-devel] [PATCH 05/13] Threadlet: Add submit_work threadlet API.

2011-01-03 Thread Arun R Bharadwaj
This patch adds submit work threadlet API and shows how the qemu_paio_submit changes to submit_work. Signed-off-by: Arun R Bharadwaj --- posix-aio-compat.c | 33 ++--- 1 files changed, 22 insertions(+), 11 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-co

[Qemu-devel] [PATCH 04/13] Add ThreadletQueue.

2011-01-03 Thread Arun R Bharadwaj
This patch adds a global queue of type ThreadletQueue and removes the earlier usage of request_list queue. We want to create the thread on the first submit. Hence we need to track whether the globalqueue is initialized or not. Signed-off-by: Arun R Bharadwaj --- posix-aio-compat.c | 161 ++

[Qemu-devel] [PATCH 03/13] Add callback function to ThreadletWork structure.

2011-01-03 Thread Arun R Bharadwaj
This patch adds the callback function to the ThreadletWork structure and moves aio handler as a callback function. Signed-off-by: Arun R Bharadwaj --- posix-aio-compat.c | 88 +--- 1 files changed, 49 insertions(+), 39 deletions(-) diff --git a/

[Qemu-devel] [PATCH 02/13] Introduce work concept in posix-aio-compat.c

2011-01-03 Thread Arun R Bharadwaj
This patch introduces work concept by introducing the ThreadletWork structure. Signed-off-by: Arun R Bharadwaj --- posix-aio-compat.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/posix-aio-compat.c b/posix-aio-compat.c index ae5e20e..de52eb5 100644

[Qemu-devel] [PATCH 01/13] Add aiocb_mutex and aiocb_completion.

2011-01-03 Thread Arun R Bharadwaj
This patch adds the aiocb_mutex to protect aiocb. This patch also removes the infinite loop present in paio_cancel. Since there can only be one cancellation at a time, we need to introduce a condition variable. For this, we need a global aiocb_completion condition variable. This patch also adds t

[Qemu-devel] [PATCH 00/13] Threadlets infrastructure.

2011-01-03 Thread Arun R Bharadwaj
Hi, This patch series implements threadlets infrastructure in qemu. This is a complete rework of the earlier patch series so that it becomes easier to review. I have broken down the earlier patch series as asked by Anthony The following series implements... --- Arun R Bharadwaj (13): Add

Re: [Qemu-devel] [PATCH] noaudio: correctly account acquired samples

2011-01-03 Thread malc
On Tue, 4 Jan 2011, Michael Walle wrote: > This will fix the return value of the function which otherwise returns too > many samples because sw->total_hw_samples_acquired isn't correctly > accounted. > Applied, thanks. -- mailto:av1...@comtv.ru

[Qemu-devel] [PATCH] noaudio: correctly account acquired samples

2011-01-03 Thread Michael Walle
This will fix the return value of the function which otherwise returns too many samples because sw->total_hw_samples_acquired isn't correctly accounted. Signed-off-by: Michael Walle --- audio/noaudio.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/audio/noaudio.c b/a

[Qemu-devel] Re: audio: Mixing engine and mixer emulation

2011-01-03 Thread malc
On Tue, 4 Jan 2011, Michael Walle wrote: > > Hi, > > the SWVoiceIn volume is never used, although there is AUD_set_volume_in() to > set it. Would it be possible to add support for it? So we could get the mixer > emulation for capture devices too? > > BTW i see you can only attenuate an audio

Re: [Qemu-devel] [PATCH] noaudio: use audio_pcm_sw_read() in no_read()

2011-01-03 Thread malc
On Mon, 3 Jan 2011, Michael Walle wrote: > On Mon, 3 Jan 2011, 23:46:34 malc wrote: > > On Mon, 3 Jan 2011, Michael Walle wrote: > > > Instead of returning a self-calculated empty buffer use the proper method > > > supplied by the audio subsystem. This will fix the return value of the > > > no_rea

Re: [Qemu-devel] [PATCH] noaudio: use audio_pcm_sw_read() in no_read()

2011-01-03 Thread malc
On Mon, 3 Jan 2011, Michael Walle wrote: > Instead of returning a self-calculated empty buffer use the proper method > supplied by the audio subsystem. This will fix the return value of the > no_read() function which otherwise returns too many samples because > total_hw_samples_acquired isn't corr

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

2011-01-03 Thread Aurelien Jarno
On Mon, Jan 03, 2011 at 05:34:17PM +, Peter Maydell wrote: > On 3 January 2011 14:34, Aurelien Jarno wrote: > > 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. > > > @@ -237,15 +23

[Qemu-devel] [PATCH] noaudio: use audio_pcm_sw_read() in no_read()

2011-01-03 Thread Michael Walle
Instead of returning a self-calculated empty buffer use the proper method supplied by the audio subsystem. This will fix the return value of the no_read() function which otherwise returns too many samples because total_hw_samples_acquired isn't correctly accounted. Signed-off-by: Michael Walle --

[Qemu-devel] [Bug 532733] Re: apt/dpkg in qemu-system-arm hangs if a big task is installed

2011-01-03 Thread Dr. The Fugitive
This is just an issue with mono, apparently does not appear on omap boards. This will appear on a physical machine as well as virtual, I have so far successfully rootstock ubuntu-minimal (meerkat) and used apt-get install --no-install-recommends ubuntu-netbook to build thus far. Am working on a ker

[Qemu-devel] [PATCH 1/2] softfloat: Implement flushing input denormals to zero

2011-01-03 Thread Peter Maydell
Add support to softfloat for flushing input denormal float32 and float64 to zero. softfloat's existing 'flush_to_zero' flag only flushes denormals to zero on output. Some CPUs need input denormals to be flushed before processing as well. Implement this, using a new status flag to enable it and a ne

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

2011-01-03 Thread Glauber Costa
On Mon, 2011-01-03 at 17:46 +0100, Jan Kiszka wrote: > Am 03.01.2011 17:40, Glauber Costa wrote: > > On Mon, 2011-01-03 at 09:33 +0100, Jan Kiszka wrote: > >> From: Jan Kiszka > >> > >> Make sure to clear MSR_KVM_SYSTEM_TIME, MSR_KVM_WALL_CLOCK, and > >> MSR_KVM_ASYNC_PF_EN so that a freshly boote

[Qemu-devel] Reminder about your invitation from Ozan Türkyılmaz

2011-01-03 Thread LinkedIn Invitations
LinkedIn This invitation is awaiting your response: From Ozan Türkyılmaz -- (c) 2010, LinkedIn Corporation

[Qemu-devel] [PATCH 1/5] usb-ccid: add CCID bus

2011-01-03 Thread Alon Levy
A CCID device is a smart card reader. It is a USB device, defined at [1]. This patch introduces the usb-ccid device that is a ccid bus. Next patches will introduce two card types to use it, a passthru card and an emulated card. [1] http://www.usb.org/developers/devclass_docs/DWG_Smart-Card_CCID_R

[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 06:30 PM, Jan Kiszka wrote: Am 03.01.2011 17:04, Avi Kivity wrote: > On 01/03/2011 10:33 AM, Jan Kiszka wrote: >> From: Jan Kiszka >> >> If kvmclock is used, which implies the kernel supports it, register a >> kvmclock device with the sysbus. Its main purpose is to save and rest

[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 17:30 +0100, Jan Kiszka wrote: > Am 03.01.2011 17:04, Avi Kivity wrote: > > On 01/03/2011 10:33 AM, Jan Kiszka wrote: > >> From: Jan Kiszka > >> > >> If kvmclock is used, which implies the kernel supports it, register a > >> kvmclock device with the sysbus. Its main purpose is

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

2011-01-03 Thread Jan Kiszka
Am 03.01.2011 17:08, Avi Kivity wrote: > On 01/03/2011 10:33 AM, Jan Kiszka wrote: >> From: Jan Kiszka >> >> 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_C

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

2011-01-03 Thread Peter Maydell
On 3 January 2011 14:34, Aurelien Jarno wrote: > 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. > @@ -237,15 +237,11 @@ static float32 propagateFloat32NaN( float32 a, float32 > b STATUS_

[Qemu-devel] [Bug 604872] Re: qemu-system-arm segfaults emulating versatile machine after running debootstrap --second-stage inside vm

2011-01-03 Thread Peter Maydell
I have a patchset which fixes this bug, which I need to do a bit more cleanup and testing with before I post it to the list. ** Changed in: qemu Status: New => In Progress -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https

[Qemu-devel] Re: [PATCH] ioeventfd: minor fixups

2011-01-03 Thread Michael S. Tsirkin
On Wed, Dec 29, 2010 at 04:52:46PM +0200, Michael S. Tsirkin wrote: > This is on top of the ioeventfd patches, and > fixes two potential issues when ioeventfd is mixed with vhost-net: > - ioeventfd could start running then get stopped for vhost-net. > For example, vm state change handlers run in

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

2011-01-03 Thread Jan Kiszka
Am 03.01.2011 18:01, Avi Kivity wrote: > 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 Kiszka >> >> >> >> COALESCED_MMIO, SYNC_MMU, EXT_CPUID, CLOCKSOURCE, NOP_IO_DELAY, >> PV_MMU - >> >> all th

[Qemu-devel] [PATCH 2/2] ARM: wire up the softfloat flush_input_to_zero flag

2011-01-03 Thread Peter Maydell
Wire up the new softfloat support for flushing input denormals to zero on ARM. The FPSCR FZ bit enables flush-to-zero for both inputs and outputs, but the reporting of when inputs are flushed to zero is via a separate IDC bit rather than the UFC (underflow) bit used when output denormals are flushe

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

2011-01-03 Thread Luiz Capitulino
On Mon, 20 Dec 2010 08:47:46 -0200 Marcelo Tosatti wrote: > On Fri, Dec 10, 2010 at 09:20:26AM -0200, Luiz Capitulino wrote: > > On Fri, 10 Dec 2010 14:36:08 +0800 > > Lai Jiangshan wrote: > > > > > +SQMP > > > +inject_nmi > > > +-- > > > + > > > +Inject an NMI on the given CPU (x86 onl

[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:59, Avi Kivity wrote: > 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 Kiszka >> >> >> >> First of all, we only need this EPT identity and TSS reservation on >> >> Intel CPUs. >>

[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 Kiszka >> >> COALESCED_MMIO, SYNC_MMU, EXT_CPUID, CLOCKSOURCE, NOP_IO_DELAY, PV_MMU - >> all these caps predate features on which we already depend at buil

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 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 03a2445a fixes (the

[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

[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 Kiszka >> >> 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 ar

[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 Kiszka >> >> 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. And I wou

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

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

[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 > > 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] 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 > > 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 > CC: Glauber Costa > --- > targe

[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 Kiszka > > > > 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 mi

[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 Kiszka >> >> 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 w

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

2011-01-03 Thread Peter Maydell
From: Juha Riihimäki 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 --- target-arm/translate.c | 51 +-- 1 files changed, 36 insertions

[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 Reviewed-by: Peter Maydell --- target-arm/helpers.h |4 +++ target-arm/neon_helper.c | 47 ++

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 > #include > #include > #include > >volatile int flt_signal = 0; > > static sigjmp_buf sigfpe_flt_env; > static void > sigfpe_flt_actio

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

[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 Kiszka 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 BIOSes> 256K, reorder the

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

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

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

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

[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 --- Makefile.objs

[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] 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 Kiszka 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. kvmclock i

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: >>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 bits&pieces

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 wrote: > Add float{x80,128}_maybe_silence_nan() functions, they will be need by > propagateFloat{x80,128}NaN(). > > Signed-off-by: Aurelien Jarno Reviewed-by: Peter Maydell -- PMM

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

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.net>wrote: > 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

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 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 > > Reviewed-by: Peter Maydell > > Do we want to get rid of

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

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 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 Reviewed-by: Peter Maydell Do we want to get rid of the one remaining TARGET_HPPA which i

[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 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 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 emulated CPU with SNAN

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 A

[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 --- hmp-commands.hx | 20 qmp-commands.hx | 35 +++

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

2011-01-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- 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/ +SPICE +M: Gerd H

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

[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 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 Signed-off-by: Aurelien Jarno --- fpu/softfloat-specializ

[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 --- fpu/softfloat-specialize.h | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/fpu/softfloat-specialize.h b

[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 --- fpu/softfloat-specialize.h | 38 ++ fpu/softfloat.h|2 ++ 2 files changed, 40 insertions(+), 0 deletions(-)

[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 --- fpu/softfloat-specialize.h | 55 +-- 1 files changed, 17 insertions

[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 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 --- fpu/softfloat-specialize.h |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/fpu/softfloat-specialize.h b/fpu/soft

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

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

2011-01-03 Thread EsbenHaabendal
Michael Tokarev 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 ago

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

2011-01-03 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau --- 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 +++ b/hw/grlib.h @@ -0,0 +1,121 @@

[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 --- 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 +++ b/hw/grlib_irqmp.c

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

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

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

[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 --- 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 --- /dev/null +++ b/hw/grlib_gpt

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

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

2011-01-03 Thread Fabien Chouteau
Signed-off-by: Fabien Chouteau --- 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 7795be4..fe082e3 100644 --- a/targe

[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 --- 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 --- /dev/null +++ b/hw/grlib_apb

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

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 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 wrote: > Lai Jiangshan writes: > > > "cpu-index" is better name. > > > > Signed-off-by: Lai Jiangshan > > --- > > diff --git a/hmp-commands.hx b/hmp-commands.hx > > index 4befbe2..8de7aa3 100644 > > --- a/hmp-commands.hx > > +++ b/hmp-comma

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

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

[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. https://bugs.launchpad.n

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

2011-01-03 Thread Jan Kiszka
From: Jan Kiszka 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 --- Argh, the broken qemu-user build led

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

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

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

  1   2   >