[Patch v3] Add persistent memory support

Baoquan He bhe at redhat.com
Wed Sep 23 02:16:21 PDT 2015


On 09/23/15 at 10:33am, Petr Tesarik wrote:

> Argh. After adding this patch, kexec-tools no longer builds --with-xen:
> 
> gcc -g -O2 -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./util_lib/include -Iinclude/  -I./kexec/arch/x86_64/include  -c -MD -o kexec/arch/i386/kexec-x86-common.o kexec/arch/i386/kexec-x86-common.c
> kexec/arch/i386/kexec-x86-common.c: In function ‘xen_e820_to_kexec_type’:
> kexec/arch/i386/kexec-x86-common.c:158:8: error: ‘E820_PMEM’ undeclared (first use in this function)
>    case E820_PMEM:
>         ^
> kexec/arch/i386/kexec-x86-common.c:158:8: note: each undeclared identifier is reported only once for each function it appears in
> kexec/arch/i386/kexec-x86-common.c:160:8: error: ‘E820_PRAM’ undeclared (first use in this function)
>    case E820_PRAM:
>         ^
> Makefile:113: návod pro cíl „kexec/arch/i386/kexec-x86-common.o“ selhal
> make: *** [kexec/arch/i386/kexec-x86-common.o] Chyba 1
> 
> This happens, because other E820_* macros are defined
> in /usr/include/xenctrl.h, but not E820_PMEM and E820_PRAM.

I defined E820_PMEM and E820_PRAM as kernel does. Maybe 2 ways:
1) Change them in /usr/include/xenctrl.h
2) Add 2 adapter function to adjust them when they come into and go out
of kexec.

> 
> I'm unsure how to fix it.
> 
> Petr T



More information about the kexec mailing list