From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752657AbcBXOwN (ORCPT ); Wed, 24 Feb 2016 09:52:13 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:49753 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750AbcBXOwL (ORCPT ); Wed, 24 Feb 2016 09:52:11 -0500 Subject: Re: [Xen-devel] [PATCH] xen/x86: Zero out .bss for PV guests To: Andrew Cooper , David Vrabel , konrad.wilk@oracle.com References: <1456178767-8038-1-git-send-email-boris.ostrovsky@oracle.com> <56CDBA5A.1000600@citrix.com> <56CDBB0F.9000203@citrix.com> Cc: xen-devel@lists.xenproject.org, mcgrof@kernel.org, linux-kernel@vger.kernel.org From: Boris Ostrovsky Message-ID: <56CDC39B.3060004@oracle.com> Date: Wed, 24 Feb 2016 09:52:11 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <56CDBB0F.9000203@citrix.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/24/2016 09:15 AM, Andrew Cooper wrote: > On 24/02/16 14:12, David Vrabel wrote: >> On 22/02/16 22:06, Boris Ostrovsky wrote: >>> Baremetal kernels clear .bss early in the boot. Since Xen PV guests don't >>> excecute that early code they should do it too. >>> >>> (Since we introduce macros for specifying 32- and 64-bit registers we >>> can get rid of ifdefs in startup_xen()) >> .bss must have been cleared for PV guests otherwise they would be >> horribly broken. What was the method and why is it no longer sufficient? I couldn't find this being done anywhere, hence this patch. > The domain builder hands out zeroed pages. I don't believe we guarantee > that the guests RAM is clean, but it is in practice. OK, that's what I suspected but didn't actually look. I, in fact, wonder whether this should go to stable trees as well. -boris