KVM: unbreak userspace that does not sets tss address
authorGleb Natapov <gleb@redhat.com>
Sun, 13 Mar 2011 10:34:27 +0000 (12:34 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:35 +0000 (13:08 -0300)
commit776e58ea3d3735f85678155398241d2513afa67a
tree7c723831868e25084707096b24a0e692abb87a5b
parent0f53b5b1c0baae4f949ac0721a55b7a2158dda01
KVM: unbreak userspace that does not sets tss address

Commit 6440e5967bc broke old userspaces that do not set tss address
before entering vcpu. Unbreak it by setting tss address to a safe
value on the first vcpu entry. New userspaces should set tss address,
so print warning in case it doesn't.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c