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>
This commit is contained in:
@@ -286,8 +286,21 @@ struct kvm_vcpu_arch {
|
||||
u64 ia32_misc_enable_msr;
|
||||
bool tpr_access_reporting;
|
||||
|
||||
/*
|
||||
* Paging state of the vcpu
|
||||
*
|
||||
* If the vcpu runs in guest mode with two level paging this still saves
|
||||
* the paging mode of the l1 guest. This context is always used to
|
||||
* handle faults.
|
||||
*/
|
||||
struct kvm_mmu mmu;
|
||||
|
||||
/*
|
||||
* Pointer to the mmu context currently used for
|
||||
* gva_to_gpa translations.
|
||||
*/
|
||||
struct kvm_mmu *walk_mmu;
|
||||
|
||||
/*
|
||||
* This struct is filled with the necessary information to propagate a
|
||||
* page fault into the guest
|
||||
|
Reference in New Issue
Block a user