Re: [PATCH 08/23] KVM: x86 emulator: cleanup some direct calls into kvm to use existing callbacks

2010-04-28 Thread Avi Kivity
On 04/28/2010 12:33 PM, Gleb Natapov wrote: On Wed, Apr 28, 2010 at 11:59:54AM +0300, Avi Kivity wrote: On 04/27/2010 03:15 PM, Gleb Natapov wrote: Use callbacks from x86_emulate_ops to access segments instead of calling into kvm directly. -static unsigned long seg_base(struct x86_

Re: [PATCH 08/23] KVM: x86 emulator: cleanup some direct calls into kvm to use existing callbacks

2010-04-28 Thread Gleb Natapov
On Wed, Apr 28, 2010 at 11:59:54AM +0300, Avi Kivity wrote: > On 04/27/2010 03:15 PM, Gleb Natapov wrote: > >Use callbacks from x86_emulate_ops to access segments instead of calling > >into kvm directly. > > > > > > > >-static unsigned long seg_base(struct x86_emulate_ctxt *ctxt, int seg) > >+stati

Re: [PATCH 08/23] KVM: x86 emulator: cleanup some direct calls into kvm to use existing callbacks

2010-04-28 Thread Avi Kivity
On 04/27/2010 03:15 PM, Gleb Natapov wrote: Use callbacks from x86_emulate_ops to access segments instead of calling into kvm directly. -static unsigned long seg_base(struct x86_emulate_ctxt *ctxt, int seg) +static unsigned long seg_base(struct x86_emulate_ctxt *ctxt, +

[PATCH 08/23] KVM: x86 emulator: cleanup some direct calls into kvm to use existing callbacks

2010-04-27 Thread Gleb Natapov
Use callbacks from x86_emulate_ops to access segments instead of calling into kvm directly. Signed-off-by: Gleb Natapov --- arch/x86/kvm/emulate.c | 222 +++- 1 files changed, 125 insertions(+), 97 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/a