Re: [PATCH] x86: correctly initialize the CS base on reset

2013-03-20 Thread Marcelo Tosatti
On Tue, Mar 19, 2013 at 04:30:26PM +0100, Paolo Bonzini wrote: > The CS base was initialized to 0 on VMX (wrong, but usually overridden > by userspace before starting) or 0xf on SVM. The correct value is > 0x, and VMX is able to emulate it now, so use it. > > Signed-off-by: Paolo Bonz

Re: [PATCH] x86: correctly initialize the CS base on reset

2013-03-19 Thread Gleb Natapov
On Tue, Mar 19, 2013 at 05:41:45PM +0100, Jan Kiszka wrote: > On 2013-03-19 16:43, Gleb Natapov wrote: > > On Tue, Mar 19, 2013 at 04:30:26PM +0100, Paolo Bonzini wrote: > >> The CS base was initialized to 0 on VMX (wrong, but usually overridden > >> by userspace before starting) or 0xf on SVM.

Re: [PATCH] x86: correctly initialize the CS base on reset

2013-03-19 Thread Jan Kiszka
On 2013-03-19 16:43, Gleb Natapov wrote: > On Tue, Mar 19, 2013 at 04:30:26PM +0100, Paolo Bonzini wrote: >> The CS base was initialized to 0 on VMX (wrong, but usually overridden >> by userspace before starting) or 0xf on SVM. The correct value is >> 0x, and VMX is able to emulate it

Re: [PATCH] x86: correctly initialize the CS base on reset

2013-03-19 Thread Gleb Natapov
On Tue, Mar 19, 2013 at 04:30:26PM +0100, Paolo Bonzini wrote: > The CS base was initialized to 0 on VMX (wrong, but usually overridden > by userspace before starting) or 0xf on SVM. The correct value is > 0x, and VMX is able to emulate it now, so use it. > > Signed-off-by: Paolo Bonz

[PATCH] x86: correctly initialize the CS base on reset

2013-03-19 Thread Paolo Bonzini
The CS base was initialized to 0 on VMX (wrong, but usually overridden by userspace before starting) or 0xf on SVM. The correct value is 0x, and VMX is able to emulate it now, so use it. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm.c | 8 +--- arch/x86/kvm/vmx.c | 1 + 2 fi