Re: [kvm-devel] [PATCH] kvm guest balloon driver

2008-01-08 Thread Rusty Russell
On Wednesday 09 January 2008 03:18:13 Avi Kivity wrote: > Marcelo Tosatti wrote: > > Do you have any suggestion on how to retrieve the IRQ of the virtio > > device, or some other notification mechanism? Unfortunately, irqs are logically assigned to virtio queues, not devices. Yet configuration in

[kvm-devel] compile error

2008-01-08 Thread Zhao, Yunfeng
Today's tip fails to compile with following error messages: /workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-use rspace/qemu/../libkvm -DCONFIG_X86 -Wall -O2 -g -fno-strict-aliasing -I. -I/workspace/ia32e/nightly/kvm-master-2.6.22-rc4-20080109010121401/kvm-u serspace/qemu -MM

Re: [kvm-devel] something like vmware fusion unity

2008-01-08 Thread Jorge Lucángeli Obes
On Jan 8, 2008 4:54 PM, Izik Eidus <[EMAIL PROTECTED]> wrote: > Jerry Geis wrote: > > Hi all, > > > > I have kvm working, very sweet. I run linux and XP guests on my linux host. > > I am looking for functionality like vmware fusion unity with kvm. > > Is it there and I havent found it, is it coming

[kvm-devel] [PATCH 0 of 2] Fix kvm-userspace/user/ for PowerPC

2008-01-08 Thread Hollis Blanchard
When applied after Jerone's kvm_create_kernel_phys_mem() libkvm patch, these patches get the kvm-userspace/user/ test harness building and somewhat working for PowerPC. For the moment it's just a simply binary loader (hence the need for objcopy), but in the future it should be easy to add an ELF or

[kvm-devel] [PATCH 2 of 2] Add PowerPC kvmctl harness and fix building the testcases

2008-01-08 Thread Hollis Blanchard
# HG changeset patch # User Hollis Blanchard <[EMAIL PROTECTED]> # Date 1199836753 21600 # Node ID dd6de019e916f0cc2b4f75afb95a9d28323cb174 # Parent 2b1946f501613724c363f98cbdfd95248b947657 Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]> --- 2 files changed, 447 insertions(+), 9 deletions(-)

[kvm-devel] [PATCH 1 of 2] Add OBJCOPY to kvm-userspace/user/configure output

2008-01-08 Thread Hollis Blanchard
# HG changeset patch # User Hollis Blanchard <[EMAIL PROTECTED]> # Date 1199836243 21600 # Node ID 2b1946f501613724c363f98cbdfd95248b947657 # Parent 332daa1196f0a74d2ad3c34ed2ca41d5d859b0de Signed-off-by: Hollis Blanchard <[EMAIL PROTECTED]> --- 1 file changed, 2 insertions(+) user/configure |

Re: [kvm-devel] something like vmware fusion unity

2008-01-08 Thread Izik Eidus
Jerry Geis wrote: > Hi all, > > I have kvm working, very sweet. I run linux and XP guests on my linux host. > I am looking for functionality like vmware fusion unity with kvm. > Is it there and I havent found it, is it coming? > > I want to run the XP image but display the window of my app on my li

[kvm-devel] something like vmware fusion unity

2008-01-08 Thread Jerry Geis
Hi all, I have kvm working, very sweet. I run linux and XP guests on my linux host. I am looking for functionality like vmware fusion unity with kvm. Is it there and I havent found it, is it coming? I want to run the XP image but display the window of my app on my linux desktop. I have tried rd

Re: [kvm-devel] [kvm-ppc-devel] [PATCH] Add function kvm_create_kernel_phys_mem to libkvm-powerpc.c

2008-01-08 Thread Hollis Blanchard
On Tue, 2008-01-08 at 15:27 -0600, Jerone Young wrote: > # HG changeset patch > # User Jerone Young <[EMAIL PROTECTED]> > # Date 1199827424 21600 > # Node ID bff590d13f32071b50d79f511424821847ed5ba7 > # Parent a6e6b30d5f4154fd91dbf68e7e3986b2af02ee0f > Add function kvm_create_kernel_phys_mem to li

Re: [kvm-devel] [PATCH] KVM: add KVM_SYNC_SHADOW_WITH_USER ioctl

2008-01-08 Thread Dor Laor
Marcelo Tosatti wrote: > The host needs to zap its shadow entries before performing an inflate > operation to avoid the guest from using stale ones. > > So add an ioctl to interface with kvm_mmu_zap_all(). > > Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> > > Index: kvm.quilt/virt/kvm/kvm_main

Re: [kvm-devel] [PATCH] Enhnace kvm-userspace configure script for powerpc

2008-01-08 Thread Anthony Liguori
Jerone Young wrote: > My upstream must be out of date. But the way upstream seems really > awful. If I mistype any valid option then I don't even get an error. > It's passed as a qemu option. This does not seem to be a great idea, > causes more headaches. > Sure, and QEMU will complain about it

Re: [kvm-devel] [PATCH] Enhnace kvm-userspace configure script for powerpc

2008-01-08 Thread Jerone Young
My upstream must be out of date. But the way upstream seems really awful. If I mistype any valid option then I don't even get an error. It's passed as a qemu option. This does not seem to be a great idea, causes more headaches. On Tue, 2008-01-08 at 16:03 -0600, Anthony Liguori wrote: > Jerone Yo

Re: [kvm-devel] [PATCH] Enhnace kvm-userspace configure script for powerpc

2008-01-08 Thread Anthony Liguori
Jerone Young wrote: > # HG changeset patch > # User Jerone Young <[EMAIL PROTECTED]> > # Date 1199829366 21600 > # Node ID 5d3976c5b77e42ad1f63d02271a7ff2086cabb6c > # Parent bff590d13f32071b50d79f511424821847ed5ba7 > Enhnace kvm-userspace configure script for powerpc > > > This patch adds more op

[kvm-devel] [PATCH] Enhnace kvm-userspace configure script for powerpc

2008-01-08 Thread Jerone Young
# HG changeset patch # User Jerone Young <[EMAIL PROTECTED]> # Date 1199829366 21600 # Node ID 5d3976c5b77e42ad1f63d02271a7ff2086cabb6c # Parent bff590d13f32071b50d79f511424821847ed5ba7 Enhnace kvm-userspace configure script for powerpc This patch adds more options to compile qemu with and place

[kvm-devel] [PATCH] Add function kvm_create_kernel_phys_mem to libkvm-powerpc.c

2008-01-08 Thread Jerone Young
# HG changeset patch # User Jerone Young <[EMAIL PROTECTED]> # Date 1199827424 21600 # Node ID bff590d13f32071b50d79f511424821847ed5ba7 # Parent a6e6b30d5f4154fd91dbf68e7e3986b2af02ee0f Add function kvm_create_kernel_phys_mem to libkvm-powerpc.c Function kvm_create_kernel_phys_mem was missing fro

Re: [kvm-devel] Slow Kernel Boot

2008-01-08 Thread Daniel P. Berrange
On Tue, Jan 08, 2008 at 11:13:08AM -0800, Dave Hansen wrote: > On Tue, 2008-01-08 at 12:12 +0530, Amit Shah wrote: > > > BIOS-provided physical RAM map: > > > BIOS-e820: - 0009fc00 (usable) > > > BIOS-e820: 0009fc00 - 000a (reserved) > > > BIOS-e820:

Re: [kvm-devel] Slow Kernel Boot

2008-01-08 Thread Dave Hansen
On Tue, 2008-01-08 at 12:12 +0530, Amit Shah wrote: > > BIOS-provided physical RAM map: > > BIOS-e820: - 0009fc00 (usable) > > BIOS-e820: 0009fc00 - 000a (reserved) > > BIOS-e820: 000e8000 - 0010 (reserved) > > BIOS-e820:

Re: [kvm-devel] boot stops after console handover?

2008-01-08 Thread Antoine Martin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Avi Kivity wrote: > Antoine Martin wrote: >> Avi Kivity wrote: >> >>> Antoine Martin wrote: >>> Hi, Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 Booting with: qemu-system-x86_64 -hda /home/uml/BusyB

Re: [kvm-devel] [PATCH] portability: add top level config-$arch files

2008-01-08 Thread Jerone Young
This is a patch that we do need. Though instead of redefining "qemu" target in every config file. It's best to use a variable and have "qemu" target in the main Makefile use that variable for dependencies. example: Makefile qemu: $(ARCH_QEMU_DEP) config-x86 ARCH_QEMU_DEP = libkvm extb

Re: [kvm-devel] [PATCH] extboot: fix -fno-stack-protector usage

2008-01-08 Thread Avi Kivity
Christian Ehrhardt wrote: > Subject: [PATCH] extboot: fix -fno-stack-protector usage > From: Christian Ehrhardt <[EMAIL PROTECTED]> > > Option -fno-stack-protector breaks kvm-userspace in environments without > stack-protector functionality. They fail with "unrecognized command line > option" whe

Re: [kvm-devel] [PATCH] QEMU KVM balloon support

2008-01-08 Thread Marcelo Tosatti
On Tue, Jan 08, 2008 at 04:43:42PM +, Daniel P. Berrange wrote: > On Tue, Jan 08, 2008 at 01:43:40PM -0200, Marcelo Tosatti wrote: > > Index: kvm-userspace/qemu/monitor.c > > === > > --- kvm-userspace.orig/qemu/monitor.c > > +++ kv

[kvm-devel] [PATCH] portability: add top level config-$arch files

2008-01-08 Thread Christian Ehrhardt
Subject: [PATCH] portability: add top level config-$arch files From: Christian Ehrhardt <[EMAIL PROTECTED]> This allows per arch configuration for the top level Makefile of kvm-userspace e.g. allowing to disable extboot for non x86 or disabling kvmctl build until ported to an architecture. I'm awa

[kvm-devel] [PATCH] extboot: fix -fno-stack-protector usage

2008-01-08 Thread Christian Ehrhardt
Subject: [PATCH] extboot: fix -fno-stack-protector usage From: Christian Ehrhardt <[EMAIL PROTECTED]> Option -fno-stack-protector breaks kvm-userspace in environments without stack-protector functionality. They fail with "unrecognized command line option" when compiling extboot. This patch remov

Re: [kvm-devel] [PATCH] QEMU KVM balloon support

2008-01-08 Thread Daniel P. Berrange
On Tue, Jan 08, 2008 at 01:43:40PM -0200, Marcelo Tosatti wrote: > Index: kvm-userspace/qemu/monitor.c > === > --- kvm-userspace.orig/qemu/monitor.c > +++ kvm-userspace/qemu/monitor.c > @@ -1339,6 +1339,8 @@ static term_cmd_t term_cmds

Re: [kvm-devel] [PATCH] kvm guest balloon driver

2008-01-08 Thread Anthony Liguori
Avi Kivity wrote: > Anthony Liguori wrote: >> BTW, I don't think the target should be a config value. You don't >> gain anything from it being in the config space and it's somewhat >> unnatural for a virtio device. It makes more sense as a message to >> the guest. >> > > I disagree. The tar

Re: [kvm-devel] [PATCH] Fixup virtio_net TX timer

2008-01-08 Thread Avi Kivity
Anthony Liguori wrote: > Instead of introducing a new flag, I think we decided that we would make the > NO_NOTIFY flag be a hint and have both ends always notify when the ring is > full or empty. This patch updates the QEMU virtio code to reflect this. > Thanks, applied. -- error compiling c

Re: [kvm-devel] [PATCH] kvm guest balloon driver

2008-01-08 Thread Avi Kivity
Anthony Liguori wrote: > BTW, I don't think the target should be a config value. You don't gain > anything from it being in the config space and it's somewhat unnatural > for a virtio device. It makes more sense as a message to the guest. > I disagree. The target is state, not an individual

Re: [kvm-devel] [PATCH] kvm guest balloon driver

2008-01-08 Thread Avi Kivity
Marcelo Tosatti wrote: >> Why is it taking over the irq? This is very, very wrong. A virtio >> device cannot be dependent on being used on top of the virtio-pci backend. >> > > A notification is necessary whenever the host changes the target value > in the config space. So right now thi

Re: [kvm-devel] [PATCH] kvm guest balloon driver

2008-01-08 Thread Anthony Liguori
Marcelo Tosatti wrote: > On Tue, Jan 08, 2008 at 09:42:13AM -0600, Anthony Liguori wrote: > >> Marcelo Tosatti wrote: >> >>> Following patch introduces a KVM guest balloon driver. Communication >>> to/from the host is performed via virtio. >>> >>> > > I'll address the other comments.

[kvm-devel] [PATCH] Fixup virtio_net TX timer

2008-01-08 Thread Anthony Liguori
Instead of introducing a new flag, I think we decided that we would make the NO_NOTIFY flag be a hint and have both ends always notify when the ring is full or empty. This patch updates the QEMU virtio code to reflect this. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff --git a/qemu/hw/

Re: [kvm-devel] [PATCH] kvm guest balloon driver

2008-01-08 Thread Marcelo Tosatti
On Tue, Jan 08, 2008 at 09:42:13AM -0600, Anthony Liguori wrote: > Marcelo Tosatti wrote: > >Following patch introduces a KVM guest balloon driver. Communication > >to/from the host is performed via virtio. > > I'll address the other comments. > >+virtballoon.dev = vdev; > >+init_waitqueu

Re: [kvm-devel] [PATCH] kvm guest balloon driver

2008-01-08 Thread Anthony Liguori
Marcelo Tosatti wrote: > Following patch introduces a KVM guest balloon driver. Communication > to/from the host is performed via virtio. > > Next patch implements the QEMU driver and handling. > > Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> > > Index: linux-2.6-nv/drivers/virtio/Kconfig > =

[kvm-devel] [PATCH] QEMU KVM balloon support

2008-01-08 Thread Marcelo Tosatti
Add QEMU support for the KVM balloon driver. Memory hinting is performed via madvise(). Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> Index: kvm-userspace/libkvm/libkvm.c === --- kvm-userspace.orig/libkvm/libkvm.c +++ kvm-user

[kvm-devel] [PATCH] KVM: add KVM_SYNC_SHADOW_WITH_USER ioctl

2008-01-08 Thread Marcelo Tosatti
The host needs to zap its shadow entries before performing an inflate operation to avoid the guest from using stale ones. So add an ioctl to interface with kvm_mmu_zap_all(). Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> Index: kvm.quilt/arch/x86/kvm/x86.c =

[kvm-devel] [PATCH] kvm guest balloon driver

2008-01-08 Thread Marcelo Tosatti
Following patch introduces a KVM guest balloon driver. Communication to/from the host is performed via virtio. Next patch implements the QEMU driver and handling. Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> Index: linux-2.6-nv/drivers/virtio/Kconfig ==

Re: [kvm-devel] [PATCH 3/3][QEMU] Support TX mitigation in QEMU's virtio_net device

2008-01-08 Thread Avi Kivity
Anthony Liguori wrote: > This patch adds support for TX mitigation in QEMU using the new NOTIFY_ON_FULL > virtio ring flag. > > With this (modified to use VRING_USED_F_NO_NOTIFY as Rusty suggests) and the latest virtio patchqueue (now available as the virtio branch on kvm.git) I get better l

Re: [kvm-devel] [PATCH] use rtl8139 for bootp too and adjust docs accordingly

2008-01-08 Thread Avi Kivity
Guido Guenther wrote: > If we change the default nic, we should do so in all places. Without > this PXE booting is broken since we select the wrong pxe etherboot > image. > Applied, thanks. -- error compiling committee.c: too many arguments to function --

Re: [kvm-devel] building kvm-userspace with separate kernel object directory?

2008-01-08 Thread Avi Kivity
Hollis Blanchard wrote: > Create an "asm" symlink from libkvm into the kernel source directory. > This allows one to use kernel trees built with the O= option. > > Applied, thanks. -- error compiling committee.c: too many arguments to function

Re: [kvm-devel] Slow Kernel Boot

2008-01-08 Thread Amit Shah
On Tuesday 08 January 2008 18:31:53 Amit Shah wrote: > On Tuesday 08 January 2008 12:12:53 Amit Shah wrote: > > On Tuesday 08 January 2008 03:35:48 Dave Hansen wrote: > > > With kvm-44, I thought my kernel was freezing during boot if I gave it > > > 1G of RAM. But, it boots fine with 512M. > > > >

Re: [kvm-devel] Slow Kernel Boot

2008-01-08 Thread Izik Eidus
On Tue, 2008-01-08 at 18:31 +0530, Amit Shah wrote: > On Tuesday 08 January 2008 12:12:53 Amit Shah wrote: > > On Tuesday 08 January 2008 03:35:48 Dave Hansen wrote: > > > With kvm-44, I thought my kernel was freezing during boot if I gave it > > > 1G of RAM. But, it boots fine with 512M. > > > >

Re: [kvm-devel] Slow Kernel Boot

2008-01-08 Thread Amit Shah
On Tuesday 08 January 2008 12:12:53 Amit Shah wrote: > On Tuesday 08 January 2008 03:35:48 Dave Hansen wrote: > > With kvm-44, I thought my kernel was freezing during boot if I gave it > > 1G of RAM. But, it boots fine with 512M. > > > > So, I instrumented the kernel, and found out that it is just

[kvm-devel] [PATCH] use rtl8139 for bootp too and adjust docs accordingly

2008-01-08 Thread Guido Guenther
If we change the default nic, we should do so in all places. Without this PXE booting is broken since we select the wrong pxe etherboot image. Cheers, -- Guido diff --git a/qemu/qemu-doc.texi b/qemu/qemu-doc.texi index 04529a1..accf360 100644 --- a/qemu/qemu-doc.texi +++ b/qemu/qemu-doc.texi @@ -

Re: [kvm-devel] [PATCH] portability: move kvm_fpu to asm-x86/kvm.h

2008-01-08 Thread Avi Kivity
Christian Ehrhardt wrote: > Subject: [PATCH] portability: move kvm_fpu to asm-x86/kvm.h > From: Christian Ehrhardt <[EMAIL PROTECTED]> > > This patch moves kvm_fpu asm-x86/kvm.h to allow every architecture to > define an own representation used for KVM_GET_FPU/KVM_SET_FPU. > > Applied, thanks.

Re: [kvm-devel] The reason of using Qcow images to boot smp Windows fail ?

2008-01-08 Thread Avi Kivity
Liu, Eric E wrote: > Hi Avi > For current commit Windows SMP guests will fail to boot if using > Qcow images based on the original backend file on a remote network file > system. I found out that one Ap thread is hang at the place of > bdrv_read_em() -> qemu_aio_wait() -> sigwait(), which is

[kvm-devel] The reason of using Qcow images to boot smp Windows fail ?

2008-01-08 Thread Liu, Eric E
Hi Avi For current commit Windows SMP guests will fail to boot if using Qcow images based on the original backend file on a remote network file system. I found out that one Ap thread is hang at the place of bdrv_read_em() -> qemu_aio_wait() -> sigwait(), which is waiting for the signal SIG

Re: [kvm-devel] [PATCH] add acpi powerbutton support

2008-01-08 Thread Avi Kivity
Jun Koi wrote: > On 1/7/08, Avi Kivity <[EMAIL PROTECTED]> wrote: > >> Guido Guenther wrote: >> >>> (needs either --no-kvm-irqchip or the previous patch) >>> -- Guido >>> >>> >>> >> Applied both, thanks. >> >> > > Sorry for my ignorance, but what is the effect of this patc

Re: [kvm-devel] boot stops after console handover?

2008-01-08 Thread Avi Kivity
Antoine Martin wrote: > Avi Kivity wrote: > >> Antoine Martin wrote: >> >>> Hi, >>> >>> Trying to boot KVM on a Core2Duo system, kvm-59 + linux-2.6.23.12 >>> Booting with: >>> qemu-system-x86_64 -hda /home/uml/BusyBox-1.5.0-amd64-root_fs -m 384 >>> - -nographic -cpu qemu64 -kernel /boot/vml

Re: [kvm-devel] [PATCH] add acpi powerbutton support

2008-01-08 Thread Guido Guenther
On Tue, Jan 08, 2008 at 01:34:30PM +0900, Jun Koi wrote: > Sorry for my ignorance, but what is the effect of this patch? So > I can shutdown guest VM cleanly, or smt else?? system_powerdown in the commmand monitor now simulates the pressing of the acpi power button. This allows you to shutdown