]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: Flush remote tlbs when reducing shadow pte permissions
authorAvi Kivity <avi@qumranet.com>
Thu, 7 Jun 2007 16:18:30 +0000 (19:18 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:46 +0000 (12:05 +0300)
commitd9e368d61263055eceac2966bb7ea31b89da3425
tree9d507b851ea7bd667cdd50dde640e47e0d4773e9
parent39c3b86e5c193e09f69f0e99c93600a4999ffc60
KVM: Flush remote tlbs when reducing shadow pte permissions

When a vcpu causes a shadow tlb entry to have reduced permissions, it
must also clear the tlb on remote vcpus.  We do that by:

- setting a bit on the vcpu that requests a tlb flush before the next entry
- if the vcpu is currently executing, we send an ipi to make sure it
  exits before we continue

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/mmu.c
drivers/kvm/svm.c
drivers/kvm/vmx.c