mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
KVM: move postcommit flush to x86, as mmio sptes are x86 specific
Other arches do not need this. Signed-off-by: Marcelo Tosatti <[email protected]> v2: fix incorrect deletion of mmio sptes on gpa move (noticed by Takuya) Signed-off-by: Avi Kivity <[email protected]>
This commit is contained in:
parent
12d6e7538e
commit
3b4dc3a031
2 changed files with 8 additions and 7 deletions
|
|
@ -849,13 +849,6 @@ int __kvm_set_memory_region(struct kvm *kvm,
|
|||
|
||||
kvm_arch_commit_memory_region(kvm, mem, old, user_alloc);
|
||||
|
||||
/*
|
||||
* If the new memory slot is created, we need to clear all
|
||||
* mmio sptes.
|
||||
*/
|
||||
if (npages && old.base_gfn != mem->guest_phys_addr >> PAGE_SHIFT)
|
||||
kvm_arch_flush_shadow_all(kvm);
|
||||
|
||||
kvm_free_physmem_slot(&old, &new);
|
||||
kfree(old_memslots);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue