From: Gleb Natapov Date: Mon, 21 Feb 2011 10:07:59 +0000 (+0200) Subject: KVM: VMX: Initialize vm86 TSS only once. X-Git-Tag: v2.6.39-rc1~436^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93ea5388ead5d7b87f54b8de53e35231acec8bbe;p=pandora-kernel.git KVM: VMX: Initialize vm86 TSS only once. Currently vm86 task is initialized on each real mode entry and vcpu reset. Initialization is done by zeroing TSS and updating relevant fields. But since all vcpus are using the same TSS there is a race where one vcpu may use TSS while other vcpu is initializing it, so the vcpu that uses TSS will see wrong TSS content and will behave incorrectly. Fix that by initializing TSS only once. Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity --- Reading git-diff-tree failed