File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -363,8 +363,6 @@ static inline void __kvm_flush_dcache_pud(pud_t pud)
363
363
}
364
364
}
365
365
366
- #define kvm_virt_to_phys (x ) __pa_symbol(x)
367
-
368
366
void kvm_set_way_flush (struct kvm_vcpu * vcpu );
369
367
void kvm_toggle_cache (struct kvm_vcpu * vcpu , bool was_enabled );
370
368
Original file line number Diff line number Diff line change @@ -2197,11 +2197,11 @@ int kvm_mmu_init(void)
2197
2197
{
2198
2198
int err ;
2199
2199
2200
- hyp_idmap_start = kvm_virt_to_phys (__hyp_idmap_text_start );
2200
+ hyp_idmap_start = __pa_symbol (__hyp_idmap_text_start );
2201
2201
hyp_idmap_start = ALIGN_DOWN (hyp_idmap_start , PAGE_SIZE );
2202
- hyp_idmap_end = kvm_virt_to_phys (__hyp_idmap_text_end );
2202
+ hyp_idmap_end = __pa_symbol (__hyp_idmap_text_end );
2203
2203
hyp_idmap_end = ALIGN (hyp_idmap_end , PAGE_SIZE );
2204
- hyp_idmap_vector = kvm_virt_to_phys (__kvm_hyp_init );
2204
+ hyp_idmap_vector = __pa_symbol (__kvm_hyp_init );
2205
2205
2206
2206
/*
2207
2207
* We rely on the linker script to ensure at build time that the HYP
You can’t perform that action at this time.
0 commit comments