Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1315287 > unrolled thread
| Started by | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| First post | 2016-01-22 22:40 +0100 |
| Last post | 2016-01-26 23:00 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH v1 01/12] x86/smp: Make start_secondary() and initial_pg_pmd visible globally Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-01-22 22:40 +0100
Re: [PATCH v1 01/12] x86/smp: Make start_secondary() and initial_pg_pmd visible globally David Vrabel <david.vrabel@citrix.com> - 2016-01-25 12:00 +0100
Re: [PATCH v1 01/12] x86/smp: Make start_secondary() and initial_pg_pmd visible globally Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-01-25 16:50 +0100
Re: [PATCH v1 01/12] x86/smp: Make start_secondary() and initial_pg_pmd visible globally Borislav Petkov <bp@alien8.de> - 2016-01-26 23:00 +0100
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Date | 2016-01-22 22:40 +0100 |
| Subject | [PATCH v1 01/12] x86/smp: Make start_secondary() and initial_pg_pmd visible globally |
| Message-ID | <qTRB0-1oj-7@gated-at.bofh.it> |
Xen's HVMlite guests will want to use them.
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
---
arch/x86/include/asm/smp.h | 1 +
arch/x86/kernel/head_32.S | 2 +-
arch/x86/kernel/smpboot.c | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h
index dfcf072..739abb0 100644
--- a/arch/x86/include/asm/smp.h
+++ b/arch/x86/include/asm/smp.h
@@ -147,6 +147,7 @@ void x86_idle_thread_init(unsigned int cpu, struct task_struct *idle);
void smp_store_boot_cpu_info(void);
void smp_store_cpu_info(int id);
+void start_secondary(void *unused);
#define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu)
#else /* !CONFIG_SMP */
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S
index 6bc9ae2..eeb5c42 100644
--- a/arch/x86/kernel/head_32.S
+++ b/arch/x86/kernel/head_32.S
@@ -666,7 +666,7 @@ ENTRY(setup_once_ref)
__PAGE_ALIGNED_BSS
.align PAGE_SIZE
#ifdef CONFIG_X86_PAE
-initial_pg_pmd:
+ENTRY(initial_pg_pmd)
.fill 1024*KPMDS,4,0
#else
ENTRY(initial_page_table)
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 24d57f7..cba00bc 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -199,7 +199,7 @@ static int enable_start_cpu0;
/*
* Activate a secondary processor.
*/
-static void notrace start_secondary(void *unused)
+void notrace start_secondary(void *unused)
{
/*
* Don't put *anything* before cpu_init(), SMP booting is too
--
1.7.1
[toc] | [next] | [standalone]
| From | David Vrabel <david.vrabel@citrix.com> |
|---|---|
| Date | 2016-01-25 12:00 +0100 |
| Subject | Re: [PATCH v1 01/12] x86/smp: Make start_secondary() and initial_pg_pmd visible globally |
| Message-ID | <qUN2i-2Gb-5@gated-at.bofh.it> |
| In reply to | #1315287 |
On 22/01/16 21:35, Boris Ostrovsky wrote: > Xen's HVMlite guests will want to use them. Please explain in detail why they are needed. David
[toc] | [prev] | [next] | [standalone]
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Date | 2016-01-25 16:50 +0100 |
| Subject | Re: [PATCH v1 01/12] x86/smp: Make start_secondary() and initial_pg_pmd visible globally |
| Message-ID | <qURyY-64A-65@gated-at.bofh.it> |
| In reply to | #1316473 |
On 01/25/2016 05:53 AM, David Vrabel wrote: > On 22/01/16 21:35, Boris Ostrovsky wrote: >> Xen's HVMlite guests will want to use them. > Please explain in detail why they are needed. > Actually, start_secondary is not needed anymore, I removed its use at some point. initial_pg_pmd (together with initial_page_table) are not really required --- I just used them for temporary page tables in the hvmlite startup code instead of allocating dedicated pages for that. Perhaps there is other (Xen-specific) area that I can use for that. Once we jump to startup_32 these tables are no longer in use. -boris
[toc] | [prev] | [next] | [standalone]
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Date | 2016-01-26 23:00 +0100 |
| Subject | Re: [PATCH v1 01/12] x86/smp: Make start_secondary() and initial_pg_pmd visible globally |
| Message-ID | <qVjOy-1X6-3@gated-at.bofh.it> |
| In reply to | #1316860 |
On Mon, Jan 25, 2016 at 10:30:26AM -0500, Boris Ostrovsky wrote:
> initial_pg_pmd (together with initial_page_table) are not really required
> --- I just used them for temporary page tables in the hvmlite startup code
> instead of allocating dedicated pages for that. Perhaps there is other
> (Xen-specific) area that I can use for that. Once we jump to startup_32
> these tables are no longer in use.
Then please create and use your own. There's no need for this short
temporary dependency during boot, especially if one day we go and change
things and break xen in the process.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web