From: Ian Campbell Subject: Re: Is there an issue with turning off "scrubbing free RAM" on boot with Xen 4.1.3 Date: Mon, 11 Nov 2013 10:14:35 +0000 Message-ID: <1384164875.3189.179.camel@kazak.uk.xensource.com> References: <52559F56.3070901@mokumsolutions.com> <52567676.3010102@citrix.com> <20131110222511.GA22949@u109add4315675089e695.ant.amazon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VfoX0-0001A4-8b for xen-devel@lists.xenproject.org; Mon, 11 Nov 2013 10:15:42 +0000 In-Reply-To: <20131110222511.GA22949@u109add4315675089e695.ant.amazon.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Matt Wilson Cc: Andrew Cooper , Roddy Rodstein , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Sun, 2013-11-10 at 14:25 -0800, Matt Wilson wrote: > On Thu, Oct 10, 2013 at 10:42:14AM +0100, Andrew Cooper wrote: > > On 09/10/13 19:24, Roddy Rodstein wrote: > > [...] > > > > Could you please share your comments about turning of RAM scrubbing, > > > i.e. have you seen any consequences, security issues and/or threats, > > > red flags, etc...? > > [...] > > > In the Xen model, domains are responsible for clearing any sensitive > > data they have out of memory before shutdown. > > This isn't strictly true. Memory is scrubbed by Xen when the domain > cannot do it for itself (i.e., when a domain is dying during > shutdown). Isn't this only when the domain is killed by the toolstack or crashes etc. On a graceful shutdown I thought the guest was still responsible for clearing any memory it cared about. > However by default domains /are/ responsible for scrubbing > pages that are returned to Xen via a reservation adjustment (i.e., > pages returned via the balloon driver). > > --msw > > > The bootscrub is a preventative measure to ensure that after a crash, > > stale domain information is cleared from RAM before that RAM is reused > > for a new VM. > > > > If this is not a concern for you, then you can easily turn bootscrub off > > by adding "no-bootscrub" to the Xen command line. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel