KVM: x86: correctly initialize the CS base on reset
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Mar 2013 15:30:26 +0000 (16:30 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 20 Mar 2013 20:34:55 +0000 (17:34 -0300)
commit04b66839d312d3bdaff77f265eb7305347fa1fb7
tree8346919907a907179af7511232f05bef2c59c6bf
parent4918c6ca6838658b71d3ce75e1a4373195ac8d40
KVM: x86: correctly initialize the CS base on reset

The CS base was initialized to 0 on VMX (wrong, but usually overridden
by userspace before starting) or 0xf0000 on SVM.  The correct value is
0xffff0000, and VMX is able to emulate it now, so use it.

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