diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-09-10 11:30:57 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:52:41 -0400 |
commit | ff03a073e715d49b5cfeeec862649b1df2481ae0 (patch) | |
tree | fa0642550d0d1af65a4a02def7f1862410a36edc /arch/x86/kvm/svm.c | |
parent | d47f00a62b2e14b4a811b87bdb9ea1809693a377 (diff) |
KVM: MMU: Add kvm_mmu parameter to load_pdptrs function
This function need to be able to load the pdptrs from any
mmu context currently in use. So change this function to
take an kvm_mmu parameter to fit these needs.
As a side effect this patch also moves the cached pdptrs
from vcpu_arch into the kvm_mmu struct.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 53c9039583fd..ca711cb27a19 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -1010,7 +1010,7 @@ static void svm_cache_reg(struct kvm_vcpu *vcpu, enum kvm_reg reg) | |||
1010 | switch (reg) { | 1010 | switch (reg) { |
1011 | case VCPU_EXREG_PDPTR: | 1011 | case VCPU_EXREG_PDPTR: |
1012 | BUG_ON(!npt_enabled); | 1012 | BUG_ON(!npt_enabled); |
1013 | load_pdptrs(vcpu, vcpu->arch.cr3); | 1013 | load_pdptrs(vcpu, vcpu->arch.walk_mmu, vcpu->arch.cr3); |
1014 | break; | 1014 | break; |
1015 | default: | 1015 | default: |
1016 | BUG(); | 1016 | BUG(); |