From patchwork Mon Aug 22 16:56:08 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: 599185 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp1874324mae; Mon, 22 Aug 2022 11:28:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR6bMm7oh2LhuJY+1I6OC6AsKI+0Id+4a8I3T4SBeB6PrIHi29ZteOjMyOI+ZV/FLzewYGsn X-Received: by 2002:a05:620a:f96:b0:6ba:e280:3adc with SMTP id b22-20020a05620a0f9600b006bae2803adcmr13346996qkn.435.1661192930392; Mon, 22 Aug 2022 11:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661192930; cv=none; d=google.com; s=arc-20160816; b=LwYHLp8+md04R0Ze5dfjdwGFG0PBvE3mHS30qlX8mVfjwoKPKvuoPcwSuEUMINx391 3noxI22AU4rbDvqC7J2o4lGamiwre9Kj7d+UJmWt+XYIinI1JCV6dDcnQ6Nl10zXoNRU SAEd5WiV+GYQ0TFETqfVXsGl0KwHTkwkLtwE21+eBUl5+AI2NedoPEJBDFIprwyALSM7 E4tKJa3xJdp721B69q57hi7ZaDoWxWQKlrO6bO++knqrgXAIU/D5qDPwlSHfSPLrSxQA Q3c9oVJDcOwhL1nfnySDTCwG60N/6mWKus/FlB3/29p2RMrsHO1LmU/6j8YjiyIgs46q wk9Q== 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=tVX5rqmUAa9FyrPm9n6/GK4JRI7gAHoJ9NSzsZoKCbs=; b=XFgggjtrmeJkLNldwOgGw15y+Zyg3u6wvE/EMdjQDZIDSpm5B8Pz1m6UqeBf2EM9iV 1EWIlYwlqPk8hi8IK2NAdAu+W3YPT5AhE026LLCX1tYKDm0uq55u5AbwmjVWcIQF8IBz hSGXNKlNquf+xSpmkYF1mnSevTU/1U+Wdxxqhat9aVQSCrG5FqOWSEdq4eBCrfQmg2fE Niy+YEVwF65dLxOqvYY/m6i+wdrqMhOguLod8oLFsNCWvko3ZNVXL6dxCKNGDUAFPvK6 /UjGVoxJdqYOdcaJM1MOpF4jbVQPBTFT6f/GmjbbV+CRGujtwdIsimNM2sn3JFYIthPB ZqiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y18g8GyH; 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 d18-20020a05620a167200b006babe290b65si4458105qko.397.2022.08.22.11.28.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Aug 2022 11:28:50 -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=y18g8GyH; 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]:36050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQCAL-0000Qf-Uh for patch@linaro.org; Mon, 22 Aug 2022 14:28:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQAin-0008Nf-0M for qemu-devel@nongnu.org; Mon, 22 Aug 2022 12:56:17 -0400 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:33291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQAil-000608-8H for qemu-devel@nongnu.org; Mon, 22 Aug 2022 12:56:16 -0400 Received: by mail-ej1-x62b.google.com with SMTP id j21so17064789ejs.0 for ; Mon, 22 Aug 2022 09:56:14 -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=tVX5rqmUAa9FyrPm9n6/GK4JRI7gAHoJ9NSzsZoKCbs=; b=y18g8GyHZUdzN9ObTsFQ79DEYCWY89mQjDl5642QI2a1Q8PAJvKM7UoFwLXIUgpKFa GDcL47yg3GN8HvG9IBzWdVfGRzOYPwOqqUlNikSRlFQuohnHV8GbeTtRnn078IcGim4u dQbfneD5FB0r4O55sbCevi2sLU4AXQu7OKF4Wr4z7Q1ttcZJ/UMfd6qHayyxDjGgarLp C2Sdgei6+gdd+2hZiYp9Krwdr47NnBZSB7nDQBe3B4moxdTXw0UALu0/k4Dgee5vzMbz zxU6A17O0qK7od6GWYwVWvAl+8LaUz+bEGnVONUYWWw5owvMvOkjZz0xg7i0VJrik5iR +2/Q== 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=tVX5rqmUAa9FyrPm9n6/GK4JRI7gAHoJ9NSzsZoKCbs=; b=0RFT4Fza544Ujgbswzvdu1ZDBrVIq6CAXFC21xJZf/FZyZ42RyTcLI+o7c7dw/UecQ GovR6mn1upGhVFpcT5sW8nISFIcDAlqlgSqzy8RMR5TDRCgSyZNzIVFLdOe7tI//UMRw elrK7xjeKSqkcr2bnZWFot7pZEAKtsFu5ecVk/awFh4EfP3F/imamVpXLeva7t8gygD7 UnlMloBZAweCPSF1BkjxjzBwmvopX6/Y3YRxe6XyfRskZWf6SLJ1a7vkacKtPgmBERyI UqiZF4Czbnhz26so72qSIgHw6xnlSPKNxqjCD6FIh4bneyCSpxo0b0I98ll2JtZEgCVy PQJA== X-Gm-Message-State: ACgBeo2AVa0roTlUSL6gv6dIxRjmo71Tsms8RQKdZlXGHukNio2Aghg5 5E2vAbXszdDQbk2BQF1IpuVWFQ== X-Received: by 2002:a17:907:a068:b0:73d:5d21:7ed3 with SMTP id ia8-20020a170907a06800b0073d5d217ed3mr8460483ejc.685.1661187373884; Mon, 22 Aug 2022 09:56:13 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id w5-20020aa7cb45000000b00445b822005dsm21047edt.6.2022.08.22.09.56.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 09:56:10 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 697841FFBE; Mon, 22 Aug 2022 17:56:09 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?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: [PATCH v1 6/6] qemu-options: try and clarify preferred block semantics Date: Mon, 22 Aug 2022 17:56:08 +0100 Message-Id: <20220822165608.2980552-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220822165608.2980552-1-alex.bennee@linaro.org> References: <20220822165608.2980552-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62b.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 --- v2 - minor punctuation and flow fixes --- qemu-options.hx | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)