* [Mini-OS PATCH] Add missing symbol exports for grub-pv
@ 2024-10-29 11:41 Juergen Gross
2024-10-29 11:50 ` Samuel Thibault
0 siblings, 1 reply; 7+ messages in thread
From: Juergen Gross @ 2024-10-29 11:41 UTC (permalink / raw)
To: minios-devel, xen-devel; +Cc: samuel.thibault, Juergen Gross, Natanael Copa
Grub-pv needs start_info_union and phys_to_machine_mapping to be
accessible. Export both symbols.
Fixes: 33411a11f848 ("Mini-OS: hide all symbols not exported via EXPORT_SYMBOLS()")
Reported-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
---
arch/x86/mm.c | 1 +
arch/x86/setup.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/x86/mm.c b/arch/x86/mm.c
index 572e762e..3ba6d917 100644
--- a/arch/x86/mm.c
+++ b/arch/x86/mm.c
@@ -55,6 +55,7 @@
#endif
unsigned long *phys_to_machine_mapping;
+EXPORT_SYMBOL(phys_to_machine_mapping);
unsigned long mfn_zero;
pgentry_t *pt_base;
EXPORT_SYMBOL(pt_base);
diff --git a/arch/x86/setup.c b/arch/x86/setup.c
index b27bbed7..b613083b 100644
--- a/arch/x86/setup.c
+++ b/arch/x86/setup.c
@@ -41,6 +41,7 @@
* address of the shared_info structure, and things like that.
*/
union start_info_union start_info_union;
+EXPORT_SYMBOL(start_info_union);
#endif
/*
--
2.43.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [Mini-OS PATCH] Add missing symbol exports for grub-pv
2024-10-29 11:41 [Mini-OS PATCH] Add missing symbol exports for grub-pv Juergen Gross
@ 2024-10-29 11:50 ` Samuel Thibault
2024-10-29 12:01 ` Andrew Cooper
0 siblings, 1 reply; 7+ messages in thread
From: Samuel Thibault @ 2024-10-29 11:50 UTC (permalink / raw)
To: Juergen Gross; +Cc: minios-devel, xen-devel, Natanael Copa
Juergen Gross, le mar. 29 oct. 2024 12:41:58 +0100, a ecrit:
> Grub-pv needs start_info_union and phys_to_machine_mapping to be
> accessible. Export both symbols.
>
> Fixes: 33411a11f848 ("Mini-OS: hide all symbols not exported via EXPORT_SYMBOLS()")
> Reported-by: Natanael Copa <ncopa@alpinelinux.org>
> Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> ---
> arch/x86/mm.c | 1 +
> arch/x86/setup.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/arch/x86/mm.c b/arch/x86/mm.c
> index 572e762e..3ba6d917 100644
> --- a/arch/x86/mm.c
> +++ b/arch/x86/mm.c
> @@ -55,6 +55,7 @@
> #endif
>
> unsigned long *phys_to_machine_mapping;
> +EXPORT_SYMBOL(phys_to_machine_mapping);
> unsigned long mfn_zero;
> pgentry_t *pt_base;
> EXPORT_SYMBOL(pt_base);
> diff --git a/arch/x86/setup.c b/arch/x86/setup.c
> index b27bbed7..b613083b 100644
> --- a/arch/x86/setup.c
> +++ b/arch/x86/setup.c
> @@ -41,6 +41,7 @@
> * address of the shared_info structure, and things like that.
> */
> union start_info_union start_info_union;
> +EXPORT_SYMBOL(start_info_union);
> #endif
>
> /*
> --
> 2.43.0
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Mini-OS PATCH] Add missing symbol exports for grub-pv
2024-10-29 11:50 ` Samuel Thibault
@ 2024-10-29 12:01 ` Andrew Cooper
2024-10-29 12:02 ` Jürgen Groß
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cooper @ 2024-10-29 12:01 UTC (permalink / raw)
To: Samuel Thibault, Juergen Gross, minios-devel, xen-devel,
Natanael Copa
On 29/10/2024 11:50 am, Samuel Thibault wrote:
> Juergen Gross, le mar. 29 oct. 2024 12:41:58 +0100, a ecrit:
>> Grub-pv needs start_info_union and phys_to_machine_mapping to be
>> accessible. Export both symbols.
>>
>> Fixes: 33411a11f848 ("Mini-OS: hide all symbols not exported via EXPORT_SYMBOLS()")
>> Reported-by: Natanael Copa <ncopa@alpinelinux.org>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Committed.
Jurgen, what do you want to do with updating 4.19? Don't we need to
fork a 4.19 branch to avoid the CONFIG_XC change ?
~Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Mini-OS PATCH] Add missing symbol exports for grub-pv
2024-10-29 12:01 ` Andrew Cooper
@ 2024-10-29 12:02 ` Jürgen Groß
2024-10-29 12:13 ` Andrew Cooper
0 siblings, 1 reply; 7+ messages in thread
From: Jürgen Groß @ 2024-10-29 12:02 UTC (permalink / raw)
To: Andrew Cooper, Samuel Thibault, minios-devel, xen-devel,
Natanael Copa
[-- Attachment #1.1.1: Type: text/plain, Size: 731 bytes --]
On 29.10.24 13:01, Andrew Cooper wrote:
> On 29/10/2024 11:50 am, Samuel Thibault wrote:
>> Juergen Gross, le mar. 29 oct. 2024 12:41:58 +0100, a ecrit:
>>> Grub-pv needs start_info_union and phys_to_machine_mapping to be
>>> accessible. Export both symbols.
>>>
>>> Fixes: 33411a11f848 ("Mini-OS: hide all symbols not exported via EXPORT_SYMBOLS()")
>>> Reported-by: Natanael Copa <ncopa@alpinelinux.org>
>>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
>
> Committed.
>
> Jurgen, what do you want to do with updating 4.19? Don't we need to
> fork a 4.19 branch to avoid the CONFIG_XC change ?
Yes, I think this is the way to go.
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Mini-OS PATCH] Add missing symbol exports for grub-pv
2024-10-29 12:02 ` Jürgen Groß
@ 2024-10-29 12:13 ` Andrew Cooper
2024-10-29 12:17 ` Juergen Gross
0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cooper @ 2024-10-29 12:13 UTC (permalink / raw)
To: Jürgen Groß, Samuel Thibault, minios-devel, xen-devel,
Natanael Copa
On 29/10/2024 12:02 pm, Jürgen Groß wrote:
> On 29.10.24 13:01, Andrew Cooper wrote:
>> On 29/10/2024 11:50 am, Samuel Thibault wrote:
>>> Juergen Gross, le mar. 29 oct. 2024 12:41:58 +0100, a ecrit:
>>>> Grub-pv needs start_info_union and phys_to_machine_mapping to be
>>>> accessible. Export both symbols.
>>>>
>>>> Fixes: 33411a11f848 ("Mini-OS: hide all symbols not exported via
>>>> EXPORT_SYMBOLS()")
>>>> Reported-by: Natanael Copa <ncopa@alpinelinux.org>
>>>> Signed-off-by: Juergen Gross <jgross@suse.com>
>>> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
>>
>> Committed.
>>
>> Jurgen, what do you want to do with updating 4.19? Don't we need to
>> fork a 4.19 branch to avoid the CONFIG_XC change ?
>
> Yes, I think this is the way to go.
Ok. https://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary
master has this fix, and there's a new branch, xen-stable-4.19, starting
from the xen-RELEASE-4.19.0 tag with this change backported.
Xen 4.18 and earlier don't have the symbol restrictions.
~Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Mini-OS PATCH] Add missing symbol exports for grub-pv
2024-10-29 12:13 ` Andrew Cooper
@ 2024-10-29 12:17 ` Juergen Gross
2024-10-29 13:26 ` Andrew Cooper
0 siblings, 1 reply; 7+ messages in thread
From: Juergen Gross @ 2024-10-29 12:17 UTC (permalink / raw)
To: Andrew Cooper, Samuel Thibault, minios-devel, xen-devel,
Natanael Copa
[-- Attachment #1.1.1: Type: text/plain, Size: 1233 bytes --]
On 29.10.24 13:13, Andrew Cooper wrote:
> On 29/10/2024 12:02 pm, Jürgen Groß wrote:
>> On 29.10.24 13:01, Andrew Cooper wrote:
>>> On 29/10/2024 11:50 am, Samuel Thibault wrote:
>>>> Juergen Gross, le mar. 29 oct. 2024 12:41:58 +0100, a ecrit:
>>>>> Grub-pv needs start_info_union and phys_to_machine_mapping to be
>>>>> accessible. Export both symbols.
>>>>>
>>>>> Fixes: 33411a11f848 ("Mini-OS: hide all symbols not exported via
>>>>> EXPORT_SYMBOLS()")
>>>>> Reported-by: Natanael Copa <ncopa@alpinelinux.org>
>>>>> Signed-off-by: Juergen Gross <jgross@suse.com>
>>>> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
>>>
>>> Committed.
>>>
>>> Jurgen, what do you want to do with updating 4.19? Don't we need to
>>> fork a 4.19 branch to avoid the CONFIG_XC change ?
>>
>> Yes, I think this is the way to go.
>
> Ok. https://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary
>
> master has this fix, and there's a new branch, xen-stable-4.19, starting
> from the xen-RELEASE-4.19.0 tag with this change backported.
>
> Xen 4.18 and earlier don't have the symbol restrictions.
You want a related patch on the Xen 4.19 branch to update the Mini-OS
commit in Config.mk.
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [Mini-OS PATCH] Add missing symbol exports for grub-pv
2024-10-29 12:17 ` Juergen Gross
@ 2024-10-29 13:26 ` Andrew Cooper
0 siblings, 0 replies; 7+ messages in thread
From: Andrew Cooper @ 2024-10-29 13:26 UTC (permalink / raw)
To: Juergen Gross, Samuel Thibault, minios-devel, xen-devel,
Natanael Copa
On 29/10/2024 12:17 pm, Juergen Gross wrote:
> On 29.10.24 13:13, Andrew Cooper wrote:
>> On 29/10/2024 12:02 pm, Jürgen Groß wrote:
>>> On 29.10.24 13:01, Andrew Cooper wrote:
>>>> On 29/10/2024 11:50 am, Samuel Thibault wrote:
>>>>> Juergen Gross, le mar. 29 oct. 2024 12:41:58 +0100, a ecrit:
>>>>>> Grub-pv needs start_info_union and phys_to_machine_mapping to be
>>>>>> accessible. Export both symbols.
>>>>>>
>>>>>> Fixes: 33411a11f848 ("Mini-OS: hide all symbols not exported via
>>>>>> EXPORT_SYMBOLS()")
>>>>>> Reported-by: Natanael Copa <ncopa@alpinelinux.org>
>>>>>> Signed-off-by: Juergen Gross <jgross@suse.com>
>>>>> Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
>>>>
>>>> Committed.
>>>>
>>>> Jurgen, what do you want to do with updating 4.19? Don't we need to
>>>> fork a 4.19 branch to avoid the CONFIG_XC change ?
>>>
>>> Yes, I think this is the way to go.
>>
>> Ok. https://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary
>>
>> master has this fix, and there's a new branch, xen-stable-4.19, starting
>> from the xen-RELEASE-4.19.0 tag with this change backported.
>>
>> Xen 4.18 and earlier don't have the symbol restrictions.
>
> You want a related patch on the Xen 4.19 branch to update the Mini-OS
> commit in Config.mk.
>
I've only made change to minios.git. None to Xen.
They'll need separate patches.
~Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-10-29 13:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-29 11:41 [Mini-OS PATCH] Add missing symbol exports for grub-pv Juergen Gross
2024-10-29 11:50 ` Samuel Thibault
2024-10-29 12:01 ` Andrew Cooper
2024-10-29 12:02 ` Jürgen Groß
2024-10-29 12:13 ` Andrew Cooper
2024-10-29 12:17 ` Juergen Gross
2024-10-29 13:26 ` Andrew Cooper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.