aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-09-10 11:30:50 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:52:36 -0400
commit6539e738f65a8f1fc7806295d5d701fba4008343 (patch)
tree7b66b9d2c28eae8a332cdb1da0e602357b0cbeda /arch/x86/include
parent14dfe855f978181cd611ec018e5ceba860a98545 (diff)
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@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 1b3eb8a0a1bc..8ec3547c433d 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -296,6 +296,16 @@ struct kvm_vcpu_arch {
296 struct kvm_mmu mmu; 296 struct kvm_mmu mmu;
297 297
298 /* 298 /*
299 * Paging state of an L2 guest (used for nested npt)
300 *
301 * This context will save all necessary information to walk page tables
302 * of the an L2 guest. This context is only initialized for page table
303 * walking and not for faulting since we never handle l2 page faults on
304 * the host.
305 */
306 struct kvm_mmu nested_mmu;
307
308 /*
299 * Pointer to the mmu context currently used for 309 * Pointer to the mmu context currently used for
300 * gva_to_gpa translations. 310 * gva_to_gpa translations.
301 */ 311 */