From patchwork Fri Nov 22 11:19:36 2024 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: 844915 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp2790707wrx; Fri, 22 Nov 2024 03:20:50 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW7/qr7O6mCLojEBRCwB3NmeHTrI7GI+zEv2pDBpvb8y+HfDgNxz3eMr7osZFcD/29dl8o4+w==@linaro.org X-Google-Smtp-Source: AGHT+IEw0hQGetS+/hXqEUKldn8+c4gwOLMIRWtVlFHCHdvvMiopX7Go1Qx6Pt8FE5jAPXisdcMK X-Received: by 2002:a05:620a:4150:b0:7a9:b3a0:84a7 with SMTP id af79cd13be357-7b5144dfb67mr293577585a.12.1732274450725; Fri, 22 Nov 2024 03:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732274450; cv=none; d=google.com; s=arc-20240605; b=HGny6z+QpTg/+T39AJSbPya4808SmZ5+TRvtXssyr8ce8Hxwvn5ULchCxkJ4bDl8Yf P109j5oZm49+3ssrKdu0AtFKdC22FT2L7mB+LtJEAc82MBuzC1adwmLpZT4T4KvewbAH iq4SnzoLYeW6FeUFMaolYlsVm0bEgQT+k9nwVBLQgPeNcXvrlQn7bcPjCDa8RB5zx/7L ENcKKNumAHv/K0VcB8vPwVZatfvOTK5YJh+ppyCsdQIcduUUcrpc/TZtlrC4/o3HE3N7 eG9dAciNpp5bGLTmSbaPMWJBbqX2uy4O20OOP+rC+y4AdPp73j6Wl8v/tZwVB7Gt6kG2 Y52g== 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=mHjwH8Omq3FoUPGkcn+klfTPJMxEmXl+LJ5UDCnqOj8=; fh=wBvcyqQhEU6e0ZqmVxQYHE0ci9Ai55t9//i9ttilHeA=; b=knuez9Wrmp1vTVoDTpG6Q/d2q+/ZLlyuT5xVIhzgm7AoxjeYRlh9G7K9iiHxBhckpp ghRe5xEfhXVD0Ej5t81V5eHbGYcWNOGm0CCb3ChVD4nMiFKejASO3+P3hZsQunFB5oUn MjbA1+FrKQVAQC8QKH18xOk3GMlkmhDKbogUOsCMN4vl3pZ6wioG9chRweWEjZoS4m8M 3nsd6n3W/omksHvYeNY2+542itSo7gYQyOGHH7A78EZOJ19i3Td43gzZcZgWxiVSWlQ7 NaFlks/c78dAmlzb5G+U602yI0pidGbeuCVN9fCQ+1IzQ3qT7Rq2cLZAQeO4UJzvrvFu OI0Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bcaoGH6X; 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-7b5140421dfsi191698585a.316.2024.11.22.03.20.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Nov 2024 03:20:50 -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=bcaoGH6X; 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 1tERhY-0007c3-DL; Fri, 22 Nov 2024 06:19:52 -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 1tERhW-0007b2-G6 for qemu-devel@nongnu.org; Fri, 22 Nov 2024 06:19:50 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tERhS-00068r-5X for qemu-devel@nongnu.org; Fri, 22 Nov 2024 06:19:50 -0500 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-382376fcc4fso1170165f8f.2 for ; Fri, 22 Nov 2024 03:19:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732274383; x=1732879183; 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=mHjwH8Omq3FoUPGkcn+klfTPJMxEmXl+LJ5UDCnqOj8=; b=bcaoGH6XCRlmUrwfCRb+8BTb9d8P0vKSPHlAZO4pe4MAljSB7ILRK9RZsKRukxlhDI OSonueNCg73FWzSaq41OtxNa9bcpT0AeZRCnoTztlk63xxZvmRdeXJd8Zjwv/jpajP4c /Q0+wHvU9+L0l3b1e0JNAq/UXhE4YEuaIOnohoU02vW8MrTBBe02iVcNImZBQBuTEb5d KPfNB3G1LFDJoVeA9WPaTDvp94yt0pZhtiLrIbEJ1rO1e0tAaJGGX/7mj9g7mM2wO7lL ZqEnYUtNzQQ1rAJojHya/RuoWWjFsbBSk9Q7h4mMLJfLwitOAWHQ9GfrmspZhQyK78fF Tlcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732274383; x=1732879183; 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=mHjwH8Omq3FoUPGkcn+klfTPJMxEmXl+LJ5UDCnqOj8=; b=TyGX5NIVsigZCoSpCwqPUtTyzrlZVl9JVkZQg7rf/BJL7tTnQ72yCKyb2G1FiE9Kds c0fQNOc+aca6l08cl07ed+WSWIC6oVaDUVxaEb/X0caVmx8ZfEB1A2TJqZPujek03cH6 Rntqx8wSQ1ksbhmAeUITYD/aE19DW1SJ7ao7kfs1i8cM2PJAbMKyDqO4BSAiIhBoiKvi 81iwvYegG2vOpREOrwP5kKJwzW27dJ+vMGLBZQ5HA/tXkZhn8CCBtcGtvAEWg1R+ArbS ib96cwDZXICjclKjaprWXqi5IBl8bz8XUUvwwmObxGKZUKjO+Egj8qYy6SM59q/roNdF aD4A== X-Gm-Message-State: AOJu0Yyc7Kcez+6mDJfiudGLMxXHpLSse4r8zYjBKOke8nY7Xvh95arT HLR445TeM+BjgU5scAoeEdKjyKda8iKQGOV4wFNATuNK5wupJMRZTPEVOKFEg9T9A78v0pjnGEs X X-Gm-Gg: ASbGncv5J95COzXy9e65QH+Ng05zwKei/ByFYHjBDRhnFmN8ublPnJqTnAemrFLXX/j fkorSTDgXFtaG686ODHD949BAkp5ir9lg/E05/cpiJzw2qoLFfCpAUzb+brjGcXMJ0lpXnsibTY 5CKVheazcQdpxCGN9GBQp9+D9rbv1yK7DTAaG6LTEr9cSOdPauK2XP6CDgfgNyi2pX8HLxmLMu7 kzkk1AyfHtD4M/TY8A8yVcfLpwRE7OvZe2WfIN7+RMCZXd2dcpUyi8ycL0YVpmLzqGwqUhXbInF X-Received: by 2002:a05:6000:184e:b0:382:319f:3abd with SMTP id ffacd0b85a97d-38260bcb8a6mr2234003f8f.36.1732274383309; Fri, 22 Nov 2024 03:19:43 -0800 (PST) Received: from localhost.localdomain ([176.187.211.33]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fad61b0sm2155786f8f.7.2024.11.22.03.19.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 22 Nov 2024 03:19:42 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, "Michael S. Tsirkin" , Mark Cave-Ayland , Aleksandar Rikalo , Harsh Prateek Bora , qemu-ppc@nongnu.org, Laurent Vivier , =?utf-8?q?Herv=C3=A9_Poussineau?= , Artyom Tarasenko , Thomas Huth , Richard Henderson , Thomas Huth , Peter Maydell , Paolo Bonzini , Fam Zheng , Helge Deller , Daniel Henrique Barboza , Nicholas Piggin , Marcel Apfelbaum Subject: [PATCH 0/3] hw/scsi: Cleanup around scsi_bus_legacy_handle_cmdline() Date: Fri, 22 Nov 2024 12:19:36 +0100 Message-ID: <20241122111939.11936-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=philmd@linaro.org; helo=mail-wr1-x436.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 When a device model requires legacy command line handling, call scsi_bus_legacy_handle_cmdline() in its realize handler instead of having each user call it. This applies to: - spapr_vscsi - lsi53c810 / lsi53c895a - sysbus_esp Note, scsi_bus_legacy_handle_cmdline() prototype could be made private to hw/scsi/ to restrict its use to scsi device implementations. Philippe Mathieu-Daudé (3): hw/scsi/spapr_vscsi: Call scsi_bus_legacy_handle_cmdline() in REALIZE hw/scsi/lsi53c895a: Call scsi_bus_legacy_handle_cmdline() once hw/scsi/esp: Call scsi_bus_legacy_handle_cmdline() once include/hw/pci/pci.h | 2 -- hw/arm/realview.c | 3 +-- hw/arm/versatilepb.c | 3 +-- hw/hppa/machine.c | 3 +-- hw/m68k/next-cube.c | 2 -- hw/m68k/q800.c | 2 -- hw/mips/jazz.c | 2 -- hw/ppc/prep.c | 1 - hw/scsi/esp.c | 1 + hw/scsi/lsi53c895a.c | 8 +------- hw/scsi/spapr_vscsi.c | 4 ++-- hw/sparc/sun4m.c | 1 - 12 files changed, 7 insertions(+), 25 deletions(-)