From patchwork Tue Feb 4 18:07:38 2025 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: 861822 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:11cb:b0:385:e875:8a9e with SMTP id i11csp438841wrx; Tue, 4 Feb 2025 10:08:38 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVB72ICJ0ErnPa+KfGsgwUTB4wEKUanxoUNMB8fxV9VLegnB4i/GNSiC8CVYYfKctohDKbJsw==@linaro.org X-Google-Smtp-Source: AGHT+IEb8jf0iPTfCCQW3JI5o6uhrWCRROiIzn41nvlodGbCFMCkzwGmfbb3OLO8R18YtiR+HHlO X-Received: by 2002:a05:620a:6081:b0:7b6:f1be:4f68 with SMTP id af79cd13be357-7bffcda57femr4221953085a.46.1738692518134; Tue, 04 Feb 2025 10:08:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738692518; cv=none; d=google.com; s=arc-20240605; b=D+AQ5xhqH8FMRsF/vY263GWXfaceGmi5FjjImQK4BId3FL1PEjJkAdHDrfF6gz0ZGe UU6ZQC33c0Zgw4SgfGDcIbonB7gdkVW+Ya6IhcV+2JQfghCBxmWjpKwhRK/ufbC76+i0 PtjUw8J8pNtTiM1ko4BfgW2r1uM9U2i8yStbhoYxC1qnGneJaeEtMKBtI0rXoFbJs2PP /v1OKJDC/Gmo4S2QceHPbpOoAOH8J/Fq+hlaxgGDJ41auWKooIgULUJdZK4uLUxnEfN9 uA/CVPzue/ZkaUaL6J+aRQcoguUpOMIQBAhNrulyLKCcgL7Si600YHmg17J+T/SNctP6 hOlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=AiRrQHAbky113j1+PiE1EMSskAkNYDTMAifBRCLYEYs=; fh=Fr7KWdSB8csBog1HqFACDLHw5Bqh7nNqSJhjdxBBjk4=; b=KOMSTygV2GiD7eamC+MsnxfyVWTjtzeIClQev1lpLCFJiojUh1DjnM3t7DAvVf97gq XwVolJhhp4xlg/1FJl2VfPGO9r0uasTi9EWrTWJVt5eGV5MTa2N06HUyUPsEV9pYZihT tq3u+NJ2FaC8jhhTOrdhA3jgcugUaEUUyqF1dfxhNEDfieO7CtzF7T/5cN6dIp1wcDsc EqvNqpspBRbsdmDzp0iAwpLn6mkvSJXvGSus47JH5jf3CY1z4/vGoGt1KDbIdg+eoEZc 1TDc4waU1D98kCR/C3E4RCFg5wgwFTCLb/CfEFeIToNeh9JXxKo3+u8aIChSeGnb78vS EWcw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L371BlFo; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c02db62b5fsi319963485a.175.2025.02.04.10.08.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Feb 2025 10:08:38 -0800 (PST) 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=L371BlFo; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tfNL2-0004H2-BC; Tue, 04 Feb 2025 13:07:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tfNL0-0004Fz-49 for qemu-devel@nongnu.org; Tue, 04 Feb 2025 13:07:54 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tfNKx-00077V-16 for qemu-devel@nongnu.org; Tue, 04 Feb 2025 13:07:53 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-436345cc17bso44335305e9.0 for ; Tue, 04 Feb 2025 10:07:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738692468; x=1739297268; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AiRrQHAbky113j1+PiE1EMSskAkNYDTMAifBRCLYEYs=; b=L371BlFok2LPS+08QWBnMZ1/Z2wClrtQG/4GRCRnUHimRghAXWFWOgfiQmOp7BpSFY wZf5q0NBedGmUWOezAdGWdd5WGMc4D/WeClHjRv4u9MvQsL7NK/YSmQ6ASEr7AUT78cm 2CK6DcUGMfx/qtYlsYYF4t5RWeCo6c6R6yy5MvNNSa73FLtbfHfnbw0NN90oioWPANA2 OnveezDntITZMmQHcVLXf2ME8DmRl8Dpen4njYVqNaZOFrxCMnMLIjpOhQbq1WadZjEe 2YmIDZUY49VrOpZuv2SMhOQtq0JNEM9SWtYqT4avYRRKhv4J50tIGuradXH510CN1Pns mdrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738692468; x=1739297268; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AiRrQHAbky113j1+PiE1EMSskAkNYDTMAifBRCLYEYs=; b=dAXctaUxRjmbmHEpSfjZX/v1iad3CioZmyGgE65mkNJC3KS1EYughHEGDoDa0oAvji ytL73sp/4cqjV6TFgZJfDOnwDiRRG5Q3LyIzx8RE95l+cHc/wyh26wwQ4RuLeEey38tm jr0gl8t69AEvs2u7tB9kcaq/7flVP8L6pdCCPtf3ckOksdGPknSDkC3Ujip2jn7udG/b ziFP0XqtUlmTz7GlwnMh/I/H6SilDqhdDX/siJCVT8+/3NogO1V9GxKUcaOET1a3tEb8 CXGHUDGJzXcik++E5XSYamoTrVu5keoOEXjkfgz4SzTgdjGDUsNvJrQ3xS4Ct9glLIyr GZSA== X-Gm-Message-State: AOJu0YyU87TViwi81sOgj5Fco9arsfE0m3y7xYomm9bx4emINpnOvks/ SMGR78RV9YpFzAGhC3BXtrwLS86ZUAQwSvPRYhKDm7hJZ1twTqOlwbwpKt1uIvYE9ArjAXmoJXv EEI4= X-Gm-Gg: ASbGncsPaQahYjS4goZDncr0LHpVGNkA0WhzEOgZkLC8pV2fO4GwFL1EfYl++qBj9Yb aukUR/av/36S5tkgh6+umTqpsrf84oXXM5YDTDgc2mjQyI9R7D0+Vrn0nlGyaIGps+6t1L9Y2ue IPrh+Nl4H/81nkyCYcqrkdlauTQi5HQHQBPPXWqX/wxX9keh6QA1C9nu+rpFovJc0JtfAD2bXNo ejxKWNSWNdNe+Q3a5S2YFu/HK40uxUi59B5sDgR9bxZ8lTRh6JkRsNG7byJFBe/kZZ5HpRmKQtf ruR4PXDXoMeWbqWCLFaU81jwqrKTN6QdFyBiyk+iF/c4sHK9PYvvyL5tRe6fMJnNOQ== X-Received: by 2002:a05:600c:3488:b0:434:a711:ace4 with SMTP id 5b1f17b1804b1-438dc3cb049mr238796015e9.17.1738692468556; Tue, 04 Feb 2025 10:07:48 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438dcc13146sm230941905e9.4.2025.02.04.10.07.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 04 Feb 2025 10:07:47 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-arm@nongnu.org, Peter Maydell , qemu-ppc@nongnu.org, =?utf-8?q?Da?= =?utf-8?q?niel_P_=2E_Berrang=C3=A9?= , Paolo Bonzini , Thomas Huth , qemu-s390x@nongnu.org, Markus Armbruster , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 0/8] hw/boards: Try to make sense of MachineClass::no_sdcard flag Date: Tue, 4 Feb 2025 19:07:38 +0100 Message-ID: <20250204180746.58357-1-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.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 autolearn=unavailable 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-bounces+patch=linaro.org@nongnu.org Invert MachineClass 'no_sdcard' flag logic and rename it to 'create_default_sdcard_drive' to make sense of this default value applied to all machines. We use the OnOffAuto tri-state to catch implicit default values. Then we toggle the logic and remove invalid uses. No logical change intended (except the assertion added). Philippe Mathieu-Daudé (8): hw/boards: Convert no_sdcard flag to OnOffAuto tri-state hw/boards: Explicit no_sdcard=false as ON_OFF_AUTO_OFF hw/boards: Rename no_sdcard -> auto_create_sdcard hw/boards: Remove all invalid uses of auto_create_sdcard=true hw/ppc/e500: Remove empty ppce500_machine_class_init() hw/arm: Remove all invalid uses of auto_create_sdcard=true hw/riscv: Remove all invalid uses of auto_create_sdcard=true hw/boards: Ensure machine setting auto_create_sdcard expose a SD Bus include/hw/boards.h | 2 +- hw/arm/cubieboard.c | 1 + hw/arm/integratorcp.c | 1 + hw/arm/mcimx7d-sabre.c | 2 ++ hw/arm/npcm7xx_boards.c | 5 +++++ hw/arm/omap_sx1.c | 2 ++ hw/arm/orangepi.c | 1 + hw/arm/realview.c | 4 ++++ hw/arm/stellaris.c | 1 + hw/arm/vexpress.c | 2 ++ hw/arm/xilinx_zynq.c | 1 - hw/core/null-machine.c | 1 - hw/riscv/microchip_pfsoc.c | 1 + hw/riscv/sifive_u.c | 1 + hw/s390x/s390-virtio-ccw.c | 1 - system/vl.c | 16 ++++++++++++---- 16 files changed, 34 insertions(+), 8 deletions(-)