From patchwork Thu Mar 6 06:41:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14003889 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0B1D1A0BFA for ; Thu, 6 Mar 2025 06:41:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243289; cv=none; b=X021PKohqyMwO9zab4k0Y7hukIL+8Q2Wx05IsCibd6EtEqvGn1at09ZFfLb2rLt3KrtAYSFaAsCsVHD4E2XzbFNqKwH0hgDKeKPQtnpQWdQPMHQKk9gKhD0pBiFCXYcFPYXEa7hFWAkKee/zVIjXmKQsTt/9WKzPj+KoNNzBCog= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243289; c=relaxed/simple; bh=bMUfjPvXfN/tKkBw/WVniDJmAgFeqLIxrtzwYnfSHg0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dv7sfQCwpLp4L+OQQW1zdo/tAmXY+k5sR8tiU317p34EWfrzdbQPMfI2a4s8rYthWBM54IKGTnV5aJbyDvAMhdtxxSQdT1inlxUlKN1Ld+tqPngnFIL2JmtNImF1QMBGnlGsVoG57YzGRqgonlq1wkZF97/OlLWG7CsC0DCDGC4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=v1E0rkRS; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="v1E0rkRS" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-223959039f4so4517285ad.3 for ; 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=1741243287; x=1741848087; darn=vger.kernel.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=v1E0rkRSrXA7hiCgxnWaVNlQg+K4dmKLFKPeM1wizGHmU0C2Q2yy41akil1Mb5p9hX 1AisQ989+ZLpCxbazUt+a+WG6rCzevIvUZkG1IRD4a1eppfJ/rw8OJRoeAkQxomdEzSi XaVOWxQWF50BB23SYM/mpt3zZzjBsmqxwt0zLCG/kg5VmGJFnF5UvfVEq1e0+3L+RKqA Lbu85niU3UIITiTJ9yTlkd6ML0zaKORI+FUguR3mXX71YhAn7Cr9RccQY+s1iiszr9VU tNaX1uDaGnvSsIiPZlLc6kUBq9eeVTRAaqRUJc2A++JYBQjP2eEeh8yiH8lVA916gTqD 5pXg== 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=fIULCLewr50Mv9TsJyYmKZPeSZ5IxXjwxU11ULsKi0Mlsx5iv7QPGIZs8EqzWCu1Rr ZeV67o8Pk9kHLfDb1N5eV5C0h1BiEI/ZVvaMLF5id/rCKGaipP7tfWSIlmPdDCrJxjRP GYQjjZrgHR0/wxeA03EY2sShgAY8z2tKx/gxSdTFcmxB6IyLkRxiUIN1AGZPn3C7ZS5e g3T8eNWiHlEDfHQKYU1Q89FppXbGdVA8OlCW6IGgzOBM8/atujnq/4mSarjY6kOqwpti AygCLUeUlLrrBUVUgC5P7hk3PUJUh83RepohJeOcnT+fu0vZYCM0u0QFGx1/z/u2gkIH dKIg== X-Gm-Message-State: AOJu0YzGL51YbyYAENNuc9cUYY16MhHdK5uKSwRcgcdOG623Nfk74sXt zuinojQn8gdTqBdkdJKlLpTueF3eT9VP7HyUS/K/uDyHY39SelR+EE30ctsfsY4= X-Gm-Gg: ASbGncsLHQ77PYyUhHkSthcPLqcxEUaTyarK+0wPTFoOmHFvrdtrMaAxKsLNcIt4CBc J+rE+GqqCilkeak9xoy4yE5kV/T09hHJwHyCqZEPWLn6HNtQIrXX6RelMtI1Y/K3YeUMkfoMpM9 XdZMeO2n2v0gBG9mEuVXAAlIpX3aOHLRPGmMd4R5uN+tA7qTBeUvLgiMs2yRech1KJ6j8dy8Bpa jqS15JfUsCXn4bQ2PMoaC9d38lq+1Ci29NcUrGfnzkj4yPdVlp0XSKX27rKDyj93GXTCUsEM6Vo STV26itm0NYAi/lkhWu7+AioOJVksGgm0V4Jmk28W+DI 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) 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) 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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('hyperv.c')) specific_ss.add(when: 'CONFIG_HYPERV_TESTDEV', if_true: files('hyperv_testdev.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_false: 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')) From patchwork Thu Mar 6 06:41:13 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14003890 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B87E21A238F for ; Thu, 6 Mar 2025 06:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243290; cv=none; b=o7UiNTXpUaGlSMt/Mmk3YTgn7M6S+ZmuCQGnjZHh4LwTcyJtRrVGWBiKKFwOuMhOMPEcVBIOFUen/cBANRJQzBteiZ1otFFKeTEMoXjJZp6w0iOvSGvEOvoxwu7YexTGtol4IFIH00Tc0umHZ7T18pGH2dgEUaOCJ8UMMYKOGTo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243290; c=relaxed/simple; bh=/XpCnz1OMebVgDSh25ZupEgZ9N3/JKVcvUBHI1BUfVs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lyCe5sw4ppMu2YNcXfQ/NGFTEpSH3k2RH4GrzpPxf12OrTTOa9IT6/SCkSmx4QFOycxHH11g9qBMsZEU0GhfBb0HvZODCFY7cM1yvIJSnNUn3l5f/VO78utFQUFZbgloPMVcy+Q4DqO3Bk5E4Y3jbvp5qvr5oPQd/zt0yYQeq30= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Nv30tyQ2; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Nv30tyQ2" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-223a7065ff8so5844515ad.0 for ; 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=1741243288; x=1741848088; darn=vger.kernel.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=Nv30tyQ2oSfTEOQVp8U5yBU0EmQTjmLzssOw6CMXGIT118r5+gqfqtk4ckoBgHoXJh DI6/uirM96rFpdyZqJ5FRbNA2YNjjh/e4BXZeqiApbbR5427PNQd2vVrZZRbMYtP9s76 qYB742yo8cHafz9SsLEdNlKt78Qy1vqMw/XsoRmaL2Y6AKsw/QzMPULyZO0aSpfIsauX x4O+NJWtP3Bj8bI62mHsT2gXMxXcAk983sVq0mEYmENr8TdMZzvbFOY7Kh0I81DGLcSX ggv3pTbMBY2oflnWp72NuNFlUOKwg2WpMNHMuTjlB+tpLiKF7b64DKIxd17wc81fwYqj ZgRw== 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=FMg5yUsv54Ktqv56RivwLafL1gBr6nhofbYGLUzlpAZCzLVrmReYDkVS2C1TRtlxS+ jfPuGO8epP2GR2gkXVAIKbzz48/NItuVRKg0QJlK4vJ6PlBv+ccdb1RcYoYE/SputNeU a0IDeAVz+E3OJ6dbebSB3+UjhRDSoIXomuH2PzwsX3gMM1J+fEmhQMGFD8Va90KQxpgX l+lIoM4rbM5ltCo2dJxgc/ZOaC/B+1PMZZHhvLByeDcvybed98ABdGLaeqq/8Dc/t/rI +zt+Pqm61KjtFcjpmMIsXzFZTRz51OaMsKWlgS+S9YgHuzbmlZD8s3VWaIAww2rbo/F5 8euw== X-Gm-Message-State: AOJu0Yxa1Y/5Yh3OXEg7VMY8qTY2d9HU6EPIHBIL5neJayg5/EftblAq 8IJ0GuX4X/wV+dzWmW9ZHVlgDM6vQZP4GiccK9VaRDIN1yUZrAWB2b/+GE0dXiA= X-Gm-Gg: ASbGncssYzf7BfRvY56C1U3kZO5rRi+JFkyhdxnW65hfy27kLD61SEbthaNbVwWOAAw orZ7eHgS69RTZCMESAruQd/YbZ5yEYAy20LxZ13l3jqAw5TX5oUnV/DFcTD64zyNRRkzR+gS8Yx iib73Sor6OwcMrzvkLAFOLNzKqawnkktk6zLgrlhP2gdba9flmSW2GYHurtHzhYhwRQf9Kozddw TF9mmySNNeRnEfaegi85AvRShUCfaUs/ywIMuzE1DJ4kjmJ45Fc89qZa0JZWw8aJw0qA4/czCX4 yw+L1nTr/GsG3nhWrQX2Tc3Pd6gykt9JpP8L1NTQXxQD 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) 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) 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 -#include "cpu-qom.h" +#include "qemu/osdep.h" +#include "exec/hwaddr.h" +#include "hw/core/cpu.h" #include "hw/hyperv/hyperv-proto.h" typedef struct HvSintRoute HvSintRoute; From patchwork Thu Mar 6 06:41:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14003891 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C22CB1A3166 for ; Thu, 6 Mar 2025 06:41:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243291; cv=none; b=OezlWkpGHtAdhbEhhWUctbJKuG6QKax8WOzL8Tugm2ic5djwQRk5IaXELdHXHwZBvBbhItKsrYMOSZ6Zpouqhl1d/87PtCRjrXTVrfqxYse5SWhdSeMkJByKRsh+6F6l/GlUcCKFeWkVIUFq86kGn/2XQJjPl9Ms/jJsBNMR6oI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243291; c=relaxed/simple; bh=N9IiMExxiXgXPoqm4k5CCKl5YvodRMWS+HiDAjO9yyI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Pj4pWaWLZva7mBUcpCAU8DX8F1NI+JXm7Z2bdE8GizPieA3txxxzMGi5DQJctbgKSI6Km3iXPOwteNYw2wVqYFBtNqVBVs7TmPkH7XPln8ML+EeMr6OJtWgMfYXiog/c4EbOlieSvPsWVv88/3G0klrDFK5D1DxUsqcLaLLISTw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=jxu/em3H; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jxu/em3H" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-223378e2b0dso3622075ad.0 for ; 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=1741243289; x=1741848089; darn=vger.kernel.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=jxu/em3H5oEWQMcqZIA2daXgmxWdK5vNw5rDk9W08UY4sluL1aMqpzy+apyNwC5v0t sBo/ws0LF4znZghNoo5mMQbGjUwatW8Xw7RnyBzPYZfGVf4VbWWZcuBt3vV/Ymd9EyP7 pzK8l4DnkmjVVJ+D1K2Zfzgj5BDYBIQiB8FB9J0J56iC7Iis8BXS8jZjHRo+4UueD1b1 ZR7kgImbB+4qgqeyIzSGGA/0LacLNTmWBtooDHsDVBg410ON+iVaoNx3EYzx9u3WgXpj 4cE+RvgxSrXXcr7OFgNg/EgxiUW3RPhk+Hs7hZKfSUXCZfL9cX7ilrQ3YW7CA0cdC6ne pSwQ== 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=mw8DV2AFnfxUwN0uNX9Aec5OtknNz1A8Bx0EzbLfZVuLalXVofVZC0FuUtr7gjgRqH rJ9/lch+U1fOVxNcfgwSPcb3SM/1AgT09XG+46FxU76Bs/wuYETpO7jsYIS82lydU76L mSdswJDe5qEiexwZIXTAZMLWR9kD4tc9xT6veL8rHADuLUJen+eRjAcSr79YEh7vkk0R KUVChdjH8UBEPswV/F0KSI6rIqNgl1SVbnz2bCs5mi43YdoWGnDM1/sCWnWGabzd4c4E jzi22gMkefD/aFnhZyqBRSoREbaLAOBhx3j+uF92pbRHGeCLBH7WYAHEiKE4oMQn5WXz wC1g== X-Gm-Message-State: AOJu0YwdfFjzpmGELUmk6T5OGVCDTxlQGLWDD6tYgyO6aBCxZ4+iqJtL MhBjzV7uKFKB0swO2birJR6pguJNAmI+J2WVuX+NUSeiVLF7FoXeZsUhroP3EnamQt9eroIstJ9 Y X-Gm-Gg: ASbGncuQxSalOpS0PyR6+e+YpjH8a14IfaIrs+ZIFV+ckqEuZCLPs75tpjaBBo2pMwh Z4h1SzIwE1uxIQnTcJXXxKNKc/gwyWNRCmSmc/BbUR78SZrY4+mecCqhe56rSR8m9FYErbCIkGD S7KCVPvWcmVd2NxWpysgiePe5e4MBFG4XDVvsdQHuIm2f3GcML5yXl8uM3QPsuPVk8+GPtn7h85 rqXzQ2NhrzARr2R2J3CMnWgL91MRXA8OV49GQqSGdoMepj9sQQAH/wGeNUj9kzY6NHHQGMMxCQI fKPRwmOmq1e5CwW4umRLkqGcna9ZgR7IQrua7MXSshFg 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) 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) 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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" enum { @@ -309,7 +309,7 @@ void vmbus_put_gpadl(VMBusGpadl *gpadl) uint32_t vmbus_gpadl_len(VMBusGpadl *gpadl) { - return gpadl->num_gfns * TARGET_PAGE_SIZE; + return gpadl->num_gfns * qemu_target_page_size(); } static void gpadl_iter_init(GpadlIter *iter, VMBusGpadl *gpadl, @@ -323,14 +323,14 @@ static void gpadl_iter_init(GpadlIter *iter, VMBusGpadl *gpadl, static inline void gpadl_iter_cache_unmap(GpadlIter *iter) { - uint32_t map_start_in_page = (uintptr_t)iter->map & ~TARGET_PAGE_MASK; - uint32_t io_end_in_page = ((iter->last_off - 1) & ~TARGET_PAGE_MASK) + 1; + uint32_t map_start_in_page = (uintptr_t)iter->map & ~qemu_target_page_mask(); + uint32_t io_end_in_page = ((iter->last_off - 1) & ~qemu_target_page_mask()) + 1; /* 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); - 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_start_in_page, iter->dir, io_end_in_page - map_start_in_page); } @@ -348,17 +348,17 @@ static ssize_t gpadl_iter_io(GpadlIter *iter, void *buf, uint32_t len) assert(iter->active); while (len) { - uint32_t off_in_page = iter->off & ~TARGET_PAGE_MASK; - uint32_t pgleft = TARGET_PAGE_SIZE - off_in_page; + uint32_t off_in_page = iter->off & ~qemu_target_page_mask(); + uint32_t pgleft = qemu_target_page_size() - off_in_page; uint32_t cplen = MIN(pgleft, len); void *p; /* try to reuse the cached mapping */ if (iter->map) { uint32_t map_start_in_page = - (uintptr_t)iter->map & ~TARGET_PAGE_MASK; - uint32_t off_base = iter->off & ~TARGET_PAGE_MASK; - uint32_t mapped_base = (iter->last_off - 1) & ~TARGET_PAGE_MASK; + (uintptr_t)iter->map & ~qemu_target_page_mask(); + uint32_t off_base = iter->off & ~qemu_target_page_mask(); + uint32_t mapped_base = (iter->last_off - 1) & ~qemu_target_page_mask(); if (off_base != mapped_base || off_in_page < map_start_in_page) { gpadl_iter_cache_unmap(iter); iter->map = NULL; @@ -368,10 +368,10 @@ static ssize_t gpadl_iter_io(GpadlIter *iter, void *buf, uint32_t len) if (!iter->map) { dma_addr_t maddr; dma_addr_t mlen = pgleft; - uint32_t idx = iter->off >> TARGET_PAGE_BITS; + uint32_t idx = iter->off >> qemu_target_page_bits(); assert(idx < iter->gpadl->num_gfns); - maddr = (iter->gpadl->gfns[idx] << TARGET_PAGE_BITS) | off_in_page; + maddr = (iter->gpadl->gfns[idx] << qemu_target_page_bits()) | off_in_page; iter->map = 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) } } - p = (void *)(uintptr_t)(((uintptr_t)iter->map & TARGET_PAGE_MASK) | + p = (void *)(uintptr_t)(((uintptr_t)iter->map & qemu_target_page_mask()) | off_in_page); if (iter->dir == DMA_DIRECTION_FROM_DEVICE) { memcpy(p, buf, cplen); @@ -591,9 +591,9 @@ static void ringbuf_init_common(VMBusRingBufCommon *ringbuf, VMBusGpadl *gpadl, uint32_t begin, uint32_t end) { ringbuf->as = as; - ringbuf->rb_addr = gpadl->gfns[begin] << TARGET_PAGE_BITS; - ringbuf->base = (begin + 1) << TARGET_PAGE_BITS; - ringbuf->len = (end - begin - 1) << TARGET_PAGE_BITS; + ringbuf->rb_addr = gpadl->gfns[begin] << qemu_target_page_bits(); + ringbuf->base = (begin + 1) << qemu_target_page_bits(); + ringbuf->len = (end - begin - 1) << qemu_target_page_bits(); gpadl_iter_init(&ringbuf->iter, gpadl, as, dir); } @@ -734,7 +734,7 @@ static int vmbus_channel_notify_guest(VMBusChannel *chan) unsigned long *int_map, mask; unsigned idx; hwaddr addr = chan->vmbus->int_page_gpa; - hwaddr len = TARGET_PAGE_SIZE / 2, dirty = 0; + hwaddr len = qemu_target_page_size() / 2, dirty = 0; trace_vmbus_channel_notify_guest(chan->id); @@ -743,7 +743,7 @@ static int vmbus_channel_notify_guest(VMBusChannel *chan) } int_map = cpu_physical_memory_map(addr, &len, 1); - if (len != TARGET_PAGE_SIZE / 2) { + if (len != qemu_target_page_size() / 2) { res = -ENXIO; goto unmap; } @@ -1038,14 +1038,14 @@ static int sgl_from_gpa_ranges(QEMUSGList *sgl, VMBusDevice *dev, } len -= sizeof(range); - if (range.byte_offset & TARGET_PAGE_MASK) { + if (range.byte_offset & qemu_target_page_mask()) { goto eio; } for (; range.byte_count; range.byte_offset = 0) { uint64_t paddr; uint32_t plen = MIN(range.byte_count, - TARGET_PAGE_SIZE - range.byte_offset); + qemu_target_page_size() - range.byte_offset); if (len < sizeof(uint64_t)) { goto eio; @@ -1055,7 +1055,7 @@ static int sgl_from_gpa_ranges(QEMUSGList *sgl, VMBusDevice *dev, goto err; } len -= sizeof(uint64_t); - paddr <<= TARGET_PAGE_BITS; + paddr <<= qemu_target_page_bits(); paddr |= range.byte_offset; range.byte_count -= plen; @@ -1804,7 +1804,7 @@ static void handle_gpadl_header(VMBus *vmbus, vmbus_message_gpadl_header *msg, * anything else and simplify things greatly. */ if (msg->rangecount != 1 || msg->range[0].byte_offset || - (msg->range[0].byte_count != (num_gfns << TARGET_PAGE_BITS))) { + (msg->range[0].byte_count != (num_gfns << qemu_target_page_bits()))) { return; } @@ -2240,10 +2240,10 @@ static void vmbus_signal_event(EventNotifier *e) return; } - addr = vmbus->int_page_gpa + TARGET_PAGE_SIZE / 2; - len = TARGET_PAGE_SIZE / 2; + addr = vmbus->int_page_gpa + qemu_target_page_size() / 2; + len = qemu_target_page_size() / 2; int_map = cpu_physical_memory_map(addr, &len, 1); - if (len != TARGET_PAGE_SIZE / 2) { + if (len != qemu_target_page_size() / 2) { goto unmap; } 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_testdev.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')) From patchwork Thu Mar 6 06:41:15 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14003893 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D5941A5BB8 for ; Thu, 6 Mar 2025 06:41:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243293; cv=none; b=iy2rsDEDa0n8l3EWD8uclZjbHPuTDHeoooiD0VmAg0AlxFfkRnN1BdkmiXkGd+gWDoO9CBVpGMlWEiAASmF/sNM2fGyviVd/PIpfSqGrf0Ossq0e02x5z3VNCTTyWC1jFdbaT9O/QzuIOuwwWwkQFPV+S9a5ju6eIbbpd6ubu6Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243293; c=relaxed/simple; bh=6096i1a/iI4fVwN8JNLyH4hy1/IKllXpUvVlpgVRDZE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lNnlVP7FOqksCEVQUC105PGszMjBO3JLG31sy74sRa1KtCR0P1r5md+J+nPA/fjNELcXJrDii2O9TZrsfRKKSG5R0AkBMwQ9C5qXStwEiPMP4it6p7Wgd44pAQdvwfwJerV6rGAWV8fwe9fj9mjKgNqtPd2J7AJEa7UnVRxO/lg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gRC6X8Et; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gRC6X8Et" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-22403cbb47fso4532985ad.0 for ; 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=1741243290; x=1741848090; darn=vger.kernel.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=gRC6X8EtCveI0uZVHcwVsGOjzjldduI0KK3mksvgA25B6d9ojZgflUNtsfJup7q2zP shpM26AyuvU5xzK9vp5sByUUxqSCTggQnVtujArYrT1swCb5NoOxTGpeLzviB5wT2Se6 IVThYnuY83WNB6w2Zt1J62xG6pLo1vXebki+9vTWz0DRTflpHb91JRxhK2Cv0EvV08QG +IzHLBdYfDY4xuQIxZW6ETIdfrkJRlWX0k+oVS/wUJTvgOII/XGEG+bsBaHtzlH1Wq2J MFOSvkdpe14FONZ4YL8MyiX5clCifLyjj6qAs31dGxHN4kw6AsGYdp9f5exlca2Yf6KE LqcQ== 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=TIXHEaIjv1NGKev4U304LqgF6DT/n9Q665g4UwSg9LLsUitQZnNZpdCN/ztCEHtqax ravW9jfOO6lrI4kEsUxmwc9qZHdy6RJc8PEpfSRkEkvplf154Ntr/XGMoVx0QQhvgbgW ktt5bC3/svCxN/k/AEz4AsowyDo+JXt2e/w0TnWexerH7N3272aLoDaRMQUb//D7qFu3 fuGNAtSrk3DU55/6fRNCTxsouZM6BhcV+Kp89bzPPtnAJtaJ5AHFwE0YZBM87dWUZ/iw 6xp22TzSRfzrJmrB+lohZdSunCo8Vzz+81xuGLzVreYvGf1lwONyrpjb/z78BARsnuUq fzsg== X-Gm-Message-State: AOJu0YwLKpMkNee3GnpA91lOsjP3QpeVVsgTtxCNAK5AbVOoyibBLT+H pGFiDZC+LYI22bs/SZR8cLLpZnvreeLS+Z1IMvk3EXBlNnAK8AIZw0erS5V/MFYjmNmfkeEoRAR y X-Gm-Gg: ASbGncvZH8gIiuDHj8p2XoLBlD3YULzvXNPVVhQngKmK4Ng8iI2107rQww0NR/60QqO xR0RK3guuzJykmpZpx1MTBIX4Bx2uVhCWtGjlq+ofZ4NSLKGzBnrPJ1jc+TCKzaDXLp6dUsXj+D rRpXNXyHemRIzYPGIAFUbN4Mrpm329BhGV6Szj+Dx6xFPcmyqZsm+6NXyllwcHGOB2xjXmI63gE bGcwRupi3bX9kFwy33nsC0T+n4gBKleVoLWQKwyDpbg5BlsFZSyV6TeD6E6JAxNKVqNizKMaMGe uyOpDGiGZ5AHcfvKcJsqO6sPy1COBeTngGd5Pbj2FNPV 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) 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) 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Allows them to be available for common compilation units. Signed-off-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daudé --- 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-proto.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 +/* + * 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 -/* - * 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 */ From patchwork Thu Mar 6 06:41:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14003892 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 868031A83ED for ; Thu, 6 Mar 2025 06:41:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243293; cv=none; b=tqkSoqlE32qmUXpDC3ZaAg9RNOyYjyVPKk4icv+evtMU9ED/ueAeqdmp9KlvjWStiCnU3HEm3JxHG12yWkNezS0x5lt80Ci8El+Ndhytp1cZivUtP2pqwQLHAA7quIdTIOPj/iKFa7iIOVseSYyKR8CluGtBPTdxH1sFVtpdHw0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243293; c=relaxed/simple; bh=58sm5J3uOzcH8RfGhj6BSrvBSbydxV0Kxcnmm7MOtBI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CZUCLVmxVSqJK5V26BCuckYl54KZdg5vhrjTAeKQ1OD5z6XiwOz3ghPN1SikNtEXA0o6VsMEEouQ6m4qqcsziYTAfqUbu59j8ITrAkEiYmPEVrZOczKUiKTpzgvcM1MStxvEeQFoqaXOHN93EZPpVeyMWyVzphIEkvUIszEA1hQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=h36ZUU3M; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="h36ZUU3M" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-22403cbb47fso4533255ad.0 for ; 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=vger.kernel.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=h36ZUU3MGer0KoMiCpAicgOg9EAxex1qom4NbDuj4lD0xz/7HXwcaS0MatDJR8Ub6N d38tCrohNCjKRg5dUeFKNOWyzhg3F6p24k/tuQxJiVcgX7SUhTa+VYplXQXT1mTALwn6 MJM6/sFFcxDrlbrLJdFvsN8PKxBtaJsIQu206dfS/la33YFr8/GKS170MmUKKaVT4DXV uB5EITO2P8e1rq+BfTPN4olYF5z9InhyhNxdJrpJEz5XGsZ/RiFXnzK901KF9MbYgt6y fASo4sHNndDDk/cxUcIDQnSfXV/o5OF9bv9VAfxGW7RnHTywsnDVKcWJZZGHJ4dN2U9x odAg== 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=nv9mqOjHYL0hVx8P736FpT2Eom7xIi/4/bX3RrZL2U5ESgEWyPG+Y88oeag03d0yoT r8t39SOqr534Fo4/y6VGtw0hn8bJZaTVjV3e/QSlwoVOq6s3n9ktmuAlArckvgH2SQLK RFqwurE0OysroLeqoRoTH5Cs+Buw1ELeRQkxz3615sL2fPHN52mSgYYgZypTh5/J5Vrn EFIuCdJpFbirA3FxdHNIr7xLWidIV8rvBZf/BiX126xDDiz1qBOx8Vnk8NwDjyXL6RSg cawyLX0adJguXB2ILPmdDm4xXvBFjER7QXtzmbCQg6QSIFBGrir3p+c9S1x2Rsc4ZEfC F8og== X-Gm-Message-State: AOJu0YzGQPSn88XE2oBqkl4rahO2FMha1A2faB01ubH3Ymiie9YWfvUd 4MGqqWaPKH0ciky0DIFUw1zTQm16fSHtS8StrxQAhD/FlWNuZrsiGuQFdzz9gGA= X-Gm-Gg: ASbGncsMTcO/kZRUBLimwnh4Mz68lHFFFuvHtFFrKPYNta9qLwPCAvHn7DrUB4toRTc Mkei00FjxYjx6WWTlFWoe6mDd0skDJMtmK6CLm9Zqe8wy+GQwL1mJj62BtkdDtc3nhjDRqZ123j 1rMVlHFz2CAacQuOhaS28dO3Bp6yIHPKgibW3kl7wIGBb3d5Mbo4EAn83asPheWDJtfnQjOp/R2 tNB7voJ6vnb3d9RXnJuA1xZjiKT8d70ysVwhOmFISmy9pWn9r9HAC8TuzbZ448pm3PDiPqYzswU hENHO348JwvzRGl2utHacEwkZZ3yAP4IoHCNCQdSSN89 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) 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) 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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, uint64_t outgpa, uint64_t timeout, uint32_t *retrieved_count) { uint16_t ret; - uint8_t data_buf[TARGET_PAGE_SIZE - UDP_PKT_HEADER_SIZE]; + const size_t buf_size = qemu_target_page_size() - UDP_PKT_HEADER_SIZE; + uint8_t *data_buf = 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, uint64_t outgpa, recv_byte_count = 0; } else { recv_byte_count = recv(syndbg->socket, data_buf, - MIN(sizeof(data_buf), count), MSG_WAITALL); + MIN(buf_size, count), MSG_WAITALL); if (recv_byte_count == -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_testdev.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')) From patchwork Thu Mar 6 06:41:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14003894 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 445101A727D for ; Thu, 6 Mar 2025 06:41:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243293; cv=none; b=NNZfwidYG9ds54rB90Xt60R5Afbwbca6j7lcLdk/6qE0YEUfPnYNrTvBNTIJYu9SX1c8nD8ROWVXdfAdH0/J6+jIyKlQq4XBS59BbMzlFt4Q76ilqwBLY2ONN1fntCnhQ6FJDIfDy3A6lNBn2s6mLdk90/5VOYphG5gGBq34Vj8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243293; c=relaxed/simple; bh=EF3nJZPeIRU0ZlDv1uOs9eGWyEsrIGrAWMWZE3GcAro=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cJQ5Szaa/NSu3CcrB2ahLZY6po2M8asYHM5IC5gSN5Fqq6hvSLtzDO2I+zvC4YqRyi+8XP8avqXSH364jNjcwpSfw7VhZxaWc2R6ul+YbKZv3NXQEeS8jt/S2X77H5nGHGBgAhTGhms6K4KLfJYg9datSf1u3SmvZDErYjOt2no= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tLfQiFV0; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tLfQiFV0" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-223378e2b0dso3622555ad.0 for ; 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=1741243291; x=1741848091; darn=vger.kernel.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=tLfQiFV0QLjD68J9rNYop+r1D6Fruyj0racY2a2iXlJ9qiM794Us3KWXfSquS59tma smsKyLKI35GZEhaDUy2sADBoWu4908ne8anBSGIxeJjQQ0tuQvuPdKvFJDUEMRXpeiZp IYtePCfQf7HFXDJhPHFyM/0fs9pomwbUYpIdqZ4A52WOiaugr8tzSrml/3YQteuGhFpb hB/P4syBXdT14ghrm9Tb3b/oYrlVX7NaevVDhCFcWpCwwmwHPi1fDTziAMq9yX/yx6Sj liMl+2RlNIc3oHSnr0GZArH+DhhLrsgCBhl//bcOuIArut8bpiTXY+SN8ERVlPcw3x/3 fRaA== 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=TnhPiWQ46KHFDBAFB5FNYntK+UjbBUc/XRUUAjHcGsQ=; b=KfVWiggffEW0Xwfpyl2lcS5sZHuaGMLUDvY4D/QYQcClGUSavwhnJqa3oGNYChpzNw 8htsLh7BrPVt9FDqojQQEnZtz1C+EvASukb8YLs3zhN/Sn0IcxsaH9+GzYWCvSdkcxZ8 YfuLccDNRpHsVGp7b9VzdvGV+PufXejedZ7YEKMcsi5bbr1dm8YUlm9ivzYF97i9k0Te GijiTHxt5FRqSUlRakbVZ3hRXtYT4nVNjolpQrbZPqCOZ7sckgRWuY29+LFd3MbVhXXJ 1Gb138IRqIYKY+3JCQSTsnXq5IIoQ44i/+JlMguIbYEffxlpX5Wzy0ciqNeVl1Q4j2uS e/gg== X-Gm-Message-State: AOJu0YwUtP+C8EVHZuMvksokTRGXV24Xh+0Bb6towOxAUALY3qXq99kx PKGMiecZ6kCIHCc1M95Fpnlmlhn4kJWj9qgUX9IqHpIbZTM9zdSMNypRZVC+jdQ= X-Gm-Gg: ASbGncvP0j4qmjpggOaYkYyDctxeVThB/UuXRoabJztFm9dmcOF3ixDU9O9v82+q9/n Rteisl1BpEpwwfbkTTusMo+bmNMQo7cs1lTK5121GbHTh1GIaicLdxRguAeIOWnRZgR4NhuS0Yb nrQXyQ8FMY51BXsXq/8IJJmrtz93Vjtpknh+aKGBX2Ei2ZZtzMZXcAc/IJeCpXE3b6Qgl/ygF39 kOwJaIXH+CMTPFUAEmxSl4EEPUvmNHF1r7MyVyAs7R7NDmBX1hw6AdJqpIHhB2aSw5hjer6hLaX 9xHBKRMQ5dM+KvioLAyo/CwbOt5Es64TOY+s2nT8O5sS 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) 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) 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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('hyperv.c')) specific_ss.add(when: 'CONFIG_HYPERV_TESTDEV', if_true: files('hyperv_testdev.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', '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')) From patchwork Thu Mar 6 06:41:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14003895 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4447D1AB531 for ; Thu, 6 Mar 2025 06:41:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243294; cv=none; b=KI2IxK/cle5DZpKd0sbsR8Tq5VQF/ir6buIr5mfKby9aBatF6Zu6NXAX5026lyFRZWeZK2pRjt8y4g2uaq7zX6gvYximRtFebHc9tdCr1jXPOLFLztrkYj4WbBjACigAjjoQhqMMB88PCNIHe53SxiHv0ZR2p7rBNsMe0voInfQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741243294; c=relaxed/simple; bh=HyHaiDVA7lVwaYVjiQIxGFKufAoNsvAgFuXov2/NWCA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Dg0WMFrAZw4QBT1c6rI/gJer69J7qjLfuc8CBpISZyESQ5x1bhOMgUpPD3AapJB/ufTKiqnUC0opTpMuEsdXWgtH0srZ5IWb8XtiibrumZ5sGYSsA8qqL36gFWzsJf+DrmwQ/gaM9JVz9jdqdcpnz7tpv1DD2EsHqEc471Vsdg0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iH13cwtW; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iH13cwtW" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-224019ad9edso6763065ad.1 for ; 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=vger.kernel.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=iH13cwtWDw5kuDR5Pgd2tm6p/0WPcM8ywj/O85nck161q59w3LOQjWaHCxfxkd+I8h rJsFf1shsXxZsRHJjROSkt/mFxUOnpyzD2Nj1vEog92un8COeBJwjlO32eJpShxdT5A8 wfy849/lqhOgMXb1L9jxrFv0CzF9gyMx6eEw8FRUAdiGSfx9XWiLVBJDOnQ8swIeMXaZ Wc7+/x+Oaj828tUho9yKO+yuTAfrLcCMegZsrJaBGcYjw29ChDqQwt5tHnhNEb/ZlnjC kxRv9H0OPLZR571DDcTvAVTOngrG9bS9uSSldqytFOca9fFUShaxEzGWi/GmMVwDsqvR 58NQ== 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=VHbf/9ajncqurZ45i0KoCvg2yoC6Ymjh/nNmmqklxDZHZDCbq/k/uP9WXLksWh0djR QYAoWfOptYwJ6GdkN7AGFv8kSH01L04S1sybKCpyvwJEfX/2BDkXn0Jr8wCt2wcRulfu uHJo3Q+4MPafvR2O3mLctgVNNr6wNRcizo8W9OZZUQkTWOI9/HJrpMYfzMDoR16VHwP7 psEnk4TfXHik5EFjh50gFtTXKhAzaJJFdlEHvMmm9qlkF76nxBUFG73K5T2e7RoKvf4o nebKsy90OiBv0iUcvlua8z7L9DyxCNfC3GcD8+yTPg4/GM4rCypFhWEXCrgThjSADqAr RBFQ== X-Gm-Message-State: AOJu0YwK5EABqWZ65BDwNNj7MoSVPLcp0RKNFHjfcUbpOwhUiz6Pn1oT LZGx6/9rGD4L5Cggtm+93fx5OMYL/HolQPbp4vn3rdFB8izMLZNWwuBfl64jbaFINc2vsOLnZSn n X-Gm-Gg: ASbGncuC0NE7c+fBQ0UVhDggUZAMM8+h85Z/fxXUCErwEXT+rJy/LjM+tLGrGMhOPMs AYjjhF6TuZKktNxc1LF5DVf1oTmbdzqBaNL82hUqvhpyKJCESZ1u8Y1XYpRgmq8LSXeVbcRPgFy eG+4tJ8CAs9r/1cT4xlNTtqd4UgSipVJ5Ky3BHzaVgTZUf+0EetTW5ezFlAzn2MLwxEkBHTzDDP sX/OHe+hxQY6U1pQj29FRTjDmU8oAYPRcI3lwr48h62DF09otQycDVsdHdyBtm1QeVJo5oBDUaq EqzogddHKjmMALvTJiSy0Bhmy0jkGYVpLuXW05MC09AD 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) 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) 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> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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_testdev.c')) +system_ss.add(when: 'CONFIG_HYPERV_TESTDEV', if_true: files('hyperv_testdev.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', 'hv-balloon-page_range_tree.c', 'hv-balloon-our_range_memslots.c'))