]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: x86: Fix TSS size check for 16-bit tasks
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 14 Apr 2010 14:57:11 +0000 (16:57 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:48:05 +0000 (07:48 -0700)
commit151b026f22691dfb64247f9505a259405b6a1d04
treeef50625ce32c4df086d8273b3f6aae00caaeacc1
parent00e7035cabdd49657b80b4e0b6995310dc198847
KVM: x86: Fix TSS size check for 16-bit tasks

(Cherry-picked from commit e8861cfe2c75bdce36655b64d7ce02c2b31b604d)

A 16-bit TSS is only 44 bytes long. So make sure to test for the correct
size on task switch.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/x86.c