From patchwork Wed Apr 5 16:04:50 2023 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: 670319 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp363896wrt; Wed, 5 Apr 2023 09:06:51 -0700 (PDT) X-Google-Smtp-Source: AKy350ZCSTucVjkmZb/qA6IF0otP0r4fspkZgsbUZWxeLNrD41+qD3m/ywBtduEiAPrKZKGrG/G/ X-Received: by 2002:a05:622a:c2:b0:3e4:eb53:b02c with SMTP id p2-20020a05622a00c200b003e4eb53b02cmr5051046qtw.60.1680710811633; Wed, 05 Apr 2023 09:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680710811; cv=none; d=google.com; s=arc-20160816; b=U0Dta6tEc7mUv/yOfIy5Pte5UhEtlVAVVGTa7sg2F8egmr3oW5HlvrCz+eJ8YY7HFM f4s8WcSSth8x/tN4lGggKqoRv0ZbSwUaQ25NUpwBCK9pbw4Kr9X6bDn42S20OdJb2PSO aX6csYRkAzrmh3aF+4bo7DbfmSFbG0RUBLu6miV1DlqmcUySdXHOM4ubYwufCnRaVrUU j+eCaAhcY0LIKPFEvoL0VHoBBVMwqfpU6RVvpa/gKZcm4aF4kwQjX0omX34ZVprJE+Wt lqUrRqkuenbGX70pHO+X92r/oDIPVho74WFFgQzO1kkXqZ2m3FUmsYVKDxiUOOyXFA7D jAig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=TXAiv5gPJGzakn6yAF3UQ469jIKkZR4r/iuFrCC5frw=; b=DGKAijxgyoq5TKiWjPAg8rs+eeQb4ABxZ6v0n4aahJh2YdVbYBqM2esUtN2xrhkhAn /mfBgZgBHXIGeDz/8FL1d5cU5bJol0vaG5Kis4gq8Hr7RYFjZt7HNOHy7Q1hUlVUve+3 fP1ITZjL5Gx6S6w9ccJ+EWO0/rs27GPeQggD8yOCSySioOS3B4ld1v/tLmSck56oAjPt /o6awdv+DnuqxhEUmVXuAVCKjkMg0RJDKA+RQGKfBZkdyYr3tKpsviLSeYnhugdQ+jaL JGvBJ36ESjEJLQFph/cITo2nPgAvVePaiYyfS/UcXvfSk/Rzu1FnkOqSCh579X2EbPnI 5J9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MK0k+l7i; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 22-20020ac85916000000b003e63c6ee215si9981438qty.29.2023.04.05.09.06.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Apr 2023 09:06:51 -0700 (PDT) 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=MK0k+l7i; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pk5dn-0006C3-N8; Wed, 05 Apr 2023 12:05:43 -0400 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 1pk5dg-00069I-M9 for qemu-devel@nongnu.org; Wed, 05 Apr 2023 12:05:38 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pk5dd-0007XG-Uh for qemu-devel@nongnu.org; Wed, 05 Apr 2023 12:05:36 -0400 Received: by mail-wr1-x42d.google.com with SMTP id m2so36728800wrh.6 for ; Wed, 05 Apr 2023 09:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680710733; 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=TXAiv5gPJGzakn6yAF3UQ469jIKkZR4r/iuFrCC5frw=; b=MK0k+l7i0JL0N5tdLRQup0z/tS+z9fsal4eicREogGdlwNf9QVbabnZfiviIAYfHBf JA3Z4LTUT/MZ/596XiLixMfrIvzM7ysklzUO4TTvJDt47/2W4D9/CzYhb/QcW2qM2DGh lV8PnFchupvt62JB8kdIM3YEQBVwi8Y5uTliYYgPdnvE4XiaGrBARmupflOVkRocZ/k8 F0CNMkRh//wn/9/AGrldf70UiFQf2BIvuEBy7QwNDJ6vwKQhDdHoszOmXwaWZsR7hKME u0GX0l3gc0dvqJ6SgJT7MSeNx+4HHimdvMSdJ5XvGckOBpinv7ZG0pcUGyBpL8WdzMFG KJHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680710733; 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=TXAiv5gPJGzakn6yAF3UQ469jIKkZR4r/iuFrCC5frw=; b=ohgnb9HeZfohtbGsTGV95VVDmuFA4Zocx+LP1edUzMbHk1uBfxgd5sUEKnYChQ5/FJ B8cpQGdM59pUE62lJkHOmibr4cvPktjjyGTQvnMLhoXeMaXtu5dOhfm1g8gNCY1+bGi5 +qFPPUF8h3pI80RLfJxv7jTfOzvkhktIkjsl1gKGaKzJ6TJtBhSVZP7eOs9jM8DZT6cZ xxV28z7pYwkoZgaESQoh44GRAvebEYuO6YrhdEl639WjON+Xa6OPtYwEMusLlYT50lkW LXwgGVMgMFQbb4G3fu8JEL6ATNALkUjw58jNmn4pT4pPnYfmenb4MEnI+k7/CJp4gHzZ e/NA== X-Gm-Message-State: AAQBX9dkRcZP1fKZIsfz1TSp4yILYDPKivMFIyuxk+VnAxPLWZpA6T1J xJdd5OTh+YwU35ECpSAKsWHjy0CkEjoBdzJeimg= X-Received: by 2002:a5d:52c7:0:b0:2ce:a9e9:4905 with SMTP id r7-20020a5d52c7000000b002cea9e94905mr4246512wrv.34.1680710732675; Wed, 05 Apr 2023 09:05:32 -0700 (PDT) Received: from localhost.localdomain (4ab54-h01-176-184-52-81.dsl.sta.abo.bbox.fr. [176.184.52.81]) by smtp.gmail.com with ESMTPSA id m19-20020a7bce13000000b003ee1acdb036sm2606127wmc.17.2023.04.05.09.05.31 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 05 Apr 2023 09:05:32 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-arm@nongnu.org, kvm@vger.kernel.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Peter Maydell Subject: [PATCH 06/10] target/arm: Reduce QMP header pressure by not including 'kvm_arm.h' Date: Wed, 5 Apr 2023 18:04:50 +0200 Message-Id: <20230405160454.97436-7-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230405160454.97436-1-philmd@linaro.org> References: <20230405160454.97436-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=philmd@linaro.org; helo=mail-wr1-x42d.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 We only need "sysemu/kvm.h" for kvm_enabled() and "cpu.h" for the QOM type definitions (TYPE_ARM_CPU). Avoid including the heavy "kvm_arm.h" header. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- target/arm/arm-qmp-cmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/arm/arm-qmp-cmds.c b/target/arm/arm-qmp-cmds.c index c8fa524002..91eb450565 100644 --- a/target/arm/arm-qmp-cmds.c +++ b/target/arm/arm-qmp-cmds.c @@ -22,7 +22,7 @@ #include "qemu/osdep.h" #include "hw/boards.h" -#include "kvm_arm.h" +#include "sysemu/kvm.h" #include "qapi/error.h" #include "qapi/visitor.h" #include "qapi/qobject-input-visitor.h" @@ -31,6 +31,7 @@ #include "qapi/qmp/qerror.h" #include "qapi/qmp/qdict.h" #include "qom/qom-qobject.h" +#include "target/arm/cpu.h" static GICCapability *gic_cap_new(int version) {