Re: [Qemu-devel] Register usage statistics?

2011-08-27 Thread Alexander Graf
On 26.08.2011, at 16:52, Benjamin Ylvisaker wrote: > On Fri, 26 Aug 2011 19:35 +0200, "Lluís" wrote: >> Benjamin Ylvisaker writes: >> >>> I am working on a project for which I'd like to gather statistics >>> about register usage. (For example, distributions of degree-of-use >>> and dynamic lif

Re: [Qemu-devel] [PATCH V4 0/7] Block Conversion

2011-08-27 Thread Devin Nakamura
On Tue, Aug 23, 2011 at 12:27 AM, Devin Nakamura wrote: > This patch series introduces the api to support block conversion. > > Devin Nakamura (7): >  block: add block conversion api >  block: make bdrv_open_common more ready to be called by >    bdrv_open_conversion_target >  block: add bdrv_get_

[Qemu-devel] [Bug 826363] Re: qemu-img convert does not work with vdi files

2011-08-27 Thread Stefan Weil
The patch fixes qemu_ftruncate64 (ftruncate) which is also called from qemu.exe, qemu-system-x86_64.exe and other executables, so the bug affects them all. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bug

Re: [Qemu-devel] [PATCH] sh4: Fix potential crash in debug code

2011-08-27 Thread Stefan Weil
Am 13.08.2011 11:25, schrieb Stefan Weil: Am 20.07.2011 20:56, schrieb Stefan Weil: cppcheck reports this error: qemu/hw/sh_intc.c:390: error: Possible null pointer dereference: s - otherwise it is redundant to check if s is null at line 385 If s were NULL, the printf() statement would crash

[Qemu-devel] [PATCH 5/5] Separate migration thread

2011-08-27 Thread Umesh Deshpande
This patch creates a separate thread for the guest migration on the source side. All exits (on completion/error) from the migration thread are handled by a bottom handler, which is called from the iothread. Signed-off-by: Umesh Deshpande --- buffered_file.c | 76 ---

[Qemu-devel] [PATCH 4/5] Separate migration dirty bitmap

2011-08-27 Thread Umesh Deshpande
This patch creates a migration bitmap, which is periodically kept in sync with the qemu bitmap. A separate copy of the dirty bitmap for the migration avoids concurrent access to the qemu bitmap from the iothread and the migration thread. Signed-off-by: Umesh Deshpande --- arch_init.c | 17

[Qemu-devel] [PATCH 0/5] Separate thread for VM migration

2011-08-27 Thread Umesh Deshpande
Following patch series deals with VCPU and iothread starvation during the migration of a guest. Currently the iothread is responsible for performing the guest migration. It holds qemu_mutex during the migration and doesn't allow VCPU to enter the qemu mode and delays its return to the guest. The gu

[Qemu-devel] [PATCH 3/5] Migration thread mutex

2011-08-27 Thread Umesh Deshpande
This patch implements migrate_ram mutex, which protects the RAMBlock list traversal in the migration thread during the transfer of a ram from their addition/removal from the iothread. Note: Combination of iothread mutex and migration thread mutex works as a rw-lock. Both mutexes are acquired while

[Qemu-devel] [PATCH 2/5] MRU ram block list

2011-08-27 Thread Umesh Deshpande
This patch creates a new list of RAM blocks in MRU order. So that separate locking rules can be applied to the regular RAM block list and the MRU list. Signed-off-by: Paolo Bonzini --- cpu-all.h |2 ++ exec.c| 17 - 2 files changed, 14 insertions(+), 5 deletions(-) dif

[Qemu-devel] [PATCH 1/5] Support for vm_stop from the migration thread

2011-08-27 Thread Umesh Deshpande
Currently, when any thread other than iothread calls vm_stop, it is scheduled to be executed later by the iothread. This patch allows the execution of vm_stop from threads other than iothread. This is especially helpful when the migration is moved into a separate thread. Signed-off-by: Umesh Desh

Re: [Qemu-devel] [PATCH 1/2] Fix guest agent build with simpletrace

2011-08-27 Thread Lluís
Blue Swirl writes: > On Fri, Aug 26, 2011 at 7:12 PM, Lluís wrote: >> Blue Swirl writes: >> >>> 957f1f99f263d57612807a9535f75ca4473f05f0 didn't consider >>> that qemu-timer-common.o is needed by simpletrace. >> >>> Fix by adding it to qga object list. >> >>> Signed-off-by: Blue Swirl >>> ---

Re: [Qemu-devel] [PATCH 2/2] g364fb: convert to qdev

2011-08-27 Thread Blue Swirl
Thanks, applied. 2011/8/26 Hervé Poussineau : > Extract G364 ROM contents from device emulation to machine emulation, > so device emulation can be reused in other machines (Commodore Amiga) > > Signed-off-by: Hervé Poussineau > --- >  hw/g364fb.c    |  340 > +

Re: [Qemu-devel] [PATCH 1/2] g364fb: use trace framework

2011-08-27 Thread Blue Swirl
Thanks, applied. 2011/8/26 Hervé Poussineau : > > Signed-off-by: Hervé Poussineau > --- >  hw/g364fb.c  |   29 +++-- >  trace-events |    4 >  2 files changed, 15 insertions(+), 18 deletions(-) > > diff --git a/hw/g364fb.c b/hw/g364fb.c > index b3020c5..fa074f4 100644

Re: [Qemu-devel] [PATCH] checkpatch: fix braces {} handling

2011-08-27 Thread Blue Swirl
Thanks, applied. On Fri, Aug 26, 2011 at 1:34 PM, Pavel Borzenkov wrote: > checkpatch.pl doesn't report warning for if/else statements with missing > 'else' braces: > > if (something) { >    foo; > } else >    bar; > > The patch has been tested using the last 100 commits. > > Signed-off-by: Pavel

Re: [Qemu-devel] [PATCH] Fix linker scripts

2011-08-27 Thread Blue Swirl
Thanks, applied. On Fri, Aug 26, 2011 at 9:16 AM, Gerd Hoffmann wrote: > Remove PROVIDE_HIDDEN and ONLY_IF_{RO,RW} from linker scripts to make > them work with older binutils versions.  Fixes *-bsd-user build on > OpenBSD 4.9 which ships binutils 2.15. > > Signed-off-by: Gerd Hoffmann > --- >  a

Re: [Qemu-devel] [PATCH] Fix build on OpenBSD with BSD userland emu and smartcard NSS enabled

2011-08-27 Thread Blue Swirl
Thanks, applied. On Mon, Aug 22, 2011 at 8:39 PM, Brad wrote: > Fix build on OpenBSD with BSD userland emu and smartcard NSS enabled. > > The first issue is the hard coded POSIX Real Time extensions library in the > libcacard/Makefile. From looking at the code it doesn't seem this is necessary >

Re: [Qemu-devel] [PATCH 02/17] hw/onenand: Qdevify

2011-08-27 Thread Edgar E. Iglesias
On Thu, Aug 25, 2011 at 09:04:56PM +0100, Peter Maydell wrote: > From: Juha Riihimäki > > Qdevify the ONENAND device. > > Signed-off-by: Juha Riihimäki > [Riku Voipio: Fixes and restructuring patchset] > Signed-off-by: Riku Voipio > [Peter Maydell: More fixes and cleanups for upstream submissi

[Qemu-devel] Windows application memory dump

2011-08-27 Thread shbi shb
Hi, Is it possible to capture memory dump of a guest windows executable? I want to access the processes memory and capture memory dump of a specific process before and after the execution of some certain instructions. I'll appreciate if you suggest me a quick way for that. Thank you,

Re: [Qemu-devel] [PATCH 1/2] Fix guest agent build with simpletrace

2011-08-27 Thread Blue Swirl
On Fri, Aug 26, 2011 at 7:12 PM, Lluís wrote: > Blue Swirl writes: > >> 957f1f99f263d57612807a9535f75ca4473f05f0 didn't consider >> that qemu-timer-common.o is needed by simpletrace. > >> Fix by adding it to qga object list. > >> Signed-off-by: Blue Swirl >> --- >>  Makefile.objs |    3 +++ >>  1

Re: [Qemu-devel] [PATCH] hw: Add test device for unittests execution

2011-08-27 Thread Blue Swirl
On Sat, Aug 27, 2011 at 10:07 AM, Edgar E. Iglesias wrote: > On Fri, Aug 26, 2011 at 04:22:22PM -0500, Anthony Liguori wrote: >> On 08/26/2011 03:04 PM, Lucas Meneghel Rodrigues wrote: >> >Add a test device which supports the kvmctl ioports, >> >for running the KVM test suite. This is a straight >

Re: [Qemu-devel] [PATCH 6/6] target-alpha: Add high-resolution access to wall clock and an alarm.

2011-08-27 Thread Edgar E. Iglesias
On Fri, Aug 26, 2011 at 05:36:19PM +0100, Peter Maydell wrote: > On 26 August 2011 17:28, Richard Henderson wrote: > > On 08/25/2011 11:07 PM, Paolo Bonzini wrote: > >> On 08/26/2011 05:51 AM, Peter Maydell wrote: > >>> Don't you need some magic around helper calls that read/write > >>> the time t

[Qemu-devel] [Bug 826363] Re: qemu-img convert does not work with vdi files

2011-08-27 Thread Steve Si
I have applied the patch now and can confirm it works. Would this bug also affect qemu.exe for x86_64? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/826363 Title: qemu-img convert does not work wi

Re: [Qemu-devel] [PATCH] hw: Add test device for unittests execution

2011-08-27 Thread Blue Swirl
On Fri, Aug 26, 2011 at 8:04 PM, Lucas Meneghel Rodrigues wrote: > Add a test device which supports the kvmctl ioports, > for running the KVM test suite. This is a straight > port from the latest version of the test device present > on qemu-kvm, using the APIs currently in use by qemu. Or rather

Re: [Qemu-devel] [RFC PATCH v5 2/4] Migration thread mutex

2011-08-27 Thread Marcelo Tosatti
On Tue, Aug 23, 2011 at 11:12:48PM -0400, Umesh Deshpande wrote: > ramlist mutex is implemented to protect the RAMBlock list traversal in the > migration thread from their addition/removal from the iothread. > > Note: Combination of iothread mutex and migration thread mutex works as a > rw-lock. B

[Qemu-devel] [PATCH] pc: Clean up PIC-to-APIC IRQ path

2011-08-27 Thread Jan Kiszka
From: Jan Kiszka The master PIC is connected to the LINTIN0 of the APICs. As the APIC currently does not track the state of that line, we have to ask the PIC to re-inject its IRQ after the CPU picked up an event from the APIC. Adds the proper state tracking so that we can already re-assert the C

Re: [Qemu-devel] [PATCH 00/17] onenand, omap_gpmc fixes, features

2011-08-27 Thread Peter Maydell
On 27 August 2011 03:30, Edgar E. Iglesias wrote: > On Thu, Aug 25, 2011 at 09:04:54PM +0100, Peter Maydell wrote: >> This patchset is primarily features and bugfixes for the >> omap_gpmc device from the Meego tree. > Thanks Peter, do you have a tree to pull from? git://git.linaro.org/people/pma

Re: [Qemu-devel] Preliminary results of unit testing on qemu.git

2011-08-27 Thread Jan Kiszka
On 2011-08-27 11:16, Jan Kiszka wrote: > apic: First error is related to user space APIC exposing a different > version than the in-kernel APIC. The version is coupled to the > CPU model, but neither KVM nor QEMU get this right so far. I > think we already had complaints about t

Re: [Qemu-devel] [PATCH] hw: Add test device for unittests execution

2011-08-27 Thread Edgar E. Iglesias
On Fri, Aug 26, 2011 at 04:22:22PM -0500, Anthony Liguori wrote: > On 08/26/2011 03:04 PM, Lucas Meneghel Rodrigues wrote: > >Add a test device which supports the kvmctl ioports, > >for running the KVM test suite. This is a straight > >port from the latest version of the test device present > >on q

Re: [Qemu-devel] Preliminary results of unit testing on qemu.git

2011-08-27 Thread Jan Kiszka
On 2011-08-26 23:31, Lucas Meneghel Rodrigues wrote: > Hi folks, > > I've recently sent a patch porting the -testdev device from qemu-kvm.git > to qemu.git, and I went ahead and started running the unittests on > qemu.git. It's still not integrated to our test grid, I just ran it in > my laptop, w

[Qemu-devel] [PATCH] ahci: add port I/O index-data pair

2011-08-27 Thread Daniel Verkamp
Implement an I/O space index-data register pair as defined by the AHCI spec, including the corresponding SATA PCI capability and BAR. This allows real-mode code to access the AHCI registers; real-mode code cannot address the memory-mapped register space because it is beyond the first megabyte. Si