diff options
author | Alexander Graf <agraf@suse.de> | 2013-01-11 15:22:45 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-01-24 19:23:31 +0100 |
commit | b71c9e2fb72cf538aadbc59ea719639a1e2191fa (patch) | |
tree | 5dc0827d2fe0ae15172f04f299d57fe564d5701e /arch/powerpc/kvm/e500_mmu_host.h | |
parent | 9d98b3ff949dab3bafa2c50856ce9e1f88497f9a (diff) | |
download | linux-b71c9e2fb72cf538aadbc59ea719639a1e2191fa.tar.bz2 |
KVM: PPC: E500: Split host and guest MMU parts
This patch splits the file e500_tlb.c into e500_mmu.c (guest TLB handling)
and e500_mmu_host.c (host TLB handling).
The main benefit of this split is readability and maintainability. It's
just a lot harder to write dirty code :).
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/e500_mmu_host.h')
-rw-r--r-- | arch/powerpc/kvm/e500_mmu_host.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/e500_mmu_host.h b/arch/powerpc/kvm/e500_mmu_host.h new file mode 100644 index 000000000000..9e4d4a20e694 --- /dev/null +++ b/arch/powerpc/kvm/e500_mmu_host.h @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2008-2013 Freescale Semiconductor, Inc. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2, as + * published by the Free Software Foundation. + */ + +#ifndef KVM_E500_MMU_HOST_H +#define KVM_E500_MMU_HOST_H + +void inval_gtlbe_on_host(struct kvmppc_vcpu_e500 *vcpu_e500, int tlbsel, + int esel); + +void clear_tlb1_bitmap(struct kvmppc_vcpu_e500 *vcpu_e500); +void clear_tlb_refs(struct kvmppc_vcpu_e500 *vcpu_e500); +int e500_mmu_host_init(struct kvmppc_vcpu_e500 *vcpu_e500); +void e500_mmu_host_uninit(struct kvmppc_vcpu_e500 *vcpu_e500); + +#endif /* KVM_E500_MMU_HOST_H */ |