summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-06-19 11:37:06 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-07-11 09:14:04 +0200
commit719d5a9b2487e0562f178f61e323c3dc18a8b200 (patch)
tree677713d985ffab18b25867d48ddc52a6c9bf4164 /arch/x86/kvm/x86.c
parent17052f16a51af6d8f4b7eee0631af675ac204f65 (diff)
downloadlinux-rt-719d5a9b2487e0562f178f61e323c3dc18a8b200.tar.gz
KVM: x86: ensure emulator fetches do not span multiple pages
When the CS base is not page-aligned, the linear address of the code could get close to the page boundary (e.g. 0x...ffe) even if the EIP value is not. So we need to first linearize the address, and only then compute the number of valid bytes that can be fetched. This happens relatively often when executing real mode code. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
0 files changed, 0 insertions, 0 deletions