]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: MMU: invalidate and flush on spte small->large page size change
authorMarcelo Tosatti <mtosatti@redhat.com>
Fri, 28 May 2010 12:44:59 +0000 (09:44 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:30:06 +0000 (10:30 -0700)
commit192a2fb14aef04d86caa255312b1f594f89074b9
treedeec92373ec4833b9243c998f13d6ce53a1713b3
parent2ad9aa75c0c14675b763ced721e8fa615ca97f72
KVM: MMU: invalidate and flush on spte small->large page size change

Always invalidate spte and flush TLBs when changing page size, to make
sure different sized translations for the same address are never cached
in a CPU's TLB.

Currently the only case where this occurs is when a non-leaf spte pointer is
overwritten by a leaf, large spte entry. This can happen after dirty
logging is disabled on a memslot, for example.

Noticed by Andrea.

KVM-Stable-Tag
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
(cherry picked from commit 3be2264be3c00865116f997dc53ebcc90fe7fc4b)
arch/x86/kvm/mmu.c