KVM: x86: reset MMU on KVM_SET_VCPU_EVENTS
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Sat, 24 Dec 2016 09:00:42 +0000 (10:00 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 24 Dec 2016 09:16:04 +0000 (10:16 +0100)
commit6ef4e07ecd2db21025c446327ecf34414366498b
treeeae66ff5af92fff469bcbf921db83b26686b6386
parentb428018a065b62191b9f8a3f553ebf4423017a78
KVM: x86: reset MMU on KVM_SET_VCPU_EVENTS

Otherwise, mismatch between the smm bit in hflags and the MMU role
can cause a NULL pointer dereference.

Cc: stable@vger.kernel.org
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c