Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1342174

Re: [Xen-devel] [PATCH] xen/x86: Zero out .bss for PV guests

From "Luis R. Rodriguez" <mcgrof@kernel.org>
Newsgroups linux.kernel
Subject Re: [Xen-devel] [PATCH] xen/x86: Zero out .bss for PV guests
Date 2016-02-24 17:30 +0100
Message-ID <r5Ku6-76F-3@gated-at.bofh.it> (permalink)
References <r56Q3-3YI-45@gated-at.bofh.it> <r5Isi-5Lf-9@gated-at.bofh.it> <r5Isi-5Lf-11@gated-at.bofh.it> <r5J4Z-62M-9@gated-at.bofh.it> <r5J50-62M-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Feb 24, 2016 at 6:58 AM, David Vrabel <david.vrabel@citrix.com> wrote:
> Yes.  Can you respin with a commit message explaining?  (Or just provide
> the message here and I'll fix it up).

Is there no way to re-use somehow the clear_bss() from bare metal?
This uses a section range:

/* Don't add a printk in there. printk relies on the PDA which is not
initialized
   yet. */
static void __init clear_bss(void)
{
        memset(__bss_start, 0,
               (unsigned long) __bss_stop - (unsigned long) __bss_start);
}

Perhaps the section range might be different for PV guests? Or can
this simply not work even if one added a guest bss section size, or
would it be too late for PV guests, ie we need to do it in asm on PV
guests as you did? If so why.

 Luis

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [Xen-devel] [PATCH] xen/x86: Zero out .bss for PV guests David Vrabel <david.vrabel@citrix.com> - 2016-02-24 15:20 +0100
  Re: [Xen-devel] [PATCH] xen/x86: Zero out .bss for PV guests Andrew Cooper <andrew.cooper3@citrix.com> - 2016-02-24 15:20 +0100
    Re: [Xen-devel] [PATCH] xen/x86: Zero out .bss for PV guests Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-24 16:00 +0100
      Re: [Xen-devel] [PATCH] xen/x86: Zero out .bss for PV guests David Vrabel <david.vrabel@citrix.com> - 2016-02-24 16:00 +0100
        Re: [Xen-devel] [PATCH] xen/x86: Zero out .bss for PV guests "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-24 17:30 +0100
          Re: [Xen-devel] [PATCH] xen/x86: Zero out .bss for PV guests Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-24 17:50 +0100

csiph-web