Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1461085imm; Fri, 7 Sep 2018 00:09:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYwBHLmrwyrHfSZt7UmZlZcu8ipmfiY5+9uFnTM9y+M8Y78sXbG/42UM9dEeQUSZFWydqhA X-Received: by 2002:a17:902:bf43:: with SMTP id u3-v6mr6563322pls.88.1536304166914; Fri, 07 Sep 2018 00:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536304166; cv=none; d=google.com; s=arc-20160816; b=xqOVjL8Cca/p3CtX1BgpL3in91ve4tWjQPGBz1+JvSn8ZOREFw7hE9TkH9NbFPKHsz hrfixuYmfpEES47kzC9nDmes7heQWug4vPoQSvMgpveMBswvefRlYfJr6XixWt7V8eXB 3S6oXtxGxbZfdzEEnFcqrsukeuHgyb0XnkO16QhZKtBSqpAmiiR0QM05SvkPKqvILEyH 4ZaK2O1E9kLkH8kV0/qQlQJrp4lW+pDBLfgM2umtOXAGSZH76RAB3C9gOZ4AxSBU8NCV QkRA4q2RIwyq3s449c2+UI7EvFZ0IT/dEDDIqfWrEiMfv2Gj8+CRxGeI3+8dWD0kEljT KdgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references :subject:cc:to:from:date:message-id; bh=mvHcZXHGcSDd3GAzCPEPTgSSFPlahACB7D2l4JrPMSU=; b=H4dip9mZ0zzAWQVLxVc2uBvm6X661qb0rRuA5NnrSiKN/FlZDUnTBSQRA+CWKYW6QR DBzuLoUrFLp5Zea8yJ4b6B3hIKMMtSe+jj2chQzx+JnkPf/Yy4oFBcanuaD4WpLVQvfk /ilgUL5ryth9KUPcarbA503ST5zVvqwQxKk+dAZjSJ8wkP0ewJyEKogKDaz6ctvDEtF1 oZncBKNmJ4GOQiB0oeX3+fs66Ch/e5m8Y9twdnNsjbKPfSGqCZeFcqNciCnU6W37mtX/ LVNNNeSW9XFOrt7hPHposvWRQK6/cD5HVW/N6ySTOVc2ImylS5gThMUL2Apm3uzigY9t lUdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3-v6si7148080pgi.444.2018.09.07.00.09.10; Fri, 07 Sep 2018 00:09:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726293AbeIGLa4 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 Sep 2018 07:30:56 -0400 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:56369 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbeIGLaz (ORCPT ); Fri, 7 Sep 2018 07:30:55 -0400 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Fri, 07 Sep 2018 00:51:27 -0600 Message-Id: <5B921FEE02000078001E6258@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.0.2 Date: Fri, 07 Sep 2018 00:51:26 -0600 From: "Jan Beulich" To: "Marek Marczykowski" Cc: "xen-devel" , "Boris Ostrovsky" , "Juergen Gross" , Subject: Re: [Xen-devel] [PATCH] xen/balloon: add runtime control for scrubbing ballooned out pages References: <20180906153355.25363-1-marmarek@invisiblethingslab.com> In-Reply-To: <20180906153355.25363-1-marmarek@invisiblethingslab.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 06.09.18 at 17:33, wrote: > --- a/include/xen/mem-reservation.h > +++ b/include/xen/mem-reservation.h > @@ -17,12 +17,17 @@ > > #include > > +#ifdef CONFIG_XEN_SCRUB_PAGES > +extern bool xen_scrub_pages; > + > static inline void xenmem_reservation_scrub_page(struct page *page) > { > -#ifdef CONFIG_XEN_SCRUB_PAGES > - clear_highpage(page); > -#endif > + if (xen_scrub_pages) > + clear_highpage(page); > } > +#else > +static inline void xenmem_reservation_scrub_page(struct page *page) { } > +#endif Wouldn't CONFIG_XEN_SCRUB_PAGES then better become CONFIG_XEN_SCRUB_PAGES_DEFAULT, with the value used as initializer of xen_scrub_pages? Jan