]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Use .fixup instead of .text.fixup on __kvm_handle_fault_on_reboot
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 19 Aug 2008 23:00:08 +0000 (20:00 -0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 25 Aug 2008 14:22:57 +0000 (17:22 +0300)
commit136531c4bcc92c16eee4551508eba7cac94cc84a
tree81bfebb5c157937bcd1cf3131fe4c4218848484b
parent323fbdbfe2bade49af182099b867da4aa17e7b57
KVM: Use .fixup instead of .text.fixup on __kvm_handle_fault_on_reboot

vmlinux.lds expects the fixup code to be on a section named .fixup. The
.text.fixup section is not mentioned on vmlinux.lds, and is included on
the resulting vmlinux (just after .text) only because of ld heuristics on
placing orphan sections.

However, placing .text.fixup outside .text breaks the definition of
_etext, making it exclude the .text.fixup contents. That makes .text.fixup
be ignored by the kernel initialization code that needs to know about
section locations, such as the code setting page protection bits.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
include/asm-x86/kvm_host.h