From patchwork Wed Jul 4 14:02:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 1156311 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id EE40ADFF0F for ; Wed, 4 Jul 2012 14:06:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752619Ab2GDOGM (ORCPT ); Wed, 4 Jul 2012 10:06:12 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:60896 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752165Ab2GDOGK (ORCPT ); Wed, 4 Jul 2012 10:06:10 -0400 Received: by ghrr11 with SMTP id r11so6478246ghr.19 for ; Wed, 04 Jul 2012 07:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:x-mailer; bh=acitemvyCHuIBkjj9d2Rnn1z+VLp+BEiFB6yZOA9qnw=; b=pkXckD5uSJXX5GwHfHAPHHF7lpCcwLXligO+VYs9ZFfHe/1ApIijDt1mttWZCEKuo5 ImCteYUTBhppa9D9v1jBpuHHyJ32suWg8PyXsOe1/1jLfd68hjBkEmFXE62k/Zd4I6Z9 IdgpYXK7tuElFBi1DPUGQdOt7cLZqybgtQ4gyIFakqTur4nNJXuqKAFBmilsKMpt3YbL rWQBCOifxWKiFr7vLUma52Eng39iWFVFRp2PVrk3B8OZhAdDLJpqAg/YZUH51+lXoXt0 RazCcu2sRplPvQLIfJLpLJO0C6auiCRW/W9aqwNOiGU2adi1/oXPn/jBsbbqozecBSRY Bm2g== Received: by 10.68.221.74 with SMTP id qc10mr18933588pbc.31.1341410770059; Wed, 04 Jul 2012 07:06:10 -0700 (PDT) Received: from yakj.usersys.redhat.com (93-34-189-113.ip51.fastwebnet.it. [93.34.189.113]) by mx.google.com with ESMTPS id pn5sm17761893pbb.74.2012.07.04.07.06.06 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Jul 2012 07:06:08 -0700 (PDT) From: Paolo Bonzini To: virtualization@lists.osdl.org, kvm@vger.kernel.org, rusty@rustcorp.com.au Subject: [PATCH] virtio-blk spec: document topology fields Date: Wed, 4 Jul 2012 16:02:36 +0200 Message-Id: <1341410556-5791-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.10.2 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This completes the changes from yesterday. Signed-off-by: Paolo Bonzini --- virtio-spec.lyx | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git a/virtio-spec.lyx b/virtio-spec.lyx index 440af3e..905e619 100644 --- a/virtio-spec.lyx +++ b/virtio-spec.lyx @@ -5211,34 +5211,88 @@ struct virtio_blk_config { \begin_layout Plain Layout -\change_inserted 1531152142 1341301807 +\change_inserted 1531152142 1341409825 struct virtio_blk_topology { \end_layout \begin_layout Plain Layout -\change_inserted 1531152142 1341301810 +\change_inserted 1531152142 1341409827 + + // # of logical blocks per physical block (log2) +\change_inserted 1531152142 1341410119 + +\end_layout + +\begin_layout Plain Layout + +\change_inserted 1531152142 1341409834 u8 physical_block_exp; \end_layout \begin_layout Plain Layout -\change_inserted 1531152142 1341301817 +\change_inserted 1531152142 1341409834 + +\end_layout + +\begin_layout Plain Layout + +\change_inserted 1531152142 1341409836 + + // offset of first aligned logical block +\change_inserted 1531152142 1341410122 + +\end_layout + +\begin_layout Plain Layout + +\change_inserted 1531152142 1341409840 u8 alignment_offset; \end_layout \begin_layout Plain Layout -\change_inserted 1531152142 1341301822 +\change_inserted 1531152142 1341409840 + +\end_layout + +\begin_layout Plain Layout + +\change_inserted 1531152142 1341409842 + + // suggested minimum I/O size in blocks +\change_inserted 1531152142 1341410124 + +\end_layout + +\begin_layout Plain Layout + +\change_inserted 1531152142 1341409846 u16 min_io_size; \end_layout \begin_layout Plain Layout +\change_inserted 1531152142 1341409846 + +\end_layout + +\begin_layout Plain Layout + +\change_inserted 1531152142 1341409848 + + // optimal (suggested maximum) I/O size in blocks +\change_inserted 1531152142 1341410126 + +\end_layout + +\begin_layout Plain Layout + \change_inserted 1531152142 1341301827 u32 opt_io_size;