From patchwork Tue Sep 11 15:34:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinz Graalfs X-Patchwork-Id: 183140 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 64DAA2C007A for ; Wed, 12 Sep 2012 01:35:45 +1000 (EST) Received: from localhost ([::1]:38450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBSV5-0004Eo-Gl for incoming@patchwork.ozlabs.org; Tue, 11 Sep 2012 11:35:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBSUt-00040t-8Y for qemu-devel@nongnu.org; Tue, 11 Sep 2012 11:35:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBSUj-00024P-GV for qemu-devel@nongnu.org; Tue, 11 Sep 2012 11:35:31 -0400 Received: from e06smtp13.uk.ibm.com ([195.75.94.109]:44796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBSUj-0001N3-76 for qemu-devel@nongnu.org; Tue, 11 Sep 2012 11:35:21 -0400 Received: from /spool/local by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 11 Sep 2012 16:34:58 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp13.uk.ibm.com (192.168.101.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 11 Sep 2012 16:34:56 +0100 Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q8BFYnZQ42991814 for ; Tue, 11 Sep 2012 15:34:49 GMT Received: from d06av08.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q8BFYtl8028017 for ; Tue, 11 Sep 2012 09:34:55 -0600 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q8BFYstU027993; Tue, 11 Sep 2012 09:34:55 -0600 From: Heinz Graalfs To: rusty@rustcorp.com.au Date: Tue, 11 Sep 2012 17:34:35 +0200 Message-Id: <1347377675-22865-2-git-send-email-graalfs@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.11.5 In-Reply-To: <1347377675-22865-1-git-send-email-graalfs@linux.vnet.ibm.com> References: <1347377675-22865-1-git-send-email-graalfs@linux.vnet.ibm.com> x-cbid: 12091115-2966-0000-0000-00000540B9C7 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.75.94.109 Cc: linux-s390@vger.kernel.org, aliguori@us.ibm.com, cornelia.huck@de.ibm.com, cotte@de.ibm.com, heiko.carstens@de.ibm.com, mtosatti@redhat.com, sebott@linux.vnet.ibm.com, qemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com, avi@redhat.com, schwidefsky@de.ibm.com Subject: [Qemu-devel] [PATCH] virtio-ccw: Add secondary indicators. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Cornelia Huck Add a ccw to specify the location of indicators for configuration changes and notice how they are to be used. Signed-off-by: Cornelia Huck --- virtio-spec.lyx | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/virtio-spec.lyx b/virtio-spec.lyx index 8247d2e..41318b1 100644 --- a/virtio-spec.lyx +++ b/virtio-spec.lyx @@ -9442,13 +9442,20 @@ status open \begin_layout LyX-Code -\change_inserted -385801441 1343732726 +\change_inserted -385801441 1347015671 #define CCW_CMD_SET_IND 0x43 \end_layout \begin_layout LyX-Code +\change_inserted -385801441 1347015690 + +#define CCW_CMD_SET_CONF_IND 0x53 +\end_layout + +\begin_layout LyX-Code + \change_inserted -385801441 1343732726 #define CCW_CMD_READ_FEAT 0x12 @@ -9819,12 +9826,19 @@ Setting Up Indicators \begin_layout Standard -\change_inserted -385801441 1343732726 +\change_inserted -385801441 1347015710 To communicate the location of the indicator bits for host->guest notification, the guest uses the CCW_CMD_SET_IND command which sends the guest address of the indicators in a 64 bit value. \end_layout +\begin_layout Standard + +\change_inserted -385801441 1347015749 +For the indicator bits used in the configuration change host->guest notification +, the CCW_CMD_SET_CONF_IND command is used analogously. +\end_layout + \begin_layout Subsection* \change_inserted -385801441 1343732726 @@ -9839,13 +9853,21 @@ Host->Guest Notification \begin_layout Standard -\change_inserted -385801441 1343732726 +\change_inserted -385801441 1347015762 For notifying the guest of virtqueue buffers, the host sets the corresponding bit in the guest-provided indicators. If an interrupt is not already pending for the subchannel, the host generates an unsolicited I/O interrupt. \end_layout +\begin_layout Standard + +\change_inserted -385801441 1347015847 +If the host wants to notify the guest about configuration changes, it sets + bit 0 in the configuration indicators and generates an unsolicited I/O + interrupt, if needed. +\end_layout + \begin_layout Subsubsection* \change_inserted -385801441 1343732726