]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nEPT: correctly check if remote tlb flush is needed for shadowed EPT tables
authorGleb Natapov <gleb@redhat.com>
Mon, 5 Aug 2013 08:07:14 +0000 (11:07 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 7 Aug 2013 13:57:40 +0000 (15:57 +0200)
commit53166229e96941f27e7f0ba405c7a44d648751c9
tree737ab0c3103b6174bfb57335d6e5ee930c465054
parent7a1638ce4220d52e53d4114e34e4529161a3449c
nEPT: correctly check if remote tlb flush is needed for shadowed EPT tables

need_remote_flush() assumes that shadow page is in PT64 format, but
with addition of nested EPT this is no longer always true. Fix it by
bits definitions that depend on host shadow page type.

Reported-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c