Received: by 2002:a05:6512:3aa:0:0:0:0 with SMTP id v10csp1328841lfp; Tue, 21 Jan 2020 03:04:42 -0800 (PST) X-Google-Smtp-Source: APXvYqx6Z9datChTkBnmag/V0hRVEL4voEBS+eYbxyCquypSHCcZ13pV5IRLwFNNoJE8oGjgpzbn X-Received: by 2002:a50:8f66:: with SMTP id 93mr3303811edy.33.1579604681999; Tue, 21 Jan 2020 03:04:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579604681; cv=none; d=google.com; s=arc-20160816; b=o6UoViJ2qD0e85wdYz6EvRLiSF1m1+g0TKAb+8LBFa9eC1mbhTjLNye1bX1MAUoqvk p7+tu1fxCZxumTZ3SJjIGUEMjk4hQ8thuBH2NcNP/r2cJotm0G2k3IIbUWjwck4uf5ze OcRhGXqRysMiBDIn/qYTcgCAEC94zxrCx5MEqwvvuudyu+7T9Cl8nUxkGaJlbgZaXBUX uT6I4KsglekltWt0dV/YAx/j++V1IwwzrfDE6WZu1pQ/JY7aWILIToLpLjA516qA1pFE cCbiUSHSM5YQper5U7kLfznn3BwHreuEr3jfvEH9KEiamTkWE2LZYP5aSPttvJFKBZ/Q 30RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=JD10Fq/9poMDjb/HbghiEve7pBcjeVe8ewjzArfNZpI=; b=dYIeLckceHkNneTSspVkOCpry73FH6zeDTO3xbUZWdJGdNs5Hokpftc3518FxL1bDq PP8fbFaykFtsOXed/23JJ3ob8gkRMOIp4CjVjvBr3yKcQ3kQMC4KB1IYJx3nkQc0fKG3 0A0+D1tE6dKjuwPyHiNawBHDGt600YpZpdZgeDu1LC/tam8NxO7LNt5nc6BEin8v9KbB OobU1G1d3lsqb0TfuG/X99s4T/Es8CRuygwGO+e5NQdv7M/lS4hhqnkwgBTRzreQLLBK BJwCOYQLEWapgphF6JOrbW69cLPxliipdg/SFUAM828YAZxJsIspX7WnZAVFX6EnekiR +EMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b="F5tSKwx/"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h3si22420646ejc.477.2020.01.21.03.04.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Jan 2020 03:04:41 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b="F5tSKwx/"; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:51648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itrKq-0002iQ-BC for alex.bennee@linaro.org; Tue, 21 Jan 2020 06:04:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40180) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itrKT-0002dB-Hw for qemu-arm@nongnu.org; Tue, 21 Jan 2020 06:04:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itrKN-0002An-KE for qemu-arm@nongnu.org; Tue, 21 Jan 2020 06:04:17 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:27562 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1itrKN-0002AE-Gy for qemu-arm@nongnu.org; Tue, 21 Jan 2020 06:04:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579604650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JD10Fq/9poMDjb/HbghiEve7pBcjeVe8ewjzArfNZpI=; b=F5tSKwx/apixBTR0ZsRTuxzfw4OKrQQJHFoVeycATQzt2dN8ni1HtdVblJ/SanBwnVYy8l xQPhZJhvzV4aprtRC2xnxpRUgNyzEJvDMhZy/q7wjZeODtXsdW0OFDGHm04aR6wQK5VL2m NkTAxvGVB84UgUepmBVktR2FJxxqpeI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-45-9ZRUMiBDNYe81rm4na-EVw-1; Tue, 21 Jan 2020 06:04:06 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A0003DBA3; Tue, 21 Jan 2020 11:04:04 +0000 (UTC) Received: from x1w.redhat.com (ovpn-205-38.brq.redhat.com [10.40.205.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6D8C683860; Tue, 21 Jan 2020 11:03:51 +0000 (UTC) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH v2 00/10] Cleanups around the 'current_machine' global variable Date: Tue, 21 Jan 2020 12:03:39 +0100 Message-Id: <20200121110349.25842-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: 9ZRUMiBDNYe81rm4na-EVw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Cornelia Huck , Eduardo Habkost , Like Xu , David Hildenbrand , Marcelo Tosatti , Markus Armbruster , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , David Gibson Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: v4I2//OdVdfT v1 was "Replace current_machine by qdev_get_machine()": https://www.mail-archive.com/qemu-devel@nongnu.org/msg669611.html But Markus objected, see: https://www.mail-archive.com/qemu-devel@nongnu.org/msg670122.html and older discussion: https://www.mail-archive.com/qemu-devel@nongnu.org/msg611338.html This series salvage patches from v1, and add other trivial cleanups. Can the ARM/PPC/S390 patches could go via their own tree, and the rest via Paolo's 'misc' tree? Supersedes: <20200109152133.23649-1-philmd@redhat.com> Philippe Mathieu-Daud=C3=A9 (10): hw/ppc/spapr_rtas: Use local MachineState variable hw/ppc/spapr_rtas: Access MachineState via SpaprMachineState argument hw/ppc/spapr_rtas: Remove local variable target/arm/kvm: Use CPUState::kvm_state in kvm_arm_pmu_supported() target/s390x: Remove duplicated ifdef macro qom/object: Display more helpful message when a parent is missing qdev: Abort if the root machine container is missing accel: Introduce the current_accel() wrapper accel: Replace current_machine->accelerator by current_accel() wrapper accel/tcg: Sanitize include path include/sysemu/accel.h | 2 ++ accel/accel.c | 5 +++++ accel/kvm/kvm-all.c | 4 ++-- accel/tcg/tcg-all.c | 8 ++++---- hw/core/qdev.c | 1 + hw/ppc/spapr_rtas.c | 9 ++++----- memory.c | 2 +- qom/object.c | 6 +++++- target/arm/kvm.c | 4 +--- target/arm/kvm64.c | 5 ++--- target/i386/kvm.c | 2 +- target/ppc/kvm.c | 2 +- target/s390x/excp_helper.c | 7 +++---- vl.c | 2 +- 14 files changed, 33 insertions(+), 26 deletions(-) --=20 2.21.1