]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Resolve real-mode handlers through function exports
authorAlexander Graf <agraf@suse.de>
Tue, 7 Jun 2011 18:45:34 +0000 (20:45 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:29 +0000 (13:16 +0300)
commit3329a8cff49a6c128008c472bb3f07fde5db7dc9
tree70b14bb0f62fb61569d3f1e89edce9ac01b6cd27
parent63bd243f082038431d11613e5e0283c42aecb947
KVM: PPC: Resolve real-mode handlers through function exports

Up until now, Book3S KVM had variables stored in the kernel that a kernel module
or the kvm code in the kernel could read from to figure out where some real mode
helper functions are located.

This is all unnecessary. The high bits of the EA get ignore in real mode, so we
can just use the pointer as is. Also, it's a lot easier on relocations when we
use the normal way of resolving the address to a function, instead of jumping
through hoops.

This patch fixes compilation with CONFIG_RELOCATABLE=y.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/kvm/book3s.c
arch/powerpc/kvm/book3s_exports.c
arch/powerpc/kvm/book3s_rmhandlers.S