Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1977883imm; Fri, 7 Sep 2018 08:59:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYPAQOKzBw2+N1D6IZxkE3DhUxtfh10i1bUm/9t28xO3E9UIOEdrnTYOBwoee2VTToQ6FTq X-Received: by 2002:a65:560a:: with SMTP id l10-v6mr8989580pgs.130.1536335996079; Fri, 07 Sep 2018 08:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536335996; cv=none; d=google.com; s=arc-20160816; b=RxQrIpLv9/NAzKSdEkJFllx0fuyGH9vtAx+typWTwJojAN3cg4zaX1rCuTQ+GO3Lf5 VulA5C7o5zlTZmaIIajlzFPxQoHcAwgXhJCv2ni70hBOg+eeintxANxJTxzc9rnL51MD z79vRrF7hONNyvETbw1juPsGxrBEpA+XIxcShfyXDNIFJdA1UJ/EaVPfgMOwSrcn1NlI YRTfvj5ue8aavVATyN5zJm6CzZIa/Api3Q+bYIKvBzlB4BKdqtuGHJJkEHQQpzryVPEk Nmc+qWBlGGaFKSkFJXgc8NpXXaT+rvgxx8NZElCzpQT0ZbW13l/KjPLsMvV7ZHws+9Fe TupA== 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=R+I6d5gzTqDWwnjz4kQf0YOe/GyXKQFnNIQOWElfjLQ=; b=pnWNtCloyWaX59vuxfqPRqQvySsAkpFTkMln13GbZy/Vr6yjMoblA2ZydUab7fbkmw qFQIev5SFNmFwtZoXsiIaqZmeb0XgZhse3OSJNZ7iJGj35ywVb7hZBZY3lDwX70FSq75 XsHDOURmOLYnhiQ7XDlnplNu/9cU3CcznjfAWwTLcbbiDJl2kdAdtlmLoDoUsJNhzDMC T8pZp4x2FVk2Mdic6Ug4zuQ6cAgwS3N3yCchU7xgyWOazGxQl7dnY+aC8G7loyBa2fJN s0h1kQE7nfWeakp/QVAhUJVuP3ruiIlnHYu0eeskr6DMVUqXo0S8T3yMcf8HHBdlGrn2 8RoA== 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 w16-v6si9488069pga.104.2018.09.07.08.59.40; Fri, 07 Sep 2018 08:59:56 -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 S1727623AbeIGUj7 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 Sep 2018 16:39:59 -0400 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:58832 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbeIGUj7 (ORCPT ); Fri, 7 Sep 2018 16:39:59 -0400 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Fri, 07 Sep 2018 09:58:23 -0600 Message-Id: <5B92A01D02000078001E67CE@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.0.2 Date: Fri, 07 Sep 2018 09:58:21 -0600 From: "Jan Beulich" To: "Marek Marczykowski" Cc: "Kai-Heng Feng" , "Thymo van Beers" , "Bjorn Helgaas" , "David Rientjes" , "Frederic Weisbecker" , "Ingo Molnar" , , , "xen-devel" , "Jonathan Corbet" , "Boris Ostrovsky" , "Konrad Rzeszutek Wilk" , "Juergen Gross" , "Jiri Kosina" , , Subject: Re: [Xen-devel] [PATCH v2] xen/balloon: add runtime control for scrubbing ballooned out pages References: <20180907153117.17258-1-marmarek@invisiblethingslab.com> In-Reply-To: <20180907153117.17258-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 07.09.18 at 17:31, wrote: > --- a/drivers/xen/mem-reservation.c > +++ b/drivers/xen/mem-reservation.c > @@ -14,6 +14,14 @@ > > #include > #include > +#include > + > +#ifdef CONFIG_XEN_SCRUB_PAGES_DEFAULT > +bool __read_mostly xen_scrub_pages = true; > +#else > +bool __read_mostly xen_scrub_pages = false; > +#endif Use IS_ENABLED() here instead of the #ifdef? Jan