Re: [PATCH v2 1/8] KVM: Fix load_guest_segment_descriptor() to inject page fault

2010-02-11 Thread Takuya Yoshikawa
Marcelo Tosatti wrote: On Wed, Feb 10, 2010 at 06:25:42PM +0200, Avi Kivity wrote: On 02/10/2010 03:50 AM, Takuya Yoshikawa wrote: This patch injects page fault when reading descriptor in load_guest_segment_descriptor() fails with FAULT. Effects of this injection: This function is used by kvm_

Re: [PATCH v2 1/8] KVM: Fix load_guest_segment_descriptor() to inject page fault

2010-02-11 Thread Takuya Yoshikawa
Gleb Natapov wrote: On Wed, Feb 10, 2010 at 06:25:42PM +0200, Avi Kivity wrote: On 02/10/2010 03:50 AM, Takuya Yoshikawa wrote: This patch injects page fault when reading descriptor in load_guest_segment_descriptor() fails with FAULT. Effects of this injection: This function is used by kvm_loa

Re: [PATCH v2 1/8] KVM: Fix load_guest_segment_descriptor() to inject page fault

2010-02-11 Thread Takuya Yoshikawa
Sorry for being late to reply. Japan was a holiday yesterday. Avi Kivity wrote: On 02/10/2010 03:50 AM, Takuya Yoshikawa wrote: This patch injects page fault when reading descriptor in load_guest_segment_descriptor() fails with FAULT. Effects of this injection: This function is used by kvm_l

Re: [PATCH v2 1/8] KVM: Fix load_guest_segment_descriptor() to inject page fault

2010-02-10 Thread Marcelo Tosatti
On Wed, Feb 10, 2010 at 06:25:42PM +0200, Avi Kivity wrote: > On 02/10/2010 03:50 AM, Takuya Yoshikawa wrote: > >This patch injects page fault when reading descriptor in > >load_guest_segment_descriptor() fails with FAULT. > > > >Effects of this injection: This function is used by > >kvm_load_segme

Re: [PATCH v2 1/8] KVM: Fix load_guest_segment_descriptor() to inject page fault

2010-02-10 Thread Gleb Natapov
On Wed, Feb 10, 2010 at 06:25:42PM +0200, Avi Kivity wrote: > On 02/10/2010 03:50 AM, Takuya Yoshikawa wrote: > >This patch injects page fault when reading descriptor in > >load_guest_segment_descriptor() fails with FAULT. > > > >Effects of this injection: This function is used by > >kvm_load_segme

Re: [PATCH v2 1/8] KVM: Fix load_guest_segment_descriptor() to inject page fault

2010-02-10 Thread Avi Kivity
On 02/10/2010 03:50 AM, Takuya Yoshikawa wrote: This patch injects page fault when reading descriptor in load_guest_segment_descriptor() fails with FAULT. Effects of this injection: This function is used by kvm_load_segment_descriptor() which is necessary for the following instructions. - mov

[PATCH v2 1/8] KVM: Fix load_guest_segment_descriptor() to inject page fault

2010-02-09 Thread Takuya Yoshikawa
This patch injects page fault when reading descriptor in load_guest_segment_descriptor() fails with FAULT. Effects of this injection: This function is used by kvm_load_segment_descriptor() which is necessary for the following instructions. - mov seg,r/m16 - jmp far - pop ?s This patch makes it