Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3844461imm; Mon, 4 Jun 2018 10:09:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL9aFsNtkzawfimxI6V6PFvM07jOxN/2pLwh2/C7aPUlPymwEDetmDAL6ZK2jtUQ21X5BBd X-Received: by 2002:a17:902:265:: with SMTP id 92-v6mr22135734plc.368.1528132166700; Mon, 04 Jun 2018 10:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528132166; cv=none; d=google.com; s=arc-20160816; b=eyEgakWnn6ILIQhr8AJO3dc6Jq/ZOZfIyq5zTwUXtGQGWj6KRwDOOmwFLU0NoZmyov pm3SoIPAlSCG96G/zCAsJUkcW8NrM75bkykf8BG0U/o6gMxGP6WSYQasxjz+Gupf2PwM clyamiKB7zLjIhdyHCaZPsQvCnMXXG9U5tpgDwHaIDzQE59SVnwylezk9tAkYj5BCl/0 Bu3ckj5oHLiSKLaPuD6blSjhp+rwH/uXXDE4kHRT6kiNE6AIMjbj797+QMXc7I1+xuF3 P3//DyU8oKU07Nj9oFL1ofdlVL07MrukFg6WqcqksblHMTBPU15HYRjbmNOfhYSH3e4/ GfAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=r6NuNEF1cwcQh0v5zRAv8Q2h1Op0Hpmj3+mCwPzUWB4=; b=spdoFDMmMUKWkZQL8kq5TsU8Gk0EkFkubfSJgIq2CaIkkVubhmtUPyVMPaqICrUiZU boVOn2MDCSrexR6cBiqrG/GeXzH8gZhlhrQhgXp3HSF8yxqksy3KLteUESWjT7VQdlhj da9VJdTr75xx8k21cI3Ufv3M3NL/p+ZeRjBHi4k6TwfvAbxn5EgS5WyyR9y+c2muwL1H hf9LxXSFTeTGn+QJbhNVJ+3q5b8ud2tIrCla7JHfaiKeIN357gppPISNsbj1SeTl8vdD NsrjK/SzWRj8VCZHFmbN7qzJS3Oqbcj1yAa/eiueH5Lxm6rgECCvqrMZxyOOGSj80zb2 45GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bu1Th1LP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10-v6si5033509pln.349.2018.06.04.10.09.11; Mon, 04 Jun 2018 10: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bu1Th1LP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751052AbeFDRHc (ORCPT + 99 others); Mon, 4 Jun 2018 13:07:32 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:37043 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbeFDRHa (ORCPT ); Mon, 4 Jun 2018 13:07:30 -0400 Received: by mail-lf0-f68.google.com with SMTP id r2-v6so26357278lff.4; Mon, 04 Jun 2018 10:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=r6NuNEF1cwcQh0v5zRAv8Q2h1Op0Hpmj3+mCwPzUWB4=; b=Bu1Th1LPlQ4WX3ByH5PvYqxjkeXCpsqnjW8z8n242oby1fJEJ/U6sKtWxomPlX0kuJ LTeVHiGkggxou160fLBoPaAEAF44UBSzyhD1PxtFWc4Gw3zLiRzf2+Ay3HuIqhMDIwnJ 2cosOv3f0z9Aa81SIe7v90Oqv9jevMut0QHhYorusTfXotkKNaWxTfM4zXujyGxU1yrO cUwvyyh90218uVy7utCTOzTR0vE1AOCqLHssABpocaIZCrSNUrLNFmQlh3vdOMpFdy/i emupDoqMzcS0tEwBP1u063SVzQN8bsk3eh+cCwWd8fS3ea+JZoh+g6w3mA/gofrlOQQj hJbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=r6NuNEF1cwcQh0v5zRAv8Q2h1Op0Hpmj3+mCwPzUWB4=; b=dnbH7KybZTc8yJrzExn/R3UJcl9KI51rFygXojJ8ZgPgU6fmvmn6MoY3B/e2uA/2Xe fDSdr9NwsiTmRFvfyLgqvRsld1OvtCculucCfBr4TkUFD8kaILo3PNheNF22umyA0Boz KkK7PhLyUS8xhzOqjoXo2cDQzzCh2CDUO5IeEUZ9fOembUlIsTh7bGp3PvIDatrDjbC5 cl58KeeJOLm7SPuxjdh5Reuc2wEejeI+3mvyD/id0K6yEUrZRLEKVTY/2HTGkL0wJk8h hHJAweKYls/MbSgxocLuvfvsG6m6BJXrV6pYKSMtf9FKFmuQFeERO271KOzgdjDjLQxb PAPw== X-Gm-Message-State: ALKqPwcMvRZlHNGUWJHvmAJTtJDdicITHul0R1HfmV3jIWqfDK9HdmBE FddK0zDek47xiPsW9i/HqF8= X-Received: by 2002:a19:2092:: with SMTP id g140-v6mr13805094lfg.38.1528132049169; Mon, 04 Jun 2018 10:07:29 -0700 (PDT) Received: from [192.168.0.20] (219-11-94-178.pool.ukrtel.net. [178.94.11.219]) by smtp.googlemail.com with ESMTPSA id u3-v6sm2765198ljk.83.2018.06.04.10.07.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jun 2018 10:07:28 -0700 (PDT) Subject: Re: [PATCH v2 3/9] xen/balloon: Share common memory reservation routines To: Boris Ostrovsky , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, jgross@suse.com, konrad.wilk@oracle.com Cc: daniel.vetter@intel.com, dongwon.kim@intel.com, matthew.d.roper@intel.com, Oleksandr Andrushchenko References: <20180601114132.22596-1-andr2000@gmail.com> <20180601114132.22596-4-andr2000@gmail.com> <4fd46fd8-f936-1514-06e4-34c5d3ed8960@oracle.com> From: Oleksandr Andrushchenko Message-ID: <9a22d84c-6ea8-905b-ee77-2b71d68857fd@gmail.com> Date: Mon, 4 Jun 2018 20:07:26 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <4fd46fd8-f936-1514-06e4-34c5d3ed8960@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/04/2018 07:37 PM, Boris Ostrovsky wrote: > On 06/01/2018 07:41 AM, Oleksandr Andrushchenko wrote: >> diff --git a/include/xen/mem-reservation.h b/include/xen/mem-reservation.h >> new file mode 100644 >> index 000000000000..a727d65a1e61 >> --- /dev/null >> +++ b/include/xen/mem-reservation.h >> @@ -0,0 +1,65 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> + >> +/* >> + * Xen memory reservation utilities. >> + * >> + * Copyright (c) 2003, B Dragovic >> + * Copyright (c) 2003-2004, M Williamson, K Fraser >> + * Copyright (c) 2005 Dan M. Smith, IBM Corporation >> + * Copyright (c) 2010 Daniel Kiper >> + * Copyright (c) 2018 Oleksandr Andrushchenko, EPAM Systems Inc. >> + */ >> + >> +#ifndef _XENMEM_RESERVATION_H >> +#define _XENMEM_RESERVATION_H >> + >> +#include >> +#include >> + >> +#include >> +#include >> + >> +#include >> +#include >> + >> +#ifdef CONFIG_XEN_SCRUB_PAGES >> +void xenmem_reservation_scrub_page(struct page *page); >> +#else >> +static inline void xenmem_reservation_scrub_page(struct page *page) >> +{ >> +} >> +#endif > > Given that this is a wrapper around a single call I'd prefer > > inline void xenmem_reservation_scrub_page(struct page *page) > { > #ifdef CONFIG_XEN_SCRUB_PAGES >     clear_highpage(page); > #endif > } > Ok, will change > > -boris > > Thank you, Oleksandr