Re: [Qemu-devel] [PATCH 4/4] target-xxx: Use fprintf_function (format checking)

2010-11-01 Thread Stefan Weil
Am 01.11.2010 03:24, schrieb TeLeMan: On Sat, Oct 23, 2010 at 05:03, Stefan Weil wrote: int eflags, i, nb; @@ -335,9 +333,11 @@ void cpu_dump_state(CPUState *env, FILE *f, (uint32_t)env->cr[2], (uint32_t)env->cr[3], (uint32_t)env->

[Qemu-devel] Re: [PATCHv2 0/8 RFC] boot order specification

2010-11-01 Thread Gleb Natapov
On Sun, Oct 31, 2010 at 06:25:53PM -0400, Kevin O'Connor wrote: > On Sun, Oct 31, 2010 at 01:40:01PM +0200, Gleb Natapov wrote: > > This is current sate of the patch series for people to comment on. > > I tried to use open firmware naming scheme to specify device path names. > > > > The patch seri

Re: [Qemu-devel] [PATCH 4/4] target-xxx: Use fprintf_function (format checking)

2010-11-01 Thread TeLeMan
-- SUN OF A BEACH On Mon, Nov 1, 2010 at 15:05, Stefan Weil wrote: > Am 01.11.2010 03:24, schrieb TeLeMan: >> >> On Sat, Oct 23, 2010 at 05:03, Stefan Weil wrote: >>> >>>    int eflags, i, nb; >>> @@ -335,9 +333,11 @@ void cpu_dump_state(CPUState *env, FILE *f, >>>                    (uint32_t

[Qemu-devel] Re: [PATCH 4/4] target-xxx: Use fprintf_function (format checking)

2010-11-01 Thread Paolo Bonzini
On 11/01/2010 10:50 AM, TeLeMan wrote: I think this patch is not right. Outputting 64bits data is not necessary on 32bits mode. Do you speak of 32 bit hosts or 32 bit targets? 32bit mode of x64 There is no such thing as a 32 bit host on x64, only 64-bit hosts that haven't turned on long mo

[Qemu-devel] Re: [PATCH 4/4] target-xxx: Use fprintf_function (format checking)

2010-11-01 Thread Paolo Bonzini
On 11/01/2010 11:14 AM, Paolo Bonzini wrote: There is no such thing as a 32 bit host on x64, only 64-bit hosts that ^ guests haven't turned on long mode. So printing 64 bits is correct for those.

[Qemu-devel] [PATCH] qemu: stop polling non-system fds on vmstop

2010-11-01 Thread Michael S. Tsirkin
We should not run any devices while the VM is stopped: DMA into memory while VM is stopped makes it hard to debug migration (consequitive saves result in different files); Sending while vm is stopped has an even worse effect as it confuses the bridges so that they do not know where to send packets

[Qemu-devel] Re: TODO item: guest programmable mac/vlan filtering with macvtap

2010-11-01 Thread Dragos Tatulea
> 1. add a secondary mac (or third, etc) address to the guest virtio-net > interface. Maybe I misunderstood this. Is it just setting another mac on the guest virtio-net interface? > > 4. the above stuff must be controllable by host admin >  - Well, for this there are a few options: >    > admin sw

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-01 Thread Avi Kivity
On 10/28/2010 03:52 PM, Ian Molton wrote: On 28/10/10 15:24, Avi Kivity wrote: The caller is intended to block as the host must perform GL rendering before allowing the guests process to continue. Why is that? Can't we pipeline the process? No, not really. the guest may call for the scene

[Qemu-devel] Re: [PATCH 4/4] target-xxx: Use fprintf_function (format checking)

2010-11-01 Thread Paolo Bonzini
On 11/01/2010 11:27 AM, TeLeMan wrote: On Mon, Nov 1, 2010 at 18:14, Paolo Bonzini wrote: On 11/01/2010 10:50 AM, TeLeMan wrote: I think this patch is not right. Outputting 64bits data is not necessary on 32bits mode. Do you speak of 32 bit hosts or 32 bit targets? 32bit mode of x64 The

[Qemu-devel] Re: TODO item: guest programmable mac/vlan filtering with macvtap

2010-11-01 Thread Michael S. Tsirkin
On Mon, Nov 01, 2010 at 11:48:23AM +0100, Dragos Tatulea wrote: > > 1. add a secondary mac (or third, etc) address to the guest virtio-net > > interface. > Maybe I misunderstood this. Is it just setting another mac on the > guest virtio-net interface? Well, yes, that's also not possible at the mom

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-01 Thread Alon Levy
- "Anthony Liguori" wrote: > On 10/29/2010 06:18 AM, Rusty Russell wrote: > >> Fixed - updated patch tested and attached. > >> > > OK. FWIW, I think this is an awesome idea. > > Paravirtual OpenGL or the actual proposed implementation? Have you > looked at the actual code? > > If I

[Qemu-devel] [PATCH] Fixed default IRQ assignment for PL190 VIC.

2010-11-01 Thread Himanshu Chauhan
Everywhere else vect_addr[16] is returned on a read of default vector address but updation is done only on default_addr in structure. Signed-off-by: Himanshu Chauhan --- hw/pl190.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pl190.c b/hw/pl190.c index a4bc9c1..736

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-01 Thread Anthony Liguori
On 11/01/2010 05:42 AM, Avi Kivity wrote: On 10/28/2010 03:52 PM, Ian Molton wrote: On 28/10/10 15:24, Avi Kivity wrote: The caller is intended to block as the host must perform GL rendering before allowing the guests process to continue. Why is that? Can't we pipeline the process? No, no

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-01 Thread Anthony Liguori
On 11/01/2010 06:53 AM, Alon Levy wrote: The alternative proposal is Spice which so far noone has mentioned. Right now, Spice seems to be taking the right approach to guest 3d support. While we (speaking as part of the SPICE developers) want to have the same support in our virtual GPU for

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

2010-11-01 Thread Anthony Liguori
On 10/26/2010 09:14 AM, Arun R Bharadwaj wrote: From: Aneesh Kumar K.V This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The core idea has been borrowed from the threading framework that is being used by paio. The reason for creating this generic infrast

[Qemu-devel] [PATCH] add VMSTATE_BOOL

2010-11-01 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/hw.h | 14 ++ savevm.c | 21 + 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index e935364..234c713 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -333,6 +333,8 @@ struct VMStateDescription {

[Qemu-devel] [PATCH 03/40] elf: add header notification

2010-11-01 Thread Alexander Graf
--- hw/elf_ops.h |2 ++ hw/loader.c |7 +++ hw/loader.h |2 ++ 3 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/elf_ops.h b/hw/elf_ops.h index 645d058..5bcba7e 100644 --- a/hw/elf_ops.h +++ b/hw/elf_ops.h @@ -247,6 +247,8 @@ static int glue(load_elf, SZ)(const c

[Qemu-devel] [PATCH 33/40] xenner: core

2010-11-01 Thread Alexander Graf
This patch adds generic xenner functionality to qemu. Signed-off-by: Alexander Graf --- hw/xenner.h | 52 + hw/xenner_core.c | 224 ++ 2 files changed, 276 insertions(+), 0 deletions(-) create mode 100644 hw/xenner.h creat

[Qemu-devel] [PATCH 25/40] xenner: kernel: KVM PV code

2010-11-01 Thread Alexander Graf
Xenner uses KVM's PV functionality for timekeeping. If we don't find KVM clocksource support, we try to emulate it as good as we can. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-pv.c | 186 1 files changed, 186 insertions(+), 0 deletions(

[Qemu-devel] [PATCH 05/40] xen-disk: disable aio

2010-11-01 Thread Alexander Graf
Using AIO with the xen backend breaks for me. Disabling it makes things work. So until we figure out what exactly is going wrong, let's disable it. Signed-off-by: Alexander Graf --- hw/xen_disk.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/xen_disk.c b/hw/xen_dis

[Qemu-devel] [PATCH 35/40] xenner: Domain Builder

2010-11-01 Thread Alexander Graf
The traditional Xen way of loading a kernel and initial data structures into the guest's memory is by calling libxc functions. We want to be able to run without libxc dependencies though, so we need an alternative. This patch implements a full domain builder for xenner. It loads the guest kernel,

[Qemu-devel] [PATCH 02/40] elf: Add notes implementation

2010-11-01 Thread Alexander Graf
--- hw/elf_ops.h | 61 +- hw/loader.c |7 ++ hw/loader.h |3 ++ 3 files changed, 70 insertions(+), 1 deletions(-) diff --git a/hw/elf_ops.h b/hw/elf_ops.h index 8b63dfc..645d058 100644 --- a/hw/elf_ops.h +++ b/hw/elf_ops.h @@

[Qemu-devel] [PATCH 19/40] xenner: kernel: Makefile

2010-11-01 Thread Alexander Graf
This patch adds the Makefile to build the xenner kernel. Signed-off-by: Alexander Graf --- pc-bios/xenner/Makefile | 72 +++ 1 files changed, 72 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xenner/Makefile diff --git a/pc-bios/xenner/Ma

[Qemu-devel] [PATCH 10/40] xenner: kernel: Hypercall handler (i386)

2010-11-01 Thread Alexander Graf
Xenner handles guest hypercalls itself. This patch adds all the handling code that is i386 specific. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-hcall32.c | 299 +++ 1 files changed, 299 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xe

[Qemu-devel] [PATCH 00/40] RFC: Xenner

2010-11-01 Thread Alexander Graf
Some of you might remember Gerd's xenner project. The basic motivation is to run Xen PV guests in KVM with the normal KVM architecture. In order to achieve this, Xenner contains of two pieces: 1) Xenner Qemu pieces 2) Xenner guest kernel Part 1 is partially in qemu already. The xen support f

[Qemu-devel] [PATCH 31/40] xenner: libxc emu: xenstore

2010-11-01 Thread Alexander Graf
Xenner emulates parts of libxc, so we can not use the real xen infrastructure when running xen pv guests without xen. This patch adds support for emulation of xenstored. Signed-off-by: Alexander Graf --- hw/xenner_guest_store.c | 494 + hw/xenner_libxenstore.c |

[Qemu-devel] [PATCH 14/40] xenner: kernel: Instruction emulator

2010-11-01 Thread Alexander Graf
In some cases we need to emulate guest instructions. This patch adds code to take care of this. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-instr.c | 405 + 1 files changed, 405 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xenner/

[Qemu-devel] [PATCH 11/40] xenner: kernel: Hypercall handler (x86_64)

2010-11-01 Thread Alexander Graf
Xenner handles guest hypercalls itself. This patch adds all the handling code that is x86_64 specific. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-hcall64.c | 323 +++ 1 files changed, 323 insertions(+), 0 deletions(-) create mode 100644 pc-bios/

[Qemu-devel] [PATCH 26/40] xenner: kernel: xen-names

2010-11-01 Thread Alexander Graf
To resolve various names, we keep a generated version of xen-names around. This helps with debug output. Signed-off-by: Alexander Graf --- pc-bios/xenner/xen-names.c | 141 pc-bios/xenner/xen-names.h | 68 + 2 files changed, 209

[Qemu-devel] [PATCH 28/40] xenner: libxc emu: evtchn

2010-11-01 Thread Alexander Graf
Xenner emulates parts of libxc, so we can not use the real xen infrastructure when running xen pv guests without xen. This patch adds support for event channel communication. Signed-off-by: Alexander Graf --- hw/xenner_libxc_evtchn.c | 467 ++ 1 file

[Qemu-devel] [PATCH 06/40] qdev-ify: xen backends

2010-11-01 Thread Alexander Graf
From: Gerd Hoffmann This patch converts the xen backend code to qdev. Signed-off-by: Gerd Hoffmann Signed-off-by: Alexander Graf --- hw/xen_backend.c| 176 --- hw/xen_backend.h|9 ++- hw/xen_console.c| 10 +++- hw/xen_disk.c

[Qemu-devel] [PATCH 29/40] xenner: libxc emu: grant tables

2010-11-01 Thread Alexander Graf
Xenner emulates parts of libxc, so we can not use the real xen infrastructure when running xen pv guests without xen. This patch adds support for grant tables. Signed-off-by: Alexander Graf --- hw/xenner_libxc_gnttab.c | 91 ++ 1 files changed, 91 i

[Qemu-devel] [PATCH 12/40] xenner: kernel: Hypercall handler (generic)

2010-11-01 Thread Alexander Graf
Xenner handles guest hypercalls itself. This patch adds all the handling code that is shared between i386 and x86_64. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-hcall.c | 1031 + 1 files changed, 1031 insertions(+), 0 deletions(-) create mode

[Qemu-devel] [PATCH 20/40] xenner: kernel: mmu support for 32-bit PAE

2010-11-01 Thread Alexander Graf
This patch adds support for memory management on 32 bit systems with PAE. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-mmpae.c | 444 + 1 files changed, 444 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xenner/xenner-mmpae.c diff -

[Qemu-devel] [PATCH 15/40] xenner: kernel: lapic code

2010-11-01 Thread Alexander Graf
Xenner uses the lapic for interrupt handling and time keeping. This patch adds support for this. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-lapic.c | 622 + 1 files changed, 622 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xenner

[Qemu-devel] [PATCH 17/40] xenner: kernel: Main (x86_64)

2010-11-01 Thread Alexander Graf
This patch adds the x86_64 specific piece of xenner's main loop. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-main64.c | 412 1 files changed, 412 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xenner/xenner-main64.c diff --git a/p

[Qemu-devel] [PATCH 08/40] xenner: kernel: 64-bit files

2010-11-01 Thread Alexander Graf
This patch adds various header files required for the xenner kernel on 64 bit systems. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner64.S | 400 +++ pc-bios/xenner/xenner64.h | 117 + pc-bios/xenner/xenner64.lds | 38 3 fi

[Qemu-devel] [PATCH 27/40] xenner: add xc_dom.h

2010-11-01 Thread Alexander Graf
This patch adds a generic layer for xc calls, allowing us to choose between the xenner and xen implementations at runtime. Signed-off-by: Alexander Graf --- hw/xc_dom.h | 273 +++ hw/xen_interfaces.c | 108 hw/xen_int

[Qemu-devel] [PATCH 09/40] xenner: kernel: Global data

2010-11-01 Thread Alexander Graf
We need to access global variables from various points in the code. Keep them in a single file, so we know where they are. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-data.c | 142 ++ 1 files changed, 142 insertions(+), 0 deletions(-) create

[Qemu-devel] [PATCH 30/40] xenner: libxc emu: memory mapping

2010-11-01 Thread Alexander Graf
Xenner emulates parts of libxc, so we can not use the real xen infrastructure when running xen pv guests without xen. This patch adds support for guest memory mapping. Signed-off-by: Alexander Graf --- hw/xenner_libxc_if.c | 124 ++ 1 files chang

[Qemu-devel] [PATCH 34/40] xenner: PV machine

2010-11-01 Thread Alexander Graf
The same as Xen has a PV machine to do all the initialization of devices, we have one for xenner. This patch implements said machine description. Signed-off-by: Alexander Graf --- hw/xenner_pv.c | 135 1 files changed, 135 insertions(+),

[Qemu-devel] [PATCH 22/40] xenner: kernel: mmu support for 64-bit

2010-11-01 Thread Alexander Graf
This patch adds support for memory management on 64 bit systems. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-mm64.c | 369 ++ 1 files changed, 369 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xenner/xenner-mm64.c diff --git a/pc-

[Qemu-devel] [PATCH 04/40] elf: add section analyzer

2010-11-01 Thread Alexander Graf
--- hw/elf_ops.h | 32 ++-- hw/loader.c |7 +++ hw/loader.h |3 +++ 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/hw/elf_ops.h b/hw/elf_ops.h index 5bcba7e..6a042c5 100644 --- a/hw/elf_ops.h +++ b/hw/elf_ops.h @@ -100,13 +100,14 @@ stat

[Qemu-devel] [PATCH 32/40] xenner: emudev

2010-11-01 Thread Alexander Graf
Xenner uses its own special PV device to communicate between qemu and the guest xenner kernel. This patch implements that device. Signed-off-by: Alexander Graf --- hw/xenner_emudev.c | 107 +++ hw/xenner_emudev.h | 108 +++

[Qemu-devel] [PATCH 24/40] xenner: kernel: printk

2010-11-01 Thread Alexander Graf
This patch adds a printk implementation for xenner. Signed-off-by: Alexander Graf --- pc-bios/xenner/printk.c | 682 +++ 1 files changed, 682 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xenner/printk.c diff --git a/pc-bios/xenner/printk

[Qemu-devel] [PATCH 21/40] xenner: kernel: mmu support for 32-bit normal

2010-11-01 Thread Alexander Graf
This patch adds support for memory management on 32 bit systems without PAE. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-mm32.c | 314 ++ 1 files changed, 314 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xenner/xenner-mm32.c diff

[Qemu-devel] [PATCH 18/40] xenner: kernel: Main

2010-11-01 Thread Alexander Graf
This patch adds the platform agnostic piece of xenner's main loop. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-main.c | 875 ++ 1 files changed, 875 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xenner/xenner-main.c diff --git a/p

[Qemu-devel] [PATCH 07/40] xenner: kernel: 32 bit files

2010-11-01 Thread Alexander Graf
This patch adds various files required to implement 32bit support in the xenner kernel. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner32-pae.lds | 37 pc-bios/xenner/xenner32.S | 441 +++ pc-bios/xenner/xenner32.h | 191 ++

[Qemu-devel] Re: [PATCH v2] Add Intel HD Audio support to qemu.

2010-11-01 Thread malc
On Mon, 1 Nov 2010, Gerd Hoffmann wrote: > This patch adds three devices to qemu: > > intel-hda > Intel HD Audio Controller, the PCI device. Provides a HDA bus. > Emulates ICH6 at the moment. Adding a ICH9 PCIE > variant shouldn't be hard. > > hda-duplex > HDA Codec. A

[Qemu-devel] [PATCH 23/40] xenner: kernel: generic MM functionality

2010-11-01 Thread Alexander Graf
Xenner does its own memory management bookkeeping which can be kept platform agnostic. This patch adds that. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-mm.c | 105 1 files changed, 105 insertions(+), 0 deletions(-) create mode 100644 pc

[Qemu-devel] [PATCH 16/40] xenner: kernel: Main (i386)

2010-11-01 Thread Alexander Graf
This patch adds the i386 specific piece of xenner's main loop. Signed-off-by: Alexander Graf --- pc-bios/xenner/xenner-main32.c | 390 1 files changed, 390 insertions(+), 0 deletions(-) create mode 100644 pc-bios/xenner/xenner-main32.c diff --git a/pc-

Re: [Qemu-devel] [PATCH 08/40] xenner: kernel: 64-bit files

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 11:44, Anthony Liguori wrote: > On 11/01/2010 10:01 AM, Alexander Graf wrote: >> This patch adds various header files required for the xenner kernel on 64 bit >> systems. >> >> Signed-off-by: Alexander Graf >> > > I think it might make more sense to put this on a separate g

Re: [Qemu-devel] [PATCH 30/40] xenner: libxc emu: memory mapping

2010-11-01 Thread malc
On Mon, 1 Nov 2010, Alexander Graf wrote: > Xenner emulates parts of libxc, so we can not use the real xen infrastructure > when running xen pv guests without xen. > > This patch adds support for guest memory mapping. > > Signed-off-by: Alexander Graf > --- > hw/xenner_libxc_if.c | 124 > +++

[Qemu-devel] [PATCH 01/40] elf: Move translate_fn to helper struct

2010-11-01 Thread Alexander Graf
The elf loader takes a direct parameter for a callback that enabled users of load_elf to translate addresses on the fly. While this is nice to have, it's really unflexible. We need to add some more callbacks to elf and listing every single one in the function call just doesn't scale. So let's mov

[Qemu-devel] Re: [PATCH] add VMSTATE_BOOL

2010-11-01 Thread malc
On Mon, 1 Nov 2010, Gerd Hoffmann wrote: > > Signed-off-by: Gerd Hoffmann > --- > hw/hw.h | 14 ++ > savevm.c | 21 + > 2 files changed, 35 insertions(+), 0 deletions(-) Applied, thanks. [..snip..] -- mailto:av1...@comtv.ru

Re: [Qemu-devel] [PATCH 08/40] xenner: kernel: 64-bit files

2010-11-01 Thread Anthony Liguori
On 11/01/2010 10:47 AM, Alexander Graf wrote: On 01.11.2010, at 11:44, Anthony Liguori wrote: On 11/01/2010 10:01 AM, Alexander Graf wrote: This patch adds various header files required for the xenner kernel on 64 bit systems. Signed-off-by: Alexander Graf I think it might

[Qemu-devel] [PATCH v2 1/2] Minimal RAM API support

2010-11-01 Thread Alex Williamson
This adds a minimum chunk of Anthony's RAM API support so that we can identify actual VM RAM versus all the other things that make use of qemu_ram_alloc. Signed-off-by: Alex Williamson --- Makefile.objs |1 + cpu-common.h |2 + memory.c | 109 +

[Qemu-devel] [PATCH v2 0/2] Minimal RAM API support

2010-11-01 Thread Alex Williamson
v2: - Move to Makefile.objs - Move structures to memory.c and create a callback function - Fix memory leak I haven't moved to the state parameter because there should only be a single instance of this per VM. The state parameter seems like it would add complications in setup and function call

[Qemu-devel] [PATCH v2 2/2] RAM API: Make use of it for x86 PC

2010-11-01 Thread Alex Williamson
Register the actual VM RAM using the new API Signed-off-by: Alex Williamson --- hw/pc.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 69b13bf..0ea6d10 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -912,14 +912,14 @@ void pc_memory_init(ram_a

Re: [Qemu-devel] [PATCH 30/40] xenner: libxc emu: memory mapping

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 11:12, malc wrote: > On Mon, 1 Nov 2010, Alexander Graf wrote: > >> Xenner emulates parts of libxc, so we can not use the real xen infrastructure >> when running xen pv guests without xen. >> >> This patch adds support for guest memory mapping. >> >> Signed-off-by: Alexander

Re: [Qemu-devel] [PATCH 33/40] xenner: core

2010-11-01 Thread malc
On Mon, 1 Nov 2010, Alexander Graf wrote: > This patch adds generic xenner functionality to qemu. > > Signed-off-by: Alexander Graf > --- > hw/xenner.h | 52 + > hw/xenner_core.c | 224 > ++ > 2 files changed, 276 insertio

Re: [Qemu-devel] [PATCH 28/40] xenner: libxc emu: evtchn

2010-11-01 Thread Anthony Liguori
On 11/01/2010 11:07 AM, Alexander Graf wrote: On 01.11.2010, at 12:01, Anthony Liguori wrote: On 11/01/2010 10:49 AM, Alexander Graf wrote: On 01.11.2010, at 11:45, Anthony Liguori wrote: On 11/01/2010 10:01 AM, Alexander Graf wrote: Xenner emulates parts of li

[Qemu-devel] Re: [PATCH 4/4] target-xxx: Use fprintf_function (format checking)

2010-11-01 Thread Stefan Weil
Am 01.11.2010 12:03, schrieb Paolo Bonzini: On 11/01/2010 11:27 AM, TeLeMan wrote: On Mon, Nov 1, 2010 at 18:14, Paolo Bonzini wrote: On 11/01/2010 10:50 AM, TeLeMan wrote: I think this patch is not right. Outputting 64bits data is not necessary on 32bits mode. Do you speak of 32 bit hosts

Re: [Qemu-devel] [PATCH 00/40] RFC: Xenner

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 11:01, Alexander Graf wrote: > Some of you might remember Gerd's xenner project. The basic motivation is to > run Xen PV guests in KVM with the normal KVM architecture. > > In order to achieve this, Xenner contains of two pieces: > > 1) Xenner Qemu pieces > 2) Xenner guest k

[Qemu-devel] Re: [PATCH 4/4] target-xxx: Use fprintf_function (format checking)

2010-11-01 Thread Paolo Bonzini
> > An even better fix than uint32_t would be to introduce TARGET_FMT_8lx > > (which maps to "%08"PRI_x64) so that, if for some reason the high > > 32-bit are not zero, they will be shown. > > > Yes. We already had a similar discussion about TARGET_FMT_PLX, see > http://www.mail-archive.com/qemu-

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-01 Thread Ian Molton
On 01/11/10 13:21, Anthony Liguori wrote: On 11/01/2010 05:42 AM, Avi Kivity wrote: On 10/28/2010 03:52 PM, Ian Molton wrote: On 28/10/10 15:24, Avi Kivity wrote: Waiting for a response is fine, but can't the guest issue a second batch while waiting for the first? The other scenario would

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-01 Thread Ian Molton
On 01/11/10 10:42, Avi Kivity wrote: No, not really. the guest may call for the scene to be rendered at any time and we have to wait for that to happen before we can return the data to it. Waiting for a response is fine, but can't the guest issue a second batch while waiting for the first? No

Re: [Qemu-devel] [PATCH 28/40] xenner: libxc emu: evtchn

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 11:45, Anthony Liguori wrote: > On 11/01/2010 10:01 AM, Alexander Graf wrote: >> Xenner emulates parts of libxc, so we can not use the real xen infrastructure >> when running xen pv guests without xen. >> >> This patch adds support for event channel communication. >> >> Signed

[Qemu-devel] Re: [PATCH 1/2] msix: Allow msix_init on a device with existing MSI-X capability

2010-11-01 Thread Alex Williamson
On Thu, 2010-10-28 at 17:00 +0200, Avi Kivity wrote: > On 10/23/2010 06:55 PM, Alex Williamson wrote: > > On Sat, 2010-10-23 at 18:18 +0200, Michael S. Tsirkin wrote: > > > On Fri, Oct 22, 2010 at 02:40:31PM -0600, Alex Williamson wrote: > > > > To enable common msix support to be used with pass

Re: [Qemu-devel] [PATCH 28/40] xenner: libxc emu: evtchn

2010-11-01 Thread Anthony Liguori
On 11/01/2010 10:49 AM, Alexander Graf wrote: On 01.11.2010, at 11:45, Anthony Liguori wrote: On 11/01/2010 10:01 AM, Alexander Graf wrote: Xenner emulates parts of libxc, so we can not use the real xen infrastructure when running xen pv guests without xen. This patch adds support f

Re: [Qemu-devel] [PATCH 28/40] xenner: libxc emu: evtchn

2010-11-01 Thread Anthony Liguori
On 11/01/2010 10:01 AM, Alexander Graf wrote: Xenner emulates parts of libxc, so we can not use the real xen infrastructure when running xen pv guests without xen. This patch adds support for event channel communication. Signed-off-by: Alexander Graf Has anyone checked with the Xen folks

Re: [Qemu-devel] [PATCH 28/40] xenner: libxc emu: evtchn

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 12:14, Anthony Liguori wrote: > On 11/01/2010 11:07 AM, Alexander Graf wrote: >> On 01.11.2010, at 12:01, Anthony Liguori wrote: >> >> >>> On 11/01/2010 10:49 AM, Alexander Graf wrote: >>> On 01.11.2010, at 11:45, Anthony Liguori wrote:

[Qemu-devel] Re: [PATCH v2 0/4] use new vgabios.

2010-11-01 Thread Gerd Hoffmann
On 10/15/10 12:02, Gerd Hoffmann wrote: This patch series will put the new vgabios into use for stdvga and vmware_vga. The vgabios patches have been posted a while ago, they are also also available from git://anongit.freedesktop.org/~kraxel/vgabios pcibios For obvious reasons it depends on t

Re: [Qemu-devel] [PATCH 08/40] xenner: kernel: 64-bit files

2010-11-01 Thread Anthony Liguori
On 11/01/2010 10:01 AM, Alexander Graf wrote: This patch adds various header files required for the xenner kernel on 64 bit systems. Signed-off-by: Alexander Graf I think it might make more sense to put this on a separate git.qemu.org repository and then use a submodule in roms/. I'm ha

[Qemu-devel] [PATCH] intel-hda: documentation update

2010-11-01 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- qemu-doc.texi |2 ++ qemu-options.hx |1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/qemu-doc.texi b/qemu-doc.texi index c376529..7ce8999 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -200,6 +200,8 @@ ENSONIQ AudioPCI ES1370 sou

Re: [Qemu-devel] [PATCH 28/40] xenner: libxc emu: evtchn

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 12:01, Anthony Liguori wrote: > On 11/01/2010 10:49 AM, Alexander Graf wrote: >> On 01.11.2010, at 11:45, Anthony Liguori wrote: >> >> >>> On 11/01/2010 10:01 AM, Alexander Graf wrote: >>> Xenner emulates parts of libxc, so we can not use the real xen infrast

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-01 Thread Anthony Liguori
On 11/01/2010 10:49 AM, Ian Molton wrote: On 01/11/10 13:21, Anthony Liguori wrote: On 11/01/2010 05:42 AM, Avi Kivity wrote: On 10/28/2010 03:52 PM, Ian Molton wrote: On 28/10/10 15:24, Avi Kivity wrote: Waiting for a response is fine, but can't the guest issue a second batch while waiting

[Qemu-devel] Re: [PATCH v2 0/5] spice config options

2010-11-01 Thread Gerd Hoffmann
On 10/08/10 13:22, Gerd Hoffmann wrote: Hi, This patch series adds a bunch of config options to spice, most notably it enables to configure TLS and thus using spice encrypted. The commit messages are not that verbose, but every patch comes with a patch chunk updating the spice section in the

[Qemu-devel] Re: [VGABIOS PATCH 00/11] vgabios update

2010-11-01 Thread Gerd Hoffmann
On 09/21/10 19:07, Gerd Hoffmann wrote: Hi, This patch series updates the vgabios. The first five patches are taken from the vgabios cvs and update the vgabios.git tree @ qemu.org to vgabios release 0.6c. As this update depends on a newer bochs API it fully works on qemu 0.13 and master onl

Re: [Qemu-devel] [PATCH 14/40] xenner: kernel: Instruction emulator

2010-11-01 Thread malc
On Mon, 1 Nov 2010, Alexander Graf wrote: > In some cases we need to emulate guest instructions. This patch adds > code to take care of this. > > Signed-off-by: Alexander Graf > --- > pc-bios/xenner/xenner-instr.c | 405 > + > 1 files changed, 405 inser

[Qemu-devel] Re: TODO item: guest programmable mac/vlan filtering with macvtap

2010-11-01 Thread Dragos Tatulea
I have created a wiki page for this [1], also added to the networking todo list [2]. No meaty information yet. But it's enough to start working on it. [1] - http://www.linux-kvm.org/page/GuestProgrammableMacVlanFiltering [2] - http://www.linux-kvm.org/page/NetworkingTodo -- Dragos

Re: [Qemu-devel] Re: [PATCH v2 0/4] use new vgabios.

2010-11-01 Thread Anthony Liguori
On 11/01/2010 11:03 AM, Gerd Hoffmann wrote: On 10/15/10 12:02, Gerd Hoffmann wrote: This patch series will put the new vgabios into use for stdvga and vmware_vga. The vgabios patches have been posted a while ago, they are also also available from git://anongit.freedesktop.org/~kraxel/vgabio

[Qemu-devel] Re: [PATCHv3] Add support for async page fault to qemu

2010-11-01 Thread Marcelo Tosatti
On Sun, Oct 24, 2010 at 02:27:55PM +0200, Gleb Natapov wrote: > Add save/restore of MSR for migration and cpuid bit. > > Signed-off-by: Gleb Natapov > -- > v1->v2 > - use vmstate subsection to migrate new msr. > v2->v3 > - rebase onto uq/master > - protect use of MSR_KVM_ASYNC_PF_EN with

Re: [Qemu-devel] [PULL] virtio, vhost, migration, pci, net

2010-11-01 Thread Anthony Liguori
On 10/28/2010 12:45 AM, Michael S. Tsirkin wrote: OK this is try 2, with bad vhost patch dropped, but I also tacked on pcie support and some other fixes. The following changes since commit 758c309f0a5cb52441a1ee015566cf9cd96fa933: seabios: Update to 0.6.1 (2010-10-25 16:43:41 -0500) are ava

Re: [Qemu-devel] Re: [VGABIOS PATCH 00/11] vgabios update

2010-11-01 Thread Anthony Liguori
On 11/01/2010 11:02 AM, Gerd Hoffmann wrote: On 09/21/10 19:07, Gerd Hoffmann wrote: Hi, This patch series updates the vgabios. The first five patches are taken from the vgabios cvs and update the vgabios.git tree @ qemu.org to vgabios release 0.6c. As this update depends on a newer bochs

Re: [Qemu-devel] Re: [PATCH v2 0/5] spice config options

2010-11-01 Thread Anthony Liguori
On 11/01/2010 11:04 AM, Gerd Hoffmann wrote: On 10/08/10 13:22, Gerd Hoffmann wrote: Hi, This patch series adds a bunch of config options to spice, most notably it enables to configure TLS and thus using spice encrypted. The commit messages are not that verbose, but every patch comes with a

Re: [Qemu-devel] [PATCH v2 0/5] spice config options

2010-11-01 Thread Anthony Liguori
On 10/08/2010 06:22 AM, Gerd Hoffmann wrote: Hi, This patch series adds a bunch of config options to spice, most notably it enables to configure TLS and thus using spice encrypted. The commit messages are not that verbose, but every patch comes with a patch chunk updating the spice section i

Re: [Qemu-devel] [PATCH 02/40] elf: Add notes implementation

2010-11-01 Thread Blue Swirl
On Mon, Nov 1, 2010 at 3:01 PM, Alexander Graf wrote: > --- >  hw/elf_ops.h |   61 > +- >  hw/loader.c  |    7 ++ >  hw/loader.h  |    3 ++ >  3 files changed, 70 insertions(+), 1 deletions(-) > > diff --git a/hw/elf_ops.h b/hw/elf_ops.h

Re: [Qemu-devel] [PATCH 31/40] xenner: libxc emu: xenstore

2010-11-01 Thread Blue Swirl
On Mon, Nov 1, 2010 at 3:01 PM, Alexander Graf wrote: > Xenner emulates parts of libxc, so we can not use the real xen infrastructure > when running xen pv guests without xen. > > This patch adds support for emulation of xenstored. > > Signed-off-by: Alexander Graf > --- >  hw/xenner_guest_store.

[Qemu-devel] Re: [PATCH 02/40] elf: Add notes implementation

2010-11-01 Thread Paolo Bonzini
On 11/01/2010 04:01 PM, Alexander Graf wrote: diff --git a/hw/loader.c b/hw/loader.c index 50b43a0..cb430e0 100644 --- a/hw/loader.c +++ b/hw/loader.c @@ -229,6 +229,11 @@ int load_aout(const char *filename, target_phys_addr_t addr, int max_sz, /* ELF loader */ +static void elf_default_note(

Re: [Qemu-devel] [PATCH 02/40] elf: Add notes implementation

2010-11-01 Thread Stefan Weil
Am 01.11.2010 19:29, schrieb Blue Swirl: On Mon, Nov 1, 2010 at 3:01 PM, Alexander Graf wrote: --- hw/elf_ops.h | 61 +- hw/loader.c |7 ++ hw/loader.h |3 ++ 3 files changed, 70 insertions(+), 1 deletions(-) diff

[Qemu-devel] Re: [PATCH 14/40] xenner: kernel: Instruction emulator

2010-11-01 Thread Paolo Bonzini
On 11/01/2010 04:01 PM, Alexander Graf wrote: +/* I/O instruction */ +if (in == 2) { +regs->rax |= 0x; +} else if (in == 1) { +regs->rax |= (0x<< shift); +} I don't understand this, and also why it's here rather than near case 0xe4/0xe5/0xec/0xed.

[Qemu-devel] Re: [PATCH 02/40] elf: Add notes implementation

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 14:41, Paolo Bonzini wrote: > On 11/01/2010 04:01 PM, Alexander Graf wrote: >> diff --git a/hw/loader.c b/hw/loader.c >> index 50b43a0..cb430e0 100644 >> --- a/hw/loader.c >> +++ b/hw/loader.c >> @@ -229,6 +229,11 @@ int load_aout(const char *filename, target_phys_addr_t >> add

Re: [Qemu-devel] [PATCH 08/40] xenner: kernel: 64-bit files

2010-11-01 Thread Blue Swirl
On Mon, Nov 1, 2010 at 3:47 PM, Alexander Graf wrote: > > On 01.11.2010, at 11:44, Anthony Liguori wrote: > >> On 11/01/2010 10:01 AM, Alexander Graf wrote: >>> This patch adds various header files required for the xenner kernel on 64 >>> bit >>> systems. >>> >>> Signed-off-by: Alexander Graf >>>

Re: [Qemu-devel] [PATCH 08/40] xenner: kernel: 64-bit files

2010-11-01 Thread Anthony Liguori
On 11/01/2010 02:00 PM, Blue Swirl wrote: On Mon, Nov 1, 2010 at 3:47 PM, Alexander Graf wrote: On 01.11.2010, at 11:44, Anthony Liguori wrote: On 11/01/2010 10:01 AM, Alexander Graf wrote: This patch adds various header files required for the xenner kernel on 64 bit system

[Qemu-devel] [PATCH 1/1] Fold send_all() wrapper unix_write() into one function

2010-11-01 Thread Jes . Sorensen
From: Jes Sorensen The current send_all() wrapper for POSIX calls does nothing but call unix_write(). Merge them to simplify the code. Signed-off-by: Jes Sorensen --- qemu-char.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 6d2

Re: [Qemu-devel] [PATCH 08/40] xenner: kernel: 64-bit files

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 15:02, Anthony Liguori wrote: > On 11/01/2010 02:00 PM, Blue Swirl wrote: >> On Mon, Nov 1, 2010 at 3:47 PM, Alexander Graf wrote: >> >>> On 01.11.2010, at 11:44, Anthony Liguori wrote: >>> >>> On 11/01/2010 10:01 AM, Alexander Graf wrote: > This p

Re: [Qemu-devel] [PATCH 08/40] xenner: kernel: 64-bit files

2010-11-01 Thread Blue Swirl
On Mon, Nov 1, 2010 at 7:05 PM, Alexander Graf wrote: > > On 01.11.2010, at 15:02, Anthony Liguori wrote: > >> On 11/01/2010 02:00 PM, Blue Swirl wrote: >>> On Mon, Nov 1, 2010 at 3:47 PM, Alexander Graf  wrote: >>> On 01.11.2010, at 11:44, Anthony Liguori wrote: > On 11/01/2010

Re: [Qemu-devel] [PATCH 02/40] elf: Add notes implementation

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 14:42, Stefan Weil wrote: > Am 01.11.2010 19:29, schrieb Blue Swirl: >> On Mon, Nov 1, 2010 at 3:01 PM, Alexander Graf wrote: >> >>> --- >>> hw/elf_ops.h | 61 >>> +- >>> hw/loader.c |7 ++ >>> hw/loader.h

[Qemu-devel] Re: [PATCH 02/40] elf: Add notes implementation

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 15:43, Paolo Bonzini wrote: > On 11/01/2010 07:52 PM, Alexander Graf wrote: @@ -237,6 +242,8 @@ static uint64_t elf_default_translate(void *opaque, uint64_t addr) ElfHandlers elf_default_handlers = { .translate_fn = elf_default_translate, .tr

  1   2   >