]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: emulator: Use linearize() when fetching instructions
authorNelson Elhage <nelhage@ksplice.com>
Mon, 18 Apr 2011 16:05:53 +0000 (12:05 -0400)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:10 +0000 (07:57 -0400)
commitbf778911f7e7c19a5cf565c7d6f22bbd3861d08d
tree96ecffc81c09cc5578a5375cb357895084b552fa
parent1564c03bd555ac1b492106c2ee38d6fe2263e96f
KVM: emulator: Use linearize() when fetching instructions

Since segments need to be handled slightly differently when fetching
instructions, we add a __linearize helper that accepts a new 'fetch' boolean.

[avi: fix oops caused by wrong segmented_address initialization order]

Signed-off-by: Nelson Elhage <nelhage@ksplice.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c