From nobody Wed Apr 2 13:32:46 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1741243408; cv=none; d=zohomail.com; s=zohoarc; b=ftfxhUOglRiwsebZaC/5895USU9cT6Cm34LICIFGwUDYxn7+PY5Gql8WRAuL2yoZ881Bw2qU0xpDozx3N1S92MSZz18gBFRHa8TamW2T+Mdn5dfKJiWWNeHtu/W8ZNG6u9R5tFPs0jb51dOD0ZkhkzMZMqcgqSLUW9dYhzXYIRc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741243408; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=wT8pzATX7z0g510B/bcUtetzdKIxpUlAXqTAPEA9Pmo=; b=nlDjo/i98u9B3rtwEcemvjTzKE/0aibtBJ7B1RkE4QObxHf3EDxU5JTUj7xwFmyS0ijZZcUnhpgh3iqTRjWQ0GTgw1rgaaEyJkvFhyh7cTYCE9PNut0PLC9QZppVtbNERsBtS6L5fHy4AeHrw3ZjRyDiFklDMcgkZAufXmfYNFE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1741243408644591.2232472232502; Wed, 5 Mar 2025 22:43:28 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tq4vN-00020u-Of; Thu, 06 Mar 2025 01:41:41 -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 1tq4vC-0001yx-Sf for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:30 -0500 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tq4vB-0006FE-7W for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:30 -0500 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-223959039f4so4517275ad.3 for ; Wed, 05 Mar 2025 22:41:28 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22410a91cffsm4769355ad.174.2025.03.05.22.41.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Mar 2025 22:41:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741243287; x=1741848087; 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=wT8pzATX7z0g510B/bcUtetzdKIxpUlAXqTAPEA9Pmo=; b=TX9YD6JUYameHKisYMzsZHECxTV8cv/iY96XkR4ANkGSj4h2zZEcd2vPeU0OHwG93s ze7mxt0qDg0soI3ni5FocjqJPnu9hjqC+bEuCWFVKLJrHj9VtE5/7o91mat0G2t4YTin qht8fqsf2eNO++3pU+f42cUtAxnGcszDLCMxQxCKUcD3cQIBlNnxq/lDGtZFffFTFxl2 wUiApHvOP7XiXN8+sUEshQXedaj49i8miqY3cyW9ylssyfUWHsgdGUGb8aX6c5cX6q5U Sep2XxglVNsloiLPyg5JZa1eqOUOkMPAk8H39zJQL+J+NtDyV2x35loyXPgfjQ9LBVQm FzAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741243287; x=1741848087; 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=wT8pzATX7z0g510B/bcUtetzdKIxpUlAXqTAPEA9Pmo=; b=fJpAcb57YE9CH0YtuFgC+lFlM+IvUiuTN66P0ZfptvsuEewsdLi+BqTdiPPGaVM9y3 Q4i523PiYiqQ0PKfiR1bj3kml2SQlFyb84Y/LTiQUPGPFrcF6WEGZEDuO0G3Ma5MooD1 shWkrZF0Tw9iKZkTF3tyedFspSZY5hZoHH7Do2GBvUpSeEfm7NLg8W0g7PJbaw41v0My R2xEKa0QPL91sxVAMlRah1iHpUlWVLxsuHvpGIChDAzKrvUdQjvjoituo4WHYnKbwKWp +Oz+r2bpladnR4AWL758C+cU73tLs4fWEDBQeRvLAplzrE6hD6axv2e9fKv02Iiz+Eeb 8yFw== X-Gm-Message-State: AOJu0YzYkJ9IYFv3dD5zNG3RawPR2xATwlxSRRpU02SUB0ogaik/g/di FLf6xt/XXQvx+gPsLxHGe+ZTCX9T7QUzBdj5oDckBrCRTapCIohDs1qsCY+66vi3hBTBPo4a6Np C X-Gm-Gg: ASbGnctZ5brq+z9MRE3SDOtsG/N+3G8sdr776L+ORi0pqv/dMjvrN/DVxgdI8h7HMwM LIj5EqhoJXDhMLiLV0W2sbOiBMogACwK2P85Yt0HVNw9HbyGq/7oI0ZB04ZQarUPrybkqiSV1aV usZnsbiFuTrI2TX5CiqO85c8pcu7XfIX7AdohrJaMg6B+QwhjPiEXE2tlCfpP5HUJpjmDjIcXbl Cvjzip5q9FuDLkTub412Buuin+z0Crixae94Hvb52jw/1aa6/ob8oM1ngGx7kQtH9mIwo19JaQp uBHUB0aQWM2X+Qon1RDZ5GM4QbVnz1vSx/ApggxbqXyl X-Google-Smtp-Source: AGHT+IFLB8iv4RFayusNn/dU8XKbHiB/II8ZC0o6pkKlvCRP8oMz/PdatWDGujnk6B+WsfH2+JYe+Q== X-Received: by 2002:a17:902:d2ca:b0:224:10a2:cae1 with SMTP id d9443c01a7336-22410a2cdafmr13816755ad.37.1741243287140; Wed, 05 Mar 2025 22:41:27 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, philmd@linaro.org, Paolo Bonzini , pierrick.bouvier@linaro.org, manos.pitsidianakis@linaro.org, "Maciej S. Szmigiero" , richard.henderson@linaro.org, Marcelo Tosatti , alex.bennee@linaro.org Subject: [PATCH 1/7] hw/hyperv/hv-balloon-stub: common compilation unit Date: Wed, 5 Mar 2025 22:41:12 -0800 Message-Id: <20250306064118.3879213-2-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> References: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62f.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1741243410951019000 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier --- hw/hyperv/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/hyperv/meson.build b/hw/hyperv/meson.build index d3d2668c71a..f4aa0a5ada9 100644 --- a/hw/hyperv/meson.build +++ b/hw/hyperv/meson.build @@ -2,4 +2,5 @@ specific_ss.add(when: 'CONFIG_HYPERV', if_true: files('hype= rv.c')) specific_ss.add(when: 'CONFIG_HYPERV_TESTDEV', if_true: files('hyperv_test= dev.c')) specific_ss.add(when: 'CONFIG_VMBUS', if_true: files('vmbus.c')) specific_ss.add(when: 'CONFIG_SYNDBG', if_true: files('syndbg.c')) -specific_ss.add(when: 'CONFIG_HV_BALLOON', if_true: files('hv-balloon.c', = 'hv-balloon-page_range_tree.c', 'hv-balloon-our_range_memslots.c'), if_fals= e: files('hv-balloon-stub.c')) +specific_ss.add(when: 'CONFIG_HV_BALLOON', if_true: files('hv-balloon.c', = 'hv-balloon-page_range_tree.c', 'hv-balloon-our_range_memslots.c')) +system_ss.add(when: 'CONFIG_HV_BALLOON', if_false: files('hv-balloon-stub.= c')) --=20 2.39.5 From nobody Wed Apr 2 13:32:46 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1741243330; cv=none; d=zohomail.com; s=zohoarc; b=LVPf063FJ2+YZ+lvuhJ66WPTX0tzpI0sIDFTxXg0PebfXcf8FwBhu1m3tj6XVAjLbf7FJtgN7kN8fitNu/SjYfTWkShOLxgQdKuaWj3jDh4dDmv4ACrOgmMJYHoJKOWnY0Vz17w5SNxq35HHl8FL0wwEtiLEgEjWnPzBQ64Qwq8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741243330; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=/2Cqyz5MzW0BJMcv6vHkDTQpGUU3r1TqAgpaR0U/jco=; b=IDGlKbcgzx6Yi1s156yHTBYUUx7NgCQmwDud7ZtoxQoqEAviyPnxRuPyp5YVLtE7jsa/bYV5uQvFR2cAvUdOmlTFiokikzZ25zHTRsvc9UfVcCdrhrgGo7wjQUpRf7NbCHHk4BRzvRDeehhO2/V/cBSrFHgnu2yk+BHoCzlZHTU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1741243330215580.5294973277572; Wed, 5 Mar 2025 22:42:10 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tq4vS-00024U-Rg; Thu, 06 Mar 2025 01:41:46 -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 1tq4vD-0001z7-HB for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:32 -0500 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tq4vB-0006FI-FY for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:31 -0500 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2241053582dso4630785ad.1 for ; Wed, 05 Mar 2025 22:41:29 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22410a91cffsm4769355ad.174.2025.03.05.22.41.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Mar 2025 22:41:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741243288; x=1741848088; 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=/2Cqyz5MzW0BJMcv6vHkDTQpGUU3r1TqAgpaR0U/jco=; b=n4aHhMnVBQSbD9pztvFAonCbKYus7euHaZTfQjtw+1HR8A5qmhMxlNj5cbF8ZLIeCh xWygHoDiYWlGjJjRgSoQ3azYO/4wwuEsE9JTdVegMp7p4P3h4TKYfFrUKaqM/Y6aGonB RZB6TGfoeXW4dCtTfsawyW6RAK2pDaXpT2FtLOXYD0iViLnPKmVcZpgEAX1qNpS1BPRv noEpkBEtgqdi6k4DLImNifA9GdlFFgJufzGZgxMnblhqKH29MEPxOLHHmuK1BA8HK8b1 +1FrFwDu3PswJOfrT9AdpDB1R+Cce2p2pJBrlgyKly2VZnrWboATWELF1jrLAU+9ygZf DG1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741243288; x=1741848088; 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=/2Cqyz5MzW0BJMcv6vHkDTQpGUU3r1TqAgpaR0U/jco=; b=bU3FqO9FOerO8BMvufEUGQd2VoKnICiNZAMepJoB8AEA/BPXlyF1PcX4+r96bxiOaU 6FNBdyVk6FtZspH1S2YXT1hDO18h7sHbZrPtPLQFBuQYwshyz3KwXSrI9uh4113R+H90 x+hcFB/VdjgOTWca6zcfYk7qT5FjYIY75kZtF1KHOMnheAthJFMmkG6DrttNXUD/TkGx xsy0ermX/PCe8Bi35eOx/e2/dgVvP0UOzm93KPU9qL4HYz5BSRPdr6DFZiDD22eK2wln 3ngbqpxDL+R3d3xuZc5EK1YLNqnH9gH5ikGkNnaP+5S7eM6hIQnoZ2flXQtGxiMhJION 6mjA== X-Gm-Message-State: AOJu0YzMw67ZHPMGqVYpw2gjAFsH31q2/6Alwc0//7oEeOvHtgQ7HwX9 yk4RiJfL5/hCpaaYw1gJg57/aaxYUIEaibQgq+WIVflssn2z+mNVOdHSsThNGhc/4ASdhAeMOk1 q X-Gm-Gg: ASbGncu/ehP00z3yaaYcEKKoTcVKk2tuqRWN0EJq4V9swacOW37xnJ/a9FqCr3xkSfS pNGegiS2i6+hVZOl6xaaGj5uOdtdYL5+Ozj9LcNrvo7iEpPsP1Uym1d5r7gG4E/gwEX5GZ5F3El O6AOCxeHVYEmilaybteWuqvT/5ySRfW+JxJm0pQyB8cfjw0X3nYvW1Y5GEMm/3qS8GSJs8kfHAk 5Mw6O+mQKcgy29v7D8+Q57Jl+jWSGZYgExWJF1T/dpuIv+G+tVhrU1lUM2Sd4rAbEOqtQdW9Uga 3TcKHNNESEekY8VCoVc8ubGp5zFsq+7qHjgC1foF7JGg X-Google-Smtp-Source: AGHT+IEhtCs9J6dNUfTXZfoSz7KQgHmZ66yfg8KDNs+eagI9gyF0lZ1IhFG6M2GKXybBGTCI/9l/Mg== X-Received: by 2002:a17:902:cec7:b0:21f:7a8b:d675 with SMTP id d9443c01a7336-223f1c7968amr102765835ad.4.1741243288018; Wed, 05 Mar 2025 22:41:28 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, philmd@linaro.org, Paolo Bonzini , pierrick.bouvier@linaro.org, manos.pitsidianakis@linaro.org, "Maciej S. Szmigiero" , richard.henderson@linaro.org, Marcelo Tosatti , alex.bennee@linaro.org Subject: [PATCH 2/7] hw/hyperv/hyperv.h: header cleanup Date: Wed, 5 Mar 2025 22:41:13 -0800 Message-Id: <20250306064118.3879213-3-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> References: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x631.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1741243333804019100 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier --- include/hw/hyperv/hyperv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/hw/hyperv/hyperv.h b/include/hw/hyperv/hyperv.h index d717b4e13d4..c6f7039447f 100644 --- a/include/hw/hyperv/hyperv.h +++ b/include/hw/hyperv/hyperv.h @@ -10,7 +10,9 @@ #ifndef HW_HYPERV_HYPERV_H #define HW_HYPERV_HYPERV_H =20 -#include "cpu-qom.h" +#include "qemu/osdep.h" +#include "exec/hwaddr.h" +#include "hw/core/cpu.h" #include "hw/hyperv/hyperv-proto.h" =20 typedef struct HvSintRoute HvSintRoute; --=20 2.39.5 From nobody Wed Apr 2 13:32:46 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1741243447; cv=none; d=zohomail.com; s=zohoarc; b=WWgPOMgM0eHEt93iYwJ8lQUfWsh6NPY4NpPw+l/N3exVOSmSflxMbc52mhyLv686K4CIfKnyHvihkTRCvSL+ZDg+83LzUuXlSpjuwxhIn6iBYuQ557g4t/6kRaKTiA+lhDrtafdYIhdqyn0ELOwSr3hNmolPE04qKX2goYopDZ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741243447; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=a4g6UCTPF7xt6XmRoqdLfJpuJ3HLau+yVZ65YGfmCxA=; b=Tv3YzEsvfHLqH+c32wode60n/o4nlK0ayZ+RlvjcSNbdlO548OJytMuH/5xyhpCE8z7G2TQjRipSvySIuHbKhOCHIQig/JotZPQbY6pFr9PVilzVSG6tzxPVEofqW+BzeeWMc5Iij07CTtpEEis5RWiW9U8Mk1tgd0GkIuHtamk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1741243447767219.47070054005053; Wed, 5 Mar 2025 22:44:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tq4vO-00021I-2Y; Thu, 06 Mar 2025 01:41:42 -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 1tq4vF-0001zH-Re for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:35 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tq4vC-0006FU-GZ for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:32 -0500 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2234e4b079cso3859325ad.1 for ; Wed, 05 Mar 2025 22:41:30 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22410a91cffsm4769355ad.174.2025.03.05.22.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Mar 2025 22:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741243289; x=1741848089; 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=a4g6UCTPF7xt6XmRoqdLfJpuJ3HLau+yVZ65YGfmCxA=; b=Y3Q1JP9AhdFAZFVWGWctlb2h5XjyWxwXSOfceKHGgHz+ZRROJii4KmEq9mAc3WRzaQ sLZME/9oX7KiWnkitUB7+orO7FQvvkgFFh6VqkndrdLvJxV/xZZutPy1q96xJjkgVj4Y +xWjwSaWS21Gp7luO2RVfow+RXKI5WZ1gIC1gGYSt9ZAjYMa2aRW+o0LsZMENpQdZufU 1YDDBHPyEanbLuphph/rK8eGZpOXtgWZykyzfeude3GKxK8XQWTFKcg2CKHnWhjWjUSf ZrYJvXoh5rVtiGbfa+zta7YpRjmS901L8hT2kfeFqNBwLGp9uRSYC8WTCbnuM49Rqzee 3BIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741243289; x=1741848089; 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=a4g6UCTPF7xt6XmRoqdLfJpuJ3HLau+yVZ65YGfmCxA=; b=fVwVXmLgD7hDBbnJ1b1vfYace3HrpoE93SaRMkFQukNwDkO7+OKRqkIWpE71IKvjlg cRxwY2s7T+yJTxjqNpjJ6rDtmqADcBLSSwl0iOHMXqZDHCbei6mlQtBHtONQtsehjDOT /UWIMkoVUdCpP7AojVDSCU4B4w5uDlmwiYQJOzzddcgHWeYoyo6A97vcEzNn2tYK0oBA bvxnKdpQUx0UyKWyiBBZHCqS9d7YmhhfJA0nJhJ6YnTsTbjmM00icttb1vlJVBIQCg5R cM4Ts2EeOheQQi6X59gQUc1se1+V47STSGudh7G9JJ3TvrH00tdtdkTLcor9BQQpBZt3 4A+A== X-Gm-Message-State: AOJu0YzyUUfdwyUyVkSZF/UWPoydB6TLHeW6Xyc3bkYKonSMqQuTn3L+ 9QqEO3Rju/ONYLyIO/wMz8Ar4NCb923LD9375OgdLP3rgRxCQWqfcjO6Q/Kz2mWVyWEpS8hHMqn z X-Gm-Gg: ASbGncshut/Owl6B8tsWhfGgWyn1h27cxkKm1RnBaWMXYSntj3ZZ1f9sHJtvcbGzLpS lpqpFpH/Psx2D0oq2IhuHHwhozTT06xPqBfcFg5ajAjw8C6X772A5AwO+xMVaqeQ8/G31dxRS1f u3xujIyE/BN0WHiyYsNJ9rlvppbo3M7DA7opxQWlEKdA7y2Wm+5v1/VjNsUJw0j/IwG8NSSLfHr lR4obFpqeABBs4C0KmpuqAb7eRfFKU9gOjOtLDJlme+FOo1BBObnOsLhqkc70G18oLyBzmKwqi+ AF2YiPEu4uZCDw5g9sChJIpHq9bJ0sQL/uWd/S+8LCEd X-Google-Smtp-Source: AGHT+IGfAiV2y2sV/+twWgPqy3JAP1CBHCKmg3Dbm9uDmHILN+zHI1fLgqUtIpvFbzvqC1JioNGrKw== X-Received: by 2002:a17:903:3ba5:b0:21f:ba77:c45e with SMTP id d9443c01a7336-223f1d81964mr88722495ad.45.1741243288953; Wed, 05 Mar 2025 22:41:28 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, philmd@linaro.org, Paolo Bonzini , pierrick.bouvier@linaro.org, manos.pitsidianakis@linaro.org, "Maciej S. Szmigiero" , richard.henderson@linaro.org, Marcelo Tosatti , alex.bennee@linaro.org Subject: [PATCH 3/7] hw/hyperv/vmbus: common compilation unit Date: Wed, 5 Mar 2025 22:41:14 -0800 Message-Id: <20250306064118.3879213-4-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> References: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x630.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1741243450160019100 Content-Type: text/plain; charset="utf-8" Replace TARGET_PAGE.* by runtime calls. Signed-off-by: Pierrick Bouvier --- hw/hyperv/vmbus.c | 50 +++++++++++++++++++++---------------------- hw/hyperv/meson.build | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/hw/hyperv/vmbus.c b/hw/hyperv/vmbus.c index 12a7dc43128..109ac319caf 100644 --- a/hw/hyperv/vmbus.c +++ b/hw/hyperv/vmbus.c @@ -18,7 +18,7 @@ #include "hw/hyperv/vmbus.h" #include "hw/hyperv/vmbus-bridge.h" #include "hw/sysbus.h" -#include "cpu.h" +#include "exec/target_page.h" #include "trace.h" =20 enum { @@ -309,7 +309,7 @@ void vmbus_put_gpadl(VMBusGpadl *gpadl) =20 uint32_t vmbus_gpadl_len(VMBusGpadl *gpadl) { - return gpadl->num_gfns * TARGET_PAGE_SIZE; + return gpadl->num_gfns * qemu_target_page_size(); } =20 static void gpadl_iter_init(GpadlIter *iter, VMBusGpadl *gpadl, @@ -323,14 +323,14 @@ static void gpadl_iter_init(GpadlIter *iter, VMBusGpa= dl *gpadl, =20 static inline void gpadl_iter_cache_unmap(GpadlIter *iter) { - uint32_t map_start_in_page =3D (uintptr_t)iter->map & ~TARGET_PAGE_MAS= K; - uint32_t io_end_in_page =3D ((iter->last_off - 1) & ~TARGET_PAGE_MASK)= + 1; + uint32_t map_start_in_page =3D (uintptr_t)iter->map & ~qemu_target_pag= e_mask(); + uint32_t io_end_in_page =3D ((iter->last_off - 1) & ~qemu_target_page_= mask()) + 1; =20 /* mapping is only done to do non-zero amount of i/o */ assert(iter->last_off > 0); assert(map_start_in_page < io_end_in_page); =20 - dma_memory_unmap(iter->as, iter->map, TARGET_PAGE_SIZE - map_start_in_= page, + dma_memory_unmap(iter->as, iter->map, qemu_target_page_size() - map_st= art_in_page, iter->dir, io_end_in_page - map_start_in_page); } =20 @@ -348,17 +348,17 @@ static ssize_t gpadl_iter_io(GpadlIter *iter, void *b= uf, uint32_t len) assert(iter->active); =20 while (len) { - uint32_t off_in_page =3D iter->off & ~TARGET_PAGE_MASK; - uint32_t pgleft =3D TARGET_PAGE_SIZE - off_in_page; + uint32_t off_in_page =3D iter->off & ~qemu_target_page_mask(); + uint32_t pgleft =3D qemu_target_page_size() - off_in_page; uint32_t cplen =3D MIN(pgleft, len); void *p; =20 /* try to reuse the cached mapping */ if (iter->map) { uint32_t map_start_in_page =3D - (uintptr_t)iter->map & ~TARGET_PAGE_MASK; - uint32_t off_base =3D iter->off & ~TARGET_PAGE_MASK; - uint32_t mapped_base =3D (iter->last_off - 1) & ~TARGET_PAGE_M= ASK; + (uintptr_t)iter->map & ~qemu_target_page_mask(); + uint32_t off_base =3D iter->off & ~qemu_target_page_mask(); + uint32_t mapped_base =3D (iter->last_off - 1) & ~qemu_target_p= age_mask(); if (off_base !=3D mapped_base || off_in_page < map_start_in_pa= ge) { gpadl_iter_cache_unmap(iter); iter->map =3D NULL; @@ -368,10 +368,10 @@ static ssize_t gpadl_iter_io(GpadlIter *iter, void *b= uf, uint32_t len) if (!iter->map) { dma_addr_t maddr; dma_addr_t mlen =3D pgleft; - uint32_t idx =3D iter->off >> TARGET_PAGE_BITS; + uint32_t idx =3D iter->off >> qemu_target_page_bits(); assert(idx < iter->gpadl->num_gfns); =20 - maddr =3D (iter->gpadl->gfns[idx] << TARGET_PAGE_BITS) | off_i= n_page; + maddr =3D (iter->gpadl->gfns[idx] << qemu_target_page_bits()) = | off_in_page; =20 iter->map =3D dma_memory_map(iter->as, maddr, &mlen, iter->dir, MEMTXATTRS_UNSPECIFIED); @@ -382,7 +382,7 @@ static ssize_t gpadl_iter_io(GpadlIter *iter, void *buf= , uint32_t len) } } =20 - p =3D (void *)(uintptr_t)(((uintptr_t)iter->map & TARGET_PAGE_MASK= ) | + p =3D (void *)(uintptr_t)(((uintptr_t)iter->map & qemu_target_page= _mask()) | off_in_page); if (iter->dir =3D=3D DMA_DIRECTION_FROM_DEVICE) { memcpy(p, buf, cplen); @@ -591,9 +591,9 @@ static void ringbuf_init_common(VMBusRingBufCommon *rin= gbuf, VMBusGpadl *gpadl, uint32_t begin, uint32_t end) { ringbuf->as =3D as; - ringbuf->rb_addr =3D gpadl->gfns[begin] << TARGET_PAGE_BITS; - ringbuf->base =3D (begin + 1) << TARGET_PAGE_BITS; - ringbuf->len =3D (end - begin - 1) << TARGET_PAGE_BITS; + ringbuf->rb_addr =3D gpadl->gfns[begin] << qemu_target_page_bits(); + ringbuf->base =3D (begin + 1) << qemu_target_page_bits(); + ringbuf->len =3D (end - begin - 1) << qemu_target_page_bits(); gpadl_iter_init(&ringbuf->iter, gpadl, as, dir); } =20 @@ -734,7 +734,7 @@ static int vmbus_channel_notify_guest(VMBusChannel *cha= n) unsigned long *int_map, mask; unsigned idx; hwaddr addr =3D chan->vmbus->int_page_gpa; - hwaddr len =3D TARGET_PAGE_SIZE / 2, dirty =3D 0; + hwaddr len =3D qemu_target_page_size() / 2, dirty =3D 0; =20 trace_vmbus_channel_notify_guest(chan->id); =20 @@ -743,7 +743,7 @@ static int vmbus_channel_notify_guest(VMBusChannel *cha= n) } =20 int_map =3D cpu_physical_memory_map(addr, &len, 1); - if (len !=3D TARGET_PAGE_SIZE / 2) { + if (len !=3D qemu_target_page_size() / 2) { res =3D -ENXIO; goto unmap; } @@ -1038,14 +1038,14 @@ static int sgl_from_gpa_ranges(QEMUSGList *sgl, VMB= usDevice *dev, } len -=3D sizeof(range); =20 - if (range.byte_offset & TARGET_PAGE_MASK) { + if (range.byte_offset & qemu_target_page_mask()) { goto eio; } =20 for (; range.byte_count; range.byte_offset =3D 0) { uint64_t paddr; uint32_t plen =3D MIN(range.byte_count, - TARGET_PAGE_SIZE - range.byte_offset); + qemu_target_page_size() - range.byte_offse= t); =20 if (len < sizeof(uint64_t)) { goto eio; @@ -1055,7 +1055,7 @@ static int sgl_from_gpa_ranges(QEMUSGList *sgl, VMBus= Device *dev, goto err; } len -=3D sizeof(uint64_t); - paddr <<=3D TARGET_PAGE_BITS; + paddr <<=3D qemu_target_page_bits(); paddr |=3D range.byte_offset; range.byte_count -=3D plen; =20 @@ -1804,7 +1804,7 @@ static void handle_gpadl_header(VMBus *vmbus, vmbus_m= essage_gpadl_header *msg, * anything else and simplify things greatly. */ if (msg->rangecount !=3D 1 || msg->range[0].byte_offset || - (msg->range[0].byte_count !=3D (num_gfns << TARGET_PAGE_BITS))) { + (msg->range[0].byte_count !=3D (num_gfns << qemu_target_page_bits(= )))) { return; } =20 @@ -2240,10 +2240,10 @@ static void vmbus_signal_event(EventNotifier *e) return; } =20 - addr =3D vmbus->int_page_gpa + TARGET_PAGE_SIZE / 2; - len =3D TARGET_PAGE_SIZE / 2; + addr =3D vmbus->int_page_gpa + qemu_target_page_size() / 2; + len =3D qemu_target_page_size() / 2; int_map =3D cpu_physical_memory_map(addr, &len, 1); - if (len !=3D TARGET_PAGE_SIZE / 2) { + if (len !=3D qemu_target_page_size() / 2) { goto unmap; } =20 diff --git a/hw/hyperv/meson.build b/hw/hyperv/meson.build index f4aa0a5ada9..c855fdcf04c 100644 --- a/hw/hyperv/meson.build +++ b/hw/hyperv/meson.build @@ -1,6 +1,6 @@ specific_ss.add(when: 'CONFIG_HYPERV', if_true: files('hyperv.c')) specific_ss.add(when: 'CONFIG_HYPERV_TESTDEV', if_true: files('hyperv_test= dev.c')) -specific_ss.add(when: 'CONFIG_VMBUS', if_true: files('vmbus.c')) +system_ss.add(when: 'CONFIG_VMBUS', if_true: files('vmbus.c')) specific_ss.add(when: 'CONFIG_SYNDBG', if_true: files('syndbg.c')) specific_ss.add(when: 'CONFIG_HV_BALLOON', if_true: files('hv-balloon.c', = 'hv-balloon-page_range_tree.c', 'hv-balloon-our_range_memslots.c')) system_ss.add(when: 'CONFIG_HV_BALLOON', if_false: files('hv-balloon-stub.= c')) --=20 2.39.5 From nobody Wed Apr 2 13:32:46 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1741243434; cv=none; d=zohomail.com; s=zohoarc; b=IdUnkvKM6XuB3OJazgoIZHM+lF7pxH0UpUmQ1kN/6FlBJhsjqtyb4fu9GcTwkHyEi0FyeY7j4qODCp35uT6aHxOx3Zp8yM+AwEsCO7M3N/0s6F1GcoyWiAPbG6iJDLn+aSLNi32NcQeKC8DWeWGhcV2igSAllloTKUmaV1xZTKY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741243434; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=u8ypN9EJmJMZh7TFGUmek2PnxWXl5cKb09yiek0NZ2U=; b=Q3sqVmhJe+tBiQ30inj6rm3UeQd8bL008cXnZlWP+6LiBKesgYONAkDVqwyOgNGXhWydp0V/5trFweYnff4VzsAMD4t+AHDz63m5Oz+JxBae0LIGQo2mXm0CdZLNVatl5lbngSjBmmRLbf/NuHisqOsnOttEjQY5lGeFC4iYiv0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 174124343411986.09279562029656; Wed, 5 Mar 2025 22:43:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tq4va-00026N-Up; Thu, 06 Mar 2025 01:41:54 -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 1tq4vF-0001zG-RI for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:35 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tq4vD-0006Fg-BW for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:33 -0500 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-223959039f4so4517975ad.3 for ; Wed, 05 Mar 2025 22:41:30 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22410a91cffsm4769355ad.174.2025.03.05.22.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Mar 2025 22:41:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741243290; x=1741848090; 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=u8ypN9EJmJMZh7TFGUmek2PnxWXl5cKb09yiek0NZ2U=; b=dBEFF7lurAx+It2cAt4WxRomZ9F/Mi4V3f8PoiZ+nTMcx2dubmM1EshHfudoxfdTAM nVfqxOMtRRGxQ4htTiOmaaLhYqk9sSB6FrfjLGFuKn5rT16HIPAAtyHwWvdI/SHIw/zJ yUghuvw+DxwZpTwUe653IFZpkFnY5s5g2WYNTLkApxlSZbIYY+RoUvWp56cRoXm78joE 71iOlZ8RX83+cg0k1vOxdIgNuNVD07eXYLYb8y3Nn/a4KoZwmxWui5G9LY48qE/nlYLZ v1M5oWHkUtNNxkDZ8/ZyI09jrEMwV5AmmssiVxm3Fw+9K4EnJWA/9J9ew2Ghc8JYQb4L a/Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741243290; x=1741848090; 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=u8ypN9EJmJMZh7TFGUmek2PnxWXl5cKb09yiek0NZ2U=; b=OsBK7UoHeCtwAdZLeN8PfeqWRw8ql6HL01RoOKkpcygedDp3AMvw06uEFLsCZeNUub bcgFhzVIDgsbBEOR41r0zCcqF1XeIeeNJoZ4degm7OX8i8PrX3JX7KK4Hoiz5TkNxD+j b9RHFJEGes2GYgMxWHn8FfR97rF42zlAHzhNg5WGVuXOG2XBS5QRGdkvJyjt4kM5QXBZ FZm0rj5erYyp4jNRlPipTy9uaijqVbMIDSCqo+Yb4VZorqic/2z4n1GJCexH9qJ1QCOr PHXlBdPQek3unwAWD7JbhRAvKF7I9Flx74/EhpdAPHldS3KPaEapeBWg7iOgZDSVSk5s J8tw== X-Gm-Message-State: AOJu0YxLJWqszJs0AvmPnKmiOyfr2F0a6qpZ8bARll8z6lpzV0uE5wC1 mHZKJeHPhQYa4XlQ/ku+93GdBVDuBDqFz7rO+uPMSNrkMaXZi/fot20HqfFsv4dEZsGSbuQYvf9 1 X-Gm-Gg: ASbGnctv/5f8Vi7pYHEc1IUo7crJ3qZPMx8StbmdnjZTKDLBHV+9vDahmwNTCF06A6L qAiSyLHDtLdcLqYytG59osCFmJZUQvl/fuaV63kRCmSwV/mcox+FZGLWfwJl6dlr6CkoE11tjLB QHH9odAwTyEEkHPcBwWkyB7S/RRmRgymV+7UpMbox9UnlWfVLo8P3lPV+MHwswesz6fZOwwPA/M W+WAGmyQZ/r7ObfdTmPC5fYPxryLsklhHg/5QwE6vwxfVqnFqwwWxGMr4+cgjhfsENnc3nox+U/ rPkb8Pua/tMxqcw2Hsndk6+b80YgXy2ZcpklfNjjQAVf X-Google-Smtp-Source: AGHT+IGn4dWWM597zT6vcugXa0NyDMgvYpsWMNNAPMD1rOUygPXJy4ZLiCcv5xBAeUFD0Zu/7LztKQ== X-Received: by 2002:a17:902:e752:b0:223:3bf6:7e64 with SMTP id d9443c01a7336-223f1c96f97mr108234575ad.24.1741243289884; Wed, 05 Mar 2025 22:41:29 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, philmd@linaro.org, Paolo Bonzini , pierrick.bouvier@linaro.org, manos.pitsidianakis@linaro.org, "Maciej S. Szmigiero" , richard.henderson@linaro.org, Marcelo Tosatti , alex.bennee@linaro.org Subject: [PATCH 4/7] hw/hyperv/hyperv-proto: move SYNDBG definition from target/i386 Date: Wed, 5 Mar 2025 22:41:15 -0800 Message-Id: <20250306064118.3879213-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> References: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62d.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1741243435930019100 Content-Type: text/plain; charset="utf-8" Allows them to be available for common compilation units. Signed-off-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/hyperv/hyperv-proto.h | 12 ++++++++++++ target/i386/kvm/hyperv-proto.h | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/hw/hyperv/hyperv-proto.h b/include/hw/hyperv/hyperv-pr= oto.h index 4a2297307b0..fffc5ce342f 100644 --- a/include/hw/hyperv/hyperv-proto.h +++ b/include/hw/hyperv/hyperv-proto.h @@ -61,6 +61,18 @@ #define HV_MESSAGE_X64_APIC_EOI 0x80010004 #define HV_MESSAGE_X64_LEGACY_FP_ERROR 0x80010005 =20 +/* + * Hyper-V Synthetic debug options MSR + */ +#define HV_X64_MSR_SYNDBG_CONTROL 0x400000F1 +#define HV_X64_MSR_SYNDBG_STATUS 0x400000F2 +#define HV_X64_MSR_SYNDBG_SEND_BUFFER 0x400000F3 +#define HV_X64_MSR_SYNDBG_RECV_BUFFER 0x400000F4 +#define HV_X64_MSR_SYNDBG_PENDING_BUFFER 0x400000F5 +#define HV_X64_MSR_SYNDBG_OPTIONS 0x400000FF + +#define HV_X64_SYNDBG_OPTION_USE_HCALLS BIT(2) + /* * Message flags */ diff --git a/target/i386/kvm/hyperv-proto.h b/target/i386/kvm/hyperv-proto.h index 464fbf09e35..a9f056f2f3e 100644 --- a/target/i386/kvm/hyperv-proto.h +++ b/target/i386/kvm/hyperv-proto.h @@ -151,18 +151,6 @@ #define HV_X64_MSR_STIMER3_CONFIG 0x400000B6 #define HV_X64_MSR_STIMER3_COUNT 0x400000B7 =20 -/* - * Hyper-V Synthetic debug options MSR - */ -#define HV_X64_MSR_SYNDBG_CONTROL 0x400000F1 -#define HV_X64_MSR_SYNDBG_STATUS 0x400000F2 -#define HV_X64_MSR_SYNDBG_SEND_BUFFER 0x400000F3 -#define HV_X64_MSR_SYNDBG_RECV_BUFFER 0x400000F4 -#define HV_X64_MSR_SYNDBG_PENDING_BUFFER 0x400000F5 -#define HV_X64_MSR_SYNDBG_OPTIONS 0x400000FF - -#define HV_X64_SYNDBG_OPTION_USE_HCALLS BIT(2) - /* * Guest crash notification MSRs */ --=20 2.39.5 From nobody Wed Apr 2 13:32:46 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1741243350; cv=none; d=zohomail.com; s=zohoarc; b=AKmOHtq5kjqGYJfXCeuXCeNoXgqSDXYsL1+HTisHIQgMvcIAa/pW913s413pTyckkaB5MUGED7fHDNGhdlPBJJ/uG/NuSpJYQ733pg54jV57EbF87pMLHt47FPkaAf8FPdForyldHEdoH3t8jCQyqO+YdXsoPWGE2IWCL8Y1Eqs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741243350; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=GuCnrkSUR2vP9owV0mamaIN+gV2Z3JtFzZ89seSCxZQ=; b=bRqReKlg++hQ9lpopK50sjA/iVxWAW+U2rnugxmI1hgVp8G8Lxvy3snZmZLUOTC+ooArs5jApu4JHRn0DFkGHfAwA6TLUcMwsTXQBPRkaqTRpOD5YfxxQpIXp8dckaWofMnNJdGn4xlCZaqCnCZGMhGNX25qW9EmzTBDVe/uevE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1741243350533644.8533994251848; Wed, 5 Mar 2025 22:42:30 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tq4vb-00026b-0q; Thu, 06 Mar 2025 01:41:55 -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 1tq4vH-0001zP-MC for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:36 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tq4vE-0006Ft-6X for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:34 -0500 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-2239f8646f6so4113425ad.2 for ; Wed, 05 Mar 2025 22:41:31 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22410a91cffsm4769355ad.174.2025.03.05.22.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Mar 2025 22:41:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741243291; x=1741848091; 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=GuCnrkSUR2vP9owV0mamaIN+gV2Z3JtFzZ89seSCxZQ=; b=lTAaet5w11kpsa0a+RfuLrqWOKFoWuZvWIPt/Uuzu3GJ26QFdK32qdQl+IzNqX6CKH DI/ChGTA6Cnbiz8q4u+WK337O+nRHfZqsE/pOmfNML8pnGum9HufhhPZ4R3U+mBmcz6/ 39GqK5fT6b6ynT1A9uSEbMDr4PtPf3ZdjN/L9Wa9HNaCk0uTfDv2rphN1WZsLNVH9AI4 y+65lHrFslef3ayCGUp5dJsX772eFeKOAtDRcmPBhWjAcA0FN1fuu5s3cJHN7hqFmOKr dJtvgFnyrg5GBgX37MOFSnp3oFdKNFVvNQyDsGfvrwdfqYObEFsfzZ8E0kFlqnClFITY PkUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741243291; x=1741848091; 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=GuCnrkSUR2vP9owV0mamaIN+gV2Z3JtFzZ89seSCxZQ=; b=CUxmI/VX132CpIgmmpw8TCA0bh+jLeYFWBGjJG2GcQjJvm8jNIVXAIW9QteJhObdov wXVyaKVHd3/ZpZQk64/6sqbD5FanIbIKZX4M0AYGHcclKJCJIjxqAh4ir9ZVAki4YwLN +4kP8N0BC7XQfW0yFN8u1qRSYWyXpRUbJyZV7x4swti39MxmZL8lPzwDQzbk3kVvVakw A10GRAbuuiiUUkB5ntOIObhfcc6ncPkiVgIxycCS6Wxuw4LEVeqiqFSQMccCrFNx/yFf GK88e2Ra5MSKdW1ueDvZT86NXbXT/4xKkKEMDhzM5msWlv/LOHA9ClchY7TI2THt8UYF tL6A== X-Gm-Message-State: AOJu0YwLYpUdon3XlaovXknWcCdvyWfS/JruBgCr9l05wWM0NIUdoHt2 nmBcR4grmdZ8lTQu0vX4V4HibFHlYJsy9AhWk6PSFFU24U7DVc3ym6E6OswQqbmG5kS70l4mxwm s X-Gm-Gg: ASbGncsKg3KYd2E/1MkqWAzRU9cauLy1t8bYhPLWydaZRE+WvhW4V6Ijb2D3Thvu1y1 0wp0aMuOu953Qr96LUqSg+bPNDU4t3EQosepEtDZHBSVr/3hqTUNqrmmnTWO9TPmHWYKkUf4cyB TI9Bd8RqMGIMcK1w9GiZUY5RyO79ZjFJWgW29+xZiRyN4m65pJu5G7kprtHBEbAK5KFod7iIFbT 8II+YlxUsgThE0gNDKwIX1pysOtpqv7Bdfh2x6it6/93zBcHlj09DMxW3wBucaN1SZp1Wr73msR JLmnkCHmnijpCgyNAb2PQS4QyYGSQ/ZYcD0Yp4YJ1YRp X-Google-Smtp-Source: AGHT+IHmSsM1kkDcmTxoFOVsBQF1tnSFXKKhw9nMkZpecN08X8sctJUMqzo/rUf0aG8IqTUlNfwwtA== X-Received: by 2002:a17:902:f606:b0:223:f9a4:3f99 with SMTP id d9443c01a7336-223f9a457a2mr79524075ad.29.1741243290828; Wed, 05 Mar 2025 22:41:30 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, philmd@linaro.org, Paolo Bonzini , pierrick.bouvier@linaro.org, manos.pitsidianakis@linaro.org, "Maciej S. Szmigiero" , richard.henderson@linaro.org, Marcelo Tosatti , alex.bennee@linaro.org Subject: [PATCH 5/7] hw/hyperv/syndbg: common compilation unit Date: Wed, 5 Mar 2025 22:41:16 -0800 Message-Id: <20250306064118.3879213-6-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> References: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62e.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1741243352861019000 Content-Type: text/plain; charset="utf-8" Replace TARGET_PAGE.* by runtime calls Signed-off-by: Pierrick Bouvier --- hw/hyperv/syndbg.c | 7 ++++--- hw/hyperv/meson.build | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/hyperv/syndbg.c b/hw/hyperv/syndbg.c index d3e39170772..f9382202ed3 100644 --- a/hw/hyperv/syndbg.c +++ b/hw/hyperv/syndbg.c @@ -14,7 +14,7 @@ #include "migration/vmstate.h" #include "hw/qdev-properties.h" #include "hw/loader.h" -#include "cpu.h" +#include "exec/target_page.h" #include "hw/hyperv/hyperv.h" #include "hw/hyperv/vmbus-bridge.h" #include "hw/hyperv/hyperv-proto.h" @@ -188,7 +188,8 @@ static uint16_t handle_recv_msg(HvSynDbg *syndbg, uint6= 4_t outgpa, uint64_t timeout, uint32_t *retrieved_coun= t) { uint16_t ret; - uint8_t data_buf[TARGET_PAGE_SIZE - UDP_PKT_HEADER_SIZE]; + const size_t buf_size =3D qemu_target_page_size() - UDP_PKT_HEADER_SIZ= E; + uint8_t *data_buf =3D g_alloca(buf_size); hwaddr out_len; void *out_data; ssize_t recv_byte_count; @@ -201,7 +202,7 @@ static uint16_t handle_recv_msg(HvSynDbg *syndbg, uint6= 4_t outgpa, recv_byte_count =3D 0; } else { recv_byte_count =3D recv(syndbg->socket, data_buf, - MIN(sizeof(data_buf), count), MSG_WAITALL); + MIN(buf_size, count), MSG_WAITALL); if (recv_byte_count =3D=3D -1) { return HV_STATUS_INVALID_PARAMETER; } diff --git a/hw/hyperv/meson.build b/hw/hyperv/meson.build index c855fdcf04c..a9f2045a9af 100644 --- a/hw/hyperv/meson.build +++ b/hw/hyperv/meson.build @@ -1,6 +1,6 @@ specific_ss.add(when: 'CONFIG_HYPERV', if_true: files('hyperv.c')) specific_ss.add(when: 'CONFIG_HYPERV_TESTDEV', if_true: files('hyperv_test= dev.c')) system_ss.add(when: 'CONFIG_VMBUS', if_true: files('vmbus.c')) -specific_ss.add(when: 'CONFIG_SYNDBG', if_true: files('syndbg.c')) +system_ss.add(when: 'CONFIG_SYNDBG', if_true: files('syndbg.c')) specific_ss.add(when: 'CONFIG_HV_BALLOON', if_true: files('hv-balloon.c', = 'hv-balloon-page_range_tree.c', 'hv-balloon-our_range_memslots.c')) system_ss.add(when: 'CONFIG_HV_BALLOON', if_false: files('hv-balloon-stub.= c')) --=20 2.39.5 From nobody Wed Apr 2 13:32:46 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1741243442; cv=none; d=zohomail.com; s=zohoarc; b=J4fcWrnIYw4ZhU9MOyJCPH1JAAa5KLX2hjo2xNqd7pTohfzjNd8RQOeyQsJBwRLsQEziKYuCGjUcKDdvKC4Kq9Uz1wyIQvqf5xFWw2qMmUOjanJzGD19aATzxj4u8OsR8xOjN406yxvMIs+AWYPDj4S8rwmR6mm7mr7FsU1d65I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741243442; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=TnhPiWQ46KHFDBAFB5FNYntK+UjbBUc/XRUUAjHcGsQ=; b=DUcE6OqMLTTDNn0HTCZVUSP9eYvetGMcAjUnr4tGpooNh9xH2uD7CxY2lMBnReioGLSvq6CQ2hT8uTobWetlobE8YA1i5dOY8M0wQZBAA8sMsh/7bYxbj8feZf9+WNeCAiB9qCsF+T65KlWzzkVH3/Hn9S7Y9OYANkGHGgdRw9E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1741243442825940.1514507844892; Wed, 5 Mar 2025 22:44:02 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tq4vZ-00026F-3M; Thu, 06 Mar 2025 01:41:53 -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 1tq4vH-0001zO-M2 for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:36 -0500 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tq4vF-0006G3-Dp for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:34 -0500 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-2239aa5da08so3616255ad.3 for ; Wed, 05 Mar 2025 22:41:32 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22410a91cffsm4769355ad.174.2025.03.05.22.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Mar 2025 22:41:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741243291; x=1741848091; 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=TnhPiWQ46KHFDBAFB5FNYntK+UjbBUc/XRUUAjHcGsQ=; b=SF60Dl6ueLNkAkSKXCFm9f/szUvIVcBhKIxIkdN/pmO3FKEHUGAag7VynKlKOSSaTk Xy7bI5taunD1MNToSBWOb8HiJ2j0SDX5hY/lk7vqhGmyZTXhjPw9PCzkzThGM98yzmEd Hf3lQDoAP77gjn3/nEnQAfiqKaIry2FCSiO2jJ8yNs9P7ChBP/JsJptwnw/5b4gKBmdO 5i0ZPd7Vn0SFpE6aQ2manyi0QVzd3h/BYh1toxK3grvVO7UnBRVA59Hedb6uH2J3C79t f8woBVfkkcpYBWjQaIvlFW4xgRYCLruadhqsTLsFeNd8TQ1N2P4AK6zXvtfEIbbor6cv PUEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741243292; x=1741848092; 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=TnhPiWQ46KHFDBAFB5FNYntK+UjbBUc/XRUUAjHcGsQ=; b=jtJfd9OUrellBgwctHEwEic5KNmUSCMjYjJK0Z6kRxEm/BLHNQOSMTP/UIZlV5iTQx uuxtnsuOXLZqPPESIhvEa7IH64EZVyrjyVxiNs3ZzRX1QyYx+GcZiHvNuY7RPSm85T71 IkZCdt+cZYh9erdJ59ReYaJtcivU5YzWo1GrmZ1Clx+OOj0J4tYt4YcUopy7Y8OM71eb ow/Pz3sigtvJZZd/2Ziu4ScSAmsJJmYzHvF53mnzBvXvdDc+fUtQYLFlBvgRWTxU1BOb w7Ar5J+1kjmi9ghtuQosviaQEmLnU/VQor+fDnyWotnHhzG9RTln8ynxO82QnDvQzNoZ C6Yg== X-Gm-Message-State: AOJu0YwsNOj9+L7q8pEmR2CccKJo/zJUuLqFQO8VTji+BZEQonQTThFx TPkp7x4SaZEif+OjcLwD0fqicZZFI0e0ch4gv5wYW49m0igRpnVeOc9AtWxVe2sohjFbjO6zCyQ N X-Gm-Gg: ASbGnctuwOyX2KRjIoW3C1vai4kbjcIj4vlKu1QAzp2EAVcJESPEd6dGKjA3umS7zt+ QHcwPsN+AjL1gsWsWtib1stRRXYxg3Zfv63apgayQyHXhNpnH9GXqdqg+LsHQ9Wtrpo8IEpCmL3 tzWsb25PcBhZYRqxgcgx4UE3br7Zs9UDMN56FjV5tBIUq6iQowBwy3bSTblc18aQkInEOsXM1mm BCPV1KSMUo5euApWhUTtWCox9V9C46nkrEzGBvLugOMuBf1tDcXAhwG8dUk7XezMGf7A4stvG/3 rAnRzO3dq4d638HQbwBsLhb4u0CPjCSL65fx0joQYOIH X-Google-Smtp-Source: AGHT+IEq64VAzi+4aQJPN7hRWSuCMxEBlLQ6WpVavzM/G3w68jHWfj5WK0DeS8abR956/Zd3+Yllmw== X-Received: by 2002:a17:903:19eb:b0:215:b1a3:4701 with SMTP id d9443c01a7336-223f1cd9503mr98970205ad.13.1741243291712; Wed, 05 Mar 2025 22:41:31 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, philmd@linaro.org, Paolo Bonzini , pierrick.bouvier@linaro.org, manos.pitsidianakis@linaro.org, "Maciej S. Szmigiero" , richard.henderson@linaro.org, Marcelo Tosatti , alex.bennee@linaro.org Subject: [PATCH 6/7] hw/hyperv/balloon: common balloon compilation units Date: Wed, 5 Mar 2025 22:41:17 -0800 Message-Id: <20250306064118.3879213-7-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> References: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62d.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1741243443207019000 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier --- hw/hyperv/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/hyperv/meson.build b/hw/hyperv/meson.build index a9f2045a9af..5acd709bdd5 100644 --- a/hw/hyperv/meson.build +++ b/hw/hyperv/meson.build @@ -2,5 +2,5 @@ specific_ss.add(when: 'CONFIG_HYPERV', if_true: files('hype= rv.c')) specific_ss.add(when: 'CONFIG_HYPERV_TESTDEV', if_true: files('hyperv_test= dev.c')) system_ss.add(when: 'CONFIG_VMBUS', if_true: files('vmbus.c')) system_ss.add(when: 'CONFIG_SYNDBG', if_true: files('syndbg.c')) -specific_ss.add(when: 'CONFIG_HV_BALLOON', if_true: files('hv-balloon.c', = 'hv-balloon-page_range_tree.c', 'hv-balloon-our_range_memslots.c')) +system_ss.add(when: 'CONFIG_HV_BALLOON', if_true: files('hv-balloon.c', 'h= v-balloon-page_range_tree.c', 'hv-balloon-our_range_memslots.c')) system_ss.add(when: 'CONFIG_HV_BALLOON', if_false: files('hv-balloon-stub.= c')) --=20 2.39.5 From nobody Wed Apr 2 13:32:46 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1741243350; cv=none; d=zohomail.com; s=zohoarc; b=gA4WdJd6mxZYYjO1u5xc2MBlLh4ZMPPk18zOdD0TRVI4eCfP+8tFo2+eN98rUNRtt8/LiicrADmjGQH+fKrtHSv7Fy0UHbIH0iFlmlLmJImVkQpSWoI0bQj6xaSVQ81dQ9IcQ38pNkoOkoK0tal+bBdFbH1q/Kghe7JvhrYWbTI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741243350; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=KS1pyoPrhLTMjTQ7DxzuSKRnXO6pGHCc8r+hitBpHy0=; b=ULhIGvJvqIqoC139E5D49SKbQGuok+zMZ7794uq/ce/+anqdh1ePhGEs+JLZfLLTnjERfQHPdezoWxeEOXRw2vMT+hMtBNIQx5xQ3Ppmi1YVGRPgzcS6UPpKUzh2b8NHoqkeeHZZtCo/MC1GW6Mj7EIIHb1CkV6iyYyI8wJFpWI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1741243350345225.19861435957807; Wed, 5 Mar 2025 22:42:30 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tq4vj-0002AR-6D; Thu, 06 Mar 2025 01:42:03 -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 1tq4vJ-00020W-Ce for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:37 -0500 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tq4vH-0006G9-5E for qemu-devel@nongnu.org; Thu, 06 Mar 2025 01:41:36 -0500 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-224019ad9edso6763075ad.1 for ; Wed, 05 Mar 2025 22:41:33 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22410a91cffsm4769355ad.174.2025.03.05.22.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Mar 2025 22:41:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741243292; x=1741848092; 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=KS1pyoPrhLTMjTQ7DxzuSKRnXO6pGHCc8r+hitBpHy0=; b=iAKIq00fwKGtSQ2brdcrzmPj48Q9O47dRbv5I3Ou7EVRru0DVJMo20num14T05ji6y HrYTEWkq51C0nHLRFm7VfW0MM6fP4tekdxRMxm2uppMGsaWlxZmMIAxu9RCwXqMEGURa HqkhjfM53vc0LPNk6te/8PDZNIp8G0lHgx0Rcr9tvJJGaCa9z3knDN082yumurmmo907 mc+XtbkySz7T6vRdg5XWGhRfsARQeck9PKKI09QD8aEpevqS2cRwjJvdRy9D8THeaSdA McA76vH31FTOMf3UnV9VzuW5IhQxKi8/y4bK9A9m0SUdDGGK60Q19hIh/MKcLA05SBv3 PFHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741243292; x=1741848092; 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=KS1pyoPrhLTMjTQ7DxzuSKRnXO6pGHCc8r+hitBpHy0=; b=kBiTKPBaV6NAu3N6WTSHZdxCeRKhh1OgphCL9skduMjXcOPG7kK3E2rCztyRqZd0bu NGMXX6s01QauP1WKOhixHHqnoeeSdMOEdfmim8AzK6Xp2E/d4vXPnrwdg+IASf/KZqof G7zbzy4GjmwhSoi4iGviZQsc4xV1l8WSGCJDye5I4NXQy34WBfxFYByjcThc+2GvloW3 Xz7B7fHvmkULu6muw+YqC5gjdjvDeDuWickp1Rc8syajFTiaMzgJDFfpRGrVkH4C3/bI op4KTg5pUog3rBYC2wMaaIGOxlgjuF4GSo8lHFIzxGMsbh99yc7VqaCxTY5i2dUr0xlo 617w== X-Gm-Message-State: AOJu0Yz1717YpH73bLaASVjsB8AKCCyxaxvy0yIMGLqqSbyxI39J3QgZ sYNg9MV/Ebkj6+jRn0s7P5cZuALJdV/CnrAxNlpzbhnmtAXWEd2QhvjvRLABmukddJj0eYnIkGA h X-Gm-Gg: ASbGncuZRlKkUodvDf930buzMF+4dtrvWWkXLuo5ZFGmvyU6IspZhQmg7vYZAhCrcLt HysgDnsVVU7kRFIYEsowfQsIqznle5POhOCpmrgDXnBKyFqobzvZXFGyUvr2c+OYDvD/eQOIw7L wQUbzoLCqhsRcyWSctAYh+PxgU1rpD+RLK6P8QArkTQWxhGwjduaAxxQRakzn6+IxXNbhJ6hmEJ 9q2C8HhdJ0LEncccaVDKVvyZnKSwPAMPx9d17CG6+zthzC6WlyvM6w38hDQH0it+U1CzvP9L2FU 9J2jfTOLx5Za3+iEk2APiBMqk9AogSIW6EFZScGOeoXR X-Google-Smtp-Source: AGHT+IGXDmDFVP1/sw76lEJlHoFvgFi96AID39fEf8BwL58Sfr1TKu2UoT9IxZqKvUZKhteDcaLw6w== X-Received: by 2002:a17:902:d4c5:b0:220:ea90:1925 with SMTP id d9443c01a7336-223f1d20313mr105946735ad.35.1741243292659; Wed, 05 Mar 2025 22:41:32 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, philmd@linaro.org, Paolo Bonzini , pierrick.bouvier@linaro.org, manos.pitsidianakis@linaro.org, "Maciej S. Szmigiero" , richard.henderson@linaro.org, Marcelo Tosatti , alex.bennee@linaro.org Subject: [PATCH 7/7] hw/hyperv/hyperv_testdev: common compilation unit Date: Wed, 5 Mar 2025 22:41:18 -0800 Message-Id: <20250306064118.3879213-8-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> References: <20250306064118.3879213-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x635.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1741243351732019100 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier --- hw/hyperv/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/hyperv/meson.build b/hw/hyperv/meson.build index 5acd709bdd5..ef5a596c8ab 100644 --- a/hw/hyperv/meson.build +++ b/hw/hyperv/meson.build @@ -1,5 +1,5 @@ specific_ss.add(when: 'CONFIG_HYPERV', if_true: files('hyperv.c')) -specific_ss.add(when: 'CONFIG_HYPERV_TESTDEV', if_true: files('hyperv_test= dev.c')) +system_ss.add(when: 'CONFIG_HYPERV_TESTDEV', if_true: files('hyperv_testde= v.c')) system_ss.add(when: 'CONFIG_VMBUS', if_true: files('vmbus.c')) system_ss.add(when: 'CONFIG_SYNDBG', if_true: files('syndbg.c')) system_ss.add(when: 'CONFIG_HV_BALLOON', if_true: files('hv-balloon.c', 'h= v-balloon-page_range_tree.c', 'hv-balloon-our_range_memslots.c')) --=20 2.39.5