projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
123b2dd
)
KVM: emulator: always inline __linearize
author
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 27 Oct 2014 13:54:44 +0000
(14:54 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 3 Nov 2014 11:07:18 +0000
(12:07 +0100)
The two callers have a lot of constant arguments that can be
optimized out.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/emulate.c
b/arch/x86/kvm/emulate.c
index 5edf088ca51e11789d6d26e3bfbdad16c1104220..07e9913d6bbbab8077dbad1df9bc931a0336f1d7 100644
(file)
--- 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)
return true;
}
-static int __linearize(struct x86_emulate_ctxt *ctxt,
- struct segmented_address addr,
- unsigned *max_size, unsigned size,
- bool write, bool fetch,
- ulong *linear)
+static
__always_inline
int __linearize(struct x86_emulate_ctxt *ctxt,
+
struct segmented_address addr,
+
unsigned *max_size, unsigned size,
+
bool write, bool fetch,
+
ulong *linear)
{
struct desc_struct desc;
bool usable;