From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F24EDC43603 for ; Thu, 12 Dec 2019 06:04:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C87FE2464B for ; Thu, 12 Dec 2019 06:04:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726784AbfLLGEb (ORCPT ); Thu, 12 Dec 2019 01:04:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:60748 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726775AbfLLGEb (ORCPT ); Thu, 12 Dec 2019 01:04:31 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 35B59AD75; Thu, 12 Dec 2019 06:04:29 +0000 (UTC) Subject: Re: [PATCH v3 3/4] xen/interface: re-define FRONT/BACK_RING_ATTACH() To: Paul Durrant , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Boris Ostrovsky , Stefano Stabellini References: <20191211152956.5168-1-pdurrant@amazon.com> <20191211152956.5168-4-pdurrant@amazon.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: Date: Thu, 12 Dec 2019 07:04:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191211152956.5168-4-pdurrant@amazon.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 11.12.19 16:29, Paul Durrant wrote: > Currently these macros are defined to re-initialize a front/back ring > (respectively) to values read from the shared ring in such a way that any > requests/responses that are added to the shared ring whilst the front/back > is detached will be skipped over. This, in general, is not a desirable > semantic since most frontend implementations will eventually block waiting > for a response which would either never appear or never be processed. > > Since the macros are currently unused, take this opportunity to re-define > them to re-initialize a front/back ring using specified values. This also > allows FRONT/BACK_RING_INIT() to be re-defined in terms of > FRONT/BACK_RING_ATTACH() using a specified value of 0. > > NOTE: BACK_RING_ATTACH() will be used directly in a subsequent patch. > > Signed-off-by: Paul Durrant Reviewed-by: Juergen Gross Juergen From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20019C2D0C8 for ; Thu, 12 Dec 2019 06:04:44 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F156B2173E for ; Thu, 12 Dec 2019 06:04:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F156B2173E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ifHaT-0008VI-8l; Thu, 12 Dec 2019 06:04:33 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ifHaR-0008VB-QZ for xen-devel@lists.xenproject.org; Thu, 12 Dec 2019 06:04:31 +0000 X-Inumbo-ID: 423c57cc-1ca5-11ea-8cb6-12813bfff9fa Received: from mx1.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 423c57cc-1ca5-11ea-8cb6-12813bfff9fa; Thu, 12 Dec 2019 06:04:29 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 35B59AD75; Thu, 12 Dec 2019 06:04:29 +0000 (UTC) To: Paul Durrant , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191211152956.5168-1-pdurrant@amazon.com> <20191211152956.5168-4-pdurrant@amazon.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: Date: Thu, 12 Dec 2019 07:04:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191211152956.5168-4-pdurrant@amazon.com> Content-Language: en-US Subject: Re: [Xen-devel] [PATCH v3 3/4] xen/interface: re-define FRONT/BACK_RING_ATTACH() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Boris Ostrovsky , Stefano Stabellini Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" T24gMTEuMTIuMTkgMTY6MjksIFBhdWwgRHVycmFudCB3cm90ZToKPiBDdXJyZW50bHkgdGhlc2Ug bWFjcm9zIGFyZSBkZWZpbmVkIHRvIHJlLWluaXRpYWxpemUgYSBmcm9udC9iYWNrIHJpbmcKPiAo cmVzcGVjdGl2ZWx5KSB0byB2YWx1ZXMgcmVhZCBmcm9tIHRoZSBzaGFyZWQgcmluZyBpbiBzdWNo IGEgd2F5IHRoYXQgYW55Cj4gcmVxdWVzdHMvcmVzcG9uc2VzIHRoYXQgYXJlIGFkZGVkIHRvIHRo ZSBzaGFyZWQgcmluZyB3aGlsc3QgdGhlIGZyb250L2JhY2sKPiBpcyBkZXRhY2hlZCB3aWxsIGJl IHNraXBwZWQgb3Zlci4gVGhpcywgaW4gZ2VuZXJhbCwgaXMgbm90IGEgZGVzaXJhYmxlCj4gc2Vt YW50aWMgc2luY2UgbW9zdCBmcm9udGVuZCBpbXBsZW1lbnRhdGlvbnMgd2lsbCBldmVudHVhbGx5 IGJsb2NrIHdhaXRpbmcKPiBmb3IgYSByZXNwb25zZSB3aGljaCB3b3VsZCBlaXRoZXIgbmV2ZXIg YXBwZWFyIG9yIG5ldmVyIGJlIHByb2Nlc3NlZC4KPiAKPiBTaW5jZSB0aGUgbWFjcm9zIGFyZSBj dXJyZW50bHkgdW51c2VkLCB0YWtlIHRoaXMgb3Bwb3J0dW5pdHkgdG8gcmUtZGVmaW5lCj4gdGhl bSB0byByZS1pbml0aWFsaXplIGEgZnJvbnQvYmFjayByaW5nIHVzaW5nIHNwZWNpZmllZCB2YWx1 ZXMuIFRoaXMgYWxzbwo+IGFsbG93cyBGUk9OVC9CQUNLX1JJTkdfSU5JVCgpIHRvIGJlIHJlLWRl ZmluZWQgaW4gdGVybXMgb2YKPiBGUk9OVC9CQUNLX1JJTk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