[Qemu-devel] [PATCH] qemu-ga: generate missing stubs for fsfreeze

2012-04-13 Thread Michael Roth
When linux-specific commands (including guest-fsfreeze-*) were consolidated under defined(__linux__), we forgot to account for the case where defined(__linux__) && !defined(FIFREEZE). As a result stubs are no longer being generated on linux hosts that don't have FIFREEZE support. Fix this. Signed-

Re: [Qemu-devel] qemu-ga link failure

2012-04-13 Thread Michael Roth
On Sat, Apr 14, 2012 at 02:48:14AM +0200, Andreas Färber wrote: > Hello, > > While testing my latest ppc series on ppc, I noticed a qemu-ga link > failure that I can't reproduce on my x64 box (identical commit): > > [...] > LINK ppc64-softmmu/qemu-system-ppc64 > CCqemu-ga.o > CCqga

[Qemu-devel] [PATCH] target-xtensa: add dc233c core

2012-04-13 Thread Max Filippov
This is Diamond 233L Standard Core Rev.C (LE), implemented through linux/gdb overlay. Signed-off-by: Max Filippov --- Makefile.target|1 + target-xtensa/core-dc233c.c| 28 ++ target-xtensa/core-dc233c/core-isa.h | 475

Re: [Qemu-devel] [PATCH 1/1 v3] Allow machines to configure the QEMU_VERSION that's exposed via hardware

2012-04-13 Thread Peter Maydell
On 13 April 2012 20:59, Crístian Viana wrote: >> If so, then you have a bug in >> nseries.c: sprintf() is asking for a buffer overflow.  Remember, >> QEMU_VERSION has a compile-time fixed length, but if qemu_get_version() >> is an arbitrary user string, you no longer have a guarantee that you fit

Re: [Qemu-devel] [PATCH 1/1 v3] Allow machines to configure the QEMU_VERSION that's exposed via hardware

2012-04-13 Thread Peter Maydell
On 13 April 2012 20:16, Crístian Viana wrote: > --- a/hw/usb/redirect.c > +++ b/hw/usb/redirect.c > @@ -141,8 +141,6 @@ static void usbredir_interrupt_packet(void *priv, > uint32_t id, >  static int usbredir_handle_status(USBRedirDevice *dev, >                                        int status, i

[Qemu-devel] [PATCH 3/5] target-xtensa: QOM'ify CPU

2012-04-13 Thread Max Filippov
From: Andreas Färber Embed CPUXtensaState as first member of XtensaCPU. Let CPUClass::reset() call cpu_state_reset() for now. Signed-off-by: Andreas Färber Signed-off-by: Max Filippov --- Makefile.target |1 + target-xtensa/cpu-qom.h | 80

[Qemu-devel] [PATCH 4/5] target-xtensa: QOM'ify CPU reset

2012-04-13 Thread Max Filippov
From: Andreas Färber Move code from cpu_state_reset() into QOM xtensa_cpu_reset(). To avoid moving reset_mmu() and dependencies, make it non-static. Signed-off-by: Andreas Färber Signed-off-by: Max Filippov --- target-xtensa/cpu.c| 12 +++- target-xtensa/cpu.h|1 + targe

[Qemu-devel] [PATCH 5/5] target-xtensa: Start QOM'ifying CPU init

2012-04-13 Thread Max Filippov
From: Andreas Färber Move XtensaConfig-independent code from cpu_xtensa_init() into a QOM initfn, as a start. Signed-off-by: Andreas Färber Signed-off-by: Max Filippov --- target-xtensa/cpu.c|9 + target-xtensa/helper.c |1 - 2 files changed, 9 insertions(+), 1 deletions(-

[Qemu-devel] [PATCH 1/5] target-xtensa: Move helpers.h to helper.h

2012-04-13 Thread Max Filippov
From: Lluís Vilanova Provides a file naming scheme consistent with other targets. Signed-off-by: Lluís Vilanova Signed-off-by: Max Filippov --- target-xtensa/helper.h| 39 +++ target-xtensa/helpers.h | 39 --- t

[Qemu-devel] [PATCH 2/5] target-xtensa: improve unit tests debugging

2012-04-13 Thread Max Filippov
- add testcase announcement; - add global symbols for individual tests; - add host-debug-* makefile target. Signed-off-by: Max Filippov --- tests/tcg/xtensa/Makefile |3 +++ tests/tcg/xtensa/macros.inc | 17 + 2 files changed, 20 insertions(+), 0 deletions(-) diff --git

[Qemu-devel] [PULL 0/5] target-xtensa queue

2012-04-13 Thread Max Filippov
The following changes since commit 7672725d41d1a04195affc1a7bd5676ba6314b14: Merge remote-tracking branch 'stefanha/trivial-patches' into staging (2012-04-13 08:04:43 -0500) are available in the git repository at: git://jcmvbkbc.spb.ru/dumb/qemu-xtensa.git xtensa Andreas Färber (3):

[Qemu-devel] qemu-ga link failure

2012-04-13 Thread Andreas Färber
Hello, While testing my latest ppc series on ppc, I noticed a qemu-ga link failure that I can't reproduce on my x64 box (identical commit): [...] LINK ppc64-softmmu/qemu-system-ppc64 CCqemu-ga.o CCqga/commands.o CCqga/guest-agent-command-state.o CCqga/commands-posix.o

[Qemu-devel] [PATCH v3 0/4] QOM'ify Power Architecture CPU

2012-04-13 Thread Andreas Färber
Hello David, This series merges my PowerPC QOM'ification v2 series with your TCG/KVM limitations patch. The finalizer is dropped for now, and cpu_ppc_close() drop has already been applied. If I don't hear objections I'm going to apply this modified version and will send a PULL for the ppc queue l

[Qemu-devel] [PATCH v3 4/4] target-ppc: QOM'ify CPU reset

2012-04-13 Thread Andreas Färber
Move code from cpu_state_reset() into ppc_cpu_reset(). Reorder #include of helper_regs.h to use it in translate_init.c. Adjust whitespace and add braces. Signed-off-by: Andreas Färber Acked-by: David Gibson --- target-ppc/helper.c | 45 +- targ

[Qemu-devel] [PATCH v3 1/4] target-ppc: Add hooks for handling tcg and kvm limitations

2012-04-13 Thread Andreas Färber
From: David Gibson On target-ppc, our table of CPU types and features encodes the features as found on the hardware, regardless of whether these features are actually usable under TCG or KVM. We already have cases where the information from the cpu table must be fixed up to account for limitatio

[Qemu-devel] [PATCH v3 3/4] target-ppc: Start QOM'ifying CPU init

2012-04-13 Thread Andreas Färber
Move code not dependent on ppc_def_t from cpu_ppc_init() into an initfn. Signed-off-by: Andreas Färber Acked-by: David Gibson [AF: Rebased on top of moved env->cpu_index fixup] --- target-ppc/helper.c |3 ++- target-ppc/translate_init.c |9 + 2 files changed, 11 insertio

[Qemu-devel] [PATCH v3 2/4] target-ppc: QOM'ify CPU

2012-04-13 Thread Andreas Färber
Embed CPUPPCState as first member of PowerPCCPU. Distinguish between "powerpc-cpu", "powerpc64-cpu" and "embedded-powerpc-cpu". Let CPUClass::reset() call cpu_state_reset() for now. Signed-off-by: Andreas Färber Acked-by: David Gibson --- target-ppc/cpu-qom.h| 77

[Qemu-devel] [PATCH v2 10/13] target-sh4: Make get_{physical, mmu}_address() take SuperHCPU

2012-04-13 Thread Andreas Färber
Simplifies TLB helper code. Signed-off-by: Andreas Färber --- target-sh4/helper.c | 49 + 1 files changed, 25 insertions(+), 24 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index 3653ece..d273097 100644 --- a/target-sh4/he

[Qemu-devel] [PATCH v2 01/13] target-sh4: QOM'ify CPU

2012-04-13 Thread Andreas Färber
Embed CPUSH4State as first member of SuperHCPU. Let CPUClass::reset() call cpu_state_reset() for now. Signed-off-by: Andreas Färber --- Makefile.target|1 + target-sh4/cpu-qom.h | 71 target-sh4/cpu.c | 60

[Qemu-devel] [PATCH v2 11/13] target-sh4: Make copy_utlb_entry_itlb() take SuperHCPU

2012-04-13 Thread Andreas Färber
Signed-off-by: Andreas Färber --- target-sh4/helper.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index d273097..ffe79ec 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -286,18 +286,18 @@ static void

[Qemu-devel] [PATCH v2 09/13] target-sh4: Make cpu_sh4_{read, write}_mmaped_{i, u}tlb_addr() take CPU

2012-04-13 Thread Andreas Färber
Change argument type to SuperHCPU and update the SH7750 SoC. Signed-off-by: Andreas Färber --- hw/sh7750.c | 16 ++-- target-sh4/cpu.h| 16 ++-- target-sh4/helper.c | 63 ++- 3 files changed, 48 insertions(+), 47 d

Re: [Qemu-devel] [PATCH 6/8] block: add the drive-reopen command

2012-04-13 Thread Eric Blake
On 04/13/2012 10:23 AM, Paolo Bonzini wrote: > From: Federico Simoncelli > > Signed-off-by: Federico Simoncelli > Signed-off-by: Paolo Bonzini > --- > blockdev.c | 75 > ++ > hmp-commands.hx | 16 > hmp.c|

[Qemu-devel] [PATCH v2 02/13] target-sh4: QOM'ify CPU reset

2012-04-13 Thread Andreas Färber
Move code from cpu_state_reset() to QOM superh_cpu_reset(). Signed-off-by: Andreas Färber --- target-sh4/cpu.c | 21 - target-sh4/translate.c | 22 ++ 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/target-sh4/cpu.c b/target-sh4/

[Qemu-devel] [PATCH v2 13/13] target-sh4: Make itlb_replacement() use SuperHCPU

2012-04-13 Thread Andreas Färber
Signed-off-by: Andreas Färber --- target-sh4/helper.c | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index c5c0593..c291eee 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -227,17 +227,21 @@ static

[Qemu-devel] [PATCH v2 00/13] QOM'ify SuperH CPU

2012-04-13 Thread Andreas Färber
Hello, This series converts the SuperH CPU to QOM. Subclasses and the controversial QOM'ification of the SH7750 SoC are postponed. I tested it using the sh-test-0.2 test image. Patches 1-3 do the actual CPU QOM'ification, introducing SuperHCPU. Patch 4 is a bugfix noticed during QOM'ification. P

Re: [Qemu-devel] [PATCH 5/8] block: add drive-mirror command

2012-04-13 Thread Eric Blake
On 04/13/2012 10:23 AM, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > +flags = bs->open_flags | BDRV_O_RDWR; > +source = bs->backing_hd; > +/* create new image w/backing file */ > +if (full && mode != NEW_IMAGE_MODE_EXISTING) { > +assert(format && drv); > +

[Qemu-devel] [PATCH v2 03/13] target-sh4: Start QOM'ifying CPU init

2012-04-13 Thread Andreas Färber
Move code from cpu_sh4_init() into a QOM initfn. Signed-off-by: Andreas Färber --- target-sh4/cpu.c | 13 + target-sh4/translate.c |3 --- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/target-sh4/cpu.c b/target-sh4/cpu.c index 062d737..948cfac 100644 ---

[Qemu-devel] [PATCH v2 07/13] target-sh4: Make increment_urc() take SuperHCPU

2012-04-13 Thread Andreas Färber
Signed-off-by: Andreas Färber --- target-sh4/helper.c | 23 --- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index 655faaa..2d5a4e4 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -269,17 +269,18 @@

[Qemu-devel] [PATCH 2/2] [trivial] Simpler handling of tracetool-generated files in makefiles

2012-04-13 Thread Lluís Vilanova
Adds 'tracetool-gen' to generate files with tracetool into a temporary file, and 'tracetool-ci' to "commit" the generation from the temporaty file into the actual destination file if there were any changes in the produced file. Signed-off-by: Lluís Vilanova --- Makefile.objs | 19 +

[Qemu-devel] [PATCH 0/2] [trivial] More concise handling of tracetool-generated files

2012-04-13 Thread Lluís Vilanova
Some trivial changes to handle tracetool-generated files more concisely. Signed-off-by: Lluís Vilanova --- NOTE: Applies on top of the tracetool rewrite. Lluís Vilanova (2): [trivial] Generic elimination of auto-generated files [trivial] Simpler handling of tracetool-generated files

[Qemu-devel] [PATCH 1/2] [trivial] Generic elimination of auto-generated files

2012-04-13 Thread Lluís Vilanova
Signed-off-by: Lluís Vilanova --- Makefile |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 135cb72..8179966 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ ifeq ($(TRACE_BACKEND),dtrace) GENERATED_HEADERS += trace-dtrace.h endif G

Re: [Qemu-devel] [Qemu-ppc] [PATCH 1/4] target-ppc: Add hooks for handling tcg and kvm limitations

2012-04-13 Thread Andreas Färber
Am 04.04.2012 07:02, schrieb David Gibson: > On target-ppc, our table of CPU types and features encodes the features as > found on the hardware, regardless of whether these features are actually > usable under TCG or KVM. We already have cases where the information from > the cpu table must be fix

[Qemu-devel] [PATCH v2 06/13] target-sh4: Make cpu_sh4_invalidate_tlb() take SuperHCPU

2012-04-13 Thread Andreas Färber
Change argument type from CPUSH4State to SuperHCPU. This simplifies the SH7750 SoC as its only caller. Signed-off-by: Andreas Färber --- hw/sh7750.c |2 +- target-sh4/cpu.h|4 +++- target-sh4/helper.c |8 3 files changed, 8 insertions(+), 6 deletions(-) diff --g

[Qemu-devel] [PATCH v2 05/13] hw/sh7750: Use SuperHCPU

2012-04-13 Thread Andreas Färber
In place of CPUSH4State use SuperHCPU for SH7750State::cpu field. Fix tab indentation on those lines and add braces. Signed-off-by: Andreas Färber --- hw/sh7750.c | 69 ++- 1 files changed, 35 insertions(+), 34 deletions(-) diff --git a

[Qemu-devel] [PATCH v2 08/13] target-sh4: Make find_*tlb_entry() take SuperHCPU

2012-04-13 Thread Andreas Färber
Signed-off-by: Andreas Färber --- target-sh4/helper.c | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index 2d5a4e4..d2186ed 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -243,15 +243,

[Qemu-devel] [Bug 965327] Re: virtio-pci: can't reserve io 0x0000-0x001f

2012-04-13 Thread Kenneth Salerno
This might be easier to read and understand: GOOD Populating /pci@0,0 Adapters on 00 (D) : 1af4 1000 virtio [ net ] 00 0800 (D) : 1af4 1001 virtio [ block ] ... PCI host bridge /pci@0,0 ranges: IO 0x01008000.

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 1/5] target-ppc: Drop cpu_ppc_close()

2012-04-13 Thread Andreas Färber
Am 10.04.2012 00:44, schrieb David Gibson: > On Fri, Apr 06, 2012 at 06:17:08PM +0200, Andreas Färber wrote: >> It is unused, so avoid QOM'ifying it unneededly. >> >> Signed-off-by: Andreas Färber > > Acked-by: David Gibson Thanks, applied to ppc-next: http://repo.or.cz/w/qemu/agraf.git/shortlo

Re: [Qemu-devel] [PATCH 7/8] block: add witness argument to drive-reopen

2012-04-13 Thread Eric Blake
On 04/13/2012 10:23 AM, Paolo Bonzini wrote: > Management needs a way for QEMU to confirm that no I/O has been sent to the > target and not to the source. To provide this guarantee we rely on a file > in local persistent storage. QEMU receives a file descriptor via SCM_RIGHTS > and writes a singl

Re: [Qemu-devel] [PATCH v8 0/8] Rewrite tracetool using python modules

2012-04-13 Thread Lluís Vilanova
Stefan Hajnoczi writes: > Excellent, thank you! > There was a conflict qemu.git/master and Patch 1 which I have tried to > resolve. I also added commit descriptions to the first and last patches > to capture the rationale behind these changes. > Please check the tracing tree to confirm that you

[Qemu-devel] [PATCH v2 12/13] target-sh4: Make update_itlb_use() take SuperHCPU

2012-04-13 Thread Andreas Färber
Signed-off-by: Andreas Färber --- target-sh4/helper.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/target-sh4/helper.c b/target-sh4/helper.c index ffe79ec..c5c0593 100644 --- a/target-sh4/helper.c +++ b/target-sh4/helper.c @@ -202,7 +202,7 @@ void do_interrupt

[Qemu-devel] [PATCH v2 04/13] target-sh4: Do not reset CPU feature flags on reset

2012-04-13 Thread Andreas Färber
Move them out of CPUSH4State so that they are not zero'ed on reset. Signed-off-by: Andreas Färber --- hw/sh7750.c|5 +++-- target-sh4/cpu-qom.h |3 +++ target-sh4/cpu.h |3 --- target-sh4/translate.c |5 +++-- 4 files changed, 9 insertions(+), 7 deletions(-)

Re: [Qemu-devel] [PATCH 8/8] docs: add mirroring to live block operations

2012-04-13 Thread Eric Blake
On 04/13/2012 02:41 PM, Paolo Bonzini wrote: >> On 04/13/2012 11:32 AM, Paolo Bonzini wrote: >>> Il 13/04/2012 19:09, Eric Blake ha scritto: >> +It is also possible to use raw as the format of the destination >> image. >> +Converting an image to raw will properly support thin >> pro

Re: [Qemu-devel] [PATCH 8/8] docs: add mirroring to live block operations

2012-04-13 Thread Paolo Bonzini
> On 04/13/2012 11:32 AM, Paolo Bonzini wrote: > > Il 13/04/2012 19:09, Eric Blake ha scritto: > +It is also possible to use raw as the format of the destination > image. > +Converting an image to raw will properly support thin > provisioning. > >> Do you need to mention the use

Re: [Qemu-devel] [PATCH 5/8] block: add drive-mirror command

2012-04-13 Thread Eric Blake
On 04/13/2012 10:23 AM, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > blockdev.c | 102 > -- > hmp-commands.hx | 21 +++ > hmp.c| 26 ++ > hmp.h|1 + > qapi-schema.json |

[Qemu-devel] [PATCH v2] sdl: Add QEMU mascot icon for use with SDL

2012-04-13 Thread Stefan Weil
This is a bitmap file (32x32x4) derived from the official QEMU mascot (which was designed by Benoît Canet). I stripped the text from the SVG to get a nearly square image and converted the result to BMP without any manual optimization. The bitmap is currently used by QEMU's SDL interface and replac

Re: [Qemu-devel] [PATCH, repost] qemu-keymaps: Finnish keyboard mapping broken

2012-04-13 Thread Anthony Liguori
On 04/04/2012 07:34 AM, Michael Tokarev wrote: As mentioned in http://bugs.debian.org/660154 , finnish keyboard mapping is kind of broken. Fix it as Timo Sirainen suggests in #660154. Needs a Signed-off-by. Regards, Anthony Liguori index 2a4e0f0..4be7586 100644 --- a/pc-bios/keymaps/fi +++

Re: [Qemu-devel] [PATCH 1/1 v3] Allow machines to configure the QEMU_VERSION that's exposed via hardware

2012-04-13 Thread Crístian Viana
On 13-04-2012 16:26, Eric Blake wrote: > qemu_get_version returns whatever string got put there by > qemu_set_version. Am I correct that the user has full control over the > string passed to qemu_set_version? Actually, this is not available to the user, the string passed to that function is suppo

Re: [Qemu-devel] [PATCH 1/1 v3] Allow machines to configure the QEMU_VERSION that's exposed via hardware

2012-04-13 Thread Eric Blake
On 04/13/2012 01:16 PM, Crístian Viana wrote: > Based on the following conversation: > > http://mid.gmane.org/4f69f05b.5010...@codemonkey.ws > >> Which reminds me - qemu sticks the release version in >> guest visible places like CPU version. >> This is wrong and causes windows guests to print mes

[Qemu-devel] [PATCH 1/1 v3] Allow machines to configure the QEMU_VERSION that's exposed via hardware

2012-04-13 Thread Crístian Viana
Based on the following conversation: http://mid.gmane.org/4f69f05b.5010...@codemonkey.ws > Which reminds me - qemu sticks the release version in > guest visible places like CPU version. > This is wrong and causes windows guests to print messages > about driver updates when you switch. > We should

Re: [Qemu-devel] [RFC PATCH 0/8] job-based mirroring implementation

2012-04-13 Thread Eric Blake
On 04/13/2012 12:03 PM, Eric Blake wrote: > On 04/13/2012 10:23 AM, Paolo Bonzini wrote: >> Hi all, >> >> this is an alternative implementation of mirroring using a block job. >> In the end this is the same as Marcelo's original live block copy code, >> only done on top of the job infrastructure an

[Qemu-devel] [PATCH] xen_disk: use bdrv_aio_flush instead of bdrv_flush

2012-04-13 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini --- hw/xen_disk.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 84ca76e..3e4a47b 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -324,9 +324,6 @@ static void qemu_aio_complete(void *opaq

[Qemu-devel] [PATCH v6 3/5] timers: the rearm function should be able to handle delta = INT64_MAX

2012-04-13 Thread Stefano Stabellini
Fix win32_rearm_timer and mm_rearm_timer: they should be able to handle INT64_MAX as a delta parameter without overflowing. Also, the next deadline in ms should be calculated rounding down rather than up (see unix_rearm_timer and dynticks_rearm_timer). Finally ChangeTimerQueueTimer takes an unsign

[Qemu-devel] [PATCH v6 5/5] main_loop_wait: block indefinitely

2012-04-13 Thread Stefano Stabellini
- remove qemu_calculate_timeout; - explicitly size timeout to uint32_t; - introduce slirp_update_timeout; - pass NULL as timeout argument to select in case timeout is the maximum value; Signed-off-by: Stefano Stabellini Acked-by: Paul Brook --- async.c |2 +- main-loop.c |

[Qemu-devel] [PATCH v6 4/5] qemu_next_alarm_deadline: check the expire time of a clock only if it is enabled

2012-04-13 Thread Stefano Stabellini
Also delta in qemu_next_alarm_deadline is a 64 bit value so set the default to INT64_MAX instead of INT32_MAX. Signed-off-by: Stefano Stabellini --- qemu-timer.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index fe4cd6f..1166beb 1

[Qemu-devel] [PATCH v6 1/5] xen: do not initialize the interval timer and PCSPK emulator

2012-04-13 Thread Stefano Stabellini
PIT and PCSPK are emulated by the hypervisor so we don't need to emulate them in Qemu: this patch prevents Qemu from waking up needlessly at PIT_FREQ on Xen. Signed-off-by: Stefano Stabellini --- hw/pc.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/pc.c b/h

[Qemu-devel] [PATCH v6 2/5] xen: disable rtc_clock

2012-04-13 Thread Stefano Stabellini
rtc_clock is only used by the RTC emulator (mc146818rtc.c), however Xen has its own RTC emulator in the hypervisor so we can disable it. Signed-off-by: Stefano Stabellini --- xen-all.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-all.c index 3e6de41

[Qemu-devel] [PATCH v6 0/5] prevent QEMU from waking up needlessly

2012-04-13 Thread Stefano Stabellini
Hi all, this small patch series prevents QEMU from waking up needlessly on Xen several times a second in order to check some timers. The first patch stops QEMU from emulating the PIT on Xen, the second patch disables the rtc_clock entirely. The third patch fixes win32_rearm_timer and mm_rearm_t

Re: [Qemu-devel] [PATCH 8/8] docs: add mirroring to live block operations

2012-04-13 Thread Eric Blake
On 04/13/2012 11:32 AM, Paolo Bonzini wrote: > Il 13/04/2012 19:09, Eric Blake ha scritto: +It is also possible to use raw as the format of the destination image. +Converting an image to raw will properly support thin provisioning. >> Do you need to mention the use of block_job_cancel nee

Re: [Qemu-devel] [RFC PATCH 0/8] job-based mirroring implementation

2012-04-13 Thread Eric Blake
On 04/13/2012 10:23 AM, Paolo Bonzini wrote: > Hi all, > > this is an alternative implementation of mirroring using a block job. > In the end this is the same as Marcelo's original live block copy code, > only done on top of the job infrastructure and coroutines. Here, the > drive-mirror command

[Qemu-devel] [PULL] Xen MSI, mapcache, xen_disk

2012-04-13 Thread Stefano Stabellini
Hi Anthony, please pull the following branch: git://xenbits.xen.org/people/sstabellini/qemu-dm.git for_anthony It includes two mapcache fixes, one xen_disk fix, two patches to allow MSI injection into HVM guests and finally a patch to receive notification from Xen for buffered io events: Antho

Re: [Qemu-devel] [PATCH 8/8] docs: add mirroring to live block operations

2012-04-13 Thread Paolo Bonzini
Il 13/04/2012 19:09, Eric Blake ha scritto: >> > +It is also possible to use raw as the format of the destination image. >> > +Converting an image to raw will properly support thin provisioning. > Do you need to mention the use of block_job_cancel needed at the point > where you are ready to stop q

[Qemu-devel] [PATCH 1/8] block: introduce new dirty bitmap functionality

2012-04-13 Thread Paolo Bonzini
Assert that write_compressed is never used with the dirty bitmap. Setting the bits early is wrong, because a coroutine might concurrently examine them and copy incomplete data from the source. Signed-off-by: Paolo Bonzini --- block.c | 51 +-- bl

Re: [Qemu-devel] [PATCH 8/8] docs: add mirroring to live block operations

2012-04-13 Thread Eric Blake
On 04/13/2012 10:23 AM, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > docs/live-block-ops.txt | 38 +++--- > 1 file changed, 31 insertions(+), 7 deletions(-) > > > +Live block migration > + > + > +Migrating an in use image to

[Qemu-devel] [PATCH 6/8] block: add the drive-reopen command

2012-04-13 Thread Paolo Bonzini
From: Federico Simoncelli Signed-off-by: Federico Simoncelli Signed-off-by: Paolo Bonzini --- blockdev.c | 75 ++ hmp-commands.hx | 16 hmp.c| 11 hmp.h|1 + qapi-schema.json |

[Qemu-devel] Reminder: Upcoming soft freeze for 1.1

2012-04-13 Thread Anthony Liguori
Hi, Just a friendly reminder that this Sunday (April 15th) is the scheduled soft freeze for 1.1. The full 1.1 release schedule is available at. If you have any questions about the upcoming dates, please don't hesitate to ask. Happy hacking! http://wiki.qemu.org/Planning/1.1 == What is the

[Qemu-devel] [PATCH 7/8] block: add witness argument to drive-reopen

2012-04-13 Thread Paolo Bonzini
Management needs a way for QEMU to confirm that no I/O has been sent to the target and not to the source. To provide this guarantee we rely on a file in local persistent storage. QEMU receives a file descriptor via SCM_RIGHTS and writes a single byte to it. If it fails, it will fail the drive-re

Re: [Qemu-devel] [Qemu-ppc] [PATCHv3] PPC: Fix interrupt MSR value for classic exception models.

2012-04-13 Thread Mark Cave-Ayland
On 11/04/12 02:08, David Gibson wrote: Hi David, Commit 41557447d30eeb944e42069513df13585f5e6c7f introduced a new method of calculating the MSR for the interrupt context. However this doesn't quite agree with the PowerISA 2.06B specification (pp. 811-814) since too many bits were being cleared.

[Qemu-devel] [Bug 935945] Re: SLIRP still not working for win32

2012-04-13 Thread Paolo Bonzini
Yes, I forgot to update the bug. Thanks for testing! :) ** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/935945 Title: SLIRP still not working

[Qemu-devel] [Bug 916720] Re: select fails on windows because a non-socket fd is in the rfds set

2012-04-13 Thread Paolo Bonzini
** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/916720 Title: select fails on windows because a non-socket fd is in the rfds set Status in QEM

[Qemu-devel] [PATCH 5/8] block: add drive-mirror command

2012-04-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- blockdev.c | 102 -- hmp-commands.hx | 21 +++ hmp.c| 26 ++ hmp.h|1 + qapi-schema.json | 30 qmp-commands.hx | 36 ++

[Qemu-devel] [PATCH 4/8] block: add mirror job

2012-04-13 Thread Paolo Bonzini
This patch adds the implementation of a new job that mirrors a disk to a new image while letting the guest continue using the old image. The target is treated as a "black box" and data is copied from the source to the target in the background. The mirror job is never-ending, but it is logically st

[Qemu-devel] [PATCH 3/8] block: allow doing I/O in a job after cancellation

2012-04-13 Thread Paolo Bonzini
Track the coroutine that executes the job, so that the wait can be cancelled before block_job_cancel restarts. This also gives to the coroutine an opportunity to flip job->busy to true, and submit new I/O before exiting. block_job_cancel_sync will wait for job->busy to become false again. Also d

[Qemu-devel] [PATCH 8/8] docs: add mirroring to live block operations

2012-04-13 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- docs/live-block-ops.txt | 38 +++--- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/docs/live-block-ops.txt b/docs/live-block-ops.txt index a257087..caf3466 100644 --- a/docs/live-block-ops.txt +++ b/docs/live-bloc

[Qemu-devel] [PATCH 2/8] block: allow interrupting a co_sleep_ns

2012-04-13 Thread Paolo Bonzini
In the next patch we want to reenter the coroutine from block_job_cancel_sync and cancel the timer. Signed-off-by: Paolo Bonzini --- qemu-coroutine-sleep.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu-coroutine-sleep.c b/qemu-coroutine-sleep.c index fd65274..d708

[Qemu-devel] [RFC PATCH 0/8] job-based mirroring implementation

2012-04-13 Thread Paolo Bonzini
Hi all, this is an alternative implementation of mirroring using a block job. In the end this is the same as Marcelo's original live block copy code, only done on top of the job infrastructure and coroutines. Here, the drive-mirror command sets up a job that copies data using the existing dirty-b

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

2012-04-13 Thread Anthony Liguori
On 04/12/2012 08:32 PM, Marcelo Tosatti wrote: The following changes since commit dadc1064c348545695b8a14d9dc72ccaa2983be7: target-microblaze: added PetaLogix copyright (2012-04-12 09:56:51 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git u

Re: [Qemu-devel] [PULL 0/6] Trivial patches for 4 to 13 April 2012

2012-04-13 Thread Anthony Liguori
On 04/13/2012 04:39 AM, Stefan Hajnoczi wrote: The following changes since commit dadc1064c348545695b8a14d9dc72ccaa2983be7: target-microblaze: added PetaLogix copyright (2012-04-12 09:56:51 +0200) Pulled. Thanks. Regards, Anthony Liguori are available in the git repository at: git

Re: [Qemu-devel] [PULL] QOM CPUState for lm32

2012-04-13 Thread Anthony Liguori
On 04/11/2012 06:19 PM, Andreas Färber wrote: Hello Anthony, Blue or Edgar, Please pull the lm32 QOM CPU conversion. Cc: Anthony Liguori Cc: Blue Swirl Cc: Edgar E. Iglesias Cc: Michael Walle Pulled. Thanks. Regards, Anthony Liguori The following changes since commit c1958aea51a14199d0

[Qemu-devel] [Bug 935945] Re: SLIRP still not working for win32

2012-04-13 Thread Kenneth Salerno
SLIRP is now currently WORKING for win32 in qemu.org git master as of Apr 13 2012 10:20 Eastern. The last time I checked unsuccessfully with things still broken was earlier in the week, probably April 9th, I don't remember exactly, but the fix was definitely committed this week. Thanks!!! -- You

Re: [Qemu-devel] [PATCH v2] qom: Introduce object_realize_nofail()

2012-04-13 Thread Anthony Liguori
On 04/13/2012 09:21 AM, Andreas Färber wrote: Am 13.04.2012 16:08, schrieb Paolo Bonzini: Il 13/04/2012 16:06, Andreas Färber ha scritto: I'm still talking about the (pretty clear to me) graph that I posted. There, object A's init function creates a new qdev object - . Creating an object can fa

Re: [Qemu-devel] [PATCH v2] qom: Introduce object_realize_nofail()

2012-04-13 Thread Anthony Liguori
On 04/13/2012 09:06 AM, Andreas Färber wrote: Am 13.04.2012 16:00, schrieb Anthony Liguori: On 04/13/2012 08:36 AM, Andreas Färber wrote: Am 13.04.2012 09:17, schrieb Paolo Bonzini: initfn is unable to handle errors btw, which is another reason to do object creations in a second-stage construc

[Qemu-devel] [PATCH] qapi: g_hash_table_find() instead of GHashTableIter.

2012-04-13 Thread NODA, Kai
From: "NODA, Kai" GHashTableIter was first introduced in glib 2.16. This patch removes it in favor of older g_hash_table_find() for better compatibility with RHEL5. --- qapi/qmp-input-visitor.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/qapi/

Re: [Qemu-devel] Fiber switching and stack protection

2012-04-13 Thread Bob Breuer
On 4/13/2012 6:25 AM, Pavel Dovgaluk wrote: >> -Original Message- >> From: Paolo Bonzini [mailto:pbonz...@redhat.com] >> Sent: Thursday, April 12, 2012 8:57 PM >> To: Stefan Weil >> Cc: Kevin Wolf; 'qemu-devel'; Pavel Dovgaluk >> Subject: Re: [Qemu-devel] Fiber switching and stack protectio

Re: [Qemu-devel] [PATCH v2] qom: Introduce object_realize_nofail()

2012-04-13 Thread Andreas Färber
Am 13.04.2012 16:25, schrieb Paolo Bonzini: > Il 13/04/2012 16:21, Andreas Färber ha scritto: >> Am 13.04.2012 16:08, schrieb Paolo Bonzini: >>> Il 13/04/2012 16:06, Andreas Färber ha scritto: I'm still talking about the (pretty clear to me) graph that I posted. There, object A's init fun

[Qemu-devel] [PATCH 12/16] hw/arm11mpcore: Convert to using sysbus GIC device

2012-04-13 Thread Peter Maydell
Convert arm11mpcore to using the standalone sysbus GIC device. Signed-off-by: Peter Maydell --- hw/arm11mpcore.c | 49 ++--- 1 files changed, 30 insertions(+), 19 deletions(-) diff --git a/hw/arm11mpcore.c b/hw/arm11mpcore.c index e876a0e..c528d7a 1

Re: [Qemu-devel] [PATCH 07/26] block: add the support to drain throttled requests

2012-04-13 Thread Zhi Yong Wu
On Fri, Apr 13, 2012 at 5:59 PM, Paolo Bonzini wrote: > Il 13/04/2012 11:52, Zhi Yong Wu ha scritto: >>> > FWIW, live snapshot during guest boot (block_set_io_throttle ide0-hd0 0 >>> > 50 50 0 50 50) died immediately without the patches. >>> > With the patch I could do 20 snapshots

[Qemu-devel] [PATCH 05/16] hw/arm_gic: Move gic_get_current_cpu into arm_gic.c

2012-04-13 Thread Peter Maydell
Move the gic_get_current_cpu() function into arm_gic.c. There are only two implementations: (1) "get the index of the currently executing CPU", used by all multicore GICs, and (2) "always 0", used by all GICs instantiated with a single CPU interface (the Realview board GIC and the v7M NVIC). So we

[Qemu-devel] [RFC PATCH 3/3] qtest: add virtio-test test-case

2012-04-13 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- tests/Makefile |3 +- tests/virtio-test.c | 88 +++ 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 tests/virtio-test.c diff --git a/tests/Makefile b/tests/Makefile index a98a848..f

[Qemu-devel] [RFC PATCH 2/3] virtio: move virtio spec constants to separate headers

2012-04-13 Thread Stefan Hajnoczi
Tests that exercise virtio devices require the same constants we use to implement virtio device emulation. Move these constants into their own header files, thus allowing them to be used by test programs. Signed-off-by: Stefan Hajnoczi --- hw/9pfs/virtio-9p-device.c |1 + hw/virtio-defs.h

[Qemu-devel] [RFC PATCH 0/3] qtest: libpci and virtio demo testcase

2012-04-13 Thread Stefan Hajnoczi
This RFC series shows how I'm using qtest to implement virtio device test cases. The main pieces are: 1. libpci is a thin PCI device wrapper that makes it possible to access configuration space and map BARs. There is stuff missing, I have not dealt with MMIO or interrupts yet. But this mi

[Qemu-devel] [RFC PATCH 1/3] tests: add libpci qtest library

2012-04-13 Thread Stefan Hajnoczi
This patch adds a common PCI bus driver library which works for i386/x86-64 targets. Tests can use the library to probe for PCI devices, map BARs, and access configuration space. Signed-off-by: Stefan Hajnoczi --- tests/libpci.c | 106 t

Re: [Qemu-devel] [PATCH v2] qom: Introduce object_realize_nofail()

2012-04-13 Thread Paolo Bonzini
Il 13/04/2012 16:21, Andreas Färber ha scritto: > Am 13.04.2012 16:08, schrieb Paolo Bonzini: >> Il 13/04/2012 16:06, Andreas Färber ha scritto: >>> I'm still talking about the (pretty clear to me) graph that I posted. >>> There, object A's init function creates a new qdev object - . Creating >>> a

[Qemu-devel] [PATCH 09/16] hw/a9mpcore: Switch to using sysbus GIC

2012-04-13 Thread Peter Maydell
Switch the a9mpcore to using the sysbus GIC device rather than having the a9mp private memory region device subclass the GIC. Signed-off-by: Peter Maydell --- hw/a9mpcore.c | 60 +--- 1 files changed, 35 insertions(+), 25 deletions(-) diff -

[Qemu-devel] [PATCH 07/16] hw/arm_gic: Make the GIC its own sysbus device

2012-04-13 Thread Peter Maydell
Compile arm_gic.c as a standalone C file to produce a self contained sysbus GIC device. Support the legacy usage by #include of the .c file by making those users #define LEGACY_INCLUDED_GIC, so we can convert them one by one. Signed-off-by: Peter Maydell Reviewed-by: Evgeny Voevodin --- Makefil

Re: [Qemu-devel] [PATCH v2] qom: Introduce object_realize_nofail()

2012-04-13 Thread Andreas Färber
Am 13.04.2012 16:08, schrieb Paolo Bonzini: > Il 13/04/2012 16:06, Andreas Färber ha scritto: >> I'm still talking about the (pretty clear to me) graph that I posted. >> There, object A's init function creates a new qdev object - . Creating >> an object can fail - fatally or non-fatally. >> >> And

[Qemu-devel] [PATCH 04/16] hw/arm_gic: Move NCPU definition to arm_gic.c

2012-04-13 Thread Peter Maydell
Move the NCPU definition to arm_gic.c: the maximum number of CPU interfaces is defined by the GIC architecture specification to be 8, so we don't need to have this #define in each of the sources files which currently includes arm_gic.c. Signed-off-by: Peter Maydell Reviewed-by: Evgeny Voevodin -

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

2012-04-13 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- .gitignore |1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 9859c7d..db74219 100644 --- a/.gitignore +++ b/.gitignore @@ -89,3 +89,4 @@ cscope.* tags TAGS *~ +tests/*-test -- 1.7.9.5

[Qemu-devel] [PATCH 08/16] hw/a15mpcore: switch to using sysbus GIC

2012-04-13 Thread Peter Maydell
Switch the a15mpcore private peripheral region to using the standalone sysbus GIC device. Signed-off-by: Peter Maydell --- hw/a15mpcore.c | 35 ++- 1 files changed, 26 insertions(+), 9 deletions(-) diff --git a/hw/a15mpcore.c b/hw/a15mpcore.c index 54c0dbf..5a7

Re: [Qemu-devel] [PATCH v2] qom: Introduce object_realize_nofail()

2012-04-13 Thread Paolo Bonzini
Il 13/04/2012 16:06, Andreas Färber ha scritto: > I'm still talking about the (pretty clear to me) graph that I posted. > There, object A's init function creates a new qdev object - . Creating > an object can fail - fatally or non-fatally. > > And yes, exactly my point, currently initfn (first sta

[Qemu-devel] [PATCH 10/16] hw/realview_gic: switch to sysbus GIC

2012-04-13 Thread Peter Maydell
Switch the realview_gic device to the standalone sysbus GIC. Signed-off-by: Peter Maydell --- hw/realview_gic.c | 38 ++ 1 files changed, 26 insertions(+), 12 deletions(-) diff --git a/hw/realview_gic.c b/hw/realview_gic.c index a3b5a04..5bc37a7 100644 ---

  1   2   >