Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp671296imm; Mon, 21 May 2018 12:15:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqNt3bJBwlLLK+9KhOlT85wsiHJVweYKx4mbKRQLy46XcXndp4Qs3AhfOR4ReMtaLwrkJn3 X-Received: by 2002:a63:6ac6:: with SMTP id f189-v6mr16971756pgc.308.1526930140560; Mon, 21 May 2018 12:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526930140; cv=none; d=google.com; s=arc-20160816; b=kxr4kgRXCuLNla8r+DJT+gQbcAFHaoqudHjazyxwxa+mHtV7vIoTAfsrLhcbR2ZFP7 mRFg0ES3ZRAVKLAxDeSA1pRKpMg3TZ2kkdLYd/28iDfOTynJPR3OkD8GUlRW+tIcNWTa MnAJrCRbi0CgfRLk8fiZ8c4aWQh0tlRybXYclMp0eX8WTta0cE7467YmR9Q2GF13UOBq SmkcGnYaamytEYZtx0PWbDaODm9iJpKhNh0F8L9xSYhf1sbgggwGAr+jOysQLff4xPHW JW3zdXzCojAWXt4ITpgdcxeelbAgybGq/euPLIxJgnsE0mqleY9tNR+o6Ol9wXFDDSZy wo1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput: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=D9o45u1rfu/2YovpWniRARb9K2wGdOfjjUmwFd1Yc9w=; b=u7kVh6tnv5+TCttdsUqxVwiisABE8u/lQckWmFTF8kyr/Z8aTNWkwa/0gqs0uSVbzk xqFDzLfxC7GpQ/l7qc2WiGQrbYP8AkFoclRCNBmtP3GIoBkobK69MEnarDXhjvjvfHiA UV/UUYIUOShEuMTyP01xfG+++eWX8yXaBAQrnRUrcvTvGkao8TGuJLVxqyRfLPqAhpX9 e6TfnVCmQN2eg9JW0C1TBwhXDFqVZITqm6oxYmiOnl0/1DK0F1rNXC0DAsLCqhk0Jpaq X2WaOVGYPJmYh1YS1OjPM0Oarfe60EJialqL6oCmk+xl+FYEnnN/jJxf+2exrgjwWPyC 8Flg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@epam.com header.s=selector1 header.b=BS8SGRpC; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=epam.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k193-v6si11386218pgc.520.2018.05.21.12.15.25; Mon, 21 May 2018 12:15:40 -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=@epam.com header.s=selector1 header.b=BS8SGRpC; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=epam.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751117AbeEUTOG (ORCPT + 99 others); Mon, 21 May 2018 15:14:06 -0400 Received: from mail-db5eur01on0068.outbound.protection.outlook.com ([104.47.2.68]:23488 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750773AbeEUTOA (ORCPT ); Mon, 21 May 2018 15:14:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D9o45u1rfu/2YovpWniRARb9K2wGdOfjjUmwFd1Yc9w=; b=BS8SGRpC8u+VzGPPKhIJg6fyU0o6dPeTzbOTOIF93pk8lsIQ68y9zyrJBWJgJPty/9U6/l5NIJKK7FRIJwKrtoyJvPzg5Lvyjr4eai5v18+Y6Sv2IsG37jWYCBQPFHq57cgcd1CGQGEW7491FQ39mIyWug/GuXGV56v4ahGBZos= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Oleksandr_Andrushchenko@epam.com; Received: from [192.168.0.20] (178.94.17.41) by DB3PR0302MB3210.eurprd03.prod.outlook.com (2603:10a6:8:9::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.776.11; Mon, 21 May 2018 19:13:54 +0000 Subject: Re: [Xen-devel] [RFC 1/3] xen/balloon: Allow allocating DMA buffers To: Boris Ostrovsky , Oleksandr Andrushchenko , 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, matthew.d.roper@intel.com, dongwon.kim@intel.com References: <20180517082604.14828-1-andr2000@gmail.com> <20180517082604.14828-2-andr2000@gmail.com> <6a108876-19b7-49d0-3de2-9e10f984736c@oracle.com> <9541926e-001a-e41e-317c-dbff6d687761@gmail.com> <218e2bf7-490d-f89e-9866-27b7e3dbc835@oracle.com> From: Oleksandr Andrushchenko Message-ID: Date: Mon, 21 May 2018 22:13:14 +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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [178.94.17.41] X-ClientProxiedBy: AM6PR0102CA0022.eurprd01.prod.exchangelabs.com (2603:10a6:209:14::35) To DB3PR0302MB3210.eurprd03.prod.outlook.com (2603:10a6:8:9::14) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0302MB3210; X-Microsoft-Exchange-Diagnostics: 1;DB3PR0302MB3210;3:Ev6Tw5zgSIDgRftapK2e9SG3UppIYb30St0jnTN5VW5etZBV4d0bHtHmfzbOzrbmw225sIi7F9kv1aSixgbGlDwPXLwZpXOhiT3yK7G3sOj5hG+PxvkHv+PgMql2r18/wTCeSNsd/4BnFOzVOaBAb+breT7N8ENx3Cm0xQtjhsx+o9YfEzOVREIh0LIexV5BgJTZ+l9p/pDjWGNODU3KLdjN/I4eB5PzDNqvtLnGFleehDZz5EERCkob/6AYynHv;25:nuNREKxvjpMAkUCR8UJS+R03VcnvTy/fpbatFf5K0xaJaEO23i0qWfhG30WI/s7S9paJuiQ8Du9UOIlYplpx8IxWJ6W+kUoZzxKdHKuyBjaPj0oVUehB/cGL3NlvkcScCbrG7WvrKvylts1ROu42Egl8UD7RBENsmNa4tPJuGVAC9hfbHX/GHVSLx2pd5ey0tzGcMCL7Qr+qQzwTeOcBjMsWxVNGDLJ8chroKwiN6JQI/Ut4raUf3NSmExI/V5XL800SZHfnVXcrgjEyD36M3X2+chCPo+l+vskxXkhe3W8O1Wwqci+MO4T4nMyFryO0NBKjMRk5ksrSK1CtXiKQQQ==;31:SLWtjVdNZRqJnjtjQSuWigGrjs/NuvTggkaFqIV591Nev9Xsv9vxiXG0cPf/5iyvNkadandGYpxyjKC/5LPbUZD1IUzmJGSXCMtDl+sduBXt2+9HwjJMwyIB7uoIa+rs5lzCDARG3J/92N0+ndfLPJnM64+kWZpsPwVFj9Ua/6ypdBzXUJCHkefZOYJtDz5J4cq7AO0+m8aCXR33+TXPAGzjvzlHX9RUwIQgSN2wgOU= X-MS-TrafficTypeDiagnostic: DB3PR0302MB3210: X-Microsoft-Exchange-Diagnostics: 1;DB3PR0302MB3210;20:RwOXObvXcXePVI25jeNuUoqi3Jpz45dJUMP46cVuyomOIKDo9xY7TJgs+dhZMZtTEM1YEVBfmU7XglfSUyGw6qgEhQ9Yo+U4E/00MKFmo8fWTaF/wKpHVmht9homaOHlSjiGCoDJsGNnaVlHa4AI2uOhvnhYBTd4Pq5X/NzvWd0F7JDWrh5pb8QmdgNQ1sn4jKBrRnKQqDAf8cnnrpY7OHovTbcO8csgwXGMq6m1m7rmbwdHtVw/NzwD2zC9pMHXpYZNAx+uyjPJq56sR9woNZRyvoHQfAYTUz9vxewGr5LJUwAKOaUN6PZcX7KQvTyJpQmcTABiRGwF80Zx3pz5WjFyNQa0crhIZEL5XQKUikEST0IVBOFmR6xJDuj4RZt6yuDumNDjPfdYd/MbLvlTamqQyyXGaIH4trXZuTsYFobMm93nCpQxT1Fe+jQu434KFRgXxtRwue0IM8fYrOsNmuF1CxjsevPSBv6LseAvrvzAd9kavG+IA38hJgG0SItY;4:ndnngh2lNGS0tOA80oGZbR931GYmpyNDbAOqPlXt/fOnXFxK5WywaSMa9D6ytr+TarhVDk2vQZya1txakdE3gYjEU1v2KBlMBRWBLimlunCAvkw3BQ5+qY7IPgaUg5SMaIJgYXBt+2f+vCPIINoTQ1O8DM2Xed6YMVRuv4iFKIuWqg4HXT6ZjvX94jFZI3nK51OOdaKkSpLsnjDjeqHhmKDxD3OqNIbN+Ll2XkmEIUEZnDWRdlDalbN4BmGIT+y2lUPevuL/dHdcVhe9c6lGRynvH0IfqW/2tahwQajhKBZn/GIJ11B5EGeh7O4AzMbGeClD6roV3LpR6gl+/X3ghX/QuExmAeiiTRqRNnlsBEc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(217544274631240)(4114951738403); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231254)(944501410)(52105095)(3002001)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:DB3PR0302MB3210;BCL:0;PCL:0;RULEID:;SRVR:DB3PR0302MB3210; X-Forefront-PRVS: 06793E740F X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(346002)(376002)(39380400002)(39860400002)(396003)(366004)(189003)(199004)(2486003)(386003)(31696002)(65806001)(66066001)(65956001)(47776003)(93886005)(2616005)(316002)(110136005)(81166006)(81156014)(64126003)(11346002)(486006)(8936002)(16576012)(7416002)(16526019)(476003)(446003)(186003)(956004)(86362001)(3846002)(58126008)(53546011)(6116002)(8676002)(67846002)(23676004)(68736007)(4326008)(2870700001)(65826007)(6306002)(7736002)(39060400002)(966005)(229853002)(106356001)(53936002)(2906002)(305945005)(52116002)(6486002)(97736004)(80792005)(36756003)(72206003)(31686004)(6666003)(26005)(52146003)(117156002)(77096007)(6246003)(105586002)(25786009)(76176011)(5660300001)(478600001)(50466002)(533714002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0302MB3210;H:[192.168.0.20];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: epam.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjNQUjAzMDJNQjMyMTA7MjM6ZVlHMWdDQTVwT1pEei9hNk13bzJwZnV2?= =?utf-8?B?bWs5T0VTeXpwSjlqMC9mSDhQbjRUUVg5SWxQZ3F2V1ZoV2NpbE4vWHNuaG54?= =?utf-8?B?NUlJam9HTVlQMmRPMjlPaEt1QktEa2txYXA2MUJIM3lvaE43bU1hQ3FndmV5?= =?utf-8?B?VktxMVNnencxRmRMT2RENDF2ejRmNWdjYTUrQUIreG14NDJSSzRqeExBSnlF?= =?utf-8?B?bTNPWUhFM0pwdjFIK0lBOW1BU0E0QnpPdmhBNXRQbWNzSnJPQXZUbjhNTmw1?= =?utf-8?B?M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VtUwMDsD/jU3/tFhCtKKIW5FvepvQNyInldmHycGFtuo6AeYoyvvTx6r0lcRGXYIbFCY0lO+V0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB3PR0302MB3210;7:vBxRbTk+FBty8UgV6BZZaaPQH1vnv2myIpik42vD8X6Vql9feFhA9opZ+E65g/IccPaoesC+qgqcOPil6M6g7zalJkjmZSiz7SmQYBf8LqjlCp/tSxxPJtOcl+9h1QbBBuuEhbISyFx4XgQ/9J4IzxsIvpUsu57RlQJMhkyK14N+q4bGw4nxhvuuuF2BwqR2GrA1Cj/P6f50bYmb/zAav7VUUyVonTWNBCXh7S5E6hBHPer6Nx4yxEdXT0qu1hAu X-MS-Office365-Filtering-Correlation-Id: 6c0e92ca-b38a-4957-5dde-08d5bf4effa4 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2018 19:13:54.8703 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c0e92ca-b38a-4957-5dde-08d5bf4effa4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0302MB3210 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/21/2018 09:53 PM, Boris Ostrovsky wrote: > On 05/21/2018 01:32 PM, Oleksandr Andrushchenko wrote: >> On 05/21/2018 07:35 PM, Boris Ostrovsky wrote: >>> On 05/21/2018 01:40 AM, Oleksandr Andrushchenko wrote: >>>> On 05/19/2018 01:04 AM, Boris Ostrovsky wrote: >>>>> On 05/17/2018 04:26 AM, Oleksandr Andrushchenko wrote: >>>>>> From: Oleksandr Andrushchenko >>>>> A commit message would be useful. >>>> Sure, v1 will have it >>>>>> Signed-off-by: Oleksandr Andrushchenko >>>>>> >>>>>> >>>>>>        for (i = 0; i < nr_pages; i++) { >>>>>> -        page = alloc_page(gfp); >>>>>> -        if (page == NULL) { >>>>>> -            nr_pages = i; >>>>>> -            state = BP_EAGAIN; >>>>>> -            break; >>>>>> +        if (ext_pages) { >>>>>> +            page = ext_pages[i]; >>>>>> +        } else { >>>>>> +            page = alloc_page(gfp); >>>>>> +            if (page == NULL) { >>>>>> +                nr_pages = i; >>>>>> +                state = BP_EAGAIN; >>>>>> +                break; >>>>>> +            } >>>>>>            } >>>>>>            scrub_page(page); >>>>>>            list_add(&page->lru, &pages); >>>>>> @@ -529,7 +565,7 @@ static enum bp_state >>>>>> decrease_reservation(unsigned long nr_pages, gfp_t gfp) >>>>>>        i = 0; >>>>>>        list_for_each_entry_safe(page, tmp, &pages, lru) { >>>>>>            /* XENMEM_decrease_reservation requires a GFN */ >>>>>> -        frame_list[i++] = xen_page_to_gfn(page); >>>>>> +        frames[i++] = xen_page_to_gfn(page); >>>>>>      #ifdef CONFIG_XEN_HAVE_PVMMU >>>>>>            /* >>>>>> @@ -552,18 +588,22 @@ static enum bp_state >>>>>> decrease_reservation(unsigned long nr_pages, gfp_t gfp) >>>>>>    #endif >>>>>>            list_del(&page->lru); >>>>>>    -        balloon_append(page); >>>>>> +        if (!ext_pages) >>>>>> +            balloon_append(page); >>>>> So what you are proposing is not really ballooning. You are just >>>>> piggybacking on existing interfaces, aren't you? >>>> Sort of. Basically I need to {increase|decrease}_reservation, not >>>> actually >>>> allocating ballooned pages. >>>> Do you think I can simply EXPORT_SYMBOL for >>>> {increase|decrease}_reservation? >>>> Any other suggestion? >>> I am actually wondering how much of that code you end up reusing. You >>> pretty much create new code paths in both routines and common code ends >>> up being essentially the hypercall. >> Well, I hoped that it would be easier to maintain if I modify existing >> code >> to support both use-cases, but I am also ok to create new routines if >> this >> seems to be reasonable - please let me know >>>   So the question is --- would it make >>> sense to do all of this separately from the balloon driver? >> This can be done, but which driver will host this code then? If we >> move from >> the balloon driver, then this could go to either gntdev or grant-table. >> What's your preference? > A separate module? > Is there any use for this feature outside of your zero-copy DRM driver? Intel's hyper dma-buf (Dongwon/Matt CC'ed), V4L/GPU at least. At the time I tried to upstream zcopy driver it was discussed and decided that it would be better if I remove all DRM specific code and move it to Xen drivers. Thus, this RFC. But it can also be implemented as a dedicated Xen dma-buf driver which will have all the code from this RFC + a bit more (char/misc device handling at least). This will also require a dedicated user-space library, just like libxengnttab.so for gntdev (now I have all new IOCTLs covered there). If the idea of a dedicated Xen dma-buf driver seems to be more attractive we can work toward this solution. BTW, I do support this idea, but was not sure if Xen community accepts yet another driver which duplicates quite some code of the existing gntdev/balloon/grant-table. And now after this RFC I hope that all cons and pros of both dedicated driver and gntdev/balloon/grant-table extension are clearly seen and we can make a decision. > > -boris Thank you, Oleksandr [1] https://lists.freedesktop.org/archives/dri-devel/2018-April/173163.html