[Qemu-devel] Re: [Tracing][RFC] QMP interface to toggle state of a trace-event

2010-10-20 Thread Prerna Saxena
Thanks for the review! On 10/21/2010 12:53 AM, Luiz Capitulino wrote: On Wed, 20 Oct 2010 15:28:49 +0530 Prerna Saxena wrote: QMP command trace-event to toggle state of a trace-event. Illustration : -> { "execute": "trace-event", "arguments": { "name": "qemu_malloc", "option": true} }

[Qemu-devel] Re: [Tracing][v4 PATCH 2/2] Add documentation for QMP interfaces

2010-10-20 Thread Prerna Saxena
Hi Luiz, Thanks for your feedback. On 10/21/2010 12:47 AM, Luiz Capitulino wrote: On Tue, 19 Oct 2010 11:57:50 +0530 Prerna Saxena wrote: [PATCH 2/2] Add documentation for QMP commands: - query-trace - query-trace-events - query-trace-file. Please, split this. Each command should be i

[Qemu-devel] [PATCH 2/2] monitor info qtree: add optional bus id

2010-10-20 Thread Alon Levy
--- hw/qdev.c | 17 ++--- hw/qdev.h |2 +- monitor.c | 34 +- 3 files changed, 44 insertions(+), 9 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index d669a9d..e6cf7af 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -774,10 +774,21 @@ static void qb

[Qemu-devel] [PATCH 1/2] monitor: add sub_args_type for second level parameters

2010-10-20 Thread Alon Levy
--- hmp-commands.hx |1 + monitor.c | 13 - 2 files changed, 13 insertions(+), 1 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 3014b17..289fbcb 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1158,6 +1158,7 @@ ETEXI .args_type = "item:s

[Qemu-devel] [PATCH 3/3] monitor: add usb_attach and usb_detach (v2)

2010-10-20 Thread Alon Levy
v1->v2 changes: * fixed help text (consistent name for parameter) * added configure flag, also enabled with --enable-debug --- configure |9 + hmp-commands.hx | 38 ++ sysemu.h|4 vl.c| 33

[Qemu-devel] [PATCH 0/2] add optional root to info qtree

2010-10-20 Thread Alon Levy
Allow viewing of a part of the large qdev tree. The optional argument is first looked for as a bus id, if that fails a device id is found and it's parent bus is the root for printing. Adds sub_args_type callback for each monitor mon_cmd_t to fascilitate the existing info_cmds args_type and params

[Qemu-devel] [PATCH 1/3] qdev: make qdev_find_recursive public

2010-10-20 Thread Alon Levy
--- hw/qdev.c |2 +- hw/qdev.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 35858cb..d669a9d 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -477,7 +477,7 @@ static BusState *qbus_find_recursive(BusState *bus, const char *name, return NUL

[Qemu-devel] [PATCH 2/3] usb: add public usb_device_by_id

2010-10-20 Thread Alon Levy
--- hw/usb-bus.c | 16 hw/usb.h |1 + 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index b692503..d732bd3 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -189,6 +189,22 @@ int usb_device_detach(USBDevice *dev) return 0;

[Qemu-devel] [PATCH 0/3] add usb_detach and usb_attach (v3)

2010-10-20 Thread Alon Levy
v2->v3 changes: * add configure parameter * fix docs v2 message: This patchset uses id like device_del for attaching/detaching usb devices. The first two patches ready the way: 1. makes qdev_find_recursive non static and in qdev.h 2. adds a usb_device_by_id which goes over the usb buses callin

Re: [Qemu-devel] qemu arm with non-linux image

2010-10-20 Thread Mulyadi Santosa
On Thu, Oct 21, 2010 at 08:34, Nathan Fain wrote: > Is it possible to use qemu with a arm raw image from an embedded device? The > device does not use linux. Any links to documentation or general knowledge I > can search with appreciated. I just humbly think it is likely possible...after all, Qe

Re: [Qemu-devel] multi-threaded smp support

2010-10-20 Thread Mulyadi Santosa
On Thu, Oct 21, 2010 at 11:09, Wenhao Xu wrote: > Hi, Folks, >    AFAIK, QEMU supports SMP, but by using one thread to execute the > translated blocks of different CPU in an interleaving way. This makes the > SMP emulation very slow. I am wondering what are difficulties to use > multit-thread to e

Re: [Qemu-devel] [PATCH 2/2] ide: Handle flush failure

2010-10-20 Thread Christoph Hellwig
On Tue, Oct 19, 2010 at 05:08:52PM +0200, Kevin Wolf wrote: > Instead of always assuming success for bdrv_aio_flush, actually do something > with the error. This respects the werror option and accordingly ignores the > error, reports it to the guest or stops the VM and retries after cont. > > Igno

Re: [Qemu-devel] [PATCH 1/2] ide: Factor ide_flush_cache out

2010-10-20 Thread Christoph Hellwig
On Tue, Oct 19, 2010 at 05:08:51PM +0200, Kevin Wolf wrote: > The next patch reuses this code, so put it in its own function. > > Signed-off-by: Kevin Wolf ACK

Re: [Qemu-devel] [PATCH] virtio-blk: Respect werror option for flushes

2010-10-20 Thread Christoph Hellwig
On Wed, Oct 20, 2010 at 05:23:52PM +0200, Kevin Wolf wrote: > The werror option now affects not only write requests, but also flush > requests. > Previously, it was not possible to stop a VM on a failed flush. ACK

Re: Tracing block devices (was: Re: [Qemu-devel] Static tracepoint control via trace-event)

2010-10-20 Thread Christoph Hellwig
On Tue, Oct 19, 2010 at 03:29:51PM +0100, Richard W.M. Jones wrote: > On Tue, Oct 19, 2010 at 03:59:36PM +0200, Jan Kiszka wrote: > > Once we have "-trace events=...", defining the list of active > > tracepoints before starting qemu will be trivial (e.g. via a config > > file). Of course, this requ

[Qemu-devel] Re: [PATCH v6 08/12] pcie/aer: helper functions for pcie aer capability

2010-10-20 Thread Isaku Yamahata
Thank you for detailed review. On Wed, Oct 20, 2010 at 11:56:16AM +0200, Michael S. Tsirkin wrote: > > +static uint32_t aer_log_del(PCIEAERLog *aer_log) > > +{ > > +uint32_t i = aer_log->consumer; > > +aer_log->consumer = aer_log_next(aer_log->consumer, aer_log->log_max); > > +return i

[Qemu-devel] multi-threaded smp support

2010-10-20 Thread Wenhao Xu
Hi, Folks, AFAIK, QEMU supports SMP, but by using one thread to execute the translated blocks of different CPU in an interleaving way. This makes the SMP emulation very slow. I am wondering what are difficulties to use multit-thread to emulate the SMP, e.g. using one thread to execute the transl

[Qemu-devel] Re: [PATCH v6 07/12] pcie/hotplug: introduce pushing attention button command

2010-10-20 Thread Isaku Yamahata
On Wed, Oct 20, 2010 at 12:00:11PM +0200, Michael S. Tsirkin wrote: > On Wed, Oct 20, 2010 at 05:18:56PM +0900, Isaku Yamahata wrote: > > glue pcie_push_attention_button command. > > > > Signed-off-by: Isaku Yamahata > > So as a high level command, I think we need to > think about how to tie thi

[Qemu-devel] qemu arm with non-linux image

2010-10-20 Thread Nathan Fain
Is it possible to use qemu with a arm raw image from an embedded device? The device does not use linux. Any links to documentation or general knowledge I can search with appreciated. thanks

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-20 Thread Alexander Graf
Am 21.10.2010 um 00:46 schrieb Dor Laor : > On 10/20/2010 03:21 PM, Anthony Liguori wrote: >> On 10/20/2010 08:19 AM, Daniel P. Berrange wrote: >>> The thinking with Matahari is that there is significant overlap between >>> agent requirements for a physical and virtual host, so it aims to provide

[Qemu-devel] [Bug 654913] Re: Windows XP uses 200% CPU when given 2 VCPUs

2010-10-20 Thread .:. brainsik
Thank you for looking into this issue. Do you know if later versions of Windows work better in SMP? Like 2003? .:. -- Windows XP uses 200% CPU when given 2 VCPUs https://bugs.launchpad.net/bugs/654913 You received this bug notification because you are a member of qemu- devel-ml, which is subscri

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-20 Thread Dor Laor
On 10/20/2010 03:21 PM, Anthony Liguori wrote: On 10/20/2010 08:19 AM, Daniel P. Berrange wrote: The thinking with Matahari is that there is significant overlap between agent requirements for a physical and virtual host, so it aims to provide an agent that works everywhere, whether virtualized o

Re: [Qemu-devel] [PATCH 1/2] Use defines instead of numbers for pci hotplug sts bit

2010-10-20 Thread Anthony Liguori
On 10/17/2010 04:45 AM, Gleb Natapov wrote: Signed-off-by: Gleb Natapov Applied both. Thanks. Regards, Anthony Liguori --- hw/acpi_piix4.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index c8733e5..bec42b4 100644 --

[Qemu-devel] Re: [PATCH 08/10] MCE: Relay UCR MCE to guest

2010-10-20 Thread Anthony Liguori
On 10/20/2010 04:56 PM, Paolo Bonzini wrote: On 10/20/2010 09:51 PM, Anthony Liguori wrote: I don't understand why this loop is needed but we specifically wait for a signal to get delivered that's either SIG_IPI or SIGBUS. We then check whether a SIG_IPI or SIGBUS is pending and loop waiting for

[Qemu-devel] Re: [PATCH 00/10] [PULL] qemu-kvm.git uq/master queue

2010-10-20 Thread Anthony Liguori
On 10/20/2010 12:43 PM, Marcelo Tosatti wrote: The following changes since commit 38cc9b607f85017b095793cab6c129bc9844f441: issue snd_pcm_start() when capturing audio (2010-10-18 00:39:06 +0400) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/

[Qemu-devel] Re: [PATCH 08/10] MCE: Relay UCR MCE to guest

2010-10-20 Thread Paolo Bonzini
On 10/20/2010 09:51 PM, Anthony Liguori wrote: I don't understand why this loop is needed but we specifically wait for a signal to get delivered that's either SIG_IPI or SIGBUS. We then check whether a SIG_IPI or SIGBUS is pending and loop waiting for signals again. Shouldn't we be looping on ju

Re: [Qemu-devel] Re: [PATCH 08/10] MCE: Relay UCR MCE to guest

2010-10-20 Thread Marcelo Tosatti
On Wed, Oct 20, 2010 at 03:59:29PM -0500, Anthony Liguori wrote: > On 10/20/2010 02:51 PM, Anthony Liguori wrote: > > > >>+} > >>+ > >> static void qemu_kvm_eat_signal(CPUState *env, int timeout) > >> { > >> struct timespec ts; > >> int r, e; > >> siginfo_t siginfo; > >> sigse

Re: [Qemu-devel] Re: [PATCH 08/10] MCE: Relay UCR MCE to guest

2010-10-20 Thread Marcelo Tosatti
On Wed, Oct 20, 2010 at 02:51:56PM -0500, Anthony Liguori wrote: > >+e = errno; > >+ > >+qemu_mutex_lock(&qemu_global_mutex); > >+ > >+if (r == -1&& !(e == EAGAIN || e == EINTR)) { > >+fprintf(stderr, "sigtimedwait: %s\n", strerror(e)); > >+exit(1);

Re: [Qemu-devel] [PATCH] Add a DTrace tracing backend targetted for SystemTAP compatability (v3)

2010-10-20 Thread Stefan Hajnoczi
On Wed, Oct 20, 2010 at 6:31 PM, Daniel P. Berrange wrote: > This introduces a new tracing backend that targets the SystemTAP > implementation of DTrace userspace tracing. The core functionality > should be applicable and standard across any DTrace implementation > on Solaris, OS-X, *BSD, but the

[Qemu-devel] [Bug 654913] Re: Windows XP uses 200% CPU when given 2 VCPUs

2010-10-20 Thread Michael Tokarev
WinXP chews 200% CPU when switched in device manager to "MPS computer" from "ACPI computer" even if there's no -no-acpi on the kvm command line (after some tries I was able to switch it from ACPI to MPS). So it is how windows works, not how kvm works. ** Changed in: qemu Status: New => Inv

[Qemu-devel] Re: [PATCH 08/10] MCE: Relay UCR MCE to guest

2010-10-20 Thread Anthony Liguori
On 10/20/2010 02:51 PM, Anthony Liguori wrote: +} + static void qemu_kvm_eat_signal(CPUState *env, int timeout) { struct timespec ts; int r, e; siginfo_t siginfo; sigset_t waitset; +sigset_t chkset; ts.tv_sec = timeout / 1000; ts.tv_nsec = (timeout %

[Qemu-devel] Re: [PATCH] tcg: Fix compiler error (comparison of unsigned expression)

2010-10-20 Thread Blue Swirl
Thanks, applied. On Fri, Oct 8, 2010 at 8:32 AM, Stefan Weil wrote: > When qemu is configured with --enable-debug-tcg, > gcc throws this warning (or error with -Werror): > > tcg/tcg.c:1030: error: comparison of unsigned expression >= 0 is always true > > Fix it by removing the >= 0 part. > The ty

[Qemu-devel] Re: [PATCH] configure: Support disabling warnings in $gcc_flags

2010-10-20 Thread Blue Swirl
Thanks, applied. On Thu, Oct 14, 2010 at 9:19 AM, Markus Armbruster wrote: > -Wall enables a bunch of warnings at once.  configure puts it after > $gcc_flags.  This makes it impossible to disable warnings enabled by > -Wall there.  Fix by putting configured flags last. > > Signed-off-by: Markus A

[Qemu-devel] [Bug 654913] Re: Windows XP uses 200% CPU when given 2 VCPUs

2010-10-20 Thread Michael Tokarev
What I mean is that ACPI is required nowadays for any sane SMP. Yes, enabling ACPI. Speaking of 200% CPU for "MPS" being faster than ACPI version - maybe it's your cpufreq code, and switching from 'ondemand' to 'performance' governer will make ACPI version faster? I see no difference in speed be

[Qemu-devel] Re: [PATCH 1/2] pci: Automatically patch PCI vendor id and device id in PCI ROM

2010-10-20 Thread Stefan Weil
Am 20.10.2010 09:19, schrieb Gerd Hoffmann: Hi, The i825xx ethernet controller family is a typical example which is implemented in hw/eepro100.c. It uses at least 3 different device ids, so normally 3 boot roms would be needed. Does this actually work now with the etherboot roms? cheers,

[Qemu-devel] Re: [PATCH 05/10] kvm: x86: add mce support

2010-10-20 Thread Anthony Liguori
On 10/20/2010 12:43 PM, Marcelo Tosatti wrote: Port qemu-kvm's MCE support commit c68b2374c9048812f488e00ffb95db66c0bc07a7 Author: Huang Ying Date: Mon Jul 20 10:00:53 2009 +0800 Add MCE simulation support to qemu/kvm KVM ioctls are used to initialize MCE simulation and inject MCE.

[Qemu-devel] Re: [PATCH 07/10] Add RAM -> physical addr mapping in MCE simulation

2010-10-20 Thread Anthony Liguori
On 10/20/2010 12:43 PM, Marcelo Tosatti wrote: From: Huang Ying In QEMU-KVM, physical address != RAM address. While MCE simulation needs physical address instead of RAM address. So kvm_physical_memory_addr_from_ram() is implemented to do the conversion, and it is invoked before being filled in t

[Qemu-devel] Re: [PATCH 09/10] Add savevm/loadvm support for MCE

2010-10-20 Thread Anthony Liguori
On 10/20/2010 12:43 PM, Marcelo Tosatti wrote: Port qemu-kvm's commit 1bab5d11545d8de5facf46c28630085a2f9651ae Author: Huang Ying Date: Wed Mar 3 16:52:46 2010 +0800 Add savevm/loadvm support for MCE MCE registers are saved/load into/from CPUState in kvm_arch_save/load_regs. T

[Qemu-devel] Re: [PATCH 00/10] [PULL] qemu-kvm.git uq/master queue

2010-10-20 Thread Anthony Liguori
On 10/20/2010 12:43 PM, Marcelo Tosatti wrote: The following changes since commit 38cc9b607f85017b095793cab6c129bc9844f441: issue snd_pcm_start() when capturing audio (2010-10-18 00:39:06 +0400) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/

[Qemu-devel] Re: [PATCH 08/10] MCE: Relay UCR MCE to guest

2010-10-20 Thread Anthony Liguori
On 10/20/2010 12:43 PM, Marcelo Tosatti wrote: Port qemu-kvm's commit 4b62fff1101a7ad77553147717a8bd3bf79df7ef Author: Huang Ying Date: Mon Sep 21 10:43:25 2009 +0800 MCE: Relay UCR MCE to guest UCR (uncorrected recovery) MCE is supported in recent Intel CPUs, where some hardw

[Qemu-devel] Re: [Tracing][RFC] QMP interface to toggle state of a trace-event

2010-10-20 Thread Luiz Capitulino
On Wed, 20 Oct 2010 15:28:49 +0530 Prerna Saxena wrote: > QMP command trace-event to toggle state of a trace-event. > Illustration : > -> { "execute": "trace-event", "arguments": { "name": "qemu_malloc", > "option": true} } > <- { "return": {} } > > Posting this as an RFC for now. I'll post

[Qemu-devel] Re: [Tracing][v4 PATCH 2/2] Add documentation for QMP interfaces

2010-10-20 Thread Luiz Capitulino
On Tue, 19 Oct 2010 11:57:50 +0530 Prerna Saxena wrote: > [PATCH 2/2] Add documentation for QMP commands: > - query-trace > - query-trace-events > - query-trace-file. Please, split this. Each command should be in a separate patch. > > > Signed-off-by: Prerna Saxena > --- > qmp-commands.h

[Qemu-devel] Re: [PATCH 00/10] [PULL] qemu-kvm.git uq/master queue

2010-10-20 Thread Anthony Liguori
/qemu/aliguori.git qemu-kvm-20101020 Let me test a little bit and look a bit more closely at the code and then I'll push to the main tree. Regards, Anthony Liguori

[Qemu-devel] [PATCH] Remove 16-character limit on process title

2010-10-20 Thread John Morrissey
qemu uses prctl() to set its process title. I bumped up against prctl()'s 16-character limit recently, when adding process title support to libvirt[1][2]. The attached patch overwrites argv instead. Linux seems to maintain the length of the original args, even when the new args are shorter and NUL

[Qemu-devel] Re: [PATCH 00/10] [PULL] qemu-kvm.git uq/master queue

2010-10-20 Thread Marcelo Tosatti
On Wed, Oct 20, 2010 at 02:01:18PM -0500, Anthony Liguori wrote: > On 10/20/2010 12:43 PM, Marcelo Tosatti wrote: > >The following changes since commit 38cc9b607f85017b095793cab6c129bc9844f441: > > > > issue snd_pcm_start() when capturing audio (2010-10-18 00:39:06 +0400) > > > >are available in

Re: [Qemu-devel] [PATCH 0/2] mouse fixups

2010-10-20 Thread Anthony Liguori
On 10/08/2010 05:30 AM, Gerd Hoffmann wrote: Hi, In the 0.13 devel cycle the mouse handler activation code has been updated, but (at least) two drivers have not been updated accordingly: vmmouse and usb-wacom. This patch series updates them so they are functional again. IMHO the patches sho

Re: [Qemu-devel] [PULL] virtio-9p patches - Request for pull

2010-10-20 Thread Anthony Liguori
On 10/18/2010 04:25 PM, Venkateswararao Jujjuri (JV) wrote: The following changes since commit 38cc9b607f85017b095793cab6c129bc9844f441: Jindrich Makovicka (1): issue snd_pcm_start() when capturing audio are available in the git repository at: git://repo.or.cz/qemu/aliguori/jvrao

[Qemu-devel] Re: [PATCH 00/10] [PULL] qemu-kvm.git uq/master queue

2010-10-20 Thread Anthony Liguori
On 10/20/2010 12:43 PM, Marcelo Tosatti wrote: The following changes since commit 38cc9b607f85017b095793cab6c129bc9844f441: issue snd_pcm_start() when capturing audio (2010-10-18 00:39:06 +0400) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/

Re: [Qemu-devel] [PATCH] monitor: Ignore "." and ".." when completing file name.

2010-10-20 Thread Luiz Capitulino
On Wed, 20 Oct 2010 18:00:01 +0900 Kusanagi Kouichi wrote: > > Signed-off-by: Kusanagi Kouichi Applied to the Monitor queue, thanks. > --- > monitor.c |5 + > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/monitor.c b/monitor.c > index 260cc02..61607c5 100644 > --

Re: [Qemu-devel] [PATCH] Fix test suite build with tracing enabled

2010-10-20 Thread Luiz Capitulino
On Tue, 19 Oct 2010 16:03:15 +0200 Jan Kiszka wrote: > qemu_malloc instrumentations require linking against the trace objects. > > Signed-off-by: Jan Kiszka Applied to the Monitor queue, thanks. > --- > Makefile | 12 ++-- > 1 files changed, 6 insertions(+), 6 deletions(-) > > dif

Re: [Qemu-devel] Can't compile ISA device...

2010-10-20 Thread Anthony Liguori
On 10/20/2010 01:01 PM, Brian Wheeler wrote: I'm trying to write a busmouse driver and I can't get it to compile. It seems like there's a header issue of some sort that I can't work out. Of course, if someone has a working busmouse driver for qemu, that would be great: OpenStep won't work with

[Qemu-devel] Can't compile ISA device...

2010-10-20 Thread Brian Wheeler
I'm trying to write a busmouse driver and I can't get it to compile. It seems like there's a header issue of some sort that I can't work out. Of course, if someone has a working busmouse driver for qemu, that would be great: OpenStep won't work with the ps/2 emulation and even after pounding on

[Qemu-devel] [PATCH 08/10] MCE: Relay UCR MCE to guest

2010-10-20 Thread Marcelo Tosatti
Port qemu-kvm's commit 4b62fff1101a7ad77553147717a8bd3bf79df7ef Author: Huang Ying Date: Mon Sep 21 10:43:25 2009 +0800 MCE: Relay UCR MCE to guest UCR (uncorrected recovery) MCE is supported in recent Intel CPUs, where some hardware error such as some memory error can be reported

[Qemu-devel] [PATCH 05/10] kvm: x86: add mce support

2010-10-20 Thread Marcelo Tosatti
Port qemu-kvm's MCE support commit c68b2374c9048812f488e00ffb95db66c0bc07a7 Author: Huang Ying Date: Mon Jul 20 10:00:53 2009 +0800 Add MCE simulation support to qemu/kvm KVM ioctls are used to initialize MCE simulation and inject MCE. The real MCE simulation is implemented in Lin

[Qemu-devel] [PATCH 02/10] Add svm cpuid features

2010-10-20 Thread Marcelo Tosatti
From: Joerg Roedel This patch adds the svm cpuid feature flags to the qemu intialization path. It also adds the svm features available on phenom to its cpu-definition and extends the host cpu type to support all svm features KVM can provide. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity

[Qemu-devel] [PATCH 09/10] Add savevm/loadvm support for MCE

2010-10-20 Thread Marcelo Tosatti
Port qemu-kvm's commit 1bab5d11545d8de5facf46c28630085a2f9651ae Author: Huang Ying Date: Wed Mar 3 16:52:46 2010 +0800 Add savevm/loadvm support for MCE MCE registers are saved/load into/from CPUState in kvm_arch_save/load_regs. To simulate the MCG_STATUS clearing upon reset,

[Qemu-devel] [PATCH 04/10] iothread: use signalfd

2010-10-20 Thread Marcelo Tosatti
Block SIGALRM, SIGIO and consume them via signalfd. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- cpus.c | 74 +++ 1 files changed, 69 insertions(+), 5 deletions(-) diff --git a/cpus.c b/cpus.c index b09f5e3..3875657

[Qemu-devel] [PATCH 07/10] Add RAM -> physical addr mapping in MCE simulation

2010-10-20 Thread Marcelo Tosatti
From: Huang Ying In QEMU-KVM, physical address != RAM address. While MCE simulation needs physical address instead of RAM address. So kvm_physical_memory_addr_from_ram() is implemented to do the conversion, and it is invoked before being filled in the IA32_MCi_ADDR MSR. Reported-by: Dean Nelson

[Qemu-devel] [PATCH 01/10] Set cpuid definition to 0 before initializing it

2010-10-20 Thread Marcelo Tosatti
From: Joerg Roedel This patch cleans the (stack-allocated) cpuid definition to 0 before actually initializing it. Signed-off-by: Joerg Roedel Signed-off-by: Avi Kivity --- target-i386/cpuid.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/targe

[Qemu-devel] [PATCH 06/10] Export qemu_ram_addr_from_host

2010-10-20 Thread Marcelo Tosatti
To be used by next patches. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- cpu-common.h |3 ++- exec-all.h |2 +- exec.c | 26 +- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/cpu-common.h b/cpu-common.h index 0426bc8..a

[Qemu-devel] [PATCH 03/10] signalfd compatibility

2010-10-20 Thread Marcelo Tosatti
Port qemu-kvm's signalfd compat code. commit 5a7fdd0abd7cd24dac205317a4195446ab8748b5 Author: Anthony Liguori Date: Wed May 7 11:55:47 2008 -0500 Use signalfd() in io-thread This patch reworks the IO thread to use signalfd() instead of sigtimedwait() This will eliminate the need t

[Qemu-devel] [PATCH 00/10] [PULL] qemu-kvm.git uq/master queue

2010-10-20 Thread Marcelo Tosatti
The following changes since commit 38cc9b607f85017b095793cab6c129bc9844f441: issue snd_pcm_start() when capturing audio (2010-10-18 00:39:06 +0400) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Huang Ying (1): Add RAM -> physical a

[Qemu-devel] [PATCH 10/10] Fix memory leak in register save load due to xsave support

2010-10-20 Thread Marcelo Tosatti
From: Avi Kivity Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 1701cb9..2449c2f 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -660,7 +660,7 @@ static

[Qemu-devel] [PATCH] Add a DTrace tracing backend targetted for SystemTAP compatability (v3)

2010-10-20 Thread Daniel P. Berrange
This introduces a new tracing backend that targets the SystemTAP implementation of DTrace userspace tracing. The core functionality should be applicable and standard across any DTrace implementation on Solaris, OS-X, *BSD, but the Makefile rules will likely need some small additional changes to cop

[Qemu-devel] [Bug 654913] Re: Windows XP uses 200% CPU when given 2 VCPUs

2010-10-20 Thread .:. brainsik
Can you tell me what the "right drivers" are? Or do you mean enabling "ACPI"? I've just finished a whole slew of benchmarks and I'm going back to no- acpi with the 200% CPU issue, because the VMs are actually faster that way. Turning on ACPI is very slow. Looking throw QEMU bug reports, I found t

[Qemu-devel] Re: [PATCH] trace: improve info trace output

2010-10-20 Thread Blue Swirl
Thanks for the Ack, applied. On Mon, Oct 18, 2010 at 10:27 AM, Stefan Hajnoczi wrote: > On Sun, Oct 17, 2010 at 08:05:45AM +, Blue Swirl wrote: >> Use PRI*64 to print full 64 bit data even on ILP32 hosts. >> >> Print also sixth tracepoint parameter. >> >> Cc: Stefan Hajnoczi >> Signed-off-by

[Qemu-devel] Re: [PATCH 1/3] trace: Relax trace-events parsing regex in simpletrace.py

2010-10-20 Thread Blue Swirl
Thanks, applied all. On Mon, Oct 18, 2010 at 12:42 PM, Stefan Hajnoczi wrote: > The regular expression to parse trace event definitions assumed the > format string would be a simple double-quoted string.  However, we now > use PRI?64 for portability which splits string literals.  The regular > ex

Re: [Qemu-devel] [PATCH 3/3] monitor: add usb_attach and usb_detach

2010-10-20 Thread Luiz Capitulino
On Tue, 19 Oct 2010 15:35:01 +0200 Gerd Hoffmann wrote: >Hi, > > > +.help = "attach USB device 'bus.addr'", > > > +...@item usb_attach @var{devname} > > /me sees a mismatch here. > > There is still the use case question. Also note that this might have > unwanted side effec

Re: [Qemu-devel] Re: [PATCH 1/3] Make kvm64 the default cpu model when kvm_enabled()

2010-10-20 Thread Blue Swirl
On Mon, Oct 18, 2010 at 2:16 PM, Anthony Liguori wrote: > On 10/18/2010 03:22 AM, Roedel, Joerg wrote: >> >> (Sorry for the late reply) >> >> On Thu, Oct 07, 2010 at 08:48:06AM -0400, Anthony Liguori wrote: >> >>> >>> On 10/07/2010 03:42 AM, Roedel, Joerg wrote: >>> On Wed, Oct 06, 2010

[Qemu-devel] [PATCH] virtio-blk: Respect werror option for flushes

2010-10-20 Thread Kevin Wolf
The werror option now affects not only write requests, but also flush requests. Previously, it was not possible to stop a VM on a failed flush. Signed-off-by: Kevin Wolf --- hw/virtio-blk.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/hw/virtio-blk.c b/hw/virti

Re: [Qemu-devel] [PATCH v2] Add a DTrace tracing backend targetted for SystemTAP compatability

2010-10-20 Thread Stefan Hajnoczi
On Wed, Oct 20, 2010 at 3:09 PM, Daniel P. Berrange wrote: > @@ -2175,6 +2175,16 @@ EOF >     exit 1 >   fi >  fi > + > +## > +# For 'dtrace' backend, test if 'dtrace' command is present > +if ! has 'dtrace' ; then > +  echo > +  echo "Error: dtrace command

[Qemu-devel] [Bug 663713] Re: Mouse frozen under an emulated ubuntu

2010-10-20 Thread Gerd Hoffmann
http://patchwork.ozlabs.org/patch/67168/ -- Mouse frozen under an emulated ubuntu https://bugs.launchpad.net/bugs/663713 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Incomplete Bug description: Qemu 0.13.0 Command l

Re: [Qemu-devel] [PATCH] Add a DTrace tracing backend targetted for SystemTAP compatability

2010-10-20 Thread Daniel P. Berrange
On Wed, Oct 20, 2010 at 02:50:12PM +0100, Stefan Hajnoczi wrote: > Please also add dtrace to the ./configure --help output: > > echo " --trace-backend=BTrace backend nop simple ust dtrace" I've just sent a v2 that should include all your feedback so far. Regards, Daniel -- |: Red Hat,

[Qemu-devel] [PATCH v2] Add a DTrace tracing backend targetted for SystemTAP compatability

2010-10-20 Thread Daniel P. Berrange
This introduces a new tracing backend that targets the SystemTAP implementation of DTrace userspace tracing. The core functionality should be applicable and standard across any DTrace implementation on Solaris, OS-X, *BSD, but the Makefile rules will likely need some small additional changes to cop

Re: [Qemu-devel] [PATCH] Add a DTrace tracing backend targetted for SystemTAP compatability

2010-10-20 Thread Stefan Hajnoczi
Please also add dtrace to the ./configure --help output: echo " --trace-backend=BTrace backend nop simple ust dtrace" Stefan

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-20 Thread Anthony Liguori
On 10/20/2010 08:19 AM, Daniel P. Berrange wrote: The thinking with Matahari is that there is significant overlap between agent requirements for a physical and virtual host, so it aims to provide an agent that works everywhere, whether virtualized or not. All that need change is the communication

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-20 Thread Daniel P. Berrange
On Wed, Oct 20, 2010 at 08:02:07AM -0500, Anthony Liguori wrote: > On 10/20/2010 03:21 AM, Alexander Graf wrote: > >>Live snapshots > >>- merge snapshot? > >> - already supported, question about mgmt of snapshot chain > >>- integrate with fsfreeze (and windows alternative) > >> > >>Guest Agent > >

Re: [Qemu-devel] Git server hung

2010-10-20 Thread Anthony Liguori
On 10/19/2010 10:38 PM, Michael Crawford wrote: git clone http://git.qemu.org/qemu.git git clone git://git.qemu.org/qemu.git The http protocol is not very efficient with git. Regards, Anthony Liguori This initializes a repository in qemu/.git and starts downloading from the git server.

Re: [Qemu-devel] v6: [PATCH 0/3]: Threadlets: A generic task offloading framework

2010-10-20 Thread Anthony Liguori
On 10/20/2010 07:05 AM, Stefan Hajnoczi wrote: On Wed, Oct 20, 2010 at 12:57 PM, Amit Shah wrote: On (Tue) Oct 19 2010 [23:12:20], Arun R Bharadwaj wrote: Hi, This is the v6 of the patch-series to have a generic asynchronous task offloading framework (called threadlets) within qemu.

Re: [Qemu-devel] [PATCH 3/3] Add helper functions for virtio-9p to use threadlets

2010-10-20 Thread Anthony Liguori
On 10/20/2010 06:19 AM, Stefan Hajnoczi wrote: On Tue, Oct 19, 2010 at 6:43 PM, Arun R Bharadwaj wrote: From: Gautham R Shenoy Add helper functions to enable virtio-9p make use of the threadlets infrastructure for offloading blocking tasks such as making posix calls on to the helper threa

Re: [Qemu-devel] [PATCH 2/3] Make paio subsystem use threadlets

2010-10-20 Thread Anthony Liguori
On 10/20/2010 04:30 AM, Stefan Hajnoczi wrote: } else if (acb->ret == -EINPROGRESS) { active = 1; } -mutex_unlock(&lock); if (active) { /* fail safe: if the aio could not be canceled, we wait for while (qemu_paio_error(acb) == EINPROGRESS) ; Ti

Re: [Qemu-devel] [PATCH 1/3] Introduce threadlets

2010-10-20 Thread Anthony Liguori
On 10/19/2010 09:22 PM, Balbir Singh wrote: OK, here is a situation that can happen T1 T2 --- --- threadlet submit_threadletwork_to_queue (sees condition as no work) mutex_lock qemu_cond_timedwait add

Re: [Qemu-devel] Re: KVM call agenda for Oct 19

2010-10-20 Thread Anthony Liguori
On 10/20/2010 04:18 AM, Kevin Wolf wrote: Am 19.10.2010 19:09, schrieb Anthony Liguori: On 10/19/2010 11:54 AM, Ayal Baron wrote: - "Anthony Liguori" wrote: On 10/19/2010 07:48 AM, Dor Laor wrote: On 10/19/2010 04:11 AM, Chris Wright wrote: *

Re: [Qemu-devel] [PATCH 1/3] Introduce threadlets

2010-10-20 Thread Balbir Singh
* Venkateswararao Jujjuri (JV) [2010-10-19 20:46:35]: > >> I think this is a lot more fragile. You're relying on the fact that > >> signal will not cause the signalled thread to actually awaken until > >> we release the lock and doing work after signalling that the > >> signalled thread needs to

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-20 Thread Anthony Liguori
On 10/20/2010 03:21 AM, Alexander Graf wrote: Live snapshots - merge snapshot? - already supported, question about mgmt of snapshot chain - integrate with fsfreeze (and windows alternative) Guest Agent - have one coming RSN (poke Anthony for details) Would there be a chance to have a si

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-20 Thread Dor Laor
On 10/20/2010 10:21 AM, Alexander Graf wrote: On 19.10.2010, at 17:14, Chris Wright wrote: 0.13.X -stable - Anthony will send note to qemu-devel on this - move 0.13.X -stable to a separate tree - driven independently of main qemu tree - challenge is always in the porting and testing of backpor

[Qemu-devel] [Bug 663713] Re: Mouse frozen under an emulated ubuntu

2010-10-20 Thread FredBezies
Sorry, your "trick" doesn't work at all for me. I try to switch on / off mouse capture in order to get it work. Nothing happens. Any other idea ? A freshly installed archlinux with gnome added works flawlessly. -- Mouse frozen under an emulated ubuntu https://bugs.launchpad.net/bugs/663713 You

Re: [Qemu-devel] v6: [PATCH 0/3]: Threadlets: A generic task offloading framework

2010-10-20 Thread Stefan Hajnoczi
On Wed, Oct 20, 2010 at 12:57 PM, Amit Shah wrote: > On (Tue) Oct 19 2010 [23:12:20], Arun R Bharadwaj wrote: >> Hi, >> >> This is the v6 of the patch-series to have a generic asynchronous task >> offloading framework (called threadlets) within qemu. >> >> Request to consider pulling this series a

Re: [Qemu-devel] v6: [PATCH 0/3]: Threadlets: A generic task offloading framework

2010-10-20 Thread Amit Shah
On (Tue) Oct 19 2010 [23:12:20], Arun R Bharadwaj wrote: > Hi, > > This is the v6 of the patch-series to have a generic asynchronous task > offloading framework (called threadlets) within qemu. > > Request to consider pulling this series as discussed during the > Qemu-devel call. I tried this ou

Re: [Qemu-devel] [PATCH 3/3] Add helper functions for virtio-9p to use threadlets

2010-10-20 Thread Stefan Hajnoczi
On Tue, Oct 19, 2010 at 6:43 PM, Arun R Bharadwaj wrote: > From: Gautham R Shenoy > > Add helper functions to enable virtio-9p make use of the threadlets > infrastructure for offloading blocking tasks such as making posix calls on > to the helper threads and handle the post_posix_operations() fro

[Qemu-devel] [Bug 654913] Re: Windows XP uses 200% CPU when given 2 VCPUs

2010-10-20 Thread Michael Tokarev
I think this can safely be closed - it's a known guest (winXP) behavour, as in, "use right drivers". ** Changed in: qemu Status: New => Invalid -- Windows XP uses 200% CPU when given 2 VCPUs https://bugs.launchpad.net/bugs/654913 You received this bug notification because you are a member

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-20 Thread Avi Kivity
On 10/20/2010 10:21 AM, Alexander Graf wrote: On 19.10.2010, at 17:14, Chris Wright wrote: > 0.13.X -stable > - Anthony will send note to qemu-devel on this > - move 0.13.X -stable to a separate tree > - driven independently of main qemu tree > - challenge is always in the porting and test

[Qemu-devel] Re: [PATCH v6 00/12] pcie port switch emulators

2010-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2010 at 05:18:49PM +0900, Isaku Yamahata wrote: > Isaku Yamahata (12): > pcie: comment on hpev_intx > pci/bridge: fix pci_bridge_reset() > pcie port: define struct PCIEPort/PCIESlot and helper functions > ioh3420: pcie root port in X58 ioh > x3130: pcie upstream port > x

[Qemu-devel] Re: [PATCH v6 02/12] pci/bridge: fix pci_bridge_reset()

2010-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2010 at 06:04:49PM +0900, Isaku Yamahata wrote: > On Wed, Oct 20, 2010 at 10:49:20AM +0200, Michael S. Tsirkin wrote: > > On Wed, Oct 20, 2010 at 05:18:51PM +0900, Isaku Yamahata wrote: > > > The default value of base/limit registers aren't specified in the spec. > > > So pci_bridge

[Qemu-devel] Re: [PATCH v6 07/12] pcie/hotplug: introduce pushing attention button command

2010-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2010 at 05:18:56PM +0900, Isaku Yamahata wrote: > glue pcie_push_attention_button command. > > Signed-off-by: Isaku Yamahata So as a high level command, I think we need to think about how to tie this into pci_add/pci_del. Right? As a low level command, this is not really useful u

[Qemu-devel] Re: [PATCH v6 08/12] pcie/aer: helper functions for pcie aer capability

2010-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2010 at 05:18:57PM +0900, Isaku Yamahata wrote: > This patch implements helper functions for pcie aer capability > which will be used later. > > Signed-off-by: Isaku Yamahata Some style comments and a couple of minor bugs. > --- > Chnages v5 -> v6: > - cleaned up pcie_aer_write_

Re: [Qemu-devel] qemu-0.13.0 compiling error on ppc64

2010-10-20 Thread acrux
On Wed, 20 Oct 2010 03:54:04 +0400 (MSD) malc wrote: > On Wed, 20 Oct 2010, acrux wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > i've this error only on ppc64 compiling qemu-0.13.0: > > > > It was fixed by b1d6d51d958bc98f5b6faa4d1d527c785a9ba7d6 which is > apparently

[Qemu-devel] [Tracing][RFC] QMP interface to toggle state of a trace-event

2010-10-20 Thread Prerna Saxena
QMP command trace-event to toggle state of a trace-event. Illustration : -> { "execute": "trace-event", "arguments": { "name": "qemu_malloc", "option": true} } <- { "return": {} } Posting this as an RFC for now. I'll post the final version as a part of the cumulative QMP patchset for tracing

[Qemu-devel] Using libqemu for static analysis?

2010-10-20 Thread Matt Lewis
Hello qemu-devel, I'm thinking of using libqemu to translate binaries into a nicer intermediate representation, in order to do various types of static analysis, such as data flow analysis & constructing control flow graphs. Does this seem like a reasonable thing to do, or is there some reason why

[Qemu-devel] Re: [PATCH v6 09/12] pcie/aer: glue aer error injection into qemu monitor

2010-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2010 at 05:18:58PM +0900, Isaku Yamahata wrote: > introduce pcie_aer_inject_error command. > > Signed-off-by: Isaku Yamahata > --- > Changes v3 -> v4: > - s/PCIE_AER/PCIEAER/g for structure names. > - compilation adjustment. > > Changes v2 -> v3: > - compilation adjustment. > ---

  1   2   >