KVM: Use minimum and maximum address mapped by TLB1
Keep track of minimum and maximum address mapped by tlb1. This helps in TLBMISS handling in KVM to quick check whether the address lies in mapped range. If address does not lies in this range then no need to look in each tlb1 entry of tlb1 array. Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:

committed by
Alexander Graf

parent
e726b1bd64
commit
cc902ad4f2
@@ -89,6 +89,10 @@ struct kvmppc_vcpu_e500 {
|
||||
u64 *g2h_tlb1_map;
|
||||
unsigned int *h2g_tlb1_rmap;
|
||||
|
||||
/* Minimum and maximum address mapped my TLB1 */
|
||||
unsigned long tlb1_min_eaddr;
|
||||
unsigned long tlb1_max_eaddr;
|
||||
|
||||
#ifdef CONFIG_KVM_E500V2
|
||||
u32 pid[E500_PID_NUM];
|
||||
|
||||
|
Reference in New Issue
Block a user