]> git.baikalelectronics.ru Git - kernel.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)
committerAvi Kivity <avi@redhat.com>
Wed, 9 Jun 2010 15:48:36 +0000 (18:48 +0300)
commitf3a8c4d176852c2b213d7e1502297d4211a9e3b8
treef048924efa8c802db5b3f7a60eb80142bddbe303
parentf6fb2fe143ae853ae4243b1f894c1a371821f85e
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>
arch/x86/kvm/mmu.c