[PATCH 18/22] KVM: X86: Propagate fetch faults
KVM currently ignores fetch faults in the instruction emulator. With nested-npt we could have such faults. This patch adds the code to handle these. Signed-off-by: Joerg Roedel <joerg.roedel(a)amd.com> --- arch/x86/kvm/emulate.c | 2 +- arch/x86/kvm/x86.c | 4 ++++ 2 files changed, 5 insertions(+), 1 ... 27 Apr 2010 07:38
[PATCH 11/22] KVM: MMU: Add infrastructure for two-level page walker
This patch introduces a mmu-callback to translate gpa addresses in the walk_addr code. This is later used to translate l2_gpa addresses into l1_gpa addresses. Signed-off-by: Joerg Roedel <joerg.roedel(a)amd.com> --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/mmu.c | 7 +++++++ arch/x... 27 Apr 2010 07:38
[PATCH 12/22] KVM: MMU: Implement nested gva_to_gpa functions
This patch adds the functions to do a nested l2_gva to l1_gpa page table walk. Signed-off-by: Joerg Roedel <joerg.roedel(a)amd.com> --- arch/x86/include/asm/kvm_host.h | 4 ++++ arch/x86/kvm/mmu.c | 8 ++++++++ arch/x86/kvm/paging_tmpl.h | 31 +++++++++++++++++++++++++++++++ 3 files ch... 27 Apr 2010 07:38
[PATCH 14/22] KVM: MMU: Make walk_addr_generic capable for two-level walking
This patch uses kvm_read_guest_page_tdp to make the walk_addr_generic functions suitable for two-level page table walking. Signed-off-by: Joerg Roedel <joerg.roedel(a)amd.com> --- arch/x86/kvm/paging_tmpl.h | 34 ++++++++++++++++++++++++---------- 1 files changed, 24 insertions(+), 10 deletions(-) diff --gi... 27 Apr 2010 07:38
[PATCH 0/22] Nested Paging support for Nested SVM v2
Hi, this is the second and reworked version of my nested paging for nested svm patchset. Changes to the previous version include: * Renamed mmu.tdp_enabled to mmu.direct_map * Introduced two helper functions to read physical memory locations of the current running guest level * Fixed a couple of bugs we... 27 Apr 2010 07:38
[PATCH 02/22] KVM: MMU: Make tdp_enabled a mmu-context parameter
This patch changes the tdp_enabled flag from its global meaning to the mmu-context and renames it to direct_map there. This is necessary for Nested SVM with emulation of Nested Paging where we need an extra MMU context to shadow the Nested Nested Page Table. Signed-off-by: Joerg Roedel <joerg.roedel(a)amd.com> --... 27 Apr 2010 07:38
[PATCH 05/22] KVM: MMU: Introduce get_cr3 function pointer
This function pointer in the MMU context is required to implement Nested Nested Paging. Signed-off-by: Joerg Roedel <joerg.roedel(a)amd.com> --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/mmu.c | 9 ++++++++- arch/x86/kvm/paging_tmpl.h | 4 ++-- 3 files changed, 11 insertions... 27 Apr 2010 07:38
[PATCH 13/22] KVM: X86: Add kvm_read_guest_page_tdp function
This patch adds a function which can read from the guests physical memory or from the guest's guest physical memory. This will be used in the two-dimensional page table walker. Signed-off-by: Joerg Roedel <joerg.roedel(a)amd.com> --- arch/x86/include/asm/kvm_host.h | 3 +++ arch/x86/kvm/x86.c | ... 27 Apr 2010 07:38
[PATCH 03/22] KVM: MMU: Make set_cr3 a function pointer in kvm_mmu
This is necessary to implement Nested Nested Paging. As a side effect this allows some cleanups in the SVM nested paging code. Signed-off-by: Joerg Roedel <joerg.roedel(a)amd.com> --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/mmu.c | 4 +++- 2 files changed, 4 insertions(+), 1 delet... 27 Apr 2010 07:38
[PATCH 19/22] KVM: MMU: Introduce init_kvm_nested_mmu()
This patch introduces the init_kvm_nested_mmu() function which is used to re-initialize the nested mmu when the l2 guest changes its paging mode. Signed-off-by: Joerg Roedel <joerg.roedel(a)amd.com> --- arch/x86/kvm/mmu.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 54 insertions... 27 Apr 2010 07:38