diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2012-08-28 22:43:26 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-09-06 15:37:30 +0200 |
commit | 3b4dc3a031110753b9ba36432dbd21f989fcee56 (patch) | |
tree | 919feea527d3c3708db62a1e6bf33846adfd787d /virt | |
parent | KVM: perform an invalid memslot step for gpa base change (diff) | |
download | linux-3b4dc3a031110753b9ba36432dbd21f989fcee56.tar.xz linux-3b4dc3a031110753b9ba36432dbd21f989fcee56.zip |
KVM: move postcommit flush to x86, as mmio sptes are x86 specific
Other arches do not need this.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
v2: fix incorrect deletion of mmio sptes on gpa move (noticed by Takuya)
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index f41ea1262d51..4fe02d900810 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -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); |