Re: [kvm-devel] hugetlbfs

2008-04-10 Thread Yunfeng Zhao
Dor Laor wrote: On Wed, 2008-04-09 at 17:26 +0800, Yunfeng Zhao wrote: Hi, I meet problem to get hugetlbfs work on my test box. If i added --mem-path to qemu, the guest will always fail to boot with the error messages below printed on qemu console:

[kvm-devel] PCI Passthrough support for KVM

2008-04-10 Thread Amit Shah
This patchset introduces PCI passthrough support for KVM. This has been tested with an Ethernet device. The device is seen in the guest and interrupts are generated. However, no data transfer can take place unless pvdma or reserved-ram is used. The patches for pvdma will be available shortly.

[kvm-devel] [PATCH 1/1] QEMU/KVM: Support for PCI Passthrough

2008-04-10 Thread Amit Shah
We can assign a device from the host machine to a guest. A new command-line option, -pcidevice is added. For example, to invoke it for an Ethernet device sitting at PCI bus:dev.fn 04:08.0 with host IRQ 18, use this: -pcidevice Ethernet/04:08.0-18 The host ethernet driver is to be removed before

[kvm-devel] [PATCH 2/2] KVM: Handle interrupts for PCI passthrough devices

2008-04-10 Thread Amit Shah
Passthrough devices are host machine PCI devices which have been handed off to the guest. Handle interrupts from these devices and route them to the appropriate guest irq lines. The userspace provides us with the necessary information via the ioctls. The guest IRQ numbers can change dynamically,

[kvm-devel] [PATCH 1/2] KVM: Expose get_eoi_gsi() for IRQ acking by PCI passthrough devices

2008-04-10 Thread Amit Shah
Signed-off-by: Amit Shah [EMAIL PROTECTED] --- virt/kvm/ioapic.c |2 +- virt/kvm/ioapic.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index 4232fd7..c5e776a 100644 --- a/virt/kvm/ioapic.c +++ b/virt/kvm/ioapic.c @@ -268,7

[kvm-devel] PCI Passthrough support for KVM

2008-04-10 Thread Amit Shah
This patchset introduces PCI passthrough support for KVM. This has been tested with an Ethernet device. The device is seen in the guest and interrupts are generated. However, no data transfer can take place unless pvdma or reserved-ram is used. The patches for pvdma will be available shortly.

Re: [kvm-devel] [PATCH] use NR_IRQS for irq count

2008-04-10 Thread Amit Shah
* On Wednesday 09 Apr 2008 17:41:10 Glauber Costa wrote: Amit Shah wrote: * On Tuesday 08 April 2008 22:34:36 Glauber Costa wrote: Instead of artificially limiting irq numbers, use arch provided NR_IRQS Signed-off-by: Glauber Costa [EMAIL PROTECTED] Thanks, applied. Going forward,

[kvm-devel] Using Swiftshader for 3d in kvm

2008-04-10 Thread Pelle
Hi all, I've recently read about swiftshader, a software 3d renderer for windows. I tested this on my virtual windows install and the demo's are looking good. This may not be perfect, but is should allow to play a simple 3d game inside kvm. http://www.transgaming.com/products/swiftshader/

Re: [kvm-devel] virtio with 2.6.25-rc8: problem with /dev/vda

2008-04-10 Thread Dor Laor
On Thu, 2008-04-10 at 14:14 +0900, Jun Koi wrote: On 4/10/08, Jorge Lucángeli Obes [EMAIL PROTECTED] wrote: On Thu, Apr 10, 2008 at 12:59 AM, Jun Koi [EMAIL PROTECTED] wrote: Now I succesfully installed 2.6.25-rc8, and virtio block device works well. But from inside my VM, how can I

Re: [kvm-devel] [PATCH 0 of 3] KVM for PowerPC 440

2008-04-10 Thread Josh Boyer
On Mon, 07 Apr 2008 15:53:31 -0500 Hollis Blanchard [EMAIL PROTECTED] wrote: Implement initial support for KVM for PowerPC 440. There are just two small prerequisite patches, and then the bulk of the code can't be split easily. Please review; I would like to submit these for 2.6.26. There is

[kvm-devel] [PATCH] kvm-userspace: fix compilation breakage when in-kernel pit is not detected

2008-04-10 Thread Joerg Roedel
The compilation of kvm-userspace part fails if the in-kernel pit is not detected in linux/kvm.h with the following error message: pc.o: In function `pc_init1': /home/jroedel/src/kvm/kvm-userspace/qemu/hw/pc.c:987: undefined reference to `kvm_pit_init' collect2: ld returned 1 exit status This

Re: [kvm-devel] problems with Ubuntu server amd64 (kernel 2.6.24) and Windows 2003 32bit as guest

2008-04-10 Thread Davide D'Amico
Il giorno 09/apr/08, alle ore 15:27, Felix Leimbach ha scritto: On 09.04.2008 Davide D'Amico wrote: I have a Windows 2003 32 bit guest that hangs up (i.e. not responding anymore) Hi Davide, I had very similar problems (details in [1]) which were solved by upgrading to host's kernel

Re: [kvm-devel] [PATCH 1 of 3] [POWERPC 44x] Export tlb_44x_hwater for KVM

2008-04-10 Thread Josh Boyer
On Mon, 07 Apr 2008 15:53:32 -0500 Hollis Blanchard [EMAIL PROTECTED] wrote: 1 file changed, 2 insertions(+) include/asm-powerpc/mmu-44x.h |2 ++ PowerPC 440 KVM needs to know how many TLB entries are used for the host kernel linear mapping (it does not modify these mappings when

[kvm-devel] [patch 1/2] KVM: hlt emulation should take in-kernel APIC/PIT timers into account

2008-04-10 Thread Marcelo Tosatti
Timers that fire between guest hlt and vcpu_block's add_wait_queue() are ignored, possibly resulting in hangs. Also make sure that atomic_inc and waitqueue_active tests happen in the specified order, otherwise the following race is open: CPU0CPU1

[kvm-devel] [patch 0/2] fix in-kernel timer / IRQ injection races

2008-04-10 Thread Marcelo Tosatti
-- - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.

[kvm-devel] [patch 2/2] KVM: fix kvm_vcpu_kick vs __vcpu_run race

2008-04-10 Thread Marcelo Tosatti
There is a window open between testing of pending IRQ's and assignment of guest_mode in __vcpu_run. Injection of IRQ's can race with __vcpu_run as follows: CPU0CPU1 kvm_x86_ops-run() vcpu-guest_mode = 0SET_IRQ_LINE ioctl ..

[kvm-devel] [PATCH 2 of 2] Remove kvm_load_registers from ppc440_bamboo board model

2008-04-10 Thread Jerone Young
1 file changed, 3 deletions(-) qemu/hw/ppc440_bamboo.c |3 --- This patch removes the call to kvm_load_registers while in board platform setup code. This must now be done later in vcpu initialization. Signed-off-by: Jerone Young [EMAIL PROTECTED] diff --git a/qemu/hw/ppc440_bamboo.c

[kvm-devel] [PATCH 1 of 2] Add kvm_load_registers after first vcpu creation

2008-04-10 Thread Jerone Young
1 file changed, 5 insertions(+) qemu/qemu-kvm.c |5 + This patch adds a call to load_kvm_registers after creation of vcpu. This is required for ppc since we are required to set certain registers before boot. This should not have any effect on the curren x86 code (though I need to test

[kvm-devel] [PATCH 0 of 2] Fix loading of registers preboot for PowerPC

2008-04-10 Thread Jerone Young
These patches fix issue with brining up bamboo board model for PowerPC. We need to load certain registers in the first vcp preboot. I have not tested this on x86, but it should work without issue. Does anyone not like this being where it is? 2 files changed, 5 insertions(+), 3 deletions(-)

Re: [kvm-devel] [PATCH 1 of 2] Add kvm_load_registers after first vcpu creation

2008-04-10 Thread Jerone Young
On Thu, 2008-04-10 at 18:35 -0300, Marcelo Tosatti wrote: On Thu, Apr 10, 2008 at 04:04:47PM -0500, Jerone Young wrote: 1 file changed, 5 insertions(+) qemu/qemu-kvm.c |5 + This patch adds a call to load_kvm_registers after creation of vcpu. This is required for ppc since we

[kvm-devel] [PATCH 3 of 3] Remove duplicate kvm_qemu_init() calls

2008-04-10 Thread Jerone Young
1 file changed, 1 deletion(-) qemu/qemu-kvm.c |1 - kvm_qemu_init is called in ap_main_loop() , when ap_main_loop() calls kvm_main_loop_cpu(), kvm_qemu_init() is run for a second time. It should only be called in kvm_main_loop_cpu(). Signed-off-by: Jerone Young [EMAIL PROTECTED] ~ diff

[kvm-devel] [PATCH 1 of 3] Add kvm_load_registers into qemu_arch_init for PowerPC

2008-04-10 Thread Jerone Young
1 file changed, 6 insertions(+) qemu/qemu-kvm-powerpc.c |6 ++ This patch adds a call to load_kvm_registers after creation of vcpu. This is required for ppc since we are required to set certain registers before boot. Signed-off-by: Jerone Young [EMAIL PROTECTED] diff --git

[kvm-devel] [PATCH 0 of 3] [V2] Fix loading of registers preboot for PowerPC

2008-04-10 Thread Jerone Young
So this now moves code away from common code to arch specific kvm_qemu_arch_init(). Also added is a removal of duplicate calls to kvm_qemu_init_env() in common code. Signed-off-by: Jerone Young [EMAIL PROTECTED] 3 files changed, 6 insertions(+), 4 deletions(-) qemu/hw/ppc440_bamboo.c |3

Re: [kvm-devel] [PATCH] kvm-userspace: fix compilation breakage when in-kernel pit is not detected

2008-04-10 Thread Avi Kivity
Joerg Roedel wrote: The compilation of kvm-userspace part fails if the in-kernel pit is not detected in linux/kvm.h with the following error message: pc.o: In function `pc_init1': /home/jroedel/src/kvm/kvm-userspace/qemu/hw/pc.c:987: undefined reference to `kvm_pit_init' collect2: ld

Re: [kvm-devel] [PATCH 0/3] SVM: handle MCEs properly

2008-04-10 Thread Avi Kivity
Joerg Roedel wrote: This patchset implements proper MCE handling for SVM in the KVM hypervisor. Currently KVM does not set CR4.MCE when it runs the guest. When a MCE condition occurs while the guest is running the exception gets lost. This may result in data corruption or other undefined

Re: [kvm-devel] [PATCH 0/5]Add kvm trace support v3

2008-04-10 Thread Avi Kivity
Liu, Eric E wrote: Hi, Avi and all According to your comments from V2, I work out the new patchsets of kvm trace. Please help to review, Thanks. In this version, fix the issues you pointed out and add a new ioctl PAUSE to make user space app better to control trace stream. Hope it is

Re: [kvm-devel] [patch 0/4] fix SMP migration and loadvm/savevm (V2)

2008-04-10 Thread Avi Kivity
Marcelo Tosatti wrote: On Wed, Apr 09, 2008 at 12:59:50AM +0300, Avi Kivity wrote: Marcelo Tosatti wrote: Avi, I prefer not to fold mpstate into kvm_save_registers() as a hidden register because the MPSTATE is only used during migration, whereas save_registers() is not (seems

Re: [kvm-devel] [PATCH] add ioctl's to save/restore mpstate

2008-04-10 Thread Avi Kivity
Marcelo Tosatti wrote: /* * ioctls for VM fds @@ -340,5 +341,7 @@ struct kvm_s390_interrupt { #define KVM_S390_SET_INITIAL_PSW _IOW(KVMIO, 0x96, struct kvm_s390_psw) /* initial reset for s390 */ #define KVM_S390_INITIAL_RESET_IO(KVMIO, 0x97) +#define KVM_GET_MP_STATE

[kvm-devel] vmwarevga error

2008-04-10 Thread Mark Bidewell
When I use the vmwarevga option I get the following error: kvm: get_dirty_pages returned -2 This is the same error that used to occur with -std-vga. Is this a known issue? Mark Bidewell - This SF.net email is sponsored by

Re: [kvm-devel] [PATCH] kvm-userspace: fix compilation breakage when in-kernel pit is not detected

2008-04-10 Thread Anthony Liguori
Joerg Roedel wrote: The compilation of kvm-userspace part fails if the in-kernel pit is not detected in linux/kvm.h with the following error message: pc.o: In function `pc_init1': /home/jroedel/src/kvm/kvm-userspace/qemu/hw/pc.c:987: undefined reference to `kvm_pit_init' collect2: ld