diff options
| author | Haozhong Zhang <[email protected]> | 2015-11-25 09:21:39 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2015-11-25 14:52:55 +0000 |
| commit | b2467e744f89fcb2e723143c2b78bcbaf391828a (patch) | |
| tree | 6bf43a5affc9ecc1a8d027dbb2fad3e72eb2ea36 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | Merge tag 'kvm-arm-for-v4.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
| download | kernel-b2467e744f89fcb2e723143c2b78bcbaf391828a.tar.gz kernel-b2467e744f89fcb2e723143c2b78bcbaf391828a.zip | |
KVM: nVMX: remove incorrect vpid check in nested invvpid emulation
This patch removes the vpid check when emulating nested invvpid
instruction of type all-contexts invalidation. The existing code is
incorrect because:
(1) According to Intel SDM Vol 3, Section "INVVPID - Invalidate
Translations Based on VPID", invvpid instruction does not check
vpid in the invvpid descriptor when its type is all-contexts
invalidation.
(2) According to the same document, invvpid of type all-contexts
invalidation does not require there is an active VMCS, so/and
get_vmcs12() in the existing code may result in a NULL-pointer
dereference. In practice, it can crash both KVM itself and L1
hypervisors that use invvpid (e.g. Xen).
Signed-off-by: Haozhong Zhang <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
