On 06.05.20 16:01, François Ozog wrote:
Hi

the symbol "ioremap_page_range" concretely requires
CONFIG_KALLSYMS_ALL to be defined on aarch64 (not tested on Intel).


...or a kernel patch [1].

"ioremap_page_range" is defined by lib/ioremap.o included in lib/lib.a
and is not an EXPORT_SYMBOL.

There is some decoration in main.c:
RESOLVE_EXTERNAL_SYMBOL(ioremap_page_range);
but that only works with CONFIG_KALLSYMS_ALL defined.

As I am very bad at kernel build system, I can't enforce the linkage
of lib/lib.a. I have tried jailhouse-obj += ....../lib/lib.a without
success.

Any idea on how to overcome this?


I never tried the kallsyms path on non-x86 TBH, and it will likely break anyway with upcoming kernel changes IIUC. So, there will likely be no way to patch (not only for that symbol, see the queue, e.g. [2]) until everything gets upstream.

Note, though, that aarch64 actually has no need for that particular symbol because it already works without borrowing the hypervisor mapping from Linux. The plan for the rest is to adopt that patter, i.e. have relocatable assembly stub that build a small initial mapping, just like aarch64 already does.

Jan

[1] http://git.kiszka.org/?p=linux.git;a=commitdiff;h=5358fb465b55b4d104721cd3db7d74fe2942ddc9 [2] http://git.kiszka.org/?p=linux.git;a=commit;h=0ac3cdc541376c838b09dbcadf0204696dd084d5

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

--
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/17cc7c09-a2a5-5f0e-e51e-5119508e7e9f%40siemens.com.

Reply via email to