[Qemu-devel] [PATCH 2/3] msi: Cleanup uninit

2010-11-01 Thread Alex Williamson
This makes msi_uninit more similar to msix_uninit, doing nothing if not enable, clearing msi_cap and capability flag. Signed-off-by: Alex Williamson --- hw/msi.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hw/msi.c b/hw/msi.c index 0ad4e38..110859b 100644 -

[Qemu-devel] [PATCH 1/3] msi: Allow pre-existing MSI capabilities

2010-11-01 Thread Alex Williamson
For use with device assignment, allow calling msi_init() on devices with MSI capability already configured. Signed-off-by: Alex Williamson --- hw/msi.c | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/hw/msi.c b/hw/msi.c index f03f519..0ad4e38 100644 --- a/hw/

[Qemu-devel] [PATCH 3/3] msi: Store the capability size in PCIDevice

2010-11-01 Thread Alex Williamson
Avoid needing to get the MSI capability flags every time we need to check the capability length. This also makes it accessible outside of msi.c, making it easier for users to filter config space writes using msi_cap and msi_cap_size. Signed-off-by: Alex Williamson --- hw/msi.c |9 -

[Qemu-devel] [PATCH 0/3] msi: Small fixes and enhancements

2010-11-01 Thread Alex Williamson
Several small patches from porting VFIO to use msi.c. Thanks, Alex --- Alex Williamson (3): msi: Store the capability size in PCIDevice msi: Cleanup uninit msi: Allow pre-existing MSI capabilities hw/msi.c | 25 ++--- hw/pci.h |3 ++- 2 files chang

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

2010-11-01 Thread Stefano Stabellini
On Mon, 1 Nov 2010, Anthony Liguori wrote: > On 11/01/2010 02:47 PM, Alexander Graf wrote: > > Where else would it belong? Qemu is an emulator. Device emulation belongs > > to qemu code. The xen PV machine is nothing but a special case of the pc > > machine with custom firmware and odd devices :)

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

2010-11-01 Thread Anthony Liguori
On 11/01/2010 05:08 PM, Paolo Bonzini wrote: On 11/01/2010 11:00 PM, Anthony Liguori wrote: Okay, so does the same apply for xenstored? Does it make more sense to move that into the xenner kernel? I think no, because the backend devices do use xenstore, so they would need a way to talk to t

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

2010-11-01 Thread Paolo Bonzini
On 11/01/2010 11:00 PM, Anthony Liguori wrote: Okay, so does the same apply for xenstored? Does it make more sense to move that into the xenner kernel? I think no, because the backend devices do use xenstore, so they would need a way to talk to the guest. It's the same conceptually for the

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

2010-11-01 Thread Anthony Liguori
On 11/01/2010 04:47 PM, Paolo Bonzini wrote: On 11/01/2010 09:32 PM, Anthony Liguori wrote: I'm not sure I agree with the goal. I think where ever possible we should reuse code with the Xen project when it makes sense. Reusing blkback/netback is impossible because we want userspace implementa

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

2010-11-01 Thread Paolo Bonzini
On 11/01/2010 09:32 PM, Anthony Liguori wrote: I'm not sure I agree with the goal. I think where ever possible we should reuse code with the Xen project when it makes sense. Reusing blkback/netback is impossible because we want userspace implementations and the current implementations are in t

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

2010-11-01 Thread malc
On Mon, 1 Nov 2010, Gerd Hoffmann wrote: > > Signed-off-by: Gerd Hoffmann > --- > qemu-doc.texi |2 ++ > qemu-options.hx |1 + > 2 files changed, 3 insertions(+), 0 deletions(-) [..snip..] Appled, thanks. -- mailto:av1...@comtv.ru

[Qemu-devel] Re: [PATCH] ceph/rbd block driver for qemu-kvm (v7)

2010-11-01 Thread Sage Weil
Hi, Are there any lingering issues or concerns with the latest rbd patch, or other roadblocks that would prevent this from being merged? Thanks- sage On Fri, 15 Oct 2010, Christian Brunner wrote: > Hi, > > once again, Yehuda committed fixes for all the suggestions made on the > list (and mor

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

2010-11-01 Thread Stefan Weil
Am 01.11.2010 22:17, schrieb Alexander Graf: On 01.11.2010, at 16:19, Stefan Weil wrote: Am 01.11.2010 20:51, schrieb 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_o

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

2010-11-01 Thread Paolo Bonzini
On 11/01/2010 10:17 PM, Alexander Graf wrote: Let's ask someone who definitely knows:). LOL, hi Michael! :) Michael, is code like char *x = a, *y = b; if (x < y) { ... } valid? Or do I first have to cast x and y to unsigned longs or uintptr_t? It is, as long as x and y point into the s

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

2010-11-01 Thread Paolo Bonzini
On 11/01/2010 08:48 PM, Alexander Graf wrote: @@ -106,8 +106,10 @@ static int64_t load_kernel (CPUState *env) ram_addr_t initrd_offset; uint32_t *prom_buf; long prom_size; +ElfHandlers handlers = elf_default_handlers; -if (load_elf(loaderparams.kernel_filename, cpu_mips_ks

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

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 16:19, Stefan Weil wrote: > Am 01.11.2010 20:51, schrieb 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: > --- >

[Qemu-devel] [PATCH 2/2] Add qmp version of drive_unplug

2010-11-01 Thread Ryan Harper
Signed-off-by: Ryan Harper --- qmp-commands.hx | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx index 793cf1c..a1f7b2f 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -338,6 +338,37 @@ Example: EQMP

[Qemu-devel] [PATCH 1/2] Fix Block Hotplug race with drive_unplug()

2010-11-01 Thread Ryan Harper
Block hot unplug is racy since the guest is required to acknowlege the ACPI unplug event; this may not happen synchronously with the device removal command This series aims to close a gap where by mgmt applications that assume the block resource has been removed without confirming that the guest h

[Qemu-devel] [PATCH 0/2] v5 Decouple block device removal from device removal

2010-11-01 Thread Ryan Harper
This patch series decouples the detachment of a block device from the removal of the backing pci-device. Removal of a hotplugged pci device requires the guest to respond before qemu tears down the block device. In some cases, the guest may not respond leaving the guest with continued access to the

Re: [Qemu-devel] [PATCH 2/3] v2 Fix Block Hotplug race with drive_unplug()

2010-11-01 Thread Ryan Harper
* Markus Armbruster [2010-10-29 09:08]: > Ryan Harper writes: > > > Block hot unplug is racy since the guest is required to acknowlege the ACPI > > unplug event; this may not happen synchronously with the device removal > > command > > > > This series aims to close a gap where by mgmt applicati

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

2010-11-01 Thread Anthony Liguori
On 11/01/2010 02:47 PM, Alexander Graf wrote: Where else would it belong? Qemu is an emulator. Device emulation belongs to qemu code. The xen PV machine is nothing but a special case of the pc machine with custom firmware and odd devices :). As I stated in my cover letter, the goal of all this

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

2010-11-01 Thread Stefan Weil
Am 01.11.2010 20:51, schrieb 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 +- h

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

2010-11-01 Thread Anthony Liguori
On 11/01/2010 02:05 PM, Alexander Graf wrote: So if we can assume that the interface is 100% internal and can break at any time and there's no guarantee that a newer version of qemu works with an older version of xenner or vice versa, I'm perfectly fine in making it its own project :) No

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

2010-11-01 Thread Anthony Liguori
On 11/01/2010 02:39 PM, Paolo Bonzini wrote: On 11/01/2010 05:01 PM, Anthony Liguori wrote: IIUC, this is a mini-libxc that you enable by mucking with LD_LIBRARY_PATH such that you can run things like xenstored unmodified. What I'm really asking is whether there has been a discussion about a mo

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

2010-11-01 Thread Paolo Bonzini
On 11/01/2010 05:01 PM, Anthony Liguori wrote: IIUC, this is a mini-libxc that you enable by mucking with LD_LIBRARY_PATH such that you can run things like xenstored unmodified. What I'm really asking is whether there has been a discussion about a more pleasant way to do this that the Xen guys w

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

2010-11-01 Thread Paolo Bonzini
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, .translate_opaque = NULL, +.note_fn = elf_default_note, +.note_op

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

2010-11-01 Thread Alexander Graf
On 01.11.2010, at 15:41, Anthony Liguori wrote: > On 11/01/2010 02:39 PM, Paolo Bonzini wrote: >> On 11/01/2010 05:01 PM, Anthony Liguori wrote: >>> >>> IIUC, this is a mini-libxc that you enable by mucking with >>> LD_LIBRARY_PATH such that you can run things like xenstored unmodified. >>> What

[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

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

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 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

[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 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

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 >>>

[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

[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.

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 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 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.

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 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] 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] 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] [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

[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] 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: 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] [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: [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

[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

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

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

[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 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] 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 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:

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 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

[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 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

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] 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

[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] [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 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 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

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 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

[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

[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 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] 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 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

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 > +++

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

[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-

[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] 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 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] [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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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/

  1   2   >