]> git.baikalelectronics.ru Git - kernel.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)
commitbe72e9127306061c1d1dec464a7f7522b17654da
tree900614019cbc1c1cf4039d81bfa198624c7316cd
parent9f6b193cd267982bcf75ea7d5087c84566518b53
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