]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: fix tlb flush with invalid root
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Sat, 3 Jul 2010 08:02:42 +0000 (16:02 +0800)
committerAvi Kivity <avi@redhat.com>
Mon, 2 Aug 2010 03:40:16 +0000 (06:40 +0300)
commit25ebfec93a1f88bc6ff203d19b4748f6ca286f27
tree9c0cc39f4088a9b54a96ab6545739e423deb3d2e
parent6dac441d10f69539246a060d758ff8abfa43b3ac
KVM: VMX: fix tlb flush with invalid root

Commit 341d9b535b6c simplify reload logic while entry guest mode, it
can avoid unnecessary sync-root if KVM_REQ_MMU_RELOAD and
KVM_REQ_MMU_SYNC both set.

But, it cause a issue that when we handle 'KVM_REQ_TLB_FLUSH', the
root is invalid, it is triggered during my test:

Kernel BUG at ffffffffa00212b8 [verbose debug info unavailable]
......

Fixed by directly return if the root is not ready.

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/vmx.c