diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-10-27 09:54:44 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-11-03 06:07:18 -0500 |
commit | d09155d2f39ebf2cce29c49f085fe43b1d66fbef (patch) | |
tree | bb4a1e314c3e3da91db80831e7a85d93f58c840b /arch/x86/kvm/emulate.c | |
parent | 123b2dd10b4659911ef38458573a57f94cbf5448 (diff) |
KVM: emulator: always inline __linearize
The two callers have a lot of constant arguments that can be
optimized out.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 5edf088ca51e..07e9913d6bbb 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -641,11 +641,11 @@ static bool insn_aligned(struct x86_emulate_ctxt *ctxt, unsigned size) | |||
641 | return true; | 641 | return true; |
642 | } | 642 | } |
643 | 643 | ||
644 | static int __linearize(struct x86_emulate_ctxt *ctxt, | 644 | static __always_inline int __linearize(struct x86_emulate_ctxt *ctxt, |
645 | struct segmented_address addr, | 645 | struct segmented_address addr, |
646 | unsigned *max_size, unsigned size, | 646 | unsigned *max_size, unsigned size, |
647 | bool write, bool fetch, | 647 | bool write, bool fetch, |
648 | ulong *linear) | 648 | ulong *linear) |
649 | { | 649 | { |
650 | struct desc_struct desc; | 650 | struct desc_struct desc; |
651 | bool usable; | 651 | bool usable; |