Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1344593 > unrolled thread
| Started by | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| First post | 2016-02-26 20:10 +0100 |
| Last post | 2016-03-03 17:30 +0100 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH v4 0/2] Clear .bss for PV guests Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-26 20:10 +0100
[PATCH v4 2/2] xen/x86: Drop mode-selecting ifdefs in startup_xen() Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-26 20:10 +0100
[PATCH v4 1/2] xen/x86: Zero out .bss for PV guests Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-26 20:10 +0100
Re: [Xen-devel] [PATCH v4 0/2] Clear .bss for PV guests David Vrabel <david.vrabel@citrix.com> - 2016-03-03 17:30 +0100
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Date | 2016-02-26 20:10 +0100 |
| Subject | [PATCH v4 0/2] Clear .bss for PV guests |
| Message-ID | <r6vW1-7QN-1@gated-at.bofh.it> |
PV guests need to have their .bss zeroed out since it is not guaranteed to be cleared by Xen's domain builder (even if it is done so currently) v4: * Better use of mode-selecting macros. * Drop stable tag. * Update commit message for patch 1. Boris Ostrovsky (2): xen/x86: Zero out .bss for PV guests xen/x86: Drop mode-selecting ifdefs in startup_xen() arch/x86/xen/xen-head.S | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) -- 2.1.0
[toc] | [next] | [standalone]
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Date | 2016-02-26 20:10 +0100 |
| Subject | [PATCH v4 2/2] xen/x86: Drop mode-selecting ifdefs in startup_xen() |
| Message-ID | <r6vW1-7QN-3@gated-at.bofh.it> |
| In reply to | #1344593 |
Use asm/asm.h macros instead. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> --- arch/x86/xen/xen-head.S | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S index 5c63d2d..de93b20 100644 --- a/arch/x86/xen/xen-head.S +++ b/arch/x86/xen/xen-head.S @@ -47,13 +47,9 @@ ENTRY(startup_xen) shr $__ASM_SEL(2, 3), %_ASM_CX rep __ASM_SIZE(stos) -#ifdef CONFIG_X86_32 - mov %esi,xen_start_info - mov $init_thread_union+THREAD_SIZE,%esp -#else - mov %rsi,xen_start_info - mov $init_thread_union+THREAD_SIZE,%rsp -#endif + mov %_ASM_SI, xen_start_info + mov $init_thread_union+THREAD_SIZE, %_ASM_SP + jmp xen_start_kernel __FINIT -- 2.1.0
[toc] | [prev] | [next] | [standalone]
| From | Boris Ostrovsky <boris.ostrovsky@oracle.com> |
|---|---|
| Date | 2016-02-26 20:10 +0100 |
| Subject | [PATCH v4 1/2] xen/x86: Zero out .bss for PV guests |
| Message-ID | <r6vW2-7QN-11@gated-at.bofh.it> |
| In reply to | #1344593 |
ELF spec is unclear about whether .bss must me cleared by the loader. Currently the domain builder does it when loading the guest but because it is not (or rather may not be) guaranteed we should zero it out explicitly. Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> --- arch/x86/xen/xen-head.S | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S index b65f59a..5c63d2d 100644 --- a/arch/x86/xen/xen-head.S +++ b/arch/x86/xen/xen-head.S @@ -38,6 +38,15 @@ __INIT ENTRY(startup_xen) cld + + /* Clear .bss */ + xor %eax,%eax + mov $__bss_start, %_ASM_DI + mov $__bss_stop, %_ASM_CX + sub %_ASM_DI, %_ASM_CX + shr $__ASM_SEL(2, 3), %_ASM_CX + rep __ASM_SIZE(stos) + #ifdef CONFIG_X86_32 mov %esi,xen_start_info mov $init_thread_union+THREAD_SIZE,%esp -- 2.1.0
[toc] | [prev] | [next] | [standalone]
| From | David Vrabel <david.vrabel@citrix.com> |
|---|---|
| Date | 2016-03-03 17:30 +0100 |
| Subject | Re: [Xen-devel] [PATCH v4 0/2] Clear .bss for PV guests |
| Message-ID | <r8Eiw-1kl-43@gated-at.bofh.it> |
| In reply to | #1344593 |
On 26/02/16 19:02, Boris Ostrovsky wrote: > PV guests need to have their .bss zeroed out since it is not guaranteed > to be cleared by Xen's domain builder (even if it is done so currently) Applied to for-linus-4.6, thanks. David
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web