]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kvm/vmx.c
KVM: VMX: mark unusable segment as nonpresent
authorGleb Natapov <gleb@redhat.com>
Fri, 28 Jun 2013 10:17:18 +0000 (13:17 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jul 2013 12:40:36 +0000 (14:40 +0200)
commit03617c188f41eeeb4223c919ee7e66e5a114f2c6
treedfc076e380e24be2299935f41fc9a7b1d08eddec
parentc3eb5b14449a0949e9764d39374a2ea63faae14f
KVM: VMX: mark unusable segment as nonpresent

Some userspaces do not preserve unusable property. Since usable
segment has to be present according to VMX spec we can use present
property to amend userspace bug by making unusable segment always
nonpresent. vmx_segment_access_rights() already marks nonpresent segment
as unusable.

Cc: stable@vger.kernel.org # 3.9+
Reported-by: Stefan Pietsch <stefan.pietsch@lsexperts.de>
Tested-by: Stefan Pietsch <stefan.pietsch@lsexperts.de>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c