KVM: x86 emulator: lazily evaluate segment registers
authorAvi Kivity <avi@qumranet.com>
Sun, 22 Jun 2008 13:22:51 +0000 (16:22 +0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 20 Jul 2008 09:42:35 +0000 (12:42 +0300)
commit7a5b56dfd3a682a51fc84682290d5147872a8e99
treef7b6f0e746df3c43ab8317d1c4b585334808e5fb
parent0adc8675d645940139d12477e5e05b8a0a7a1117
KVM: x86 emulator: lazily evaluate segment registers

Instead of prefetching all segment bases before emulation, read them at the
last moment.  Since most of them are unneeded, we save some cycles on
Intel machines where this is a bit expensive.

Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86.c
arch/x86/kvm/x86_emulate.c
include/asm-x86/kvm_x86_emulate.h