Re: [PATCH 2/8] KVM: x86: pop sreg accesses only 2 bytes

2014-12-27 Thread Nadav Amit
Feng feng...@intel.com wrote: -Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Nadav Amit Sent: Thursday, December 25, 2014 5:55 PM To: Chen, Tiejun Cc: Paolo Bonzini; kvm list Subject: Re: [PATCH 2/8] KVM: x86: pop sreg

Re: [PATCH 2/8] KVM: x86: pop sreg accesses only 2 bytes

2014-12-25 Thread Chen, Tiejun
On 2014/12/25 8:52, Nadav Amit wrote: Although pop sreg updates RSP according to the operand size, only 2 bytes are read. The current behavior may result in incorrect #GP or #PF exceptions. Signed-off-by: Nadav Amit na...@cs.technion.ac.il --- arch/x86/kvm/emulate.c | 4 +++- 1 file

Re: [PATCH 2/8] KVM: x86: pop sreg accesses only 2 bytes

2014-12-25 Thread Nadav Amit
Tiejun tiejun.c...@intel.com wrote: On 2014/12/25 8:52, Nadav Amit wrote: Although pop sreg updates RSP according to the operand size, only 2 bytes are read. The current behavior may result in incorrect #GP or #PF exceptions. Signed-off-by: Nadav Amit na...@cs.technion.ac.il ---

Re: [PATCH 2/8] KVM: x86: pop sreg accesses only 2 bytes

2014-12-25 Thread Chen, Tiejun
On 2014/12/25 17:55, Nadav Amit wrote: Tiejun tiejun.c...@intel.com wrote: On 2014/12/25 8:52, Nadav Amit wrote: Although pop sreg updates RSP according to the operand size, only 2 bytes are read. The current behavior may result in incorrect #GP or #PF exceptions. Signed-off-by: Nadav Amit

RE: [PATCH 2/8] KVM: x86: pop sreg accesses only 2 bytes

2014-12-25 Thread Wu, Feng
-Original Message- From: kvm-ow...@vger.kernel.org [mailto:kvm-ow...@vger.kernel.org] On Behalf Of Nadav Amit Sent: Thursday, December 25, 2014 5:55 PM To: Chen, Tiejun Cc: Paolo Bonzini; kvm list Subject: Re: [PATCH 2/8] KVM: x86: pop sreg accesses only 2 bytes Tiejun tiejun.c