]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6a6fd69a95c787d2858bc5ca2018547cd4b341fb
tree24fd046655eabda5d0160c3f88f9cd2195851bae
parentfb6938d1200aa54af019ba41d69cc0f94a7cc99d
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