Introduce a new Kconfig option to pick the alignment for xen binary.
To retain original behaviour, the default pick for EFI build is 2M and
ELF build 4K.
Signed-off-by: Wei Liu
---
xen/arch/x86/Kconfig | 23 +++
xen/arch/x86/xen.lds.S | 12 ++--
2 files changed, 33
On 19/03/2019 13:05, Wei Liu wrote:
> @@ -20,13 +19,22 @@ ENTRY(efi_start)
> #else /* !EFI */
>
> #define FORMAT "elf64-x86-64"
> -#define SECTION_ALIGN PAGE_SIZE
> #define DECL_SECTION(x) x : AT(ADDR(x) - __XEN_VIRT_START)
>
> ENTRY(start_pa)
>
> #endif /* EFI */
>
> +#ifdef CONFIG_XE
>>> On 19.03.19 at 14:09, wrote:
> On 19/03/2019 13:05, Wei Liu wrote:
>> @@ -20,13 +19,22 @@ ENTRY(efi_start)
>> #else /* !EFI */
>>
>> #define FORMAT "elf64-x86-64"
>> -#define SECTION_ALIGN PAGE_SIZE
>> #define DECL_SECTION(x) x : AT(ADDR(x) - __XEN_VIRT_START)
>>
>> ENTRY(start_pa)
>>
>>> On 19.03.19 at 14:05, wrote:
> --- a/xen/arch/x86/Kconfig
> +++ b/xen/arch/x86/Kconfig
> @@ -138,6 +138,29 @@ config TBOOT
>
> If unsure, say Y.
>
> +choice
> + prompt "Alignment of Xen image"
> + depends on X86
Sorry, noticed only while looking at patch 2 again: This line
On Tue, Mar 19, 2019 at 01:09:35PM +, Andrew Cooper wrote:
> On 19/03/2019 13:05, Wei Liu wrote:
> > @@ -20,13 +19,22 @@ ENTRY(efi_start)
> > #else /* !EFI */
> >
> > #define FORMAT "elf64-x86-64"
> > -#define SECTION_ALIGN PAGE_SIZE
> > #define DECL_SECTION(x) x : AT(ADDR(x) - __XEN_VIRT_
On Tue, Mar 19, 2019 at 07:44:33AM -0600, Jan Beulich wrote:
> >>> On 19.03.19 at 14:05, wrote:
> > --- a/xen/arch/x86/Kconfig
> > +++ b/xen/arch/x86/Kconfig
> > @@ -138,6 +138,29 @@ config TBOOT
> >
> > If unsure, say Y.
> >
> > +choice
> > + prompt "Alignment of Xen image"
> > + de