[PATCH] kvm: external module: export ns_to_timespec() for older kernels

2008-06-25 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/kernel/external-module-compat.c b/kernel/external-module-compat.c index 2a22119..436d0f1 100644 --- a/kernel/external-module-compat.c +++ b/kernel/external-module-compat.c @@ -198,3 +198,38 @@ void

[PATCH] kvm: external module: export ns_to_timespec() for older kernels

2008-06-25 Thread Avi Kivity
From: Avi Kivity [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/kernel/external-module-compat.c b/kernel/external-module-compat.c index 2a22119..84cdd40 100644 --- a/kernel/external-module-compat.c +++ b/kernel/external-module-compat.c @@ -198,3 +198,37 @@ void

[PATCH] KVM: VMX: Rename misnamed msr bits

2008-06-25 Thread Avi Kivity
From: Sheng Yang [EMAIL PROTECTED] MSR_IA32_FEATURE_LOCKED is just a bit in fact, which shouldn't be prefixed with MSR_. So is MSR_IA32_FEATURE_VMXON_ENABLED. Signed-off-by: Sheng Yang [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/arch/x86/kvm/vmx.c

Re: [GIT PULL] KVM fixes for 2.6.26-rc7

2008-06-25 Thread Avi Kivity
Linus Torvalds wrote: On Wed, 25 Jun 2008, Avi Kivity wrote: Linus, please pull from the repo and branch at: git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm.git kvm-updates-2.6.26 to receive kvm updates for 2.6.26-rc7. The patches fix host oopses, guest interrupt loss, and total

PCI device assignment to guests

2008-06-25 Thread Amit Shah
This patchset introduces support for assigning PCI devices to guests (kernel part). The main difference from the last version is reserving the PCI device for our exclusive use so that multiple device assignment will fail, as will device assignment when a driver for the device being assigned

[PATCH 1/3] KVM: Introduce kvm_set_irq to inject interrupts in guests

2008-06-25 Thread Amit Shah
This function injects an interrupt into the guest given the kvm struct, the (guest) irq number and the interrupt level. Signed-off-by: Amit Shah [EMAIL PROTECTED] --- arch/x86/kvm/irq.c | 11 +++ arch/x86/kvm/irq.h |2 ++ 2 files changed, 13 insertions(+), 0 deletions(-) diff

[PATCH 2/3] KVM: Introduce a callback routine for IOAPIC ack handling

2008-06-25 Thread Amit Shah
This will be useful for acking irqs of assigned devices Signed-off-by: Amit Shah [EMAIL PROTECTED] --- virt/kvm/ioapic.c |3 +++ virt/kvm/ioapic.h |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c index 9d02136..4759d77 100644 ---

[ kvm-Bugs-2001452 ] Restarted Windows 2003 Server guests have disk corruption

2008-06-25 Thread SourceForge.net
Bugs item #2001452, was opened at 2008-06-24 07:27 Message generated for change (Comment added) made by gerdwachs You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2001452group_id=180599 Please note that this message will contain a full copy of the comment

Re: [PATCH] Ignore DEBUGCTL MSRs

2008-06-25 Thread Alexander Graf
Hi Joerg, On Jun 24, 2008, at 3:40 PM, Joerg Roedel wrote: Hi Alex, On Tue, Jun 24, 2008 at 07:04:45AM +0200, Alexander Graf wrote: Netware writes and reads to the DEBUGCTL and LAST*IP MSRs without further checks and is really confused to receive a #GP during that. To make it happy we

[PATCH][REPOST] KVM: VMX: Fix a wrong usage of vmcs_config

2008-06-25 Thread Yang, Sheng
From a1c929709718c015686b0c23046cc08b8bc47a62 Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Wed, 18 Jun 2008 14:43:38 +0800 Subject: [PATCH] KVM: VMX: Fix a wrong usage of vmcs_config The function ept_update_paging_mode_cr0() write to CPU_BASED_VM_EXEC_CONTROL based on

[PATCH][REPOST] KVM: VMX: Add ept_sync_context in flush_tlb

2008-06-25 Thread Yang, Sheng
From 54dc26e44f1c0aa460bef409b799f36dae56a911 Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Wed, 18 Jun 2008 11:23:13 +0800 Subject: [PATCH] KVM: VMX: Add ept_sync_context in flush_tlb Fix a potention issue caused by kvm_mmu_slot_remove_write_access(). The old behavior don't

RE: PCI PT: irq issue

2008-06-25 Thread Han, Weidong
Amit Shah wrote: On Monday 23 June 2008 20:46:18 Han, Weidong wrote: Amit Shah wrote: On Saturday 21 June 2008 09:41:18 Han, Weidong wrote: Amit Shah wrote: A couple of notes for the VT-d patch: - The pci_dev struct is now available in the pci_pt kernel structure, so just use that

Re: [PATCH] KVM: VMX: Some defined name fix

2008-06-25 Thread Avi Kivity
Yang, Sheng wrote: From 0dae764c94f48bd05f796947df1c85028ade59fa Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Tue, 24 Jun 2008 17:02:38 +0800 Subject: [PATCH] KVM: VMX: Some defined name fix MSR_IA32_FEATURE_LOCKED is just a bit in fact, which shouldn't prefix with MSR_.

Re: [PATCH 2/2] x86: Add virt flag in /proc/cpuinfo

2008-06-25 Thread Avi Kivity
(copying Ingo) Yang, Sheng wrote: From 54b1bb9fe5d2fe40fc047b43dd4e1a480d41a977 Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Tue, 24 Jun 2008 17:03:17 +0800 Subject: [PATCH] x86: Add virt flag in /proc/cpuinfo The hardware virtualization technology evolves very fast. But

Re: [PATCH] Avoid fragment virtio-blk transfers by copying

2008-06-25 Thread Avi Kivity
Anthony Liguori wrote: A major source of performance loss for virtio-blk has been the fact that we split transfers into multiple requests. This is particularly harmful if you have striped storage beneath your virtual machine. This patch copies the request data into a single contiguous buffer

Re: [PATCH] make qemu compile for kvm/ia64

2008-06-25 Thread Avi Kivity
Xu, Anthony wrote: Thanks for your comments It is the revised one From 1a30adfc5ded3608ac2f09499b42234cf7d54a19 Mon Sep 17 00:00:00 2001 From: Anthony Xu [EMAIL PROTECTED] Date: Fri, 20 Jun 2008 10:45:13 -0400 Subject: [PATCH] Make qemu compile for kvm-ia64 Since merging with Qemu upsteram,

Re: [PATCH] irq assignment

2008-06-25 Thread Avi Kivity
(copying qemu-devel) Xu, Anthony wrote: Subject: [PATCH] Irq assignment 1. use bimodal _PRT 2. pci device can use irq 15, reduce interrupt sharing 3. test by running linux guest in kvm-ia64, kvm-i32(w/ wo/ -no-kvm) + +static int ioapic_irq_count[IOAPIC_NUM_PINS]; + void

Re: [PATCH] KVM: VMX: Add ept_sync_context in flush_tlb

2008-06-25 Thread Avi Kivity
Yang, Sheng wrote: From 54dc26e44f1c0aa460bef409b799f36dae56a911 Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Wed, 18 Jun 2008 11:23:13 +0800 Subject: [PATCH] KVM: VMX: Add ept_sync_context in flush_tlb Fix a potention issue caused by kvm_mmu_slot_remove_write_access().

Re: [PATCH][REPOST] KVM: VMX: Fix a wrong usage of vmcs_config

2008-06-25 Thread Avi Kivity
Yang, Sheng wrote: From a1c929709718c015686b0c23046cc08b8bc47a62 Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Wed, 18 Jun 2008 14:43:38 +0800 Subject: [PATCH] KVM: VMX: Fix a wrong usage of vmcs_config The function ept_update_paging_mode_cr0() write to

Re: qemu: remove overzelaous virtio-net printf

2008-06-25 Thread Avi Kivity
Marcelo Tosatti wrote: When two virtio devices share an interrupt virtio-net floods the console with this should not happen message. As Anthony points this is not a fatal condition: its possible that the guest consumed all ring elements between the can_receive check and actual net_receive call.

Re: [PATCH 2/3] KVM: Introduce a callback routine for IOAPIC ack handling

2008-06-25 Thread Amit Shah
On Wednesday 25 June 2008 12:49:39 Amit Shah wrote: This will be useful for acking irqs of assigned devices Signed-off-by: Amit Shah [EMAIL PROTECTED] --- virt/kvm/ioapic.c |3 +++ virt/kvm/ioapic.h |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git

Re: PCI PT: irq issue

2008-06-25 Thread Amit Shah
On Wednesday 25 June 2008 15:03:11 Han, Weidong wrote: Amit Shah wrote: On Monday 23 June 2008 20:46:18 Han, Weidong wrote: Amit Shah wrote: On Saturday 21 June 2008 09:41:18 Han, Weidong wrote: Amit Shah wrote: A couple of notes for the VT-d patch: - The pci_dev struct is now

[ kvm-Bugs-2001452 ] Restarted Windows 2003 Server guests have disk corruption

2008-06-25 Thread SourceForge.net
Bugs item #2001452, was opened at 2008-06-24 00:27 Message generated for change (Comment added) made by iggy_cav You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2001452group_id=180599 Please note that this message will contain a full copy of the comment

Memory image of kvm guest

2008-06-25 Thread Tomas Kouba
Hello, is it possible to see and modify guest memory of the guest running under kvm? For example when I know the address of a kernel symbol, can I read the memory of the symbol in my application running on host? (I am quite new to KVM but similar things are possible in XEN via xenctrl library

Re: [PATCH] Use qemu_memalign instead of qemu_malloc

2008-06-25 Thread Anthony Liguori
Kevin Wolf wrote: Anthony Liguori schrieb: I guess the main block code is not as defensive as I thought it was. This patch uses qemu_memalign to allocate the buffers for IO so that you don't get errors when using O_DIRECT. Actually, the block code should be able to deal with

Re: Memory image of kvm guest

2008-06-25 Thread Jan Kiszka
Tomas Kouba wrote: Hello, is it possible to see and modify guest memory of the guest running under kvm? For example when I know the address of a kernel symbol, can I read the memory of the symbol in my application running on host? (I am quite new to KVM but similar things are possible in

Re: [PATCH] Use qemu_memalign instead of qemu_malloc

2008-06-25 Thread Kevin Wolf
Anthony Liguori schrieb: Kevin Wolf wrote: Anthony Liguori schrieb: I guess the main block code is not as defensive as I thought it was. This patch uses qemu_memalign to allocate the buffers for IO so that you don't get errors when using O_DIRECT. Actually, the block code should

Re: [PATCH] Use qemu_memalign instead of qemu_malloc

2008-06-25 Thread Anthony Liguori
Kevin Wolf wrote: Anthony Liguori schrieb: Kevin Wolf wrote: Anthony Liguori schrieb: I guess the main block code is not as defensive as I thought it was. This patch uses qemu_memalign to allocate the buffers for IO so that you don't get errors when using O_DIRECT.

Re: [PATCH] Use qemu_memalign instead of qemu_malloc

2008-06-25 Thread Kevin Wolf
Anthony Liguori schrieb: Kevin Wolf wrote: Anthony Liguori schrieb: Yes, if it fails, the EINVAL is no surprise. I meant what code path it was using. Obviously we missed something in our patch and I'd like to fix that. Did the error occur on raw images or something like qcow2? It's

Re: [PATCH] Use qemu_memalign instead of qemu_malloc

2008-06-25 Thread Laurent Vivier
Le mercredi 25 juin 2008 à 16:15 +0200, Kevin Wolf a écrit : Anthony Liguori schrieb: Kevin Wolf wrote: Anthony Liguori schrieb: I guess the main block code is not as defensive as I thought it was. This patch uses qemu_memalign to allocate the buffers for IO so that you don't get

Re: [PATCH] Use qemu_memalign instead of qemu_malloc

2008-06-25 Thread Anthony Liguori
Kevin Wolf wrote: Anthony Liguori schrieb: Kevin Wolf wrote: Anthony Liguori schrieb: Yes, if it fails, the EINVAL is no surprise. I meant what code path it was using. Obviously we missed something in our patch and I'd like to fix that. Did the error occur on raw images or something

Re: [PATCH] Use qemu_memalign instead of qemu_malloc

2008-06-25 Thread Kevin Wolf
Anthony Liguori schrieb: Kevin Wolf wrote: Anthony Liguori schrieb: Kevin Wolf wrote: Anthony Liguori schrieb: Yes, if it fails, the EINVAL is no surprise. I meant what code path it was using. Obviously we missed something in our patch and I'd like to fix that. Did the error

Re: [PATCH] Use qemu_memalign instead of qemu_malloc

2008-06-25 Thread Anthony Liguori
Kevin Wolf wrote: Anthony Liguori schrieb: Kevin Wolf wrote: Anthony Liguori schrieb: Kevin Wolf wrote: Anthony Liguori schrieb: Yes, if it fails, the EINVAL is no surprise. I meant what code path it was using. Obviously we missed something in our patch and

Re: [GIT PULL] KVM fixes for 2.6.26-rc7

2008-06-25 Thread Bernd Schubert
Avi Kivity wrote: Linus, please pull from the repo and branch at: git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm.git kvm-updates-2.6.26 I just pulled from Linus and now it stalls to boot at [0.616031] pnp: PnP ACPI init [0.628031] ACPI: bus type pnp registered [

Re: [GIT PULL] KVM fixes for 2.6.26-rc7

2008-06-25 Thread Marcelo Tosatti
On Wed, Jun 25, 2008 at 06:13:05PM +0200, Bernd Schubert wrote: Avi Kivity wrote: Linus, please pull from the repo and branch at: git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm.git kvm-updates-2.6.26 I just pulled from Linus and now it stalls to boot at [0.616031]

Re: [GIT PULL] KVM fixes for 2.6.26-rc7

2008-06-25 Thread Bernd Schubert
On Wednesday 25 June 2008, Marcelo Tosatti wrote: On Wed, Jun 25, 2008 at 06:13:05PM +0200, Bernd Schubert wrote: Avi Kivity wrote: Linus, please pull from the repo and branch at: git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm.git kvm-updates-2.6.26 I just pulled from

Re: [GIT PULL] KVM fixes for 2.6.26-rc7

2008-06-25 Thread Marcelo Tosatti
On Wed, Jun 25, 2008 at 08:54:44PM +0200, Bernd Schubert wrote: On Wednesday 25 June 2008, Marcelo Tosatti wrote: On Wed, Jun 25, 2008 at 06:13:05PM +0200, Bernd Schubert wrote: Avi Kivity wrote: Linus, please pull from the repo and branch at:

Re: [GIT PULL] KVM fixes for 2.6.26-rc7

2008-06-25 Thread Bernd Schubert
On Wednesday 25 June 2008, Marcelo Tosatti wrote: On Wed, Jun 25, 2008 at 08:54:44PM +0200, Bernd Schubert wrote: On Wednesday 25 June 2008, Marcelo Tosatti wrote: On Wed, Jun 25, 2008 at 06:13:05PM +0200, Bernd Schubert wrote: Avi Kivity wrote: Linus, please pull from the repo and

Re: [GIT PULL] KVM fixes for 2.6.26-rc7

2008-06-25 Thread Marcelo Tosatti
On Wed, Jun 25, 2008 at 04:17:23PM -0300, Marcelo Tosatti wrote: Just found out, it is CONFIG_KVM_CLOCK. With CONFIG_KVM_CLOCK=y it does boot fine. You mean with CONFIG_KVM_CLOCK=n it boots fine, I suppose. You should upgrade the guest kernel to the git tree, kvm clock changes break

Re: [GIT PULL] KVM fixes for 2.6.26-rc7

2008-06-25 Thread Bernd Schubert
On Wednesday 25 June 2008, Marcelo Tosatti wrote: On Wed, Jun 25, 2008 at 04:17:23PM -0300, Marcelo Tosatti wrote: Just found out, it is CONFIG_KVM_CLOCK. With CONFIG_KVM_CLOCK=y it does boot fine. You mean with CONFIG_KVM_CLOCK=n it boots fine, I suppose. You should upgrade the

[PATCH 0 of 4] [kvm-userspace][test] consolidate test libs to libcflat

2008-06-25 Thread Jerone Young
This set of patches are to consolidate test libraries into a single library archive. This lib archive is libcflat. This will allow common code to be shared among archs. Signed-off-by: Jerone Young [EMAIL PROTECTED] 26 files changed, 602 insertions(+), 427 deletions(-) user/Makefile

[PATCH 1 of 4] Consilidate libcflat for x86 to single lib for all archs

2008-06-25 Thread Jerone Young
8 files changed, 453 insertions(+) user/test/lib/libcflat.h | 37 + user/test/lib/panic.c| 13 +++ user/test/lib/printf.c | 179 ++ user/test/lib/string.c | 21 + user/test/lib/x86/apic.h | 14 +++ user/test/lib/x86/io.c | 23

[PATCH 2 of 4] Add Makefile and test changes required for x86 to use libcflat

2008-06-25 Thread Jerone Young
6 files changed, 25 insertions(+), 15 deletions(-) user/Makefile | 11 ++- user/config-x86-common.mak | 16 ++-- user/main.c|2 +- user/test/x86/port80.c |3 +-- user/test/x86/smptest.c|5 ++--- user/test/x86/tsc.c|3

[PATCH 4 of 4] Add initial PowerPC libcflat files make file changes

2008-06-25 Thread Jerone Young
4 files changed, 124 insertions(+), 1 deletion(-) user/config-powerpc.mak | 10 ++- user/test/lib/powerpc/44x/map.c | 51 + user/test/lib/powerpc/44x/tlbwe.S | 29 + user/test/lib/powerpc/io.c| 35

another kvm-70 compile bug with rhel/centos 5.2

2008-06-25 Thread Farkas Levente
hi, i'm just try to recompile kvm-70 with the latest centos-5.2 (aka rhel-5.2) kernel, but i've got a new compile error: --- make KDIR=/usr/src/kernels/2.6.18-92.1.1.el5-x86_64 make -C /usr/src/kernels/2.6.18-92.1.1.el5-x86_64 M=`pwd` \

Re: [PATCH 4 of 4] Add initial PowerPC libcflat files make file changes

2008-06-25 Thread Hollis Blanchard
On Wed, 2008-06-25 at 15:39 -0500, Jerone Young wrote: 4 files changed, 124 insertions(+), 1 deletion(-) user/config-powerpc.mak | 10 ++- user/test/lib/powerpc/44x/map.c | 51 + user/test/lib/powerpc/44x/tlbwe.S | 29

[PATCH 0 of 3] mmu notifier v18 for -mm

2008-06-25 Thread Andrea Arcangeli
Hello, Christoph suggested me to repost v18 for merging in -mm, to give it more exposure before the .27 merge window opens. There's no code change compared to the previous v18 submission (the only change is the correction in the comment in the mm_take_all_locks patch rightfully pointed out by

[PATCH 1 of 3] list_del_init_rcu

2008-06-25 Thread Andrea Arcangeli
From: Andrea Arcangeli [EMAIL PROTECTED] Introduces list_del_init_rcu and documents it (fixes a comment for list_del_rcu too). Signed-off-by: Andrea Arcangeli [EMAIL PROTECTED] Acked-by: Linus Torvalds [EMAIL PROTECTED] --- diff -r 98f755616212 -r 5e8c41d283cc include/linux/list.h ---

[PATCH 2 of 3] mm_take_all_locks

2008-06-25 Thread Andrea Arcangeli
From: Andrea Arcangeli [EMAIL PROTECTED] mm_take_all_locks holds off reclaim from an entire mm_struct. This allows mmu notifiers to register into the mm at any time with the guarantee that no mmu operation is in progress on the mm. This operation locks against the VM for all pte/vma/mm related

Re: [PATCH] KVM: VMX: Add ept_sync_context in flush_tlb

2008-06-25 Thread Yang, Sheng
On Wednesday 25 June 2008 20:02:17 Avi Kivity wrote: Yang, Sheng wrote: From 54dc26e44f1c0aa460bef409b799f36dae56a911 Mon Sep 17 00:00:00 2001 From: Sheng Yang [EMAIL PROTECTED] Date: Wed, 18 Jun 2008 11:23:13 +0800 Subject: [PATCH] KVM: VMX: Add ept_sync_context in flush_tlb Fix a

KVM: pvmmu breakage with gcc 4.3.0

2008-06-25 Thread Marcelo Tosatti
Some pvmmu functions store their commands on stack, and newer GCC versions conclude that these commands are unused. So stick an inline asm statement to convince the compiler otherwise. Signed-off-by: Marcelo Tosatti [EMAIL PROTECTED] diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c