From patchwork Mon May 6 12:19:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: PranavkumarSawargaonkar X-Patchwork-Id: 16716 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 89A5E20F2F for ; Mon, 6 May 2013 12:21:16 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id k26sf5743899qcs.2 for ; Mon, 06 May 2013 05:21:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=rPVCCOZoFvN4+wBWLBGe+8WCopfuDqTL35egBwgpIMY=; b=fm1pd0mWkIMIcJY0BR4rFYEH6zXCfJ29Hf1jc/495aFi9sFSsiSUqfPYRkiTVdYoKV 1atBeFufgvG/bbNxngKMNmAGdeULLUM4qh2ZSkCTW/oXOQWyI16fUlViZDQKTs86Yk+6 5One/vmOMM2L6L9n1LDxIYF5Lspu70E1QX5B3gGRX7R9BEOdIDlqw/GIhRFlggehZuXE WZx+qwxFtj0l+ylavQt2j+7sqTGjx23LyChLSz9XRAACqUqXiVhsXONxIKtrJ1vYuGbN RsNNEx21NsfRtELFiDqvvj6AaLhxNttR7duVe4uTAyNg44Nvcqmw2FxrlROYABz6eN1n QD9w== X-Received: by 10.58.133.132 with SMTP id pc4mr17734769veb.4.1367842860016; Mon, 06 May 2013 05:21:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.25.162 with SMTP id d2ls2813598qeg.24.gmail; Mon, 06 May 2013 05:20:59 -0700 (PDT) X-Received: by 10.52.185.164 with SMTP id fd4mr5698441vdc.19.1367842859840; Mon, 06 May 2013 05:20:59 -0700 (PDT) Received: from mail-vb0-x22e.google.com (mail-vb0-x22e.google.com [2607:f8b0:400c:c02::22e]) by mx.google.com with ESMTPS id sc6si9742787vdc.8.2013.05.06.05.20.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 05:20:59 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22e is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22e; Received: by mail-vb0-f46.google.com with SMTP id 10so2875025vbe.33 for ; Mon, 06 May 2013 05:20:59 -0700 (PDT) X-Received: by 10.52.228.71 with SMTP id sg7mr5429530vdc.51.1367842859665; Mon, 06 May 2013 05:20:59 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp45193veb; Mon, 6 May 2013 05:20:58 -0700 (PDT) X-Received: by 10.68.105.164 with SMTP id gn4mr3043774pbb.42.1367842858590; Mon, 06 May 2013 05:20:58 -0700 (PDT) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx.google.com with ESMTPS id pt5si10857089pac.214.2013.05.06.05.20.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 05:20:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of pranavkumar@linaro.org) client-ip=209.85.192.172; Received: by mail-pd0-f172.google.com with SMTP id 5so1991796pdd.31 for ; Mon, 06 May 2013 05:20:58 -0700 (PDT) X-Received: by 10.68.255.130 with SMTP id aq2mr24920839pbd.164.1367842858217; Mon, 06 May 2013 05:20:58 -0700 (PDT) Received: from pnqlab006.amcc.com ([182.72.18.82]) by mx.google.com with ESMTPSA id zy5sm23689902pbb.43.2013.05.06.05.20.54 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 05:20:57 -0700 (PDT) From: Pranavkumar Sawargaonkar To: linux-arm-kernel@lists.infradead.org Cc: kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, rusty@rustcorp.com.au, linaro-kernel@lists.linaro.org, patches@linaro.org, anup.patel@linaro.org, amit.shah@redhat.com, Pranavkumar Sawargaonkar Subject: [PATCH V2 2/3] Documentation: virtio: Add emergency write (emerg_wr) config register in virtio console. Date: Mon, 6 May 2013 17:49:50 +0530 Message-Id: <1367842791-30285-3-git-send-email-pranavkumar@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367842791-30285-1-git-send-email-pranavkumar@linaro.org> References: <1367842791-30285-1-git-send-email-pranavkumar@linaro.org> X-Gm-Message-State: ALoCoQmHiNKhHvQaMAHjpsx5fVre2liV+i6qdKmXy8vBRCzrM5cPETfHHAHRPhA8hThSmAzod6dc X-Original-Sender: pranavkumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22e is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Pranavkumar Sawargaonkar Signed-off-by: Anup Patel --- Documentation/virtual/virtio-spec.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/virtual/virtio-spec.txt b/Documentation/virtual/virtio-spec.txt index 0d6ec85..3ca38f8 100644 --- a/Documentation/virtual/virtio-spec.txt +++ b/Documentation/virtual/virtio-spec.txt @@ -1927,11 +1927,16 @@ Ports 2 onwards only if VIRTIO_CONSOLE_F_MULTIPORT is set ports; configuration fields nr_ports and max_nr_ports are valid and control virtqueues will be used. + VIRTIO_CONSOLE_F_EMERG_WRITE(2) Device has support for emergency + write. Configuration filed emerg_wr is valid. + Device configuration layout The size of the console is supplied in the configuration space if the VIRTIO_CONSOLE_F_SIZE feature is set. Furthermore, if the VIRTIO_CONSOLE_F_MULTIPORT feature is set, the maximum number of ports supported by the device can - be fetched.struct virtio_console_config { + be fetched. If VIRTIO_CONSOLE_F_EMERG_WRITE is set then one can + use emergency write to output single character without initializing + virtio queues. struct virtio_console_config { u16 cols; @@ -1941,6 +1946,7 @@ Ports 2 onwards only if VIRTIO_CONSOLE_F_MULTIPORT is set u32 max_nr_ports; + u32 emerg_wr; }; Device Initialization