Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3351429ybl; Mon, 20 Jan 2020 22:20:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzfNF3Zg8C183yFW5qiyU62OEqm2VqHiRJInHybEWV1zaqBu2admDkjF/bHRx4GUXqxxPIP X-Received: by 2002:aca:c452:: with SMTP id u79mr1912567oif.89.1579587655604; Mon, 20 Jan 2020 22:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579587655; cv=none; d=google.com; s=arc-20160816; b=DtHzb1AIjSswxKcGoMYRgaCJswtU68vwcgIebZESQh8u9cQeMjvcO77Pie72YLKVhz AbnXR6qqqPJ51j+UNt3SyLLG6hacXicVocukJDNAFTKqwOFvdSEpqd2+86nPI5ZX/4Bd zYc32UjU7w7o4ooZQXr1Dr5wEHsHMXPnIZmzhePmVgLLCBbk2XbZ/Ihy4j6eCDV7ihh6 UREsSV1nK6vk1h2qdnbZ70HUhs6XjihA0JgbJ7+hB/53GIK6xKxFNNwCdIRhtP8NrtEC zi/1PiwSIpeWo67lXzwyiypbtDtgBSX/aPPf/9AEPASD2nwAtw/0LVRctGIaTRMbwh3I +3gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=YjBi2pZm0ljrQdGZZWAp0S3eJ4OjqEPNVvOx0RGqmrA=; b=YNIshOXavl/rC5909LQFUL3IJi41PsOOJALd8JaPCnKMyM7ANY0eeXmtJWWQysjMVw NPC5jTYI8fMWIrPCNpacCngfzLm14mKGNGQ3zw81bVhoc77Fk0ZtLg2p07fKmqwtiHgI 9YdfeJ3ulgqG/dfwqfmOpsLlT9ZB6xgamnDDjJwNRnTioOanTKcg0CLZUpLH78FIkUQm emT+piWuYC3mz1oLbc2JB6duppCe5UZOc46SD/NH6pr3rmfoJMH0wlxmUJXheJirByvC JdETlz0ON+9mx8Al603bf/wAkd/GUDsjhM+tMTrRB7wEjeXn7+xgwXTRHqEw3Mp+4zry nRaQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si22804546oti.311.2020.01.20.22.20.43; Mon, 20 Jan 2020 22:20:55 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728847AbgAUGTr (ORCPT + 99 others); Tue, 21 Jan 2020 01:19:47 -0500 Received: from mga14.intel.com ([192.55.52.115]:33355 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728783AbgAUGTr (ORCPT ); Tue, 21 Jan 2020 01:19:47 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jan 2020 22:19:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,344,1574150400"; d="scan'208";a="278301891" Received: from hyperv-sh3.bj.intel.com ([10.240.193.95]) by fmsmga001.fm.intel.com with ESMTP; 20 Jan 2020 22:19:45 -0800 From: Jing Liu To: virtio-dev@lists.oasis-open.org Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, qemu-devel@nongnu.org, Jing Liu , Chao Peng , Liu Jiang , Zha Bin Subject: [virtio-dev] [PATCH v2 1/5] virtio-mmio: Add feature bit for MMIO notification Date: Tue, 21 Jan 2020 21:54:29 +0800 Message-Id: <1579614873-21907-2-git-send-email-jing2.liu@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1579614873-21907-1-git-send-email-jing2.liu@linux.intel.com> References: <1579614873-21907-1-git-send-email-jing2.liu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All the queues notifications use the same register on MMIO transport layer. Add a feature bit (39) for enhancing the notification capability. The detailed mechanism would be in next patch. Co-developed-by: Chao Peng Signed-off-by: Chao Peng Co-developed-by: Liu Jiang Signed-off-by: Liu Jiang Co-developed-by: Zha Bin Signed-off-by: Zha Bin Signed-off-by: Jing Liu --- content.tex | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content.tex b/content.tex index d68cfaf..826bc7d 100644 --- a/content.tex +++ b/content.tex @@ -5810,6 +5810,9 @@ \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits} in its device notifications. See \ref{sec:Virtqueues / Driver notifications}~\nameref{sec:Virtqueues / Driver notifications}. \end{description} + \item[VIRTIO_F_MMIO_NOTIFICATION(39)] This feature indicates + that the device supports enhanced notification mechanism on + MMIO transport layer. \drivernormative{\section}{Reserved Feature Bits}{Reserved Feature Bits} @@ -5843,6 +5846,8 @@ \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits} or partially reset, and even without re-negotiating VIRTIO_F_SR_IOV after the reset. +A driver SHOULD accept VIRTIO_F_MMIO_NOTIFICATION if it is offered. + \devicenormative{\section}{Reserved Feature Bits}{Reserved Feature Bits} A device MUST offer VIRTIO_F_VERSION_1. A device MAY fail to operate further @@ -5872,6 +5877,10 @@ \chapter{Reserved Feature Bits}\label{sec:Reserved Feature Bits} and presents a PCI SR-IOV capability structure, otherwise it MUST NOT offer VIRTIO_F_SR_IOV. +If VIRTIO_F_MMIO_NOTIFICATION has been negotiated, a device +MUST support handling the notification from driver at the +calculated location. + \section{Legacy Interface: Reserved Feature Bits}\label{sec:Reserved Feature Bits / Legacy Interface: Reserved Feature Bits} Transitional devices MAY offer the following: -- 2.7.4