aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2008-12-02 16:51:53 -0500
committerAvi Kivity <avi@redhat.com>2008-12-31 09:55:07 -0500
commit891686188f69d330f7eeeec8e6642ccfb7453106 (patch)
tree39349d7383b3cf1fe0fda983d8c4f0d86a6dc2bc /arch/powerpc/include
parent4a643be8c9b8d3c1ae8f5ccd377daaa85bd57e0c (diff)
KVM: ppc: support large host pages
KVM on 440 has always been able to handle large guest mappings with 4K host pages -- we must, since the guest kernel uses 256MB mappings. This patch makes KVM work when the host has large pages too (tested with 64K). Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/kvm_ppc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/include/asm/kvm_ppc.h b/arch/powerpc/include/asm/kvm_ppc.h
index 844f683302f6..5bb29267d6a6 100644
--- a/arch/powerpc/include/asm/kvm_ppc.h
+++ b/arch/powerpc/include/asm/kvm_ppc.h
@@ -52,8 +52,8 @@ extern int kvmppc_emulate_instruction(struct kvm_run *run,
52extern int kvmppc_emulate_mmio(struct kvm_run *run, struct kvm_vcpu *vcpu); 52extern int kvmppc_emulate_mmio(struct kvm_run *run, struct kvm_vcpu *vcpu);
53extern void kvmppc_emulate_dec(struct kvm_vcpu *vcpu); 53extern void kvmppc_emulate_dec(struct kvm_vcpu *vcpu);
54 54
55extern void kvmppc_mmu_map(struct kvm_vcpu *vcpu, u64 gvaddr, gfn_t gfn, 55extern void kvmppc_mmu_map(struct kvm_vcpu *vcpu, u64 gvaddr, gpa_t gpaddr,
56 u64 asid, u32 flags); 56 u64 asid, u32 flags, u32 max_bytes);
57extern void kvmppc_mmu_priv_switch(struct kvm_vcpu *vcpu, int usermode); 57extern void kvmppc_mmu_priv_switch(struct kvm_vcpu *vcpu, int usermode);
58extern void kvmppc_mmu_switch_pid(struct kvm_vcpu *vcpu, u32 pid); 58extern void kvmppc_mmu_switch_pid(struct kvm_vcpu *vcpu, u32 pid);
59 59