Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp439725ybl; Wed, 11 Dec 2019 22:06:13 -0800 (PST) X-Google-Smtp-Source: APXvYqydLwWOqcd8/LLvCr5PErSWwA68X3OUAIVgiMDzpNzA7SPOCHc6IwCDaVxn3Q0Id896rEbw X-Received: by 2002:a05:6830:16d0:: with SMTP id l16mr6402160otr.176.1576130773314; Wed, 11 Dec 2019 22:06:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576130773; cv=none; d=google.com; s=arc-20160816; b=VPsM0lyiESUdrIXA1uV6II4XXErn568mnHmbY5s1PtQdo4wUgetpqn1PDnGBA6HlDB 4wFZ8Y4GVM3i5J7C8+pGW7rLPngMOSvO/vtM41eOjn04Ggd/NDmj4cOD2J7+H+F5uuvB jq5dhd6je61SerlyE1XcyTW2BSQHfBUHRejgw39ZKujYAE85BFOZn4zt3gbXczaC1RQA FifMXwJ4bWpCnoOWQxZhz/f4fR4O6gbZ43+CtiZCh3KLu8+rbtfvk9+bbj1/IvsFNdFR 0r6YZpLkJgHhoi8BM5n6YrUcfLOOg+P3jxRjQysBtIVeED2bXNRrG4gk3ZCisLA2bfnl kBcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=GY+UmmJROjZoNZX5zF2hIWXfuMw6r6785I3s7z0UA+U=; b=x0k0eYfWSduA+eQlymBXvJUUWOX3DuGVX3T7HOW59wNmhFC35V++gpB/OTqRByFsC0 mGz/18hB2/XfpSyRbbLno9VfG77T1JMfFymgTusEmwI6XOLeIWL1Tpu249t9qncPlvJK prWBOj1iLZnwQmiBOBLl6K6DfiUadUolkg2niYN93a+kiUtLm4QEpqdJKz47AIKlbMak mk3ap+CyJU+yvHIXRk/YB5+KdsmCCr+dZCjLw2TqJgs9fWCHeWLbmRGmbDCkIDX4tY7K zqMZgYuqadyehvimPqlFrhq8BDX2qf130hweQ2Ui5zm7sQ8fDbdQ9gPjaA3Xx14s/dqO zjnw== 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 g126si2595496oib.105.2019.12.11.22.06.00; Wed, 11 Dec 2019 22:06:13 -0800 (PST) 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 S1726922AbfLLGEb (ORCPT + 99 others); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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