Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-18 Thread Vadim Rozenfeld
On Thu, 2012-01-19 at 09:41 +0800, Charles.Tsai-蔡清海-研究發展部 wrote: > Vadim, > > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to > install on 64-bit Win7 guest. > During the driver installation, the system hung after the driver being > installed. After I rebooted the > guest

Re: [Qemu-devel] [PATCH v7 07/10] ARM: exynos4210: MCT support.

2012-01-18 Thread Evgeny Voevodin
On 01/18/2012 03:46 PM, Peter Maydell wrote: On 16 January 2012 06:48, Evgeny Voevodin wrote: This doesn't compile on 32 bit hosts: CCarm-softmmu/exynos4210_mct.o cc1: warnings being treated as errors /home/petmay01/linaro/qemu-from-laptop/qemu/hw/exynos4210_mct.c: In function ‘exynos421

[Qemu-devel] [RFC][PATCH 15/15 v5] auto cancel dumping after vm state is changed to run

2012-01-18 Thread Wen Congyang
The command dump does not support to dump while vm is running. If the user resume the vm, we should auto cancel dumping and set the status to failed. Signed-off-by: Wen Congyang --- dump.c | 19 +++ vl.c |5 +++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff -

[Qemu-devel] [RFC][PATCH 11/15 v5] support detached dump

2012-01-18 Thread Wen Congyang
Let the user to choose whether to block other monitor command while dumping. Signed-off-by: Wen Congyang --- dump.c | 12 hmp-commands.hx |8 hmp.c|3 ++- qapi-schema.json |2 +- qmp-commands.hx |7 --- 5 files changed, 19 inser

[Qemu-devel] [RFC][PATCH 08/15] target-i386: add API to get dump info

2012-01-18 Thread Wen Congyang
Dump info contains: endian, class and architecture. The next patch will use these information to create vmcore. Signed-off-by: Wen Congyang --- cpu-all.h |3 +++ dump.h | 10 ++ target-i386/arch-dump.c | 34 ++ 3 file

[Qemu-devel] [RFC][PATCH 10/15] run dump at the background

2012-01-18 Thread Wen Congyang
The new monitor command dump may take long time to finish. So we need run it at the background. Signed-off-by: Wen Congyang --- dump.c | 155 1 files changed, 136 insertions(+), 19 deletions(-) diff --git a/dump.c b/dump.c index

[Qemu-devel] [RFC][PATCH 04/15] target-i386: implement cpu_get_memory_mapping()

2012-01-18 Thread Wen Congyang
Walk cpu's page table and collect all virtual address and physical address mapping. Then, add these mapping into memory mapping list. Signed-off-by: Wen Congyang --- Makefile.target |2 +- cpu-all.h |7 ++ target-i386/arch-dump.c | 254

[Qemu-devel] [RFC][PATCH 06/15] target-i386: Add API to write elf notes to core file

2012-01-18 Thread Wen Congyang
The core file contains register's value. These APIs write registers to core file, and them will be called in the following patch. Signed-off-by: Wen Congyang --- cpu-all.h |6 + target-i386/arch-dump.c | 243 +++ 2 files changed, 249

Re: [Qemu-devel] [RFC][PATCH 00/15 v5] introducing a new, dedicated memory dump mechanism

2012-01-18 Thread Wen Congyang
At 01/19/2012 11:32 AM, Jun Koi Wrote: > On Thu, Jan 19, 2012 at 10:50 AM, Wen Congyang wrote: >> Hi, all >> >> 'virsh dump' can not work when host pci device is used by guest. We have >> discussed this issue here: >> http://lists.nongnu.org/archive/html/qemu-devel/2011-10/msg00736.html >> >> We h

[Qemu-devel] [RFC][PATCH 12/15 v5] support to cancel the current dumping

2012-01-18 Thread Wen Congyang
Add API to allow the user to cancel the current dumping. Signed-off-by: Wen Congyang --- dump.c | 13 + hmp-commands.hx | 14 ++ hmp.c|5 + hmp.h|1 + qapi-schema.json | 13 + qmp-commands.hx | 21 +++

[Qemu-devel] [RFC][PATCH 09/15] introduce a new monitor command 'dump' to dump guest's memory

2012-01-18 Thread Wen Congyang
Signed-off-by: Wen Congyang --- Makefile.target |8 +- dump.c | 590 ++ dump.h |3 + hmp-commands.hx | 16 ++ hmp.c|9 + hmp.h|1 + monitor.c|3 + qapi-schema.json |

[Qemu-devel] [RFC][PATCH 14/15 v5] support to query dumping status

2012-01-18 Thread Wen Congyang
Add API to allow the user to query dumping status. Signed-off-by: Wen Congyang --- dump.c | 32 hmp-commands.hx |2 ++ hmp.c| 17 + hmp.h|1 + monitor.c|7 +++ qapi-schema.json | 26

[Qemu-devel] [RFC][PATCH 13/15 v5] support to set dumping speed

2012-01-18 Thread Wen Congyang
Add API to allow the user to control dumping speed Signed-off-by: Wen Congyang --- dump.c | 12 hmp-commands.hx | 15 +++ hmp.c|6 ++ hmp.h|1 + qapi-schema.json | 15 +++ qmp-commands.hx | 22 ++

[Qemu-devel] [RFC][PATCH 07/15] target-i386: Add API to add extra memory mapping

2012-01-18 Thread Wen Congyang
Crash needs extra memory mapping to determine phys_base. Signed-off-by: Wen Congyang --- cpu-all.h |2 ++ target-i386/arch-dump.c | 43 +++ 2 files changed, 45 insertions(+), 0 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index efb5

[Qemu-devel] [RFC][PATCH 05/15] Add API to get memory mapping

2012-01-18 Thread Wen Congyang
Add API to get all virtual address and physical address mapping. If there is no virtual address for some physical address, the virtual address is 0. Signed-off-by: Wen Congyang --- memory_mapping.c | 55 ++ memory_mapping.h |1 + 2 files

[Qemu-devel] [RFC][PATCH 03/15] Add API to check whether a physical address is I/O address

2012-01-18 Thread Wen Congyang
This API will be used in the following patch. Signed-off-by: Wen Congyang --- cpu-common.h |2 ++ exec.c | 16 2 files changed, 18 insertions(+), 0 deletions(-) diff --git a/cpu-common.h b/cpu-common.h index a40c57d..d047137 100644 --- a/cpu-common.h +++ b/cpu-commo

[Qemu-devel] [RFC][PATCH 02/15] Add API to create memory mapping list

2012-01-18 Thread Wen Congyang
The memory mapping list stores virtual address and physical address mapping. The folloing patch will use this information to create PT_LOAD in the vmcore. Signed-off-by: Wen Congyang --- Makefile.target |1 + memory_mapping.c | 130 ++ me

[Qemu-devel] [RFC][PATCH 01/15] monitor: introduce qemu_suspend_monitor()/qemu_resume_monitor()

2012-01-18 Thread Wen Congyang
Sync command needs these two APIs to suspend/resume monitor. Signed-off-by: Wen Congyang --- monitor.c | 27 +++ monitor.h |2 ++ 2 files changed, 29 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monitor.c index 56f3778..ce2bc13 100644 --- a/monitor.c +++

[Qemu-devel] [RFC][PATCH 00/15 v5] introducing a new, dedicated memory dump mechanism

2012-01-18 Thread Wen Congyang
Hi, all 'virsh dump' can not work when host pci device is used by guest. We have discussed this issue here: http://lists.nongnu.org/archive/html/qemu-devel/2011-10/msg00736.html We have determined to introduce a new command dump to dump memory. The core file's format can be elf. Note: 1. The gue

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-18 Thread Charles . Tsai-蔡清海-研究發展部
Vadim, I tested on Qemu 1.0.50. and found the VioSerial driver had problem to install on 64-bit Win7 guest. During the driver installation, the system hung after the driver being installed. After I rebooted the guest OS, the Vioserial driver work. The hang system seemed to be found only during

Re: [Qemu-devel] Compile QEMU for android

2012-01-18 Thread Spartacus Rex
When you try and compile the latest version with ndk tool it says it can't find arm-linux-androideabi-pkg-config ? How can I get that ? Can that be disabled in the latest version, so as to not use pkg-config? Sorry, more of a java man.. Spartacus On Jan 19, 2012 12:27 AM, "Alex Bradbury" wro

Re: [Qemu-devel] bad USB tablet update rate on qemu-1.0

2012-01-18 Thread Erik Rull
Erik Rull wrote: Erik Rull wrote: Anthony Liguori wrote: On 12/19/2011 03:33 PM, Erik Rull wrote: Hi all, coming from qemu 0.14 the usbdevice tablet update rate gets really bad in qemu-1.0 with the same guest. What's the specific guest? Regards, Anthony Liguori It's a Windows XP guest.

Re: [Qemu-devel] bad USB tablet update rate on qemu-1.0

2012-01-18 Thread Erik Rull
Erik Rull wrote: Erik Rull wrote: Anthony Liguori wrote: On 12/19/2011 03:33 PM, Erik Rull wrote: Hi all, coming from qemu 0.14 the usbdevice tablet update rate gets really bad in qemu-1.0 with the same guest. What's the specific guest? Regards, Anthony Liguori It's a Windows XP guest.

[Qemu-devel] Removing indeterminism in qemu execution

2012-01-18 Thread Zeus Gómez Marmolejo
Hi developers, I'm debugging an operating system with QEMU and I have a race condition in the OS. The problem is that each time I run QEMU I get this error in a different place, so it makes impossible for gdb to debug it. My plan is to remove this indeterminism and be able to reproduce the same er

[Qemu-devel] [PATCH V2 4/7] i8254: Pass irq output object on initialization

2012-01-18 Thread Jan Kiszka
From: Jan Kiszka Instead of retrieving the IRQ object from the ISA bus, let the creator of the PIT pick it. pit_init can then connect it to a generic GPIO output pin. Signed-off-by: Jan Kiszka --- hw/alpha_dp264.c |2 +- hw/i8254.c |4 +--- hw/i8254.h |4 ++-- hw/

[Qemu-devel] [PATCH V2 7/7] i8254: Factor out pit_get_channel_info

2012-01-18 Thread Jan Kiszka
From: Jan Kiszka Instead of providing 4 individual query functions for mode, gate, output and initial counter state, introduce a service that queries all information at once. This comes with tiny additional costs for pcspk_callback but with a much cleaner interface. Also, it will simplify the imp

[Qemu-devel] [PATCH V2 2/7] hpet: Save/restore cached RTC IRQ level

2012-01-18 Thread Jan Kiszka
From: Jan Kiszka In legacy mode, the HPET suppresses the RTC interrupt delivery via IRQ 8 but keeps track of the RTC output level and applies it when legacy mode is turned off again. This value has to be preserved across save/ restore as it cannot be reconstructed otherwise. Signed-off-by: Jan K

[Qemu-devel] [PATCH V2 5/7] i8254: Rework & fix interaction with HPET in legacy mode

2012-01-18 Thread Jan Kiszka
From: Jan Kiszka When the HPET enters legacy mode, the IRQ output of the PIT is suppressed and replaced by the HPET timer 0. But the current code to emulate this was broken in many ways. It reset the PIT state after re-enabling, it worked against a stale static PIT structure, and it did not prope

Re: [Qemu-devel] Compile QEMU for android

2012-01-18 Thread Alex Bradbury
On 18 January 2012 21:33, Peter Maydell wrote: > There's an Android bug where (at least for some gcc versions) the > __builtin___clear_cache() function doesn't work. You might like to > try the test in this Android bug report: > http://code.google.com/p/android/issues/detail?id=1803 > to see if it

[Qemu-devel] [PATCH V2 0/7] pit, hpet, pcspk: fixes & preparation for KVM

2012-01-18 Thread Jan Kiszka
This is a preparatory series to allow the introduction of the KVM in-kernel PIT. A working and fairly clean version for that is ready. It is just waiting for the irqchip baseline and this series to be merged. This series also fixes various bugs in the PIT and HPET code, see patches for details. C

[Qemu-devel] [PATCH V2 1/7] i8254: Do not raise IRQ level on reset

2012-01-18 Thread Jan Kiszka
From: Jan Kiszka Avoid changing the IRQ level to high on reset as it may trigger spurious events. Instead, open-code the effects of pit_load_count(0) in the reset handler. Signed-off-by: Jan Kiszka --- hw/i8254.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/h

[Qemu-devel] [PATCH V2 3/7] i8254: Factor out interface header

2012-01-18 Thread Jan Kiszka
From: Jan Kiszka Move the public interface of the PIT into its own header file and update all users. Signed-off-by: Jan Kiszka --- hw/alpha_dp264.c |1 + hw/hpet.c |1 + hw/i8254.c |1 + hw/i8254.h | 54 ++

[Qemu-devel] [PATCH V2 6/7] pcspk: Convert to qdev

2012-01-18 Thread Jan Kiszka
From: Jan Kiszka Convert the PC speaker device to a qdev ISA model. Move the public interface to a dedicated header file at this chance. Signed-off-by: Jan Kiszka --- arch_init.c|1 + hw/mips_jazz.c |3 ++- hw/pc.c|3 ++- hw/pc.h|4 hw/pcspk.c | 5

Re: [Qemu-devel] Compile QEMU for android

2012-01-18 Thread Peter Maydell
On 18 January 2012 21:36, Spartacus Rex wrote: > Is there a version that is known to work..? On arm. Current git master plus this patch: http://git.linaro.org/gitweb?p=qemu/qemu-linaro.git;a=commitdiff;h=5462c1db44e6bfb4cd9e8de45aad208910af3a88 should work on a Linux ARM host. -- PMM

Re: [Qemu-devel] Compile QEMU for android

2012-01-18 Thread Spartacus Rex
OK. Is there a version that is known to work..? On arm. Spartacus On Jan 18, 2012 10:33 PM, "Peter Maydell" wrote: > On 18 January 2012 15:41, Spartacus Rex wrote: > > I am trying to get a version of qemu to compile for Android. > > > > Then I would like to boot debian-armel.. or even a minima

Re: [Qemu-devel] Compile QEMU for android

2012-01-18 Thread Peter Maydell
On 18 January 2012 15:41, Spartacus Rex wrote: > I am trying to get a version of qemu to compile for Android. > > Then I would like to boot debian-armel.. or even a minimal arm buildroot fs. > > I have so far tried compiling with NDK toolchain and codesourcery. > > You can build them, but either t

Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-18 Thread Mark Langsdorf
On 01/18/2012 01:26 PM, Peter Maydell wrote: > On 18 January 2012 19:06, Mark Langsdorf wrote: >> On 01/18/2012 08:53 AM, Peter Maydell wrote: >>> On 18 January 2012 14:35, Mark Langsdorf wrote: I can set the smp_loader code so that I can boot 2 cpus and verify their existence in /proc/

Re: [Qemu-devel] [PATCH RFC v3 1/2] hyper-v: introduce Hyper-V support infrastructure.

2012-01-18 Thread Jan Kiszka
On 2012-01-18 21:05, Jan Kiszka wrote: > On 2011-12-18 21:48, Vadim Rozenfeld wrote: >> --- >> Makefile.target |2 + >> target-i386/cpuid.c | 14 ++ >> target-i386/hyperv.c | 65 >> ++ >> target-i386/hyperv.h | 37 +++

Re: [Qemu-devel] [PATCH v7 00/18] uq/master: Introduce basic irqchip support

2012-01-18 Thread Marcelo Tosatti
On Wed, Jan 18, 2012 at 09:09:22PM +0100, Jan Kiszka wrote: > > Patchset does not apply, please regenarate > > OK, working on it. I think it had some build issue with !CONFIG_KVM anyway. > > > (patch 2 is missing actual > > file move), thanks. > > Hmm, possibly requires a fairly recent diff. Are

[Qemu-devel] [Bug 917824] Re: qemu loops/hangs on extending qcow2-diskspace

2012-01-18 Thread warum
** Also affects: qemu-kvm (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/917824 Title: qemu loops/hangs on extending qcow2-diskspace Status in Q

Re: [Qemu-devel] [PATCH v7 00/18] uq/master: Introduce basic irqchip support

2012-01-18 Thread Jan Kiszka
On 2012-01-18 10:48, Marcelo Tosatti wrote: > On Mon, Jan 16, 2012 at 04:55:34PM +0100, Jan Kiszka wrote: >> Changes in v7: >> - introduce {apic,pic,ioapic}_qdev_register and use >> {APIC,PIC,IOAPIC}CommonInfo to move more code into the common modules >> - clean up forgotten fragments of backend/

Re: [Qemu-devel] Compile QEMU for android

2012-01-18 Thread Spartacus Rex
Yes, it's important that root is not required.. I just want a Normal version of qemu. I am trying to get it to work in terminal IDE :-) A slow full gcc-arm tool chain would be nice.. Spartacus On Jan 18, 2012 8:37 PM, "David Ahern" wrote: > On 01/18/2012 08:41 AM, Spartacus Rex wrote: > > Hi

Re: [Qemu-devel] [PATCH RFC v3 1/2] hyper-v: introduce Hyper-V support infrastructure.

2012-01-18 Thread Jan Kiszka
On 2011-12-18 21:48, Vadim Rozenfeld wrote: > --- > Makefile.target |2 + > target-i386/cpuid.c | 14 ++ > target-i386/hyperv.c | 65 > ++ > target-i386/hyperv.h | 37 > 4 files changed, 118 inser

Re: [Qemu-devel] icount and tb chaining

2012-01-18 Thread Peter Maydell
On 18 January 2012 19:43, James Greensky wrote: > On Tue, Jan 17, 2012 at 7:03 PM, 陳韋任 wrote: >> I think those numbers (0, 1, and 2) means tb_add_jump 2nd parameter here, so >> it's intentionally to check jmp_first when n is 2. Since tb->jmp_first is >> never >> to be zero, then condition is alw

Re: [Qemu-devel] icount and tb chaining

2012-01-18 Thread James Greensky
On Tue, Jan 17, 2012 at 7:22 PM, 陳韋任 wrote: >> previously returned tb. This is usually 0/1. When running icount, you >> can also get a 2 value in these least significant digits, indicating >> that the translation block was restarted due to the >> icount_decr.u16.low field being exhausted but havin

Re: [Qemu-devel] icount and tb chaining

2012-01-18 Thread James Greensky
On Tue, Jan 17, 2012 at 7:03 PM, 陳韋任 wrote: >> if (!tb->jmp_next[n]) { <--- what if n is 2? >> >> This is my question, if n is two, it would actually be checking the >> jmp_first field immediatedly following the jmp_next array in the tb >> structure.  This function only updates the jmp_first field

Re: [Qemu-devel] Compile QEMU for android

2012-01-18 Thread David Ahern
On 01/18/2012 08:41 AM, Spartacus Rex wrote: > Hi there, > > I am trying to get a version of qemu to compile for Android. > > Then I would like to boot debian-armel.. or even a minimal arm buildroot fs. Why do you want to run a VM on Android versus using the rootfs natively? David

Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-18 Thread Peter Maydell
On 18 January 2012 19:26, Peter Maydell wrote: > On 18 January 2012 19:06, Mark Langsdorf wrote: >> How would multiple polling supposed to work? > > You need several separate bits of code, to put each secondary > core in a different loop polling a different address. Er, or more sensibly, just on

Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-18 Thread Peter Maydell
On 18 January 2012 19:06, Mark Langsdorf wrote: > On 01/18/2012 08:53 AM, Peter Maydell wrote: >> On 18 January 2012 14:35, Mark Langsdorf wrote: >>> I can set the smp_loader code so that I can boot 2 cpus >>> and verify their existence in /proc/cpuinfo, but I can't >>> get 3 cpus to boot at all,

Re: [Qemu-devel] [PATCH 2/2] qemu-ga: Add the guest-suspend command

2012-01-18 Thread Eric Blake
On 01/17/2012 03:57 AM, Jamie Lokier wrote: > You're right, but it looks like it may be removed in the next edition: > >https://www.opengroup.org/austin/docs/austin_446.txt > >> it was only pthread_atfork() which was removed. > > I didn't think pthread_atfork() ever was async-signal-safe. >

Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-18 Thread Mark Langsdorf
On 01/18/2012 08:53 AM, Peter Maydell wrote: > On 18 January 2012 14:35, Mark Langsdorf wrote: >> I can set the smp_loader code so that I can boot 2 cpus >> and verify their existence in /proc/cpuinfo, but I can't >> get 3 cpus to boot at all, no matter how I hack the existing >> arm_boot code. >

Re: [Qemu-devel] direct usage of rt_clock instead of rtc_clock

2012-01-18 Thread Peter Maydell
On 18 January 2012 18:04, Paolo Bonzini wrote: > the following four files in hw/ are using rt_clock directly > >  omap1.c >  pxa2xx.c >  strongarm.c >  twl92230.c > > instead of rtc_clock.  This means that they're not completely deterministic > when using -icount or in the future qtest.  A simple

[Qemu-devel] [PATCH 04/14] block: eject_device(): Use error_set()

2012-01-18 Thread Luiz Capitulino
Also drops the leftover 'mon' argument. This is a preparation for the next commits which will port the eject and change commands to the QAPI. Signed-off-by: Luiz Capitulino --- blockdev.c | 30 ++ 1 files changed, 22 insertions(+), 8 deletions(-) diff --git a/bloc

[Qemu-devel] [PATCH 11/14] qmp: Add missing gcc format attribute and fix format string

2012-01-18 Thread Luiz Capitulino
From: Stefan Weil Signed-off-by: Stefan Weil Reviewed-by: Stefan Hajnoczi Signed-off-by: Luiz Capitulino --- test-qmp-input-visitor.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test-qmp-input-visitor.c b/test-qmp-input-visitor.c index 1f3ab03..926db5c 10064

[Qemu-devel] [PULL 00/14]: QMP queue

2012-01-18 Thread Luiz Capitulino
This pull request contains my QAPI conversions round 4, improvements to error reporting and a small fix. The changes (since 8c4ec5c0269bda18bb777a64b2008088d1c632dc) are available in the following repository: git://repo.or.cz/qemu/qmp-unstable.git queue/qmp Anthony Liguori (1): monitor

[Qemu-devel] [PATCH 09/14] qapi: Convert change

2012-01-18 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- blockdev.c | 54 +++--- blockdev.h |5 ++- hmp-commands.hx |3 +- hmp.c| 57 + hmp.h|1 + monitor.c

[Qemu-devel] [PATCH 12/14] qerror: add check-qerror.sh to verify alphabetical order

2012-01-18 Thread Luiz Capitulino
From: Stefan Hajnoczi We're supposed to keep qerror definitions and table entries in alphabetical order. In practice this is not checked. I haven't found a nice way to integrate this into the makefile yet but we can at least have this script which verifies that qerrors are in alphabetical order

[Qemu-devel] [PATCH 01/14] vnc: Simplify vnc_display_password()

2012-01-18 Thread Luiz Capitulino
Drop the qerror_report() call from it and let its callers set the error themselves. This also allows for dropping the 'ret' variable. Signed-off-by: Luiz Capitulino --- console.h |1 - monitor.c |7 ++- ui/vnc.c | 14 -- 3 files changed, 10 insertions(+), 12 deletions(

Re: [Qemu-devel] [PATCH 1/2] Rewrite the way keycode conversions are performed

2012-01-18 Thread Anthony Liguori
On 01/18/2012 12:31 PM, Daniel P. Berrange wrote: On Wed, Jan 18, 2012 at 11:47:12AM -0600, Anthony Liguori wrote: On 01/18/2012 11:07 AM, Daniel P. Berrange wrote: On Wed, Jan 18, 2012 at 10:53:57AM -0600, Anthony Liguori wrote: On 01/17/2012 01:35 PM, Daniel P. Berrange wrote: From: "Daniel

[Qemu-devel] [PATCH 03/14] qapi: Convert expire_password

2012-01-18 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- console.h|2 -- hmp-commands.hx |3 +-- hmp.c| 10 ++ hmp.h|1 + monitor.c| 39 --- qapi-schema.json | 27 +

[Qemu-devel] [PATCH 08/14] qerror: Extend QERR_DEVICE_ENCRYPTED

2012-01-18 Thread Luiz Capitulino
Include the name of the encrypted file. Signed-off-by: Luiz Capitulino --- monitor.c |3 ++- qerror.h |2 +- qmp.c |3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/monitor.c b/monitor.c index bd4bc4f..f85a9d2 100644 --- a/monitor.c +++ b/monitor.c @@ -4682,

Re: [Qemu-devel] [PATCH 1/2] Rewrite the way keycode conversions are performed

2012-01-18 Thread Daniel P. Berrange
On Wed, Jan 18, 2012 at 11:47:12AM -0600, Anthony Liguori wrote: > On 01/18/2012 11:07 AM, Daniel P. Berrange wrote: > >On Wed, Jan 18, 2012 at 10:53:57AM -0600, Anthony Liguori wrote: > >>On 01/17/2012 01:35 PM, Daniel P. Berrange wrote: > >>>From: "Daniel P. Berrange" > >>> > >>>The SDL video dis

[Qemu-devel] [PATCH 06/14] monitor: expose readline state

2012-01-18 Thread Luiz Capitulino
From: Anthony Liguori HMP is now implemented in terms of QMP. The monitor has a bunch of logic to deal with HMP right now like readline support. Export it from the monitor so we can consume it in hmp.c. In short time, hmp.c will take over all of the readline bits. Signed-off-by: Anthony Liguo

[Qemu-devel] [PATCH 07/14] qapi: Introduce change-vnc-password

2012-01-18 Thread Luiz Capitulino
New QMP command to change the VNC password. Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino Signed-off-by: Luiz Capitulino --- qapi-schema.json | 14 ++ qmp-commands.hx |6 ++ qmp.c|7 +++ 3 files changed, 27 insertions(+), 0 deletions(

[Qemu-devel] [PATCH 14/14] block: use proper qerrors in qmp_block_resize

2012-01-18 Thread Luiz Capitulino
From: Stefan Hajnoczi Let's report specific errors so that management tools and users can identify the problem. Two new qerrors are needed: * QERR_DEVICE_HAS_NO_MEDIUM for ENOMEDIUM * QERR_DEVICE_IS_READ_ONLY for EACCES Signed-off-by: Stefan Hajnoczi Signed-off-by: Luiz Capitulino --- bloc

[Qemu-devel] [PATCH 13/14] qerror: restore alphabetical order over qerrors

2012-01-18 Thread Luiz Capitulino
From: Stefan Hajnoczi Over time these must have gotten out of order. Put everything back in alphabetical order. This is purely a clean up. In practice nothing depends on the order. Signed-off-by: Stefan Hajnoczi Signed-off-by: Luiz Capitulino --- qerror.c | 84 +++

[Qemu-devel] [PATCH 10/14] qapi: Convert block_set_io_throttle

2012-01-18 Thread Luiz Capitulino
Signed-off-by: Luiz Capitulino --- blockdev.c | 47 ++- blockdev.h |2 -- hmp-commands.hx |3 +-- hmp.c| 14 ++ hmp.h|1 + qapi-schema.json | 29 + qmp-comman

[Qemu-devel] direct usage of rt_clock instead of rtc_clock

2012-01-18 Thread Paolo Bonzini
Hi Peter and Andrzej, the following four files in hw/ are using rt_clock directly omap1.c pxa2xx.c strongarm.c twl92230.c instead of rtc_clock. This means that they're not completely deterministic when using -icount or in the future qtest. A simple search-and-replace would be okay I

[Qemu-devel] [PATCH 05/14] qapi: Convert eject

2012-01-18 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- blockdev.c | 20 +--- blockdev.h |1 - hmp-commands.hx |3 +-- hmp.c| 10 ++ hmp.h|1 + qapi-schema.json | 21 + qmp-commands.hx |

Re: [Qemu-devel] [PATCH 1/2] Rewrite the way keycode conversions are performed

2012-01-18 Thread Anthony Liguori
On 01/18/2012 11:07 AM, Daniel P. Berrange wrote: On Wed, Jan 18, 2012 at 10:53:57AM -0600, Anthony Liguori wrote: On 01/17/2012 01:35 PM, Daniel P. Berrange wrote: From: "Daniel P. Berrange" The SDL video display code needs to convert between the SDL keyboard event keycodes, and QEMU's intern

[Qemu-devel] [PATCH 02/14] qapi: Convert set_password

2012-01-18 Thread Luiz Capitulino
Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- hmp-commands.hx |3 +- hmp.c| 11 ++ hmp.h|1 + monitor.c| 57 -- qapi-schema.json | 29 +++ qmp-co

Re: [Qemu-devel] [PATCH] PPC: Pseries: Check for PCI boundaries

2012-01-18 Thread Michael S. Tsirkin
On Wed, Jan 18, 2012 at 05:24:50PM +0100, Alexander Graf wrote: > We call pci_host_config_{read,write}_common() which perform PCI config > accesses. However they don't do all limit checking the way we expect > it to. > > So let's introduce a small wrapper around them, making them behave the > way

Re: [Qemu-devel] [PATCH 1/2] Rewrite the way keycode conversions are performed

2012-01-18 Thread Daniel P. Berrange
On Wed, Jan 18, 2012 at 10:53:57AM -0600, Anthony Liguori wrote: > On 01/17/2012 01:35 PM, Daniel P. Berrange wrote: > >From: "Daniel P. Berrange" > > > >The SDL video display code needs to convert between the SDL keyboard > >event keycodes, and QEMU's internal keycode set (a variant of the > >xt c

Re: [Qemu-devel] [PATCH 1/2] Rewrite the way keycode conversions are performed

2012-01-18 Thread Anthony Liguori
On 01/17/2012 01:35 PM, Daniel P. Berrange wrote: From: "Daniel P. Berrange" The SDL video display code needs to convert between the SDL keyboard event keycodes, and QEMU's internal keycode set (a variant of the xt coding). Currently the SDL code is only able todo this when it is built for X11,

Re: [Qemu-devel] [PATCH] grackle_pci: Clean up qdev names

2012-01-18 Thread Alexander Graf
On 01/18/2012 11:11 AM, Andreas Färber wrote: Rename SysBus device from 'grackle' to 'grackle-pcihost' to resolve a name conflict. Also mark both devices as no_user. Signed-off-by: Andreas Färber Cc: Alexander Graf Cc: Anthony Liguori Thanks, applied to ppc-next. Alex

Re: [Qemu-devel] [PATCH] MAINTAINERS: Add PCI-PCI bridge to New World Mac machine

2012-01-18 Thread Alexander Graf
On 01/18/2012 05:20 PM, Andreas Färber wrote: Signed-off-by: Andreas Färber Thanks, applied to ppc-next. Alex

Re: [Qemu-devel] [PATCH][RFC] arm: add secondary cpu book callbacks to arm_boot.c

2012-01-18 Thread Peter Maydell
On 18 January 2012 15:50, Mark Langsdorf wrote: > Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), > to allow platforms more control of how secondary CPUs are brought up. The > new functions default to NULL and aren't called unless they are populated > so there are no c

[Qemu-devel] [PATCH] PPC: Pseries: Check for PCI boundaries

2012-01-18 Thread Alexander Graf
We call pci_host_config_{read,write}_common() which perform PCI config accesses. However they don't do all limit checking the way we expect it to. So let's introduce a small wrapper around them, making them behave the way we would without touching generic code. This patch is based on a patch by D

[Qemu-devel] [PATCH] MAINTAINERS: Add PCI-PCI bridge to New World Mac machine

2012-01-18 Thread Andreas Färber
Signed-off-by: Andreas Färber --- MAINTAINERS |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index f7fc2ba..87237a6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -301,6 +301,7 @@ L: qemu-...@nongnu.org S: Maintained F: hw/ppc_newworld.c F: hw

Re: [Qemu-devel] [PATCH 3/6] qtest: add C version of test infrastructure

2012-01-18 Thread Anthony Liguori
On 01/18/2012 10:00 AM, Kevin Wolf wrote: Am 13.01.2012 19:32, schrieb Anthony Liguori: This also includes a qtest wrapper script to make it easier to launch qtest tests directly. Signed-off-by: Anthony Liguori +QTestState *qtest_init(const char *extra_args) +{ +QTestState *s; +struc

Re: [Qemu-devel] [PATCH 3/6] qtest: add C version of test infrastructure

2012-01-18 Thread Paolo Bonzini
On 01/18/2012 05:00 PM, Kevin Wolf wrote: > +do { > +sleep(1); This is the line that takes the greatest part of the time for make check-qtest. Can we use some shorter delay if it's required at all? You can use a client socket, listen before spawning QEMU and accept afterwards.

Re: [Qemu-devel] [PATCH 3/6] qtest: add C version of test infrastructure

2012-01-18 Thread Kevin Wolf
Am 13.01.2012 19:32, schrieb Anthony Liguori: > This also includes a qtest wrapper script to make it easier to launch qtest > tests directly. > > Signed-off-by: Anthony Liguori > +QTestState *qtest_init(const char *extra_args) > +{ > +QTestState *s; > +struct sockaddr_un addr; > +int

[Qemu-devel] [PATCH v4 2/6] block: add .bdrv_co_write_zeroes() interface

2012-01-18 Thread Stefan Hajnoczi
The ability to zero regions of an image file is a useful primitive for higher-level features such as image streaming or zero write detection. Image formats may support an optimized metadata representation instead of writing zeroes into the image file. This allows zero writes to be potentially fas

[Qemu-devel] [PATCH][RFC] arm: add secondary cpu book callbacks to arm_boot.c

2012-01-18 Thread Mark Langsdorf
Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), to allow platforms more control of how secondary CPUs are brought up. The new functions default to NULL and aren't called unless they are populated so there are no changes to existing platform models. Signed-off-by: Mark

[Qemu-devel] Compile QEMU for android

2012-01-18 Thread Spartacus Rex
Hi there, I am trying to get a version of qemu to compile for Android. Then I would like to boot debian-armel.. or even a minimal arm buildroot fs. I have so far tried compiling with NDK toolchain and codesourcery. You can build them, but either they seg-fault when you run them on Android or th

[Qemu-devel] [PATCH v4 1/6] cutils: extract buffer_is_zero() from qemu-img.c

2012-01-18 Thread Stefan Hajnoczi
The qemu-img.c:is_not_zero() function checks if a buffer contains all zeroes. This function will come in handy for zero-detection in the block layer, so clean it up and move it to cutils.c. Note that the function now returns true if the buffer is all zeroes. This avoids the double-negatives (i.e.

[Qemu-devel] [PATCH v4 3/6] block: perform zero-detection during copy-on-read

2012-01-18 Thread Stefan Hajnoczi
Copy-on-Read populates the image file with data read from a backing image. In order to avoid bloating the image file when all zeroes are read we should scan the buffer and perform an optimized zero write operation. Signed-off-by: Stefan Hajnoczi --- block.c | 14 +++--- 1 files change

Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-18 Thread Peter Maydell
On 18 January 2012 15:04, Mark Langsdorf wrote: > On 01/18/2012 08:53 AM, Peter Maydell wrote: >> Can you try something along those lines? > > I think so. I was worried about accessing some of the > arm_boot static variables but it doesn't look like > I'll need to do that. > > I'll do a quick refa

Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-18 Thread Mark Langsdorf
On 01/18/2012 08:53 AM, Peter Maydell wrote: > On 18 January 2012 14:35, Mark Langsdorf wrote: >> Is there a good example of how to write secondary smp boot >> code other than arm_boot.c? Should I just expect to pull >> most of arm_boot.c into highbank and adjust from there? I >> don't want to du

[Qemu-devel] [PATCH v4 5/6] qed: add .bdrv_co_write_zeroes() support

2012-01-18 Thread Stefan Hajnoczi
Zero writes are a dedicated interface for writing regions of zeroes into the image file. If clusters are not yet allocated it is possible to use an efficient metadata representation which keeps the image file compact and does not store individual zero bytes. Implementing this for the QED image fo

[Qemu-devel] [PATCH v4 0/6] block: zero writes

2012-01-18 Thread Stefan Hajnoczi
Note: This series has been rebased onto the image streaming series which is likely to get merged first. There are no significant changes to this series since v2. This series adds an interface for efficient writes when data contains all zeros. It also takes advantage of this new interface by exte

[Qemu-devel] [PATCH v4 4/6] qed: replace is_write with flags field

2012-01-18 Thread Stefan Hajnoczi
Per-request attributes like read/write are currently implemented as bool fields in the QEDAIOCB struct. This becomes unwiedly as the number of attributes grows. For example, the qed_aio_setup() function would have to take multiple bool arguments and at call sites it would be hard to distinguish t

[Qemu-devel] [PATCH v4 6/6] qemu-io: add write -z option for bdrv_co_write_zeroes

2012-01-18 Thread Stefan Hajnoczi
Extend the qemu-io write command with the -z option to call bdrv_co_write_zeroes(). Exposing the zero write interface from qemu-io allows us to write tests that exercise this new block layer interface. Signed-off-by: Stefan Hajnoczi --- qemu-io.c | 77 +

Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-18 Thread Peter Maydell
On 18 January 2012 14:35, Mark Langsdorf wrote: > I can set the smp_loader code so that I can boot 2 cpus > and verify their existence in /proc/cpuinfo, but I can't > get 3 cpus to boot at all, no matter how I hack the existing > arm_boot code. Right, multiple secondary cores requires multiple ad

[Qemu-devel] [PATCH v6 10/16] qmp: add query-block-jobs

2012-01-18 Thread Stefan Hajnoczi
Add query-block-jobs, which shows the progress of ongoing block device operations. Signed-off-by: Stefan Hajnoczi --- blockdev.c | 33 + hmp.c| 36 hmp.h|1 + monitor.c|7 ++

[Qemu-devel] [PATCH v6 09/16] qmp: add block_job_cancel command

2012-01-18 Thread Stefan Hajnoczi
Add block_job_cancel, which stops an active block streaming operation. When the operation has been cancelled the new BLOCK_JOB_CANCELLED event is emitted. Signed-off-by: Stefan Hajnoczi --- QMP/qmp-events.txt | 24 blockdev.c | 19 ++- hmp-com

[Qemu-devel] [PATCH][qtest] gitignore: ignore qtest binaries

2012-01-18 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- Please merge into the qtest patches so git-status(1) does not display test binaries. .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 406f75f..46dafea 100644 --- a/.gitignore +++ b/.gitignore @@ -

[Qemu-devel] [PATCH v6 16/16] test: add image streaming test cases

2012-01-18 Thread Stefan Hajnoczi
python test-stream.py Signed-off-by: Stefan Hajnoczi --- test-stream.py | 208 1 files changed, 208 insertions(+), 0 deletions(-) create mode 100644 test-stream.py diff --git a/test-stream.py b/test-stream.py new file mode 100644 index

[Qemu-devel] [PATCH v6 12/16] block: add bdrv_find_backing_image

2012-01-18 Thread Stefan Hajnoczi
From: Marcelo Tosatti Add bdrv_find_backing_image: given a BlockDriverState pointer, and an id, traverse the backing image chain to locate the id. Signed-off-by: Marcelo Tosatti Signed-off-by: Stefan Hajnoczi --- block.c | 18 ++ block.h |2 ++ 2 files changed, 20 insert

[Qemu-devel] [PATCH v6 14/16] block: add support for partial streaming

2012-01-18 Thread Stefan Hajnoczi
From: Marcelo Tosatti Add support for streaming data from an intermediate section of the image chain (see patch and documentation for details). Signed-off-by: Marcelo Tosatti Signed-off-by: Stefan Hajnoczi --- block/stream.c | 91 +-- bloc

  1   2   >