Commit b71c9e2f authored by Alexander Graf's avatar Alexander Graf

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: default avatarAlexander Graf <agraf@suse.de>
parent 9d98b3ff
...@@ -10,7 +10,8 @@ common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o \ ...@@ -10,7 +10,8 @@ common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o \
eventfd.o) eventfd.o)
CFLAGS_44x_tlb.o := -I. CFLAGS_44x_tlb.o := -I.
CFLAGS_e500_tlb.o := -I. CFLAGS_e500_mmu.o := -I.
CFLAGS_e500_mmu_host.o := -I.
CFLAGS_emulate.o := -I. CFLAGS_emulate.o := -I.
common-objs-y += powerpc.o emulate.o common-objs-y += powerpc.o emulate.o
...@@ -35,7 +36,8 @@ kvm-e500-objs := \ ...@@ -35,7 +36,8 @@ kvm-e500-objs := \
booke_emulate.o \ booke_emulate.o \
booke_interrupts.o \ booke_interrupts.o \
e500.o \ e500.o \
e500_tlb.o \ e500_mmu.o \
e500_mmu_host.o \
e500_emulate.o e500_emulate.o
kvm-objs-$(CONFIG_KVM_E500V2) := $(kvm-e500-objs) kvm-objs-$(CONFIG_KVM_E500V2) := $(kvm-e500-objs)
...@@ -45,7 +47,8 @@ kvm-e500mc-objs := \ ...@@ -45,7 +47,8 @@ kvm-e500mc-objs := \
booke_emulate.o \ booke_emulate.o \
bookehv_interrupts.o \ bookehv_interrupts.o \
e500mc.o \ e500mc.o \
e500_tlb.o \ e500_mmu.o \
e500_mmu_host.o \
e500_emulate.o e500_emulate.o
kvm-objs-$(CONFIG_KVM_E500MC) := $(kvm-e500mc-objs) kvm-objs-$(CONFIG_KVM_E500MC) := $(kvm-e500mc-objs)
......
This diff is collapsed.
/*
* 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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment