From nobody Sat May 4 19:39:29 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1660932593; cv=none; d=zohomail.com; s=zohoarc; b=BaqAUfUB84TE25yqbvFj17fZ9FYKjAMBs1wB7DPC4nPM5rEM4Ibn3BLhlY6s8LDF7HJGhD7c06Ksn6sa03qR9UnScB2hcD4wAC/C8hpo6TvWTyce+dN03II9YGHP1D0Avz9QfTxK5aA1pC6jq9bgfnx+iMZnlUf5wRhyGoAen3E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1660932593; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=fNw4XUoS3SMyscaHoW11F5ftXMaX5QX6MehHbaw3Mds=; b=PS+iXpvjNhhAae1nkZ5rHU6SApUVlEZR1OeHzjbi4WSuYmV5OlleaXPO3XY4JkNG6BXav7ezImed9V6FtkJFXLpbLABU5QoZMfHDQXybkxP+SxPPtKnfXOt7X0mEQMe8Gcppz/Dg+lXmMZCovBusE3SuSlaaUQKLP1xSs/8P3Ak= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 166093259326168.64144765032972; Fri, 19 Aug 2022 11:09:53 -0700 (PDT) Received: from localhost ([::1]:38924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oP6RL-0002Bu-8N for importer@patchew.org; Fri, 19 Aug 2022 14:09:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oP66T-00060Y-T5 for qemu-devel@nongnu.org; Fri, 19 Aug 2022 13:48:22 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:44699) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oP66S-0008Vd-4B for qemu-devel@nongnu.org; Fri, 19 Aug 2022 13:48:17 -0400 Received: by mail-wm1-x32f.google.com with SMTP id k18-20020a05600c0b5200b003a5dab49d0bso2817073wmr.3 for ; Fri, 19 Aug 2022 10:48:15 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id y2-20020a5d6202000000b00224f67bfc95sm4591988wru.62.2022.08.19.10.48.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Aug 2022 10:48:13 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C058B1FFB7; Fri, 19 Aug 2022 18:48:12 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=fNw4XUoS3SMyscaHoW11F5ftXMaX5QX6MehHbaw3Mds=; b=x4JIpNA4WUjlnB9HOCjoIPl4X3eY5VY6og53AlS93EI+x8ye9TQ8etF5C0M00zdChv GAx8p1gdXRe/CdJysUAmzZjG1UqHwmBA2S+K3kUlKNlxgcs6ZzaZp8qH/MyIu6iodXt/ BDoU2c9MTHHTmytOKXIo5A78WxkFrjVp1tjq5t/YNPlDN+gmp1iioY8FSKzSeTzgSyw6 MosBSjnuv/mNxrT48edPNaNQCgDYhUVHOy9Uj0e5j2qLDntyroU6MHadCaguoZpQ/r9L MefrMczC4ky1E6t0ZiTWF2vTcOtMh2rEIhaGTCBYu4wr0rxL9E9Je1NJyuFPqlo4YlrF LVkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=fNw4XUoS3SMyscaHoW11F5ftXMaX5QX6MehHbaw3Mds=; b=ZmeeQDnGHC1I+l6dpN8yw1RzVyWv27VrmBo/mAktJCJi/P8TMKmniv8q0uDRfVTf2I ndKQpkvGDfqWl16sNl8nqdzLs3BtsUiwPrLxe83J1icMSCwLWvokOopHO+I10uPjE3tx PLBtYgH6FOeFgL59Ui7a3VB2L4EojuxeMP1LdDPG3Y09vCpGSwXzCqkMpJ2ELzJx7FEj EFUoMxKcT3PCks7527HpZbfGqyQ8dsFxVKdgqWEYXuCAwgG+ZE8U4arnmQNqmBBF1Tjo SH3B6Ey8pHZXEm2fzK7N/xIpFk51ZpMR665QJUCd9dvDyJng4X8dXD57jTQtEngW/Y+p pNSA== X-Gm-Message-State: ACgBeo2RXvR8l2K/GtdPjZhaMp80pd4/yBrQeIEEAAIH2Nnbf0gELjXF SlC1i3svjWuLu/1F3bhUbKxbJA== X-Google-Smtp-Source: AA6agR55mIzgYBD5WORvSkF86HIW9g8mK15QR8/ynFx46BAms/qeNIiXh3KL8aCU7ei/dhzXTqzVmw== X-Received: by 2002:a1c:7408:0:b0:3a5:c9c1:f226 with SMTP id p8-20020a1c7408000000b003a5c9c1f226mr5346514wmc.47.1660931293967; Fri, 19 Aug 2022 10:48:13 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-block@nongnu.org, Kevin Wolf , Hanna Reitz , "Daniel P . Berrange" , Thomas Huth Subject: [RFC PATCH] qemu-options: try and clarify preferred block semantics Date: Fri, 19 Aug 2022 18:47:57 +0100 Message-Id: <20220819174757.3551361-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1660932595487100001 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=C3=A9e Cc: qemu-block@nongnu.org Cc: Kevin Wolf Cc: Hanna Reitz Cc: Daniel P. Berrange Cc: Thomas Huth Acked-by: Kevin Wolf Reviewed-by: Daniel P. Berrang=C3=A9 --- qemu-options.hx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index 3f23a42fa8..d57239d364 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1105,6 +1105,19 @@ DEFHEADING() =20 DEFHEADING(Block device options:) =20 +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 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) --=20 2.30.2