aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/mmu.c
diff options
context:
space:
mode:
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>2007-09-09 08:41:59 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:27 -0400
commitcbdd1bea2a2dce4c0b45c5f0122c150d9f07f0bc (patch)
treec01443051868880733c2973abdd59c1d82fdd243 /drivers/kvm/mmu.c
parent0d8d2bd4f20c8a2a254b4fe3bc114f12214a6d73 (diff)
KVM: Rename kvm_arch_ops to kvm_x86_ops
This patch just renames the current (misnamed) _arch namings to _x86 to ensure better readability when a real arch layer takes place. Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/mmu.c')
-rw-r--r--drivers/kvm/mmu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c
index e303b4137bfa..7b42c88b0b57 100644
--- a/drivers/kvm/mmu.c
+++ b/drivers/kvm/mmu.c
@@ -966,7 +966,7 @@ static int nonpaging_init_context(struct kvm_vcpu *vcpu)
966static void kvm_mmu_flush_tlb(struct kvm_vcpu *vcpu) 966static void kvm_mmu_flush_tlb(struct kvm_vcpu *vcpu)
967{ 967{
968 ++vcpu->stat.tlb_flush; 968 ++vcpu->stat.tlb_flush;
969 kvm_arch_ops->tlb_flush(vcpu); 969 kvm_x86_ops->tlb_flush(vcpu);
970} 970}
971 971
972static void paging_new_cr3(struct kvm_vcpu *vcpu) 972static void paging_new_cr3(struct kvm_vcpu *vcpu)
@@ -979,7 +979,7 @@ static void inject_page_fault(struct kvm_vcpu *vcpu,
979 u64 addr, 979 u64 addr,
980 u32 err_code) 980 u32 err_code)
981{ 981{
982 kvm_arch_ops->inject_page_fault(vcpu, addr, err_code); 982 kvm_x86_ops->inject_page_fault(vcpu, addr, err_code);
983} 983}
984 984
985static void paging_free(struct kvm_vcpu *vcpu) 985static void paging_free(struct kvm_vcpu *vcpu)
@@ -1073,7 +1073,7 @@ int kvm_mmu_load(struct kvm_vcpu *vcpu)
1073 if (r) 1073 if (r)
1074 goto out; 1074 goto out;
1075 mmu_alloc_roots(vcpu); 1075 mmu_alloc_roots(vcpu);
1076 kvm_arch_ops->set_cr3(vcpu, vcpu->mmu.root_hpa); 1076 kvm_x86_ops->set_cr3(vcpu, vcpu->mmu.root_hpa);
1077 kvm_mmu_flush_tlb(vcpu); 1077 kvm_mmu_flush_tlb(vcpu);
1078out: 1078out:
1079 mutex_unlock(&vcpu->kvm->lock); 1079 mutex_unlock(&vcpu->kvm->lock);