hv: tlb: wrap common APIs

Wrap two common TLB APIs: flush_tlb and flush_tlb_range.

Tracked-On: #5830
Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
Li Fei1
2021-04-23 15:24:50 +08:00
committed by wenlingz
parent d94582389e
commit 77e64f6092
3 changed files with 22 additions and 13 deletions

View File

@@ -200,6 +200,12 @@ static inline uint64_t get_pae_pdpt_addr(uint64_t cr3)
return (cr3 & 0xFFFFFFE0UL);
}
/*
* flush TLB only for the specified page with the address
*/
void flush_tlb(uint64_t addr);
void flush_tlb_range(uint64_t addr, uint64_t size);
/**
* @}
*/