KVM: x86 emulator: Stop passing ctxt->ops as arg of emul functions
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Sat, 14 May 2011 16:00:52 +0000 (01:00 +0900)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 08:44:59 +0000 (11:44 +0300)
commit7b105ca2903b84f023c49965d9a511c5e55256dc
tree24fd046655eabda5d0160c3f88f9cd2195851bae
parentef5d75cc9af2bca7c525158666b5f9696846ffb6
KVM: x86 emulator: Stop passing ctxt->ops as arg of emul functions

Dereference it in the actual users.

This not only cleans up the emulator but also makes it easy to convert
the old emulation functions to the new em_xxx() form later.

Note: Remove some inline keywords to let the compiler decide inlining.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c