From patchwork Tue Aug 23 15:25:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 599467 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp2532934mae; Tue, 23 Aug 2022 08:39:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5X4fReaMji9RAKYES2LUz47wCMkU6108ICbKSIC8nps0o0Ilj7aKKAZen+KcZ/RSDjHmez X-Received: by 2002:ac8:57c6:0:b0:344:5461:5829 with SMTP id w6-20020ac857c6000000b0034454615829mr20724391qta.395.1661269179909; Tue, 23 Aug 2022 08:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661269179; cv=none; d=google.com; s=arc-20160816; b=C8UZRC5tC+t7tSzujkRc4HSAaDnx8ThUnf1e39xeGOdxO+pMYKfra560idXDxfKgII 01cWNN7RuO8SD7IxqjnhNy9r8sCqaXeikLT+i+XcpNaM7MtDt2MhVe+hEKGRMGDwNuJH p9FSXaQu4Y5CaIQxiAKK9gQYYVbFdL5mhQb4aqwawzBPOk29tHyWF4lZ/X7Ey+xfCCfh 0bFj7gd0D/z8fcBLNfFRqz51bnZeikbflBS69n9Mpid2kSmgsPO/3ossiHprcbRBWjHi ngtNLs9FqgV3Kq+wDGZmeQiW1IFCxK/+PnTqzidKjYMnIkz30O1UltFxqgAXehvMJBhq HyMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LsZpgMlG5k3/z4R/dGjpJ9j2VMDJig/kzVEqA19cmEE=; b=tApgJ8zCnOi6FHxSAgcu7fYffiUYFfU09XVGSPfQkRn7bdSlwHYm/59ZPYFNYvukLs 4d8nOjTYXvUNpd59tYyk9r+5d+UftZ/WOzzJ/keeKGbLz1Jr95HsO/BYOETAnto2GlM8 KgBaLdzqcHd/sd/nDliN9MFQ+d9Vp/2x7c7TH+da4i7ALWiCuVkdFQ9uVejiDkyIbFKJ ANsGAuRp2GwyvHmW1up7gkGDY4rfexPPcXRNuYDRm4kkOogF7oMVE2RV7vf/e63TT/Dk FLdimG2ZZaovnvwxDUY0P2IwXr8LFfMOdrnX/t7KdgqYr9g0liYJ9fqQwazGiNf9U97b Uzxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xHXNvAsC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y5-20020ae9f405000000b006b9c336de3csi5725994qkl.416.2022.08.23.08.39.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Aug 2022 08:39:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xHXNvAsC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQW0B-00064S-H9 for patch@linaro.org; Tue, 23 Aug 2022 11:39:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQVn7-000265-H9 for qemu-devel@nongnu.org; Tue, 23 Aug 2022 11:26:09 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:35633) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQVn6-0000Sl-1O for qemu-devel@nongnu.org; Tue, 23 Aug 2022 11:26:09 -0400 Received: by mail-wm1-x332.google.com with SMTP id m17-20020a7bce11000000b003a5bedec07bso9820719wmc.0 for ; Tue, 23 Aug 2022 08:26:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=LsZpgMlG5k3/z4R/dGjpJ9j2VMDJig/kzVEqA19cmEE=; b=xHXNvAsC55oEXRYfmRrU6YA9nw6wu/8q/5aD/qvra/xlKD4RXoiQQyQbbn4809KWG/ Ii8i7XCh+r2ebU+DmIBo1/5gkSPQR431jX3NBrfSNp8ltmrwSqSDZVGP+MJ1S+n18xru 2MRclH4Pb7yHlTT5RR2HIoRLuX2b6f/UIiEmnKW6omv8c6JWwGG0y+fNWQ+WZPg15tpN 04ZVVnm1scloUHn1nvxQunpwAPFctrGyrSs7IJDC8/J2bsiWY+10z+06mYm0LgnoWAH0 6RTwAWJDKD0XrcFkFWHOagu0N7X3NhegDQsVywaRrRnAphXWsvxwESlhpHIbqIX41C6P JAmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=LsZpgMlG5k3/z4R/dGjpJ9j2VMDJig/kzVEqA19cmEE=; b=ctJ3g1ZGD1+qHHehmjAlcey1xIksJH7cK64V2LNTYmunBsCb7Wy9t0pCw6E4s38orO aBwSKIElfwLqBIES2QaJjRz+2xgWbHpeV8OqG2kGusWnSBygeDBTBSxz5G6XpxHu5zyW IRP4UjCVGx8QklbWtP+zMmSxM283RjC/FUOPZCSPV32ob/dIQo0FNdtTTNtrY7agBcZI o2WPOUsN6oU94sRXRruHgcJEcYzwOK9hjuPhIxerE/sYPBIgkOCjAcCFgiEYKXTiP7Qk DkjZJGZiu+verIvEPxN3byb1nFMBf0oR7VFc3K99GMB+pnLmwp7Ip48wJQWjMAgCc7pb 3K1A== X-Gm-Message-State: ACgBeo3Y9dMsW4+cMtyyJ8HVDLbcJa4F8Chmy7M49B5o/bC725svQIhF qExZLGPfFxNQx/NtTv381khlDQ== X-Received: by 2002:a05:600c:348e:b0:3a5:fbcf:4c1a with SMTP id a14-20020a05600c348e00b003a5fbcf4c1amr2551264wmq.171.1661268366640; Tue, 23 Aug 2022 08:26:06 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id q4-20020a1c4304000000b003a5c7a942edsm20924643wma.28.2022.08.23.08.26.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 08:26:03 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0789E1FFBE; Tue, 23 Aug 2022 16:25:59 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, richard.henderson@linaro.org Cc: qemu-devel@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Kevin Wolf , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , qemu-block@nongnu.org, Hanna Reitz , Thomas Huth Subject: [PULL 6/6] qemu-options: try and clarify preferred block semantics Date: Tue, 23 Aug 2022 16:25:58 +0100 Message-Id: <20220823152558.301624-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220823152558.301624-1-alex.bennee@linaro.org> References: <20220823152558.301624-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x332.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Try to correct any confusion about QEMU's Byzantine disk options by laying out the preferred "modern" options as-per: " (best: -device + -blockdev, 2nd obsolete syntax: -device + -drive, 3rd obsolete syntax: -drive, 4th obsolete syntax: -hdNN)" Signed-off-by: Alex Bennée Acked-by: Kevin Wolf Reviewed-by: Daniel P. Berrangé Cc: qemu-block@nongnu.org Cc: Kevin Wolf Cc: Hanna Reitz Cc: Thomas Huth Message-Id: <20220822165608.2980552-7-alex.bennee@linaro.org> diff --git a/qemu-options.hx b/qemu-options.hx index 3f23a42fa8..31c04f7eea 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1105,6 +1105,19 @@ DEFHEADING() DEFHEADING(Block device options:) +SRST +The QEMU block device handling options have a long history and +have gone through several iterations as the feature set and complexity +of the block layer have grown. Many online guides to QEMU often +reference older and deprecated options, which can lead to confusion. + +The recommended modern way to describe disks is to use a combination of +``-device`` to specify the hardware device and ``-blockdev`` to +describe the backend. The device defines what the guest sees and the +backend describes how QEMU handles the data. + +ERST + DEF("fda", HAS_ARG, QEMU_OPTION_fda, "-fda/-fdb file use 'file' as floppy disk 0/1 image\n", QEMU_ARCH_ALL) DEF("fdb", HAS_ARG, QEMU_OPTION_fdb, "", QEMU_ARCH_ALL)