From patchwork Wed Jan 31 11:55:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 768489 Delivered-To: patch@linaro.org Received: by 2002:adf:ee41:0:b0:33a:e5bd:fedd with SMTP id w1csp1819350wro; Wed, 31 Jan 2024 04:00:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSuDNEY7HoSubW//5aADzYnbh3m0sgbQw6AjZml4qliwz9iPtT9+ffVNKyD8eC/fz1q2Bg X-Received: by 2002:a05:6808:2382:b0:3be:c153:7225 with SMTP id bp2-20020a056808238200b003bec1537225mr1179898oib.37.1706702437236; Wed, 31 Jan 2024 04:00:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706702437; cv=none; d=google.com; s=arc-20160816; b=cstgEqzs1jf7M8FianERwzP/2UbOIEVCmDexnySgkStstf+xSIRfTx8+RGWNUDMVAo 0VL9sa5QGAGeSxTbut+R7BIQPVqVTRbOWWwJEuS+cGcXFKptncicmKirnhGC2FcYwP0Q 5K4bRrU9UDlgN8crjNkqehfbVM973z9Jzt9ZkUP7YxN3MIkK4tLyuZdD3E9sPe0kQ8hF mZZV7gbCB34mA9Sf5QvqRZ+Rr9SMMDDy84uAI82VB4YElWvi3LBn7u4CFLvdFIBElmZQ YMcG1pXD4iKt9bCPVGry2O1NwgcMFA6aBOpHN3YuGwU+98uVWY/gZN7dVUPcInR0y8Zr efVA== 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; bh=kMHSbdihZgtZM/woNkLbSoOouRKbQgXFmh3hp5zBI/Q=; fh=jh9s/2b3oP/B0OsgiRumWgM45Os92R4KpZj1Nn+uBtQ=; b=qJt76VOc5+S1uMmQ/tKNiZxWyfdSdklT8LvQhnzR3ilujQUmLt3XcSniNnhi3dI+kz J+Z2eqwrG39vnwzutnGazHv/3FtQgV1D20fYwVRW5HS5ValvscfTmyJsnkY7SExt3iU3 MlRwZsq5YPaK6W5BXjHtx78+O5MpTWiwsXQzEAKgNmsR1LCcAHkEI0k5RHreZpoOnFht PEzrhjdxxSwkirbPYWFF7Gu3SnqTKqtqnIeKnLL9woB5rX1EmviqyrRt0e8jy2WRiZMO fGwZx5OMOMR1SzA5vXa/jNEP4gbGTsG5r0xjl8WTVfrwCchBScJPPg8LgMOMmn6okXsg 3qGw==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; 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" X-Forwarded-Encrypted: i=0; AJvYcCVULhZkHDJCVkVrWNZE3QoxDV/zTjde9NIHmtH5m3xH13QVw4yxYmNRuGKj5XJfMvFBmmkUNXYkXcMTrMxLCJDN Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id t5-20020a05622a180500b0042aa8c81736si5990223qtc.347.2024.01.31.04.00.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jan 2024 04:00:37 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rV9EL-0002wr-6d; Wed, 31 Jan 2024 06:58:14 -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 1rV9DP-0002S5-Cg; Wed, 31 Jan 2024 06:57:16 -0500 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rV9DN-00043j-Pl; Wed, 31 Jan 2024 06:57:15 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 0CD27490D3; Wed, 31 Jan 2024 14:56:48 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 42EEE7027C; Wed, 31 Jan 2024 14:55:51 +0300 (MSK) Received: (nullmailer pid 2263976 invoked by uid 1000); Wed, 31 Jan 2024 11:55:49 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-trivial@nongnu.org, Michael Tokarev Subject: [PULL 21/21] hw/hyperv: Include missing headers Date: Wed, 31 Jan 2024 14:55:49 +0300 Message-Id: <20240131115549.2263854-22-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240131115549.2263854-1-mjt@tls.msk.ru> References: <20240131115549.2263854-1-mjt@tls.msk.ru> MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: 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 From: Philippe Mathieu-Daudé Include missing headers in order to avoid when refactoring unrelated headers: hw/hyperv/hyperv.c:33:18: error: field ‘msg_page_mr’ has incomplete type 33 | MemoryRegion msg_page_mr; | ^~~~~~~~~~~ hw/hyperv/hyperv.c: In function ‘synic_update’: hw/hyperv/hyperv.c:64:13: error: implicit declaration of function ‘memory_region_del_subregion’ [-Werror=implicit-function-declaration] 64 | memory_region_del_subregion(get_system_memory(), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ hw/hyperv/hyperv.c: In function ‘hyperv_hcall_signal_event’: hw/hyperv/hyperv.c:683:17: error: implicit declaration of function ‘ldq_phys’; did you mean ‘ldub_phys’? [-Werror=implicit-function-declaration] 683 | param = ldq_phys(&address_space_memory, addr); | ^~~~~~~~ | ldub_phys hw/hyperv/hyperv.c:683:17: error: nested extern declaration of ‘ldq_phys’ [-Werror=nested-externs] hw/hyperv/hyperv.c: In function ‘hyperv_hcall_retreive_dbg_data’: hw/hyperv/hyperv.c:792:24: error: ‘TARGET_PAGE_SIZE’ undeclared (first use in this function); did you mean ‘TARGET_PAGE_BITS’? 792 | msg.u.recv.count = TARGET_PAGE_SIZE - sizeof(*debug_data_out); | ^~~~~~~~~~~~~~~~ | TARGET_PAGE_BITS hw/hyperv/hyperv.c: In function ‘hyperv_syndbg_send’: hw/hyperv/hyperv.c:885:16: error: ‘HV_SYNDBG_STATUS_INVALID’ undeclared (first use in this function) 885 | return HV_SYNDBG_STATUS_INVALID; | ^~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Manos Pitsidianakis Signed-off-by: Michael Tokarev --- hw/hyperv/hyperv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/hyperv/hyperv.c b/hw/hyperv/hyperv.c index 57b402b956..6c4a18dd0e 100644 --- a/hw/hyperv/hyperv.c +++ b/hw/hyperv/hyperv.c @@ -12,6 +12,7 @@ #include "qemu/module.h" #include "qapi/error.h" #include "exec/address-spaces.h" +#include "exec/memory.h" #include "sysemu/kvm.h" #include "qemu/bitops.h" #include "qemu/error-report.h" @@ -21,6 +22,9 @@ #include "qemu/rcu_queue.h" #include "hw/hyperv/hyperv.h" #include "qom/object.h" +#include "target/i386/kvm/hyperv-proto.h" +#include "target/i386/cpu.h" +#include "exec/cpu-all.h" struct SynICState { DeviceState parent_obj;