Re: [kvm-devel] [PATCH] KVM: VMX: Enable Virtual Processor Identification (VPID)

2008-01-25 Thread Yang, Sheng
On Friday 25 January 2008 15:03:28 Avi Kivity wrote: Yang, Sheng wrote: I think it's OK for there is a judgment in __invvpid() to see if machine has the ability(also if it is allowed to using VPID). :) Oh right, I missed that. We can remove it now since it will only be called if vpid !=

agenda de cursos atualizada: fevereiro/ mar�o 2008.

2008-01-25 Thread C�rebro Comunica��o - Desenvolvimento Pessoal
Olá, Estamos enviando nossa agenda de cursos atualizada. Atenciosamente, Natielly & Tais CÉREBRO & COMUNICAÇÃO - DESENVOLVIMENTO PESSOAL Curitiba - 3029-8015 / 3029-8026 / 9229-0157 MEMORIZAÇÃO Curso prático. Ensina a memorizar textos, assuntos de trabalho, aulas, exames,

Re: [kvm-devel] ia64 kernel patches?

2008-01-25 Thread Zhang, Xiantao
Jes Sorensen wrote: Zhang, Xiantao wrote: Hi, Jes Yes, Anthony and I are working with kernel-ia64 and kvm community to push the patches. Since kernel should export some interface for kvm use, we have to wait the response from kernel-ia64. But anyway, It should be picked up in near future.

Re: [kvm-devel] [patch 0/4] [RFC] MMU Notifiers V1

2008-01-25 Thread Andrea Arcangeli
On Thu, Jan 24, 2008 at 09:56:06PM -0800, Christoph Lameter wrote: Andrea's mmu_notifier #4 - RFC V1 - Merge subsystem rmap based with Linux rmap based approach - Move Linux rmap based notifiers out of macro - Try to account for what locks are held while the notifiers are called. -

Re: [kvm-devel] kvm-60 crash

2008-01-25 Thread Roger Critchlow
Hello -- Running kvm-60 under ubuntu 2.6.22.14-generic xf86_64 using http://plan9.bell-labs.com/plan9/download/plan9.iso.bz2 as the guest, crashes as shown immediately after selecting install from the plan9 boot menu. Fails to crash with -no-kvm switch. -- rec -- ---

[kvm-devel] [PATCH 5/8] MMU: make the __nonpaging_map function generic

2008-01-25 Thread Joerg Roedel
The mapping function for the nonpaging case in the softmmu does basically the same as required for Nested Paging. Make this function generic so it can be used for both. Signed-off-by: Joerg Roedel [EMAIL PROTECTED] --- arch/x86/kvm/mmu.c |7 +++ 1 files changed, 3 insertions(+), 4

[kvm-devel] [PATCH 4/8] X86: export information about NPT to generic x86 code

2008-01-25 Thread Joerg Roedel
The generic x86 code has to know if the specific implementation uses Nested Paging. In the generic code Nested Paging is called Hardware Assisted Paging (HAP) to avoid confusion with (future) HAP implementations of other vendors. This patch exports the availability of HAP to the generic x86 code.

[kvm-devel] [PATCH 2/8] SVM: add detection of Nested Paging feature

2008-01-25 Thread Joerg Roedel
Let SVM detect if the Nested Paging feature is available on the hardware. Disable it to keep this patch series bisectable. Signed-off-by: Joerg Roedel [EMAIL PROTECTED] --- arch/x86/kvm/svm.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/svm.c

[kvm-devel] [PATCH 1/8] SVM: move feature detection to hardware setup code

2008-01-25 Thread Joerg Roedel
By moving the SVM feature detection from the each_cpu code to the hardware setup code it runs only once. As an additional advance the feature check is now available earlier in the module setup process. Signed-off-by: Joerg Roedel [EMAIL PROTECTED] --- arch/x86/kvm/svm.c |4 +++- 1 files

[kvm-devel] attached is kvm crash log with a kernel BUG at /usr/src/modules/kvm/mmu.c:307!

2008-01-25 Thread Walter Lundby
kernel BUG at /usr/src/modules/kvm/mmu.c:307! invalid opcode: [1] SMP CPU 1 Problem is not there if running without mod probes on KVM and KVM_AMD This happens after adding Microsoft Service Pack 4 to a Win2k install. Package was running -no-acpi Reproducible. -win2k-hack makes no

Re: [kvm-devel] [PATCH] QEMU support for virtio balloon driver

2008-01-25 Thread Rusty Russell
On Saturday 26 January 2008 03:08:57 Marcelo Tosatti wrote: On Thu, Jan 24, 2008 at 04:29:51PM -0600, Anthony Liguori wrote: I'm inclined to think that we should have a capability check for MM notifiers and just not do madvise if they aren't present. I don't think the ioctl approach that

Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested Paging in AMD Fam16 CPUs

2008-01-25 Thread Nakajima, Jun
Joerg Roedel wrote: Hi, here is the first release of patches for KVM to support the Nested Paging (NPT) feature of AMD QuadCore CPUs for comments and public testing. This feature improves the guest performance significantly. I measured an improvement of around 17% using kernbench in my

Re: [kvm-devel] [PATCH] QEMU support for virtio balloon driver

2008-01-25 Thread Anthony Liguori
Dor Laor wrote: On Thu, 2008-01-24 at 16:29 -0600, Anthony Liguori wrote: Anthony Liguori wrote: This patch adds support to QEMU for Rusty's recently introduce virtio balloon driver. The user-facing portions of this are the introduction of a balloon and info balloon command in

Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to disable NestedPaging

2008-01-25 Thread Joerg Roedel
On Fri, Jan 25, 2008 at 05:47:11PM -0800, Nakajima, Jun wrote: Joerg Roedel wrote: To disable the use of the Nested Paging feature even if it is available in hardware this patch adds a module parameter. Nested Paging can be disabled by passing npt=off to the kvm_amd module. I think

Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to disable NestedPaging

2008-01-25 Thread Nakajima, Jun
Joerg Roedel wrote: To disable the use of the Nested Paging feature even if it is available in hardware this patch adds a module parameter. Nested Paging can be disabled by passing npt=off to the kvm_amd module. I think it's better to use a (common) parameter to qemu. That way you can control

Re: [kvm-devel] [PATCH 4/8] X86: export information about NPT to generic x86 code

2008-01-25 Thread Anthony Liguori
Joerg Roedel wrote: The generic x86 code has to know if the specific implementation uses Nested Paging. In the generic code Nested Paging is called Hardware Assisted Paging (HAP) to avoid confusion with (future) HAP implementations of other vendors. This patch exports the availability of HAP

Re: [kvm-devel] [patch 0/4] [RFC] MMU Notifiers V1

2008-01-25 Thread Christoph Lameter
On Sat, 26 Jan 2008, Benjamin Herrenschmidt wrote: Also, wouldn't there be a problem with something trying to use that interface to keep in sync a secondary device MMU such as the DRM or other accelerators, which might need virtual address based invalidation ? Yes just doing the rmap based

Re: [kvm-devel] [patch 0/4] [RFC] MMU Notifiers V1

2008-01-25 Thread Benjamin Herrenschmidt
On Fri, 2008-01-25 at 12:42 +0100, Andrea Arcangeli wrote: On Thu, Jan 24, 2008 at 09:56:06PM -0800, Christoph Lameter wrote: Andrea's mmu_notifier #4 - RFC V1 - Merge subsystem rmap based with Linux rmap based approach - Move Linux rmap based notifiers out of macro - Try to account

Re: [kvm-devel] [patch 1/4] mmu_notifier: Core code

2008-01-25 Thread Christoph Lameter
Diff so far against V1 - Improve RCU support. (There is now a sychronize_rcu in mmu_release which is bad.) - Clean compile for !MMU_NOTIFIER - Use mmap_sem for serializing additions the mmu_notifier list in the mm_struct (but still global spinlock for mmu_rmap_notifier. The registration

[kvm-devel] [PATCH 8/8] SVM: add support for Nested Paging

2008-01-25 Thread Joerg Roedel
This patch contains the SVM architecture dependent changes for KVM to enable support for the Nested Paging feature of AMD Barcelona and Phenom processors. Signed-off-by: Joerg Roedel [EMAIL PROTECTED] --- arch/x86/kvm/svm.c | 67 --- 1 files

[kvm-devel] [PATCH 3/8] SVM: add module parameter to disable Nested Paging

2008-01-25 Thread Joerg Roedel
To disable the use of the Nested Paging feature even if it is available in hardware this patch adds a module parameter. Nested Paging can be disabled by passing npt=off to the kvm_amd module. Signed-off-by: Joerg Roedel [EMAIL PROTECTED] --- arch/x86/kvm/svm.c |8 1 files changed, 8

[kvm-devel] [PATCH 6/8] X86: export the load_pdptrs() function to modules

2008-01-25 Thread Joerg Roedel
The load_pdptrs() function is required in the SVM module for NPT support. Signed-off-by: Joerg Roedel [EMAIL PROTECTED] --- arch/x86/kvm/x86.c |1 + include/asm-x86/kvm_host.h |2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/x86.c

Re: [kvm-devel] KVM net bug

2008-01-25 Thread Anthony Liguori
José Antonio wrote: Hi, First I'm sorry for my english. I'm using kvm on host: Debian GNU/Linux sid host kernel: Linux enol 2.6.23-1-amd64 #1 SMP Fri Dec 21 12:00:17 UTC 2007 x86_64 GNU/Linux kvm version 58+dfsg-2 (almost on Debian) guest: Debian etch and Windows XP,

Re: [kvm-devel] [patch 1/4] mmu_notifier: Core code

2008-01-25 Thread Robin Holt
On Fri, Jan 25, 2008 at 11:03:07AM -0800, Christoph Lameter wrote: Shouldn't this really be protected by the down_write(mmap_sem)? Maybe: Ok. We could switch this to mmap_sem protection for the mm_struct but the rmap notifier is not associated with an mm_struct. So we would need to

[kvm-devel] Merging KVM QEMU changes upstream

2008-01-25 Thread Anthony Liguori
Hi, As most probably know, the KVM project has been maintaining a QEMU tree for some time now. Beyond support for the KVM kernel interface, the tree also contains a number of useful features like live migration, virtio, and extboot. Some of these things have been posted to qemu-devel

Re: [kvm-devel] [PATCH] QEMU support for virtio balloon driver

2008-01-25 Thread Anthony Liguori
Marcelo Tosatti wrote: On Thu, Jan 24, 2008 at 04:29:51PM -0600, Anthony Liguori wrote: Anthony Liguori wrote: This patch adds support to QEMU for Rusty's recently introduce virtio balloon driver. The user-facing portions of this are the introduction of a balloon and info

Re: [kvm-devel] [patch 0/4] [RFC] MMU Notifiers V1

2008-01-25 Thread Robin Holt
On Fri, Jan 25, 2008 at 12:42:29PM +0100, Andrea Arcangeli wrote: On a technical merit this still partially makes me sick and I think it's the last issue to debate. @@ -971,6 +974,9 @@ int try_to_unmap(struct page *page, int else ret = try_to_unmap_file(page,

Re: [kvm-devel] ia64 kernel patches?

2008-01-25 Thread Zhang, Xiantao
Jes Sorensen wrote: Zhang, Xiantao wrote: Jes Sorensen wrote: Hi Xiantao, If you could put up the patches somewhere, I could help you clean them up and push them. I would prefer not to wait until they appear in Linus' tree if possible. Hi, Jes You don't need to wait so long. We

Re: [kvm-devel] [PATCH 4/8] X86: export information about NPT to generic x86 code

2008-01-25 Thread Anthony Liguori
Anthony Liguori wrote: Joerg Roedel wrote: The generic x86 code has to know if the specific implementation uses Nested Paging. In the generic code Nested Paging is called Hardware Assisted Paging (HAP) to avoid confusion with (future) HAP implementations of other vendors. This patch

Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to disable Nested Paging

2008-01-25 Thread Anthony Liguori
Joerg Roedel wrote: To disable the use of the Nested Paging feature even if it is available in hardware this patch adds a module parameter. Nested Paging can be disabled by passing npt=off to the kvm_amd module. Signed-off-by: Joerg Roedel [EMAIL PROTECTED] --- arch/x86/kvm/svm.c |8

Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested Paging in AMD Fam16 CPUs

2008-01-25 Thread Anthony Liguori
Joerg Roedel wrote: Hi, here is the first release of patches for KVM to support the Nested Paging (NPT) feature of AMD QuadCore CPUs for comments and public

[kvm-devel] [PATCH 7/8] MMU: add HAP support to the KVM MMU

2008-01-25 Thread Joerg Roedel
This patch contains the changes to the KVM MMU necessary for support of the Nested Paging feature in AMD Barcelona and Phenom Processors. Signed-off-by: Joerg Roedel [EMAIL PROTECTED] --- arch/x86/kvm/mmu.c | 74 ++- arch/x86/kvm/mmu.h |6

[kvm-devel] [PATCH] svm last branch recording MSR emulation

2008-01-25 Thread Markus Rechberger
Hi, this patch adds support for the lbr MSR emulation, it also enables support for Windows XP 64bit guests. Signed-off-by: Joerg Roedel [EMAIL PROTECTED] Signed-off-by: Markus Rechberger [EMAIL PROTECTED] --- svm.c.orig 2008-01-23 10:04:14.0 +0100 +++ svm.c 2008-01-25

Re: [kvm-devel] [patch 1/4] mmu_notifier: Core code

2008-01-25 Thread Christoph Lameter
On Fri, 25 Jan 2008, Robin Holt wrote: Keep in mind that on a 2048p SSI MPI job starting up, we have 2048 ranks doing this at the same time 6 times withing their address range. That seems like a lock which could get hot fairly quickly. It may be for a short period during startup and

[kvm-devel] KVM net bug

2008-01-25 Thread José Antonio
Hi, First I'm sorry for my english. I'm using kvm on host: Debian GNU/Linux sid host kernel: Linux enol 2.6.23-1-amd64 #1 SMP Fri Dec 21 12:00:17 UTC 2007 x86_64 GNU/Linux kvm version 58+dfsg-2 (almost on Debian) guest: Debian etch and Windows XP, although I think that problem

Re: [kvm-devel] [patch 1/4] mmu_notifier: Core code

2008-01-25 Thread Robin Holt
+#define mmu_notifier(function, mm, args...) \ ... + if (__mn-ops-function)\ + __mn-ops-function(__mn, \ + mm, \ +

Re: [kvm-devel] [patch 1/4] mmu_notifier: Core code

2008-01-25 Thread Robin Holt
On Fri, Jan 25, 2008 at 10:47:04AM -0800, Christoph Lameter wrote: On Fri, 25 Jan 2008, Robin Holt wrote: I realize it is a minor nit, but since we put the continuation in column 81 in the next define, can we do the same here and make this more readable? We need to fix the next define

Re: [kvm-devel] [Qemu-devel] Merging KVM QEMU changes upstream

2008-01-25 Thread Anthony Liguori
Paul Brook wrote: Is this a reasonable merge strategy? We won't introduce regressions but I can't guarantee these new things will work cross-architecture. I think it depends to some extent whether things will need rewriting to be made cross-architecture. In particular if this requires

Re: [kvm-devel] [patch 0/4] [RFC] MMU Notifiers V1

2008-01-25 Thread Christoph Lameter
On Fri, 25 Jan 2008, Andrea Arcangeli wrote: On a technical merit this still partially makes me sick and I think it's the last issue to debate. @@ -971,6 +974,9 @@ int try_to_unmap(struct page *page, int else ret = try_to_unmap_file(page, migration); + if

[kvm-devel] kvm-59 crash

2008-01-25 Thread nicolas prochazka
Hello, i'm trying to use kvm, with windows XP SP2 guest , All running well, but after a small delay ( ~ 5minutes ) , kvm crash with : kvm_run: Unknown error 524 emulation failed (mmio) rip 7cb3d000 ff ff 8d 85 Fail to handle apic access vmexit! Offset is 0xf0 Some Information : Host : Linux

Re: [kvm-devel] ia64 kernel patches?

2008-01-25 Thread Jes Sorensen
Zhang, Xiantao wrote: Jes Sorensen wrote: Hi Xiantao, If you could put up the patches somewhere, I could help you clean them up and push them. I would prefer not to wait until they appear in Linus' tree if possible. Hi, Jes You don't need to wait so long. We will push it to Avi's

Re: [kvm-devel] Migration problems

2008-01-25 Thread Guido Guenther
On Thu, Jan 24, 2008 at 01:52:16PM +0200, Uri Lublin wrote: Sometimes after lodavm guest network does work better with '-no-kvm-irqchip' I am trying to use bisection to find the problematic patch. Another migration problem that pops up with kvm 60, doing: migrate exec:dd of=/tmp/bla works in

Re: [kvm-devel] [PATCH] QEMU support for virtio balloon driver

2008-01-25 Thread Marcelo Tosatti
On Thu, Jan 24, 2008 at 04:29:51PM -0600, Anthony Liguori wrote: Anthony Liguori wrote: This patch adds support to QEMU for Rusty's recently introduce virtio balloon driver. The user-facing portions of this are the introduction of a balloon and info balloon command in the monitor. I

Re: [kvm-devel] [patch 1/4] mmu_notifier: Core code

2008-01-25 Thread Christoph Lameter
On Fri, 25 Jan 2008, Robin Holt wrote: I realize it is a minor nit, but since we put the continuation in column 81 in the next define, can we do the same here and make this more readable? We need to fix the next define to not use column 81. Found a couple of more 80 column infractions. Will

Re: [kvm-devel] [patch 1/4] mmu_notifier: Core code

2008-01-25 Thread Christoph Lameter
On Fri, 25 Jan 2008, Robin Holt wrote: +void mmu_notifier_release(struct mm_struct *mm) +{ + struct mmu_notifier *mn; + struct hlist_node *n; + + if (unlikely(!hlist_empty(mm-mmu_notifier.head))) { + rcu_read_lock(); +

[kvm-devel] [PATCH][RFC] SVM: Add Support for Nested Paging in AMD Fam16 CPUs

2008-01-25 Thread Joerg Roedel
Hi, here is the first release of patches for KVM to support the Nested Paging (NPT) feature of AMD QuadCore CPUs for comments and public testing. This feature improves

Re: [kvm-devel] KVM net bug

2008-01-25 Thread Mike
Hello, when you have started the debian guest, take a look if this file exists: /etc/udev/rules.d/z25_persistent-net.rules if so, delete it, and reboot your guest. let the mac address always the same for that guest. Now you should have an eth0 interface. I'm starting my debian guests like this:

Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to disable Nested Paging

2008-01-25 Thread Joerg Roedel
On Fri, Jan 25, 2008 at 03:35:23PM -0600, Anthony Liguori wrote: Joerg Roedel wrote: To disable the use of the Nested Paging feature even if it is available in hardware this patch adds a module parameter. Nested Paging can be disabled by passing npt=off to the kvm_amd module. Signed-off-by:

[kvm-devel] Benchmarking warning

2008-01-25 Thread Cam Macdonell
Hi, I get the following warning in the kernel messages: kvm: emulating preempt notifiers; do not benchmark on this machine Is this an accurate warning, should the machine not be used for benchmarking KVM? or does it mean don't benchmark other applications on the host? Thanks, Cam

Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested Paging in AMD Fam16 CPUs

2008-01-25 Thread Joerg Roedel
On Fri, Jan 25, 2008 at 03:32:57PM -0600, Anthony Liguori wrote: A quick sniff test and things look pretty good. I was able to start running the install CDs for 32-bit and 64-bit Ubuntu, 32-bit OpenSuSE, 64-bit Fedora, and 32-bit Win2k8. I'll do a more thorough run of kvm-test on Monday

Re: [kvm-devel] [PATCH] QEMU support for virtio balloon driver

2008-01-25 Thread Dor Laor
On Thu, 2008-01-24 at 16:29 -0600, Anthony Liguori wrote: Anthony Liguori wrote: This patch adds support to QEMU for Rusty's recently introduce virtio balloon driver. The user-facing portions of this are the introduction of a balloon and info balloon command in the monitor. I

Re: [kvm-devel] Benchmarking warning

2008-01-25 Thread Dor Laor
On Fri, 2008-01-25 at 15:20 -0700, Cam Macdonell wrote: Hi, I get the following warning in the kernel messages: kvm: emulating preempt notifiers; do not benchmark on this machine Is this an accurate warning, should the machine not be used for It's accurate. benchmarking KVM? or does