Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3949569imc; Thu, 14 Mar 2019 08:50:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5vHwTGutqchfbJenPd7cV6N9INyciz18rTrwau/nwewUEf9xuxUJU5wlDxXhGL0VrjlRA X-Received: by 2002:a17:902:a5c3:: with SMTP id t3mr1489888plq.293.1552578625944; Thu, 14 Mar 2019 08:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552578625; cv=none; d=google.com; s=arc-20160816; b=xm0z4gLRqTLIajVPU3ajTJtXLf5PIR0KLpM7zidGg7tUR1Fwxna5ePUxGJSzwVxe2n E0h6BtQQXxE1+t9LnLcsTuurFDlgfQ2bEUyTKxS52TfRBRn/YZVBmynF4cohrOkhMH8a ufRViYObRr2943a4BJKaHBSk2RkQQfZI/UZf7QbwGy3gp9S3c8O2h69SbA4t5yI4eP9K gzqCxhgWlsR2IaogqH8v7Mw0PAo8M8RDSgf8tKWRnIgzShzAPJ6qlJTkittCv0JaKmw8 /Xd4hkx+385ZXT9d87pegL7/duMWctFVQUtYjHe6Wo7Hw5J/XuejjEo0GvURXwOdK5rb qTiw== 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=6pIJOBBGWfYOLDhDvn/J5fp+l+ViLJI+4GwtgjDUiDI=; b=PqpJLYy4pxA0jpEUvSLwGYmjEdjcM7QAmCPbZzv1wUwIab1XuIG1j1CAiMXt8nzq7I cbeSrMjTpOKSQKhtvQ8DNRCJybq7Kcodzvcz7+SuTPLRWWWtDCdcDZdDa08S2H/901Oc id61Oe88NCMdr58t9gxiJce3Uu3ATOXf76VHX6a1yYgGNZ2K9tctrJ22T9LRxOyMJV1V 3rtETBNxrY5xOBPaAZgNSOVCmxD4+oGZZOHeZHOsMStpOwy7Nwr6ntO1ehgWiSJfXr48 Es1Xl45ZMQ532aL3eHKIXtA75KVrlR4ZFJNTpRpdPwwRYF8FJbG6B8DxcQNxcHfNtS7E Ozmw== 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 f3si12142535pgq.206.2019.03.14.08.50.10; Thu, 14 Mar 2019 08:50:25 -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 S1727064AbfCNPtU convert rfc822-to-8bit (ORCPT + 99 others); Thu, 14 Mar 2019 11:49:20 -0400 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:58889 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfCNPtT (ORCPT ); Thu, 14 Mar 2019 11:49:19 -0400 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Thu, 14 Mar 2019 09:49:17 -0600 Message-Id: <5C8A77FD020000780021EC87@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.1.0 Date: Thu, 14 Mar 2019 09:49:17 -0600 From: "Jan Beulich" To: "David Hildenbrand" Cc: "Julien Grall" , "Andrew Cooper" , "Matthew Wilcox" , "Stefano Stabellini" , , , "xen-devel" , "Boris Ostrovsky" , "Juergen Gross" , , "Nadav Amit" Subject: Re: [Xen-devel] [PATCH v1] xen/balloon: Fix mapping PG_offline pages to user space References: <20190314154025.21128-1-david@redhat.com> In-Reply-To: <20190314154025.21128-1-david@redhat.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 14.03.19 at 16:40, wrote: > --- a/drivers/xen/balloon.c > +++ b/drivers/xen/balloon.c > @@ -604,6 +604,7 @@ int alloc_xenballooned_pages(int nr_pages, struct page **pages) > while (pgno < nr_pages) { > page = balloon_retrieve(true); > if (page) { > + __ClearPageOffline(page); > pages[pgno++] = page; While this one's fine, ... > @@ -646,6 +647,7 @@ void free_xenballooned_pages(int nr_pages, struct page **pages) > > for (i = 0; i < nr_pages; i++) { > if (pages[i]) > + __SetPageOffline(pages[i]); > balloon_append(pages[i]); > } ... I think you want to add a pair of braces here. Jan