Re: [Qemu-devel] [PATCH] Remove line buffering from log file

2011-09-28 Thread Peter Chubb
> "Stefan" == Stefan Weil writes: Stefan> Am 29.09.2011 04:43, schrieb Peter Chubb: >> >> This patch was originally written by Bernard Blackham, and modified >> by Peter Chubb. >> >> From 0d755af2f5bef22432da71f2fe0a9dce7d2882cd Mon Sep 17 00:00:00 >> 2001 From: Bernard Blackham Date: >> F

Re: [Qemu-devel] [PATCH] Remove line buffering from log file

2011-09-28 Thread Stefan Weil
Am 29.09.2011 04:43, schrieb Peter Chubb: This patch was originally written by Bernard Blackham, and modified by Peter Chubb. From 0d755af2f5bef22432da71f2fe0a9dce7d2882cd Mon Sep 17 00:00:00 2001 From: Bernard Blackham Date: Fri, 24 Jul 2009 13:38:03 +1000 Subject: Disable line-based log buff

Re: [Qemu-devel] [Qemu-ppc] [PATCH 50/58] pseries: Update SLOF firmware image

2011-09-28 Thread David Gibson
On Tue, Sep 27, 2011 at 08:39:51AM +0200, Alexander Graf wrote: > > Am 27.09.2011 um 03:01 schrieb David Gibson : > > > On Sat, Sep 24, 2011 at 02:45:20PM +0200, Paolo Bonzini wrote: > >> On 09/20/2011 05:40 AM, David Gibson wrote: > >>> Ah, yes, here's the point. Updating git.qemu.org is not wi

[Qemu-devel] [PATCH] pseries: Update SLOF firmware image

2011-09-28 Thread David Gibson
This patch updates the SLOF submodule and recompiled image. The new SLOF versions contains two changes of note: * The previous SLOF has a bug in SCSI condition handling that was exposed by recent updates to qemu's SCSI emulation. This update fixes the bug. * The previous SLOF has a bug

Re: [Qemu-devel] When the tlb_fill will be called from generated code?

2011-09-28 Thread 陳韋任
> glad that my -save-temps suggestion helps other ;) Indeed. Thanks again, Mulyadi. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667

Re: [Qemu-devel] When the tlb_fill will be called from generated code?

2011-09-28 Thread Mulyadi Santosa
Hi :) 2011/9/28 陳韋任 : >  I see. Thanks, and I find building QEMU with --extra-cflags="-save-temps" > is really help. Those *.i files make things much clear. glad that my -save-temps suggestion helps other ;) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.b

Re: [Qemu-devel] Networking problem

2011-09-28 Thread Mulyadi Santosa
Hi... On Wed, Sep 28, 2011 at 20:18, Giovanni Formisano wrote: > I launch in this way the machine > HEADNODE > qemu-system-x86_64 -hda HeadNode.img -m 1024 -net > nic,model=virtio,macaddr=00:16:3e:75:09:aa -net tap,ifname=tap0,script=no > -vga vmware -net nic,model=rtl8139,macaddr=00:16:3e:74:08:

[Qemu-devel] [PATCH] pseries: Implement set-time-of-day RTAS function

2011-09-28 Thread David Gibson
From: Breno Leitao Currently there is no implementation for set-time-of-day rtas function, which causes the following warning "setting the clock failed (-1)" on the guest. This patch just creates this function, get the timedate diff and store in the papr environment, so that the correct value wi

[Qemu-devel] [PATCH] Remove line buffering from log file

2011-09-28 Thread Peter Chubb
This patch was originally written by Bernard Blackham, and modified by Peter Chubb. From 0d755af2f5bef22432da71f2fe0a9dce7d2882cd Mon Sep 17 00:00:00 2001 From: Bernard Blackham Date: Fri, 24 Jul 2009 13:38:03 +1000 Subject: Disable line-based log buffering. There's no real reason for line-bas

[Qemu-devel] [PATCH] [ARM] Fix sp804 dual-timer

2011-09-28 Thread Peter Chubb
This patch was written by David Mirabito. Properly implement the dual-timer read/write for the sp804 dual timer module. Based on ARM specs at http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0271d/index.html Signed-off-by: Peter Chubb Signed-off-by: David Mirabito Signed-off-by:

[Qemu-devel] qemu-system-arm and bootloader emulation

2011-09-28 Thread Peter Chubb
Currently, qemu-system-arm attempts to emulate a simple boot-loader if it thinks it is booting a u-boot image or a raw image (see hw/arm-boot.c), and not if it's booting an ELF image. I think this is a little backwards: when I give a raw ROM image as argument I want no boot-loader, and when I giv

[Qemu-devel] [Bug 818673] Re: virtio: trying to map MMIO memory

2011-09-28 Thread Rick Vernam
So I've built qemu with -enable-debug and tried running with an attached GDB, but got nothing. I've never tried to debug Qemu before, but I know it's not quite a simple as debugging other apps. I am honestly clueless about how to further debug this problem. Should I give up on using virtio-seria

Re: [Qemu-devel] [RFC] potential risk for macro QTAILQ_INSERT_BEFORE

2011-09-28 Thread Wayne Xia
于 2011-9-28 16:43, Jan Kiszka 写道: > On 2011-09-28 05:38, Wayne Xia wrote: >> Hi, during my coding, I found macro a bit different from other >> QTAIL macros. >> >> QTAILQ_INSERT_AFTER was defined as: >> --- >> #define QTAILQ_INSERT_AFTER(h

Re: [Qemu-devel] [PATCH V2] Add stdio char device on windows

2011-09-28 Thread Mars.cao
On 09/29/2011 12:25 AM, Fabien Chouteau wrote: On 28/09/2011 11:57, Mars.cao wrote: On 09/27/2011 11:42 PM, Fabien Chouteau wrote: Simple implementation of an stdio char device on Windows. Signed-off-by: Fabien Chouteau --- qemu-char.c | 199 +++

Re: [Qemu-devel] [PATCH] pseries: Refactor spapr irq allocation

2011-09-28 Thread David Gibson
On Tue, Sep 27, 2011 at 02:17:53PM +0200, Alexander Graf wrote: > > On 16.09.2011, at 08:49, David Gibson wrote: > > > Paulo Bonzini changed the original spapr code, which manually assigned irq > > numbers for each virtual device, to allocate them automatically from the > > device initialization.

Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers

2011-09-28 Thread Richard Henderson
On 09/28/2011 03:07 PM, Jan Kiszka wrote: > On 2011-09-28 17:19, Richard Henderson wrote: >> On 09/28/2011 07:33 AM, Jan Kiszka wrote: I don't particularly care for the 3 different opcodes. Perhaps we'd be better off with an inline predicate for when the deposit opcode is "valid"? >

Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers

2011-09-28 Thread Jan Kiszka
On 2011-09-28 17:19, Richard Henderson wrote: > On 09/28/2011 07:33 AM, Jan Kiszka wrote: >>> I don't particularly care for the 3 different opcodes. Perhaps >>> we'd be better off with an inline predicate for when the deposit >>> opcode is "valid"? >> >> We still need to dispatch at tcg generation

Re: [Qemu-devel] [PATCH 00/22] Rework i8259 and PC interrupt models

2011-09-28 Thread Jan Kiszka
On 2011-09-28 18:39, Richard Henderson wrote: > On 09/28/2011 04:00 AM, Jan Kiszka wrote: >> Highlights of this series: >> - generic i8259, now part of hwlib >> - qdev conversion of i8259 >> - fix for i8259 poll mode (and removal of PREP hack) >> >> The refactoring will also be important to inst

Re: [Qemu-devel] Networking problem

2011-09-28 Thread Giovanni Formisano
On Wed, Sep 28, 2011 at 3:18 PM, Giovanni Formisano < giovanni.formis...@gmail.com> wrote: > Hy all. > > I have a problem to configure the network i will try to explain may > trouble. I have to make a cluster of virtual machine with one Head node and > N worknode. I used a kvm and qemu. Now I want

[Qemu-devel] [PATCH v2 22/22] i8259: Move to hw library

2011-09-28 Thread Jan Kiszka
From: Jan Kiszka No target-specific bits remaining, let's move it over. Signed-off-by: Jan Kiszka --- Changes in v2: - Use defconfigs to control the existence in hwlib Makefile.objs|1 + Makefile.target |8 default-configs/alpha-

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-09-28 Thread Peter Maydell
On 28 September 2011 19:42, Blue Swirl wrote: > We also assume that the reset states of devices and their outputs are > coherent i.e. the output of one device during reset would not change > the state of another device from its reset state. This seems a very dubious assumption to make. Consider t

[Qemu-devel] [Bug 861141] Re: Installing libvirt-bin qemu slows host network

2011-09-28 Thread michael imelfort
What I mean is that the incomming speed for the machine with libvirt installed is negatively affected by the installation. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/861141 Title: Installing lib

Re: [Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

2011-09-28 Thread Benjamin Herrenschmidt
On Wed, 2011-09-28 at 16:20 -0500, Scott Wood wrote: > Sure, if there might be stale stuff in the icache, the guest will need > to invalidate that. But when running on real hardware, an OS does not > need to flush it out of data cache after a DMA transaction[1]. So > technically we just want a f

Re: [Qemu-devel] [PATCH 21/22] monitor: Restrict pic/irq_info to supporting targets

2011-09-28 Thread Jan Kiszka
On 2011-09-28 20:19, Blue Swirl wrote: On Wed, Sep 28, 2011 at 11:01 AM, Jan Kiszka wrote: Signed-off-by: Jan Kiszka --- hw/an5206.c | 10 -- hw/arm_pic.c| 11 --- hw/cris_pic_cpu.c |6 -- hw/etraxfs.h|1 + hw/lm32_

Re: [Qemu-devel] [FYI] Soft feature freeze for 1.0 is 10/15 (three weeks away)

2011-09-28 Thread Alexander Graf
On 27.09.2011, at 21:19, Blue Swirl wrote: > On Tue, Sep 27, 2011 at 4:44 PM, Avi Kivity wrote: >> On 09/27/2011 07:39 PM, Blue Swirl wrote: >>> Well, it's not that easy. As the other mapping is part of an ordinary BAR, you need to setup the device (at least PCI_COMMAND

Re: [Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

2011-09-28 Thread Scott Wood
On 09/28/2011 04:02 PM, Benjamin Herrenschmidt wrote: > On Wed, 2011-09-28 at 12:27 -0500, Scott Wood wrote: > >> Why would it need to be synchronous? Even if it's asynchronous emulated >> DMA, we don't want it sitting around only in a data cache that >> instruction fetches won't snoop. > > Exce

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-09-28 Thread Jan Kiszka
On 2011-09-28 20:01, Blue Swirl wrote: On Wed, Sep 28, 2011 at 11:00 AM, Jan Kiszka wrote: As we clearly modify the PIC state on pic_reset, we also have to update the IRQ output. This only happened on init so far. Apply this consistently. Nack, IRQ lines shouldn't be touched on reset. The oth

Re: [Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

2011-09-28 Thread Benjamin Herrenschmidt
On Wed, 2011-09-28 at 12:27 -0500, Scott Wood wrote: > Why would it need to be synchronous? Even if it's asynchronous emulated > DMA, we don't want it sitting around only in a data cache that > instruction fetches won't snoop. Except that this is exactly what happens on real HW :-) The guest wi

[Qemu-devel] boot fail!

2011-09-28 Thread shbi shb
Hi, I got a snapshot from my guest Windows but I cannot load it again and my qcow2 image cannot be loaded again (Boot fail error!). Could you please help me bout this problem? Thank you

Re: [Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

2011-09-28 Thread Benjamin Herrenschmidt
On Wed, 2011-09-28 at 16:26 +0200, Alexander Graf wrote: > > This makes sure that when device emulation overwrites code that is > already present in the cache of a CPU, it gets flushed from the > icache. I'm fairly sure we want that :). But let's ask Ben and David > as well. Hrm we don't need tha

Re: [Qemu-devel] [Bug 830833] Re: sparc emulators fail to boot

2011-09-28 Thread Blue Swirl
On Wed, Sep 28, 2011 at 8:22 PM, m...@papersolve.com wrote: > Please do update the binary openbios images for QEMU, it would be a > great help!! Updated, please test. > > -- > You received this bug notification because you are a member of qemu- > devel-ml, which is subscribed to QEMU. > https://

[Qemu-devel] [Bug 830833] Re: sparc emulators fail to boot

2011-09-28 Thread m...@papersolve.com
Please do update the binary openbios images for QEMU, it would be a great help!! -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/830833 Title: sparc emulators fail to boot Status in QEMU: New Bug

Re: [Qemu-devel] [PATCH v3 0/6]: block: Add I/O status support

2011-09-28 Thread Luiz Capitulino
On Wed, 28 Sep 2011 17:45:27 +0800 hkran wrote: > On 09/27/2011 04:43 AM, Luiz Capitulino wrote: > > This series adds support to the block layer to keep track of devices' > > I/O status. That information is also made available in QMP and HMP. > > > > The goal here is to allow management applicati

Re: [Qemu-devel] [PATCH 0/5] target-arm: Implement UDIV/SDIV and fused multiply-accumulate

2011-09-28 Thread Peter Maydell
On 28 September 2011 20:13, Blue Swirl wrote: > On Wed, Sep 28, 2011 at 5:27 PM, Peter Maydell > wrote: >> I've provided the PPC implementation >> of the NaN-selection function because the architecture manual was >> helpfully clear about what it was. x86 and SPARC don't seem to >> document the b

Re: [Qemu-devel] blobstore disk format (was Re: Design of the blobstore)

2011-09-28 Thread Stefan Berger
On 09/28/2011 11:50 AM, Daniel P. Berrange wrote: On Wed, Sep 28, 2011 at 11:48:19AM -0400, Stefan Berger wrote: On 09/22/2011 02:37 AM, Michael S. Tsirkin wrote: I'm guessing that if we find a correct ber structure in the file, this most likely means the key is correct. [I still would add at

Re: [Qemu-devel] [PATCH 0/5] target-arm: Implement UDIV/SDIV and fused multiply-accumulate

2011-09-28 Thread Blue Swirl
On Wed, Sep 28, 2011 at 5:27 PM, Peter Maydell wrote: > This patch series implements support in QEMU for some (user-mode) > instructions which are present on some recent processors > (eg Cortex-A15). > > The new instructions are UDIV/SDIV (previously only available as a Thumb > encoding for M-clas

Re: [Qemu-devel] virtqueue corruption in emulation mode?

2011-09-28 Thread Sinha, Ani
On Sep 28, 2011, at 9:47 AM, Stefan Hajnoczi wrote: I need a helper thread to do blocking IO. The device IOCTLS are inherently blocking, unfortunately. posix-aio-compat.c already implements a threadpool. It is geared towards using the QEMU block layer (BlockDriverState) but the pure ioctl code

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-09-28 Thread Blue Swirl
On Wed, Sep 28, 2011 at 6:09 PM, Peter Maydell wrote: > On 28 September 2011 19:01, Blue Swirl wrote: >> On Wed, Sep 28, 2011 at 11:00 AM, Jan Kiszka wrote: >>> As we clearly modify the PIC state on pic_reset, we also have to update >>> the IRQ output. This only happened on init so far. Apply th

Re: [Qemu-devel] [PATCH 22/22] i8259: Move to hw library

2011-09-28 Thread Blue Swirl
On Wed, Sep 28, 2011 at 11:01 AM, Jan Kiszka wrote: > No target-specific bits remaining, let's move it over. > > Signed-off-by: Jan Kiszka > --- >  Makefile.objs   |    2 +- >  Makefile.target |    8 >  2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/Makefile.objs b/Mak

Re: [Qemu-devel] [PATCH 21/22] monitor: Restrict pic/irq_info to supporting targets

2011-09-28 Thread Blue Swirl
On Wed, Sep 28, 2011 at 11:01 AM, Jan Kiszka wrote: > Signed-off-by: Jan Kiszka > --- >  hw/an5206.c             |   10 -- >  hw/arm_pic.c            |   11 --- >  hw/cris_pic_cpu.c       |    6 -- >  hw/etraxfs.h            |    1 + >  hw/lm32_pic.c           |    4 ++-- >  h

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-09-28 Thread Peter Maydell
On 28 September 2011 19:01, Blue Swirl wrote: > On Wed, Sep 28, 2011 at 11:00 AM, Jan Kiszka wrote: >> As we clearly modify the PIC state on pic_reset, we also have to update >> the IRQ output. This only happened on init so far. Apply this >> consistently. > > Nack, IRQ lines shouldn't be touched

Re: [Qemu-devel] [PATCH 11/22] i8259: Update IRQ state after reset

2011-09-28 Thread Blue Swirl
On Wed, Sep 28, 2011 at 11:00 AM, Jan Kiszka wrote: > As we clearly modify the PIC state on pic_reset, we also have to update > the IRQ output. This only happened on init so far. Apply this > consistently. Nack, IRQ lines shouldn't be touched on reset. The other side may not be ready for receivin

[Qemu-devel] [PATCH 2/5] target-arm: v6 media multiply space: UNDEF on unassigned encodings

2011-09-28 Thread Peter Maydell
Clean up the decoding of the v6 media multiply space so that we UNDEF on unassigned encodings rather than randomly interpreting them as some instruction in this space. Signed-off-by: Peter Maydell --- target-arm/translate.c | 24 1 files changed, 20 insertions(+), 4 de

[Qemu-devel] [PATCH 5/5] target-arm: Implement VFPv4 fused multiply-accumulate insns

2011-09-28 Thread Peter Maydell
Implement the fused multiply-accumulate instructions (VFMA, VFMS, VFNMA, VFNMS) which are new in VFPv4. Signed-off-by: Peter Maydell --- target-arm/cpu.h |1 + target-arm/helper.c| 14 + target-arm/helper.h|3 ++ target-arm/translate.c | 72 +

[Qemu-devel] [PATCH 4/5] softfloat: Implement fused multiply-add

2011-09-28 Thread Peter Maydell
Implement fused multiply-add as a softfloat primitive. This implements "a+b*c" as a single step without any intermediate rounding; it is specified in IEEE 754-2008 and implemented in a number of CPUs. Signed-off-by: Peter Maydell --- fpu/softfloat-specialize.h | 178 ++ fpu/soft

[Qemu-devel] [PATCH 1/5] softfloat: Reinstate accidentally disabled target-specific NaN handling

2011-09-28 Thread Peter Maydell
Include config.h in softfloat.c, so that the target specific ifdefs in softfloat-specialize.h are evaluated correctly. This was accidentally broken in commit 789ec7ce2 when config-target.h was removed from softfloat.h, and means that most targets will have been returning the wrong results for calcu

[Qemu-devel] [PATCH 3/5] target-arm: Add ARM UDIV/SDIV support

2011-09-28 Thread Peter Maydell
Add support for UDIV and SDIV in ARM mode. This is a new optional feature for A profile cores (Thumb mode has had UDIV and SDIV for M profile cores for some time). Signed-off-by: Peter Maydell --- target-arm/translate.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-

[Qemu-devel] [PATCH 0/5] target-arm: Implement UDIV/SDIV and fused multiply-accumulate

2011-09-28 Thread Peter Maydell
This patch series implements support in QEMU for some (user-mode) instructions which are present on some recent processors (eg Cortex-A15). The new instructions are UDIV/SDIV (previously only available as a Thumb encoding for M-class cores, now an optional extension to ARMv7A), and the fused-multi

Re: [Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

2011-09-28 Thread Scott Wood
On 09/28/2011 09:45 AM, Jan Kiszka wrote: > On 2011-09-28 16:26, Alexander Graf wrote: >> >> On 28.09.2011, at 16:23, Jan Kiszka wrote: >> >>> Alex, >>> >>> we have this diff in qemu-kvm: >>> >>> diff --git a/exec.c b/exec.c >>> index c1e045d..f188549 100644 >>> --- a/exec.c >>> +++ b/exec.c >>> @@

Re: [Qemu-devel] virtqueue corruption in emulation mode?

2011-09-28 Thread Stefan Hajnoczi
On Wed, Sep 28, 2011 at 3:23 PM, Sinha, Ani wrote: > > On Sep 28, 2011, at 1:51 AM, Stefan Hajnoczi wrote: > >> On Wed, Sep 28, 2011 at 3:01 AM, Sinha, Ani wrote: >>> >>> On Sep 27, 2011, at 12:17 AM, Stefan Hajnoczi wrote: >>> On Mon, Sep 26, 2011 at 07:16:56PM -0500, Sinha, Ani wrote:

Re: [Qemu-devel] [PATCH 00/22] Rework i8259 and PC interrupt models

2011-09-28 Thread Richard Henderson
On 09/28/2011 04:00 AM, Jan Kiszka wrote: > Highlights of this series: > - generic i8259, now part of hwlib > - qdev conversion of i8259 > - fix for i8259 poll mode (and removal of PREP hack) > > The refactoring will also be important to instantiate i8259-kvm devices > for in-kernel irqchip acc

Re: [Qemu-devel] [PATCH 17/22] i8259: Eliminate PicState2

2011-09-28 Thread Richard Henderson
On 09/28/2011 09:23 AM, Richard Henderson wrote: > On 09/28/2011 04:01 AM, Jan Kiszka wrote: >> +s = g_malloc0(sizeof(PicState)); > > Probably better to convert to g_new0 at this time. Nevermind. I now see this code goes away again in a few patches. r~

[Qemu-devel] [PATCH V3] Add stdio char device on windows

2011-09-28 Thread Fabien Chouteau
Simple implementation of an stdio char device on Windows. Signed-off-by: Fabien Chouteau --- qemu-char.c | 216 ++- 1 files changed, 214 insertions(+), 2 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 09d2309..0ec449b 100644 --

Re: [Qemu-devel] [PATCH V2] Add stdio char device on windows

2011-09-28 Thread Fabien Chouteau
On 28/09/2011 11:57, Mars.cao wrote: > On 09/27/2011 11:42 PM, Fabien Chouteau wrote: >> Simple implementation of an stdio char device on Windows. >> >> Signed-off-by: Fabien Chouteau >> --- >> qemu-char.c | 199 >> ++- >> 1 files changed

Re: [Qemu-devel] [PATCH 17/22] i8259: Eliminate PicState2

2011-09-28 Thread Richard Henderson
On 09/28/2011 04:01 AM, Jan Kiszka wrote: > +s = g_malloc0(sizeof(PicState)); Probably better to convert to g_new0 at this time. r~

Re: [Qemu-devel] How to configure a QEmu NIC in bridge mode?

2011-09-28 Thread Luiz Antonio Falaguasta Barbosa
Hi Ottavio, Thanks for your reply! Sorry, but I didn't ask in a right way. Actually, what I have to know is how to connect my QEMU to a bridge (already configured in the host computer). What I want to do is to connect my QEMU (with an Android SDK into) to a bridge configured in host computer tha

[Qemu-devel] [PATCH 11/21] qapi: convert query-name

2011-09-28 Thread Luiz Capitulino
From: Anthony Liguori A simple example conversion 'info name'. This also adds the new files for QMP and HMP. Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- Makefile.objs|1 + hmp.c| 26 ++ hmp.h| 22 ++

[Qemu-devel] [PATCH v1 00/21]: First round of QAPI conversions

2011-09-28 Thread Luiz Capitulino
This series is a bundle of three things: 1. Patches 01 to 04 add the middle mode feature to the current QMP server. That mode allows for the current server to support QAPI commands. The Original author is Anthony, you can find his original post here: http://lists.gnu.org/archive/

[Qemu-devel] [PATCH 07/21] qapi: generate qapi_free_* functions for *List types

2011-09-28 Thread Luiz Capitulino
From: Michael Roth Signed-off-by: Michael Roth Signed-off-by: Luiz Capitulino --- scripts/qapi-types.py |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py index fc0f7af..4797a70 100644 --- a/scripts/qapi-types.py +++ b/script

[Qemu-devel] [PATCH 08/21] qapi: add test cases for generated free functions

2011-09-28 Thread Luiz Capitulino
From: Michael Roth Signed-off-by: Michael Roth Signed-off-by: Luiz Capitulino --- test-qmp-commands.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/test-qmp-commands.c b/test-qmp-commands.c index f142cc6..7db38b6 100644 --- a/test-qmp-com

[Qemu-devel] [PATCH 03/21] qapi: add code generation support for middle mode

2011-09-28 Thread Luiz Capitulino
From: Anthony Liguori To get the ball rolling merging QAPI, this patch introduces a "middle mode" to the code generator. In middle mode, the code generator generates marshalling functions that are compatible with the current QMP server. We absolutely need to replace the current QMP server in or

[Qemu-devel] [PATCH 17/21] qapi: Convert query-commands

2011-09-28 Thread Luiz Capitulino
Signed-off-by: Luiz Capitulino --- monitor.c| 40 +++- qapi-schema.json | 23 +++ qmp-commands.hx |6 ++ 3 files changed, 44 insertions(+), 25 deletions(-) diff --git a/monitor.c b/monitor.c index 66b3004..d546bad 10064

[Qemu-devel] [PATCH] Set an invalid-bits mask for each SPE instructions

2011-09-28 Thread Fabien Chouteau
SPE instructions are defined by pairs. Currently, the invalid-bits mask is set for the first instruction, but the second one can have a different mask. example: GEN_SPE(efdcmpeq,efdcfs, 0x17, 0x0B, 0x0060, 0x0018, PPC_SPE_DOUBLE), Signed-off-by: Fabien Chouteau --- target-ppc/

[Qemu-devel] [PATCH 14/21] qapi: Convert query-status

2011-09-28 Thread Luiz Capitulino
The original conversion was done by Anthony Liguori. This commit is just a rebase. Signed-off-by: Luiz Capitulino --- hmp.c| 19 +++ hmp.h|1 + monitor.c| 41 + qapi-schema.json | 67 +++

[Qemu-devel] [PATCH 21/21] qapi: Convert system_powerdown

2011-09-28 Thread Luiz Capitulino
The original conversion was done by Anthony Liguori. This commit is just a rebase. Signed-off-by: Luiz Capitulino --- hmp-commands.hx |3 +-- hmp.c|5 + hmp.h|1 + qapi-schema.json | 14 ++ qmp.c|5 + 5 files changed, 26

Re: [Qemu-devel] blobstore disk format (was Re: Design of the blobstore)

2011-09-28 Thread Daniel P. Berrange
On Wed, Sep 28, 2011 at 11:48:19AM -0400, Stefan Berger wrote: > On 09/22/2011 02:37 AM, Michael S. Tsirkin wrote: > >On Wed, Sep 21, 2011 at 09:44:37PM -0400, Stefan Berger wrote: > >>On 09/19/2011 03:04 PM, Michael S. Tsirkin wrote: > >>>On Mon, Sep 19, 2011 at 12:22:02PM -0400, Stefan Berger wro

Re: [Qemu-devel] blobstore disk format (was Re: Design of the blobstore)

2011-09-28 Thread Stefan Berger
On 09/22/2011 02:37 AM, Michael S. Tsirkin wrote: On Wed, Sep 21, 2011 at 09:44:37PM -0400, Stefan Berger wrote: On 09/19/2011 03:04 PM, Michael S. Tsirkin wrote: On Mon, Sep 19, 2011 at 12:22:02PM -0400, Stefan Berger wrote: On 09/17/2011 03:28 PM, Michael S. Tsirkin wrote: On Fri, Sep 16, 2

[Qemu-devel] [PATCH 04/21] qapi: use middle mode in QMP server

2011-09-28 Thread Luiz Capitulino
From: Anthony Liguori Use the new middle mode within the existing QMP server. Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- Makefile | 12 Makefile.objs|2 ++ Makefile.target |6 +++--- monitor.c|9 - qapi-schema.json

[Qemu-devel] [PATCH 05/21] qapi: fixup command generation for functions that return list types

2011-09-28 Thread Luiz Capitulino
From: Anthony Liguori Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- scripts/qapi-commands.py | 23 +++ 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py index 2776804..c947ba4 100644 ---

Re: [Qemu-devel] [PATCH] [SPARC] Fix segfault in Leon3

2011-09-28 Thread Fabien Chouteau
On 24/09/2011 10:29, Blue Swirl wrote: > On Thu, Sep 22, 2011 at 3:42 PM, Fabien Chouteau wrote: >> Remove faulty access to global "env" in op_helper.c, replaced by function >> argument. >> >> Signed-off-by: Fabien Chouteau >> --- >> target-sparc/cpu.h | 10 ++ >> target-sparc/h

[Qemu-devel] [PATCH 20/21] qapi: Convert system_reset

2011-09-28 Thread Luiz Capitulino
The original conversion was done by Anthony Liguori. This commit is just a rebase. Signed-off-by: Luiz Capitulino --- hmp-commands.hx |3 +-- hmp.c|5 + hmp.h|1 + monitor.c| 10 -- qapi-schema.json |9 + qmp-commands.hx |

[Qemu-devel] [PATCH 15/21] qapi: Convert query-uuid

2011-09-28 Thread Luiz Capitulino
The original conversion was done by Anthony Liguori. This commit is just a rebase. Signed-off-by: Luiz Capitulino --- hmp.c|8 hmp.h|1 + monitor.c| 28 +--- qapi-schema.json | 24 qmp-commands.

[Qemu-devel] [PATCH 10/21] qapi: modify visitor code generation for list iteration

2011-09-28 Thread Luiz Capitulino
From: Michael Roth Modify logic such that we never assign values to the list head argument to progress through the list on subsequent iterations, instead rely only on having our return value passed back in as an argument on the next call. Also update QMP I/O visitors and test cases accordingly, a

[Qemu-devel] [PATCH 19/21] qapi: Convert stop

2011-09-28 Thread Luiz Capitulino
The original conversion was done by Anthony Liguori. This commit is just a rebase. Signed-off-by: Luiz Capitulino --- hmp-commands.hx |3 +-- hmp.c|5 + hmp.h|1 + monitor.c|9 - qapi-schema.json | 12 qmp-commands.hx |

[Qemu-devel] [PATCH 13/21] qapi: Convert query-kvm

2011-09-28 Thread Luiz Capitulino
The original conversion was done by Anthony Liguori. This commit is just a rebase. Signed-off-by: Luiz Capitulino --- hmp.c| 16 hmp.h|1 + monitor.c| 36 +--- qapi-schema.json | 25 +++

Re: [Qemu-devel] How to configure a QEmu NIC in bridge mode?

2011-09-28 Thread Ottavio
> From: Luiz Antonio Falaguasta Barbosa > To: qemu-devel@nongnu.org > Date: Wed, 28 Sep 2011 11:48:05 -0300 > Subject: [Qemu-devel] How to configure a QEmu NIC in bridge mode? > Hi guys, > I know this is not a list of QEmu users, but how it doesn't exist, I'll ask > it here. If antbody could help

[Qemu-devel] [PATCH 01/21] error: let error_is_type take a NULL error

2011-09-28 Thread Luiz Capitulino
From: Anthony Liguori Reported-by: Luiz Capitulino Signed-off-by: Anthony Liguori Signed-off-by: Luiz Capitulino --- error.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/error.c b/error.c index b802752..68c0039 100644 --- a/error.c +++ b/error.c @@ -97,6 +97,10

[Qemu-devel] [PATCH 09/21] qapi: dealloc visitor, support freeing of nested lists

2011-09-28 Thread Luiz Capitulino
From: Michael Roth Previously our logic for keeping track of when we're visiting the head of a list was done via a global bool. This can be overwritten if dealing with nested lists, so use stack entries to track this instead. Signed-off-by: Michael Roth Signed-off-by: Luiz Capitulino --- qapi

[Qemu-devel] [PATCH 16/21] qapi: Convert query-chardev

2011-09-28 Thread Luiz Capitulino
The original conversion was done by Anthony Liguori. This commit is just a rebase. Signed-off-by: Luiz Capitulino --- hmp.c| 13 + hmp.h|1 + monitor.c| 11 +-- qapi-schema.json | 26 ++ qemu-char.c | 35

Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers

2011-09-28 Thread Richard Henderson
On 09/28/2011 07:33 AM, Jan Kiszka wrote: >> I don't particularly care for the 3 different opcodes. Perhaps >> we'd be better off with an inline predicate for when the deposit >> opcode is "valid"? > > We still need to dispatch at tcg generation time which variant is valid. Or > what do you have

Re: [Qemu-devel] VirtIO 9p mount_tag (bogus?) limit of 32 bytes

2011-09-28 Thread Daniel P. Berrange
On Wed, Sep 28, 2011 at 05:22:06PM +0530, Harsh Bora wrote: > On 09/22/2011 11:12 PM, Daniel P. Berrange wrote: > >I've noticed that if you use a virtio 9p filesystem with a mount_tag > >property value that is longer than 32 bytes, it gets silently truncated. > > > >In virtio-9p-device.c > > > >

Re: [Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

2011-09-28 Thread Jan Kiszka
On 2011-09-28 16:26, Alexander Graf wrote: On 28.09.2011, at 16:23, Jan Kiszka wrote: Alex, we have this diff in qemu-kvm: diff --git a/exec.c b/exec.c index c1e045d..f188549 100644 --- a/exec.c +++ b/exec.c @@ -3950,6 +3955,11 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t

Re: [Qemu-devel] [RFC] Adding new filesystem 'proxy' to 9p

2011-09-28 Thread Daniel P. Berrange
On Wed, Sep 28, 2011 at 07:49:34PM +0530, M. Mohan Kumar wrote: > Pass-through security model in QEMU 9p server needs root privilege to do few > file operations (like chown, chmod to any mode/uid:gid). There are two issues > in pass-through security model > > 1) TOCTTOU vulnerability: Following s

[Qemu-devel] [PATCH 12/21] qapi: Convert query-version

2011-09-28 Thread Luiz Capitulino
The original conversion was done by Anthony Liguori. This commit is just a rebase. Signed-off-by: Luiz Capitulino --- hmp.c| 13 + hmp.h|1 + monitor.c| 46 +++--- qapi-schema.json | 37

Re: [Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

2011-09-28 Thread Alexander Graf
Am 28.09.2011 um 16:49 schrieb Jan Kiszka : > On 2011-09-28 16:45, Jan Kiszka wrote: >> On 2011-09-28 16:26, Alexander Graf wrote: >>> >>> On 28.09.2011, at 16:23, Jan Kiszka wrote: >>> Alex, we have this diff in qemu-kvm: diff --git a/exec.c b/exec.c index c1e04

Re: [Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

2011-09-28 Thread Jan Kiszka
On 2011-09-28 16:45, Jan Kiszka wrote: On 2011-09-28 16:26, Alexander Graf wrote: On 28.09.2011, at 16:23, Jan Kiszka wrote: Alex, we have this diff in qemu-kvm: diff --git a/exec.c b/exec.c index c1e045d..f188549 100644 --- a/exec.c +++ b/exec.c @@ -3950,6 +3955,11 @@ void cpu_physical_mem

[Qemu-devel] How to configure a QEmu NIC in bridge mode?

2011-09-28 Thread Luiz Antonio Falaguasta Barbosa
Hi guys, I know this is not a list of QEmu users, but how it doesn't exist, I'll ask it here. If antbody could help me, I'll be greatful! Please, does anybody know how to configure a QEmu NIC in bridge mode? Thank you in advance! Regards, Luiz

[Qemu-devel] [PATCH 06/21] qapi: dealloc visitor, fix premature free and iteration logic

2011-09-28 Thread Luiz Capitulino
From: Michael Roth Currently we do 3 things wrong: 1) The list iterator, in practice, is used in a manner where the pointer we pass in is the same as the pointer we assign the output to from visit_next_list(). This causes an infinite loop where we keep freeing the same structures. 2) We attempt

[Qemu-devel] [PATCH 18/21] qapi: Convert quit

2011-09-28 Thread Luiz Capitulino
The original conversion was done by Anthony Liguori. This commit is just a rebase. Signed-off-by: Luiz Capitulino --- hmp-commands.hx |2 +- hmp.c|6 ++ hmp.h|1 + monitor.c| 12 qapi-schema.json | 11 +++ qmp-commands.hx

[Qemu-devel] [PATCH 02/21] qerror: add qerror_report_err()

2011-09-28 Thread Luiz Capitulino
From: Anthony Liguori This provides a bridge between Error (new error mechanism) and QError (old error mechanism). Errors can be propagated whereas QError cannot. The minor evilness avoids layering violations. Since QError should go away RSN, it seems like a reasonable hack. Signed-off-by: An

Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers

2011-09-28 Thread Jan Kiszka
On 2011-09-28 16:26, Richard Henderson wrote: On 09/28/2011 05:28 AM, Jan Kiszka wrote: +#if TCG_TARGET_REG_BITS == 64 +{ INDEX_op_deposit8l_i32, { "r", "0", "r" } }, +#else +{ INDEX_op_deposit8l_i32, { "abcd", "0", "abcd" } }, +#endif At minimum, abcd is spelled "q". Ah, perfect.

Re: [Qemu-devel] virtqueue corruption in emulation mode?

2011-09-28 Thread Sinha, Ani
On Sep 28, 2011, at 1:51 AM, Stefan Hajnoczi wrote: > On Wed, Sep 28, 2011 at 3:01 AM, Sinha, Ani wrote: >> >> On Sep 27, 2011, at 12:17 AM, Stefan Hajnoczi wrote: >> >>> On Mon, Sep 26, 2011 at 07:16:56PM -0500, Sinha, Ani wrote: I am using the virtqueue (virtqueue_pop, virtqueue_push etc)

Re: [Qemu-devel] [PATCH] tcg-i386: Introduce specific deposit helpers

2011-09-28 Thread Richard Henderson
On 09/28/2011 05:28 AM, Jan Kiszka wrote: > +#if TCG_TARGET_REG_BITS == 64 > +{ INDEX_op_deposit8l_i32, { "r", "0", "r" } }, > +#else > +{ INDEX_op_deposit8l_i32, { "abcd", "0", "abcd" } }, > +#endif At minimum, abcd is spelled "q". I don't particularly care for the 3 different opcodes.

Re: [Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

2011-09-28 Thread Alexander Graf
On 28.09.2011, at 16:23, Jan Kiszka wrote: > Alex, > > we have this diff in qemu-kvm: > > diff --git a/exec.c b/exec.c > index c1e045d..f188549 100644 > --- a/exec.c > +++ b/exec.c > @@ -3950,6 +3955,11 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, > uint8_t *buf, >

[Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

2011-09-28 Thread Jan Kiszka
Alex, we have this diff in qemu-kvm: diff --git a/exec.c b/exec.c index c1e045d..f188549 100644 --- a/exec.c +++ b/exec.c @@ -3950,6 +3955,11 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf, cpu_physical_memory_set_dirty_flags( a

[Qemu-devel] [RFC] Adding new filesystem 'proxy' to 9p

2011-09-28 Thread M. Mohan Kumar
Pass-through security model in QEMU 9p server needs root privilege to do few file operations (like chown, chmod to any mode/uid:gid). There are two issues in pass-through security model 1) TOCTTOU vulnerability: Following symbolic links in the server could provide access to files beyond 9p export

[Qemu-devel] [PATCH V11 3/5] Add a debug register

2011-09-28 Thread Stefan Berger
This patch uses the possibility to add a vendor-specific register and adds a debug register useful for dumping the TIS's internal state. This register is only active in a debug build (#define DEBUG_TIS). v9: - prefixing all function with tpm_tis_ and all constants with TPM_TIS_ v3: - all output

[Qemu-devel] [PATCH V11 1/5] Support for TPM command line options

2011-09-28 Thread Stefan Berger
This patch adds support for TPM command line options. The command line options supported here are ./qemu-... -tpmdev passthrough,path=,id= -device tpm-tis,tpmdev= and ./qemu-... -tpmdev ? where the latter works similar to -soundhw ? and shows a list of available TPM backends (for exa

[Qemu-devel] [PATCH V11 4/5] Build the TPM frontend code

2011-09-28 Thread Stefan Berger
Build the TPM frontend code that has been added so far. Signed-off-by: Stefan Berger --- Makefile.target |1 + configure | 11 +++ 2 files changed, 12 insertions(+) Index: qemu-git.pt/Makefile.target === --- qe

[Qemu-devel] [PATCH V11 0/5] Qemu Trusted Platform Module (TPM) integration

2011-09-28 Thread Stefan Berger
The following series of patches adds TPM (Trusted Platform Module) support to Qemu. An emulator for the TIS (TPM Interface Spec) interface is added that provides the basis for accessing a 'backend' implementing the actual TPM functionality. The TIS emulator serves as a 'frontend' enabling for examp

  1   2   >