Message ID | 20250109171948.31092-5-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:8b05:0:b0:385:e875:8a9e with SMTP id n5csp1341097wra; Thu, 9 Jan 2025 09:21:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUMz4beDJsGmMezDsGtkkaxjl9jJ56tGQhXyW50BnxmwaOcS7iwivIxKum8cg+8qS/Q6bFYUQ==@linaro.org X-Google-Smtp-Source: AGHT+IHyd/2s3NNQmqRYs0TfeydDfu6DwTOcrZNw5hSKx43A5zx4Q5f6knAFhXoibjg/7TwaAKc5 X-Received: by 2002:a05:6214:310b:b0:6d8:99cf:77b9 with SMTP id 6a1803df08f44-6df9b1df058mr139100536d6.19.1736443272407; Thu, 09 Jan 2025 09:21:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736443272; cv=none; d=google.com; s=arc-20240605; b=EjrNpN/3deMCnlFchZKxRawtR8FZXR4pw/kDKXWmdCWQWyTUB5lRwwPKaLwWbWCjbb A6wq6HLqFZ7anMQwjFBQmBJV9e6bRNr+0Nb1NxZOl2FqEd21vVwDx8miNf0rablc+LRE Z26snAapRYhpkSVi9z9Gtq5/qsTxA2l8Pc9kb2y5Fx59Ygam+8rx7fiZ90d22B+w5Ry7 i3mF8zuSBkLbi6+TCl5H6FboyuMkhQVP8/5MZ2HI+lZw1fc58+JbWkdwV+4j7Q6YlW62 zb3ktNEqAtpwwXsvGlEWmnlEnmjObuJG0Q3lbIpIjFhkNMD3tk3xu33bnJT7DUXwsEpi KgYA== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qz3bj6rw803M1uR6VsFauScvvIZVsKyPf1NJH8U1zkU=; fh=vDaxKIYqk1kzwlkF60wcHjFPXrL/nd15l4zEc+9xqSU=; b=KwO1Va0wccSadFjZIUfHC1FmUXmuJEuuOKng6O+o7AqJzNb0yQfaSlafur7/0OXpZX 0J5IHatIf3vdaJW+vOFwcJ6ECaLJ+JXARCOzE7xR56X6ZXzXRWat8ziNLwURv+VY2klD 096cLxJPORX0cnlYwosdhSYXuuU1G9H0LZ5nDZnb9qz3ea3Sru751BUt0FKiCtZfAHbq x/CKN2Z4NqkxaGLCDODhdNtNhxd8seAPvoMAsa4RZ9G5qmO1bzmRKWAnHNrcGXQVk7gE pm4fnQvVb8ldEAnAz8u5JzWIuAXv7OoHPYz+yEdDCxKb6TQVfP8NSnQ7LkGe56EkjArA mXvg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sXVDktix; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6dfad9cf69dsi824716d6.118.2025.01.09.09.21.12 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Jan 2025 09:21:12 -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=sXVDktix; 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 <qemu-devel-bounces@nongnu.org>) id 1tVwCf-0002Oo-5w; Thu, 09 Jan 2025 12:20:17 -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 <philmd@linaro.org>) id 1tVwCd-0002Mh-SR for qemu-devel@nongnu.org; Thu, 09 Jan 2025 12:20:16 -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 <philmd@linaro.org>) id 1tVwCb-0000ef-Mo for qemu-devel@nongnu.org; Thu, 09 Jan 2025 12:20:15 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-4361b0ec57aso12581535e9.0 for <qemu-devel@nongnu.org>; Thu, 09 Jan 2025 09:20:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736443211; x=1737048011; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qz3bj6rw803M1uR6VsFauScvvIZVsKyPf1NJH8U1zkU=; b=sXVDktixxqNr4foVZKXSnJCiBqZ4xHs81ZNJvYCqr3QcWEJG/BZwHJxT48h/yDUaF1 5gAtyy7PYx0xw2GnjG4S4QEOInAJxAuB+lUEcG8Xi2hpqHu0+i2fqh6wUqsN8qEzlRoR 3WdLnA8mXYP1H6F65OiwTT6PvtUOQIgwFzNWS7vjmJ0Kk3aakH6i2ijvJFeK+GyNI3vg SkFJteVbQ3HFM6oiUmrhGfHH2KqY/1gGYdPz8UuJCDoJZc6WRmrhDXy4Mq+dj3ugikgd kI2/Ddq9R+BDy+WmNTCbu/ibqNIoHIs5RdwsVcwM/oqMlTdKmwUNXLA6qYf4v0pAl5CG qm1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736443211; x=1737048011; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qz3bj6rw803M1uR6VsFauScvvIZVsKyPf1NJH8U1zkU=; b=ON/3qop5xPEuytB4UOsYLiApTL9e+CtvDxamokYbnqvM7bDMaFhXfC0PPnqSyIOLFw OQS1mnbmFLuwtja7s6dL0Nf7sEZFS5VjfIV5m1u5vptaa9ahWC9WtBCnp7rQyGU8Qu0y 3HqQf77HBKAeMen2TlRng3iX5IxodQU0CzrZzdffr/zAnpizSypibBpYLBtRPDhnTg/G v/w0nkkjWRf0lQ0K1MJu1ZdQPkIKB3Xfh6rhulKkicsnUgxKS+1Rveym17Lby+FPMIz8 ZeWUBPj17SdsprYUf4nAD64pdK5EqmRQR4bIkiJUc4OJjHPlddKHAQWpM2n/Rsnh1R5J TxYw== X-Gm-Message-State: AOJu0Yw9EWE+yPPgz6Mfcvlo1ZE8gMBMJCza68aKNSKTGPOgiB7nhIF/ h7qYgixnyiykrmCYZawHGiyWAS4edq3lpooBAjCoRzFEjY/Julu9HimER9v0WA6VHv38zvWCwGA RHAA= X-Gm-Gg: ASbGnctjHQfVNnnOu5KyqAWbwsBOCXLJJmjBSLbI4BwG2TXbk0s7pD+uLmFvXjHNePU KLo7TGFuvTe07g+cUldMFQr8jJjYaRXqrGMJ4vPnxW1+TyEmjM18EtyYlZwLdKNVd1PQKL14B9I bxplmpdc0J3YGLLtD6+bnrb0na8dP9oyEvT+qJMdxIErHQGojlFiaZqYOZJd14AGqqOgZmY8LfS j9qXyIAWKDCemiRPzNY/KdzeFSKagGkzRgvoCSkAxNhrioauaB/a2dR0u6P+Gbt/rMpdRsnCUGk A8ddS7Z57+t0w2ZeBr/FMiUiMtZny8daRAQI X-Received: by 2002:a05:600c:3b02:b0:435:1a2:2633 with SMTP id 5b1f17b1804b1-436e26cf8a5mr32814435e9.15.1736443210960; Thu, 09 Jan 2025 09:20:10 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a8e37e375sm2295146f8f.22.2025.01.09.09.20.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 09 Jan 2025 09:20:09 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Peter Xu <peterx@redhat.com>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Richard Henderson <richard.henderson@linaro.org> Subject: [PULL 04/11] qdev: Make qdev_get_machine() not use container_get() Date: Thu, 9 Jan 2025 18:19:41 +0100 Message-ID: <20250109171948.31092-5-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250109171948.31092-1-philmd@linaro.org> References: <20250109171948.31092-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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=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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/11] hw/pci: Use -1 as the default value for rombar
|
expand
|
diff --git a/hw/core/qdev.c b/hw/core/qdev.c index 09c4489e3c4..48bc9a7b9c7 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -817,7 +817,12 @@ Object *qdev_get_machine(void) static Object *dev; if (dev == NULL) { - dev = container_get(object_get_root(), "/machine"); + dev = object_resolve_path_component(object_get_root(), "machine"); + /* + * Any call to this function before machine is created is treated + * as a programming error as of now. + */ + assert(dev); } return dev;