KVM: VMX: Make sure single type invvpid is supported before issuing invvpid instruction
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>
Fri, 4 Jun 2010 00:51:39 +0000 (08:51 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:39:26 +0000 (10:39 +0300)
commit518c8aee5ca74fc03273fc6b4893cf456d65d545
treedb11301916f1477651568ca16b268d4467e7bebd
parent7bee342a9e994cce7122cb187b4f3ded9d871165
KVM: VMX: Make sure single type invvpid is supported before issuing invvpid instruction

According to SDM, we need check whether single-context INVVPID type is supported
before issuing invvpid instruction.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
Reviewed-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/vmx.h
arch/x86/kvm/vmx.c