From patchwork Fri May 15 09:19:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 282673 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C20C9C433DF for ; Fri, 15 May 2020 09:24:58 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8C5E82073E for ; Fri, 15 May 2020 09:24:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gqQnlZiC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C5E82073E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:55500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZWaP-0005zR-Qw for qemu-devel@archiver.kernel.org; Fri, 15 May 2020 05:24:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZWVd-0005wJ-HY for qemu-devel@nongnu.org; Fri, 15 May 2020 05:20:02 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:51488 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jZWVb-0005bd-Ec for qemu-devel@nongnu.org; Fri, 15 May 2020 05:20:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589534398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vb8q8zQaBSYsdnfCJN6XZiKEXfcSXXKGGn1WabOTPgg=; b=gqQnlZiCWmOOKH2ep5linOLWFPGhLwNVGHZWJnpbFVWkBSeCSAXccGFbl+O3+mR3zGKedu qPQW05Xi/ZMA0DF+xrx5KRVYsvDaX1yrCNm/YS6xJPo2M3n8q7TeaXQrcLKD2eUIObyvxQ 0n1j9qW4tqdluLEOphy7FZ28oQfua1g= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-344-lUs7a7QGN4O0cSuFdicydQ-1; Fri, 15 May 2020 05:19:56 -0400 X-MC-Unique: lUs7a7QGN4O0cSuFdicydQ-1 Received: by mail-wr1-f72.google.com with SMTP id 37so886842wrc.4 for ; Fri, 15 May 2020 02:19:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vb8q8zQaBSYsdnfCJN6XZiKEXfcSXXKGGn1WabOTPgg=; b=LF+uJncCbsChCZrDZC58qjd4flsazTA5OEX45tyQMY23D8Snoy70erUU9pygFhXpb0 Y5oWtoY6zJeOVsYI/CgWgu6LYu1+XfURoJv9FOufqKUOPblrXg4fXsYX+vLJQd6Ddf04 jZIEvThSOxYUodrowaydRUEPDLP3Nm2OP3yINPtg0qcXQzb0j+xL6jcAt2jFFUh8FIFf y+orCb0MZn/Cw5YmDONh6QiTrxj8OjEJHWpE7PhJX2CkFsKyMVH1blMce70ba8WScac5 n4ajyzwMHy5OaSAR8R3ujy/0hYDPGzWFewZ/y4eMsaVgl6jtPpONLrnIA2sTjQPrvy06 tzDg== X-Gm-Message-State: AOAM532n/qu7OZ97ToWCNJ+J+qrGno+0XVNGlIGeaW1/cEm9Yj5gGezi JdrXAgN26vOiRnOHpXQ9xqscNlZsmeiMHcb1pffLKgnzYPE6uNVdPlVDN45eZ8TFNwrZz8U32Ir QJl5u3F0UvJ/EMG8= X-Received: by 2002:adf:e449:: with SMTP id t9mr3213542wrm.108.1589534395521; Fri, 15 May 2020 02:19:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/KRuEOOdAykHM+bwA5nWSjKrb13F5jW566HzDaVXU9gp+2KPshci5KrauElkZXtDX3ST4Fw== X-Received: by 2002:adf:e449:: with SMTP id t9mr3213525wrm.108.1589534395300; Fri, 15 May 2020 02:19:55 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id u10sm2648032wmc.31.2020.05.15.02.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 02:19:54 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 5/5] sysemu/block-backend: Document blk_get_max_iov() returned value Date: Fri, 15 May 2020 11:19:24 +0200 Message-Id: <20200515091924.14380-6-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200515091924.14380-1-philmd@redhat.com> References: <20200515091924.14380-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass client-ip=205.139.110.120; envelope-from=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 23:27:07 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-block@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Philippe Mathieu-Daudé --- include/sysemu/block-backend.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index b693dfb8f0..7b12563c65 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -227,6 +227,7 @@ void blk_eject(BlockBackend *blk, bool eject_flag); int blk_get_flags(BlockBackend *blk); uint32_t blk_get_request_alignment(BlockBackend *blk); uint32_t blk_get_max_transfer(BlockBackend *blk); +/* Returns the maximum number of iovec elements */ int blk_get_max_iov(BlockBackend *blk); void blk_set_guest_block_size(BlockBackend *blk, int align); /* callers must free the returned pointer with qemu_vfree() */