]> xenbits.xensource.com Git - xen.git/commit
x86/mb2: avoid Xen image when looking for module/crashkernel position
authorDaniel Kiper <daniel.kiper@oracle.com>
Tue, 12 Dec 2017 13:30:53 +0000 (14:30 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Dec 2017 13:30:53 +0000 (14:30 +0100)
commit9589927e5bf9e123ec42b6e0b0809f153bd92732
tree2cb6fcc0414a53c10efeb04c8565ed24c093768f
parentb4d0218cff66b7eaa9c9b8dc9bd71e7b089b016d
x86/mb2: avoid Xen image when looking for module/crashkernel position

Commit e22e1c4 (x86/EFI: avoid Xen image when looking for module/kexec
position) added relevant check for EFI case. However, since commit
f75a304 (x86: add multiboot2 protocol support for relocatable images)
Multiboot2 compatible bootloaders are able to relocate Xen image too.
So, we have to avoid also Xen image region in such cases.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/setup.c