]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: Handle wraparound in (cs_base + offset) when fetching insns
authorNelson Elhage <nelhage@ksplice.com>
Wed, 13 Apr 2011 15:44:13 +0000 (11:44 -0400)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:09 +0000 (07:57 -0400)
commit352662df70ec4d8e6c56bb64a29a1d91ea79c6a7
tree01e60574962d06155ebea802e0dd7832a893f474
parenta1a4fedf65a50285fc2a5e70d674934aa4711b87
KVM: x86 emulator: Handle wraparound in (cs_base + offset) when fetching insns

Currently, setting a large (i.e. negative) base address for %cs does not work on
a 64-bit host. The "JOS" teaching operating system, used by MIT and other
universities, relies on such segments while bootstrapping its way to full
virtual memory management.

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