mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
hv: cache: wrap common APIs
Wrap three common Cache APIs: - flush_invalidate_all_cache - flush_cacheline - flush_cache_range Tracked-On: #5830 Signed-off-by: Li Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -409,7 +409,7 @@ static int32_t wbinvd_vmexit_handler(struct acrn_vcpu *vcpu)
|
||||
|
||||
/* GUEST_FLAG_RT has not set in post-launched RTVM before it has been created */
|
||||
if ((!is_software_sram_enabled()) && (!has_rt_vm())) {
|
||||
cache_flush_invalidate_all();
|
||||
flush_invalidate_all_cache();
|
||||
} else {
|
||||
if (is_rt_vm(vcpu->vm)) {
|
||||
walk_ept_table(vcpu->vm, ept_flush_leaf_page);
|
||||
|
||||
Reference in New Issue
Block a user