]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: x86 emulator: prefetch up to 15 bytes of the instruction executed
authorAvi Kivity <avi@qumranet.com>
Tue, 20 Nov 2007 11:15:52 +0000 (13:15 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:09 +0000 (17:53 +0200)
commit6226686954c4cce3d63ffe1777e60360fcbf0b83
tree900614019cbc1c1cf4039d81bfa198624c7316cd
parent93a0039c8d93074d5f92dfb69f6a7d453905d002
KVM: x86 emulator: prefetch up to 15 bytes of the instruction executed

Instead of fetching one byte at a time, prefetch 15 bytes (or until the next
page boundary) to avoid guest page table walks.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/x86_emulate.c
drivers/kvm/x86_emulate.h