diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-09-10 11:30:49 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:52:35 -0400 |
commit | 14dfe855f978181cd611ec018e5ceba860a98545 (patch) | |
tree | e81ec5a9162a2588f12c21de415ab8778c655c1f /arch/x86/include/asm | |
parent | c30a358d33e0e111f06e54a4a4125371e6b6693c (diff) |
KVM: X86: Introduce pointer to mmu context used for gva_to_gpa
This patch introduces the walk_mmu pointer which points to
the mmu-context currently used for gva_to_gpa translations.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 4915b7c8f2ec..1b3eb8a0a1bc 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -286,9 +286,22 @@ struct kvm_vcpu_arch { | |||
286 | u64 ia32_misc_enable_msr; | 286 | u64 ia32_misc_enable_msr; |
287 | bool tpr_access_reporting; | 287 | bool tpr_access_reporting; |
288 | 288 | ||
289 | /* | ||
290 | * Paging state of the vcpu | ||
291 | * | ||
292 | * If the vcpu runs in guest mode with two level paging this still saves | ||
293 | * the paging mode of the l1 guest. This context is always used to | ||
294 | * handle faults. | ||
295 | */ | ||
289 | struct kvm_mmu mmu; | 296 | struct kvm_mmu mmu; |
290 | 297 | ||
291 | /* | 298 | /* |
299 | * Pointer to the mmu context currently used for | ||
300 | * gva_to_gpa translations. | ||
301 | */ | ||
302 | struct kvm_mmu *walk_mmu; | ||
303 | |||
304 | /* | ||
292 | * This struct is filled with the necessary information to propagate a | 305 | * This struct is filled with the necessary information to propagate a |
293 | * page fault into the guest | 306 | * page fault into the guest |
294 | */ | 307 | */ |