Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d09155d2 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: emulator: always inline __linearize



The two callers have a lot of constant arguments that can be
optimized out.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 123b2dd1
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -641,7 +641,7 @@ static bool insn_aligned(struct x86_emulate_ctxt *ctxt, unsigned size)
		return true;
		return true;
}
}


static int __linearize(struct x86_emulate_ctxt *ctxt,
static __always_inline int __linearize(struct x86_emulate_ctxt *ctxt,
				       struct segmented_address addr,
				       struct segmented_address addr,
				       unsigned *max_size, unsigned size,
				       unsigned *max_size, unsigned size,
				       bool write, bool fetch,
				       bool write, bool fetch,