From patchwork Fri Mar 7 19:09:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14007019 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 2396C241698 for ; Fri, 7 Mar 2025 19:10:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374613; cv=none; b=SFpBkx0Ew76dJY3nzXqsVtozYLxacIaeViO8wgK9sSZRZRuQCZHkclPSnWS6oXOJVfnpqPBJeHBk4BAb0HK8HV1odf83JtQEnK0X2b/IZi8+zbTCF21og1cW5hJH5qtuVBgoeznfyzR+nrQ4SJnvfjjYfqjsRxDyTIQLjH4WjMw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374613; c=relaxed/simple; bh=bMUfjPvXfN/tKkBw/WVniDJmAgFeqLIxrtzwYnfSHg0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BmV5v8GG297QEsw5SXJNWldhqmIxHCHQxzhK4Gqg0D2TPxLC4F8js1ygcMtR38sJzXFUA4o0YXl7ZmS+UBkvrg0OU+/3xqHH8Qmo8vstnLCqxr6tB1ExyBhx+W/7eiVsNbGgyEai/1fvQa93KyElMtE/89TMtOj++qc9kODYoP8= 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=YdzqtwD1; arc=none smtp.client-ip=209.85.214.177 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="YdzqtwD1" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-223378e2b0dso34770855ad.0 for ; Fri, 07 Mar 2025 11:10:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741374611; x=1741979411; 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=YdzqtwD1skjVTKSYcpZSUlkB0m53SX6jQP0sQMMCGj8djSJty+eREp+MaqoPCd8zri ARW5FrCUzyqvg2g3PDc8n9Zg9FZpQpJLM5H6ZVrnO0ZfY/c6ZRF6oTXe6z05xOSC9Z0z izzHO9NhEVkOp0qxiKsQXd68/AKZAXWjE7ZLeJAfnFyPFKvVil4c0UFOc2bbxt0zEO/q 1yVUw37s4I7Ju6FLpxC6Zp0ZsziVZBBINxEyYi8VR01gzaSU2giBh+AaYDTaObW6GTKJ XdBPuQ27mELd+DywDmSexWOWFne0ALcchIVqLxGxFllr242eWAtgdKSuxIzraRDVKMVs w1Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741374611; x=1741979411; 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=F/L9zjmSFssXV+cfji5cXooP47KaAsdJeFWRWdQrsJh1zZf3P12Zs3wZTBj5aCr5/r Qn6ljsjoL2ZTbZMCL/E7cOyvDb5H9c6vnHdDjkJJqngQHS1DVMj8XwYoGeirt9igOnvq uCgUXWFkdSwp/RBNjfSMenqQP/3aTJLtCooiu5Gf37TUwu9T6HbUeJbU77sNUVbhBxyY DQrBM4YQnkYzSJWfqwk0XuORVb8YUmQBQjVwBy0hLJdTnc+iSylGjDbMCJn53NTsZbFI XDp9Dv7g/4fHanaewjYj5DWv4rniKh84xNGRe66LKddnCFpvzo7XziEI7WKJ8Me/dtQ2 N87w== X-Forwarded-Encrypted: i=1; AJvYcCVY4+a98jJ2VsQAIoJ4fh7Q57X0eVYkG0IwSlt30Yz+/kKXg5B2VHeJujQGGXh2D1whBI0=@vger.kernel.org X-Gm-Message-State: AOJu0YxSy7JRdV85obQC1UMpF5SGJwE8paWIy1DxfqBm4kfI5/myDjNi /7zIzEJwTalEXmgSfmxFgzPyRoPnfadJxwoHCV/rMy1raBcdw2xbzOLWdPuLKB4= X-Gm-Gg: ASbGncvr0kMpZLfz2F3l0HJ+vrj5H1hI7xF5ir+Nv1tjQ4al2Qf2YeQ5WECLeR/Y50P O54Q9I6EWQfVM+dZJIziB+pwIzqbS45iTK/j1nGK2TE5zh2O1ULjktkeLSgKpVemAohjq3MAIX8 sZ0kSCzydArqwon9Rn87Z+i2InQzW/29aBCgxGH7DAfzcnPA08twtLKwn2MoMJJCDd8GjqEow4L biq3abB7r8Kt5SDWzKJ0sHgH2f+hnnHBW4YjEu6VTNSfaz1794NG7MuyCNypSjqKsSyDUMLyyn1 +QxzPaX1lsuVEe/zSGoKjza6u8g+hHiBivPGTuFUD7Rp X-Google-Smtp-Source: AGHT+IEH7EsRMyLZCmYOauj7JToSFEANXbFzPetpi9H1zUtYRPDo3QJkFW/8iGfm/aLPKoNLrKiADw== X-Received: by 2002:a05:6a21:b93:b0:1f5:5807:13c7 with SMTP id adf61e73a8af0-1f5580717dbmr263818637.17.1741374611193; Fri, 07 Mar 2025 11:10:11 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736b2da32c6sm1449895b3a.149.2025.03.07.11.10.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 11:10:10 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: philmd@linaro.org, "Maciej S. Szmigiero" , pierrick.bouvier@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Paolo Bonzini , Marcelo Tosatti , richard.henderson@linaro.org, manos.pitsidianakis@linaro.org Subject: [PATCH v2 1/7] hw/hyperv/hv-balloon-stub: common compilation unit Date: Fri, 7 Mar 2025 11:09:57 -0800 Message-Id: <20250307191003.248950-2-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250307191003.248950-1-pierrick.bouvier@linaro.org> References: <20250307191003.248950-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 Reviewed-by: Richard Henderson --- 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 Fri Mar 7 19:09:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14007020 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 4467624E00E for ; Fri, 7 Mar 2025 19:10:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374614; cv=none; b=J7Uai72X6prWi2M1Vfs4LG4ljbD62CBz7YFFuWrLdTChbqWYphypGyooYcAQxnE63CFSOCTP3zuafg+oWmHbDTrxtVac1BP0WyciVvT/+n+KxoGHyQH5DCbzlnMAat5axFlYRG5LZbv4O5PdI9GZz/Mqk5jIajHZj8ifZeubRKs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374614; c=relaxed/simple; bh=10QOE04Hzw2CVA127moBxFU93ptkxXvz4w3Lk4YoxwI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=May4NSCyRjJpaJ5hrCltGyHBitHS8AxIF/SYbDodAfvyv9UpxYvWvdmDeyoUZ8LyjOuHMigFrrd1IW0/msO9zLqS+J+XMCJhOcqCzqxoVGWOs7RrFgcrKPJjKq6/8eFN6eO1xTpBxVM7mJwNKF3ZAmXxj4wZbC+Em0r7tvCWo50= 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=XbziArqZ; arc=none smtp.client-ip=209.85.214.172 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="XbziArqZ" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-22337bc9ac3so47629655ad.1 for ; Fri, 07 Mar 2025 11:10:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741374612; x=1741979412; 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=UGch4Y0Ix8wHfMNh+EmB6vJG8JHgkY01LTyS9A7oXr0=; b=XbziArqZ2r2ntDbFNULSZ6VNY21oLoK2CBujIk/lc4niwK80QuAtKRmQb6YX5H6IxT yskLYyA20TorjPIMKaQSX88JHXZsIunnc1E0E21/aGzdxAfR15XuDOzzjW5vSMkQ3n9q p68lVuGLRdgZJGEqDT30YFmkOnSnXkD7Z9Q5PqHsAUB3PuE1VtWaTXo0rs8hGgVD+nbm SJEB9BqbDLnlyqcyuu+d8LWxmfl5pogByrmtl5A1ia26WWnMeO9feJeh96If7YmJKIxc okQ4fTiKw/3OOR04nGCV9VhYos5ACcEtK56ptwfM4aqjCE1t7kN3ItZi8oPCEOy/JHfL VehA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741374612; x=1741979412; 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=UGch4Y0Ix8wHfMNh+EmB6vJG8JHgkY01LTyS9A7oXr0=; b=e/xwEW9U5ZdXeFXDO14UrgnrDV/2VbHMgTW1Oc+IiMvb7HtEDI7gpC8Rc9F0f4tzqf vXGB8X5Py06KkwRYguq+Rq29gl8j+vyIeXhEEo9zf1bPfVcsZU1SBWcnWaKlh2naONkK DETlEJUK+fY/JWLrebK2dw7O1+G0AkcafqjpYVX0TXFb/mJHt0THq+iQkrDpXaJ6aL5N hB9HBv6hPLyk9bRARk05Km6Pc8A5iD/1VK4CknPsF10BJYGXjRa5rna5LTxQlGHdTgHY xymYUkSsN9cUOHNMwkzsfnzEIyj1kCVRONIabdx6NGI5K0E3YP+zFGQKjuvIo6hb04JT eRtQ== X-Forwarded-Encrypted: i=1; AJvYcCXW1k6OTO0kRhMOJP9kRzsHv6J8kEs3jADAeNvl+BiL6KABSLuIJ9j5u8EplBmFG0ki8FA=@vger.kernel.org X-Gm-Message-State: AOJu0Yx6nh+Rct9vbhz9onV3DGn6oW3foeZ7zAUUoDpQ8YwlbBkgFlQ2 z8NZRn9Y93H0U4reVKOspbvsCmcueQTUONkRArB/UFjLlyBgI+rCzJC82OrKqmo= X-Gm-Gg: ASbGncuWIYXj54MZhseDw0j3ObBLaINz31kWIRbLqYLnt4w746PpLeRJsScFJmHIUqP mQZrtNaZjhbC/2DcRxkU4RwDDR+WGlUuuXe9cf7JHZQRHOezgo/xo/ql513uGx+sS6h8Eq6ji6D Cqn5HVtJuPLcMuRo6sxa0B/ei+q5YgzPQ5BH1V5nxAysTxPAPHxiXyg48U8NabEBzobbd9d5Jea Ugf1Rx10ScyAVJmE/Qr9msKKyKzC98I0fbe0nE3idA2oCOnLZt6OXF4CxliwUL9qFoV8UsTU0ub HpjNHsnDgp0k7sOEL7n3zAt0EkcAdEDTBOJPSMeAwmKs X-Google-Smtp-Source: AGHT+IHuC+PNa1SmzqJI0M4CoWasSHWXoq4grtPPWkbR5pKc5S8Z5/JOsqXNjYzvCEePHATvEPGVWw== X-Received: by 2002:a05:6a20:a11f:b0:1f2:f1a8:fbc8 with SMTP id adf61e73a8af0-1f544ad7265mr8852497637.2.1741374612398; Fri, 07 Mar 2025 11:10:12 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736b2da32c6sm1449895b3a.149.2025.03.07.11.10.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 11:10:11 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: philmd@linaro.org, "Maciej S. Szmigiero" , pierrick.bouvier@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Paolo Bonzini , Marcelo Tosatti , richard.henderson@linaro.org, manos.pitsidianakis@linaro.org Subject: [PATCH v2 2/7] hw/hyperv/hyperv.h: header cleanup Date: Fri, 7 Mar 2025 11:09:58 -0800 Message-Id: <20250307191003.248950-3-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250307191003.248950-1-pierrick.bouvier@linaro.org> References: <20250307191003.248950-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 Reviewed-by: Richard Henderson --- include/hw/hyperv/hyperv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/hw/hyperv/hyperv.h b/include/hw/hyperv/hyperv.h index d717b4e13d4..63a8b65278f 100644 --- a/include/hw/hyperv/hyperv.h +++ b/include/hw/hyperv/hyperv.h @@ -10,7 +10,8 @@ #ifndef HW_HYPERV_HYPERV_H #define HW_HYPERV_HYPERV_H -#include "cpu-qom.h" +#include "exec/hwaddr.h" +#include "hw/core/cpu.h" #include "hw/hyperv/hyperv-proto.h" typedef struct HvSintRoute HvSintRoute; From patchwork Fri Mar 7 19:09:59 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14007021 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 3597F24EF9A for ; Fri, 7 Mar 2025 19:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374615; cv=none; b=cxfEwE6CGsLDxOSoB3EDM79JbnpSM7emXr7MLPNTzrEATVuzPGMStCNiFFm/8fg2FYy5EXQFdPNCLtlTzypXqpgcTzFe7iDv/dfjpUGfOLJyM46gko0gi5d1BGyk8kIP42GldzckRfq387z6oV5UxL7XojvV7xfv5afEfk5soiI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374615; c=relaxed/simple; bh=N9IiMExxiXgXPoqm4k5CCKl5YvodRMWS+HiDAjO9yyI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=U0ZuRLZFez8AKTtpDx/+28hnTH7n1r/VRY92Vfx6bG8/MZdmKe7pENXzHmEzZ6ZRn8IhgsmQE9pPVtBYsl5r67m51nylUK1n5Vu6C1yMnnL6aqavIASZJN0C52VOs5WZ0aE6GfXqI3zKq/oiY8hqYTrBdijskrGH9vG/YTREA4A= 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=z5Vc1fJD; arc=none smtp.client-ip=209.85.214.181 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="z5Vc1fJD" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-22403cbb47fso44399635ad.0 for ; Fri, 07 Mar 2025 11:10:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741374613; x=1741979413; 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=z5Vc1fJD10+F+d0d1Tx8CLNvSY+gxj+RjXx/4kjaVAH7RrSRH8ty3PKOPlso2mhLzK VmUm32py/c154JUFNsf/9GKW/EzkaU4R7Eyb3Ayo/AU6dKHz1k/4RlMAnOeGt34LWlgT PEHzL3Zeg9mRS1pd7Yh+Vz0REFiSggIkyNzSv3QBafMPrCJaVRB8cNnP/040DBMMXALi MRG93zOdaU34dUiw0FzV7zgvv9I/kXvVvwPlktE3J7lBNmxokSFFEAD6J1Zdk32EU2lY Y0v+0DsRjZvOFg6CoNj3HiruJbZ8LF5fOLEmR2q+Z+AR3UgEMRqfvUMGsOO+GCC3w1jp +Unw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741374613; x=1741979413; 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=vhiBvzxhgZEgO8cFeLhqSwOrWODwXcrmoxv4ZMxRx/qPfY+5/liWJkikZJOx7Ot/GI FpwbSq1Y5Y9wymSmGaLMtv3+HM2jWPHD+/C5S+TIzuDpPpteSe6LKVMh8r7bxr8DuRny ojoMZ30wkRnvawzVpf+LEhR13ESdTSVBVX8OvJLX8IbirkVMgG4xipPpcOgcs3OyDNRg UsGvYOLBSARqT4jNTuCuqtBl8ks+9GU3GG1eiRovCUXKyOip0vcLLz2CljWI3USLQC3q g0RjDtyH+boqoIi/S9VWthRSxx5/vaPkmpI+n0/daRr2kdvyOSE7PJIUzx6WtelCjtM+ sHfw== X-Forwarded-Encrypted: i=1; AJvYcCVkKTlVzOnCsf/D5TZQmxH4BnMkCkfjR1mmnTXS3ZJWsYiunc7a+RX199L2gCfYFfQG56E=@vger.kernel.org X-Gm-Message-State: AOJu0YzouZY0I8B/84pcmT4O0aUG1xsi+7sWi83NxMLrfSNzAFz6OsZ8 U6BRzYMoS61e83Qh6GLEO6w5yY3rGAWE4Aroc41SkQ73UtyBf8T0CjHbS4qIZ1Q= X-Gm-Gg: ASbGncvF2DKzr4TykmP7iGUzsqiIuAAuxlbOD9ZkVNK90BDl2QywzpaKRqE3PjlkE92 nwBamVcPtBgaVpdN4zLCkV0vR9ig4epJ48NvMZYwIdLCkqKFk/SbexIJIuAMHLoxHFdrIZWlAu1 P+PPe7So6/lN8MqSM6hpx17N/3ATK6UqUiNXoUwf8q9UC30aJ7wkXJvoXpLHfkB31Skv4Rz27BC h61Fx7mGaWc21SOEWbp1BDHi5MVI8Xptb8+4ULUcg7zYuWzwzDu32b6nSuai+r8cFhbC/gpRB53 Dbme0UtzAIpTTjGxuAA+O//06dDxjzZLdhWh0xd2mD3C X-Google-Smtp-Source: AGHT+IFnlkYAU+Fl+or8q5/5Ez8FOWAJY+J0G6nErFHZrDkXADqcLKYjEFGG1vZq2KfLjm5Y0Sxy1A== X-Received: by 2002:a05:6a00:1401:b0:736:34a2:8a23 with SMTP id d2e1a72fcca58-736aaabee7amr5968829b3a.15.1741374613437; Fri, 07 Mar 2025 11:10:13 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736b2da32c6sm1449895b3a.149.2025.03.07.11.10.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 11:10:13 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: philmd@linaro.org, "Maciej S. Szmigiero" , pierrick.bouvier@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Paolo Bonzini , Marcelo Tosatti , richard.henderson@linaro.org, manos.pitsidianakis@linaro.org Subject: [PATCH v2 3/7] hw/hyperv/vmbus: common compilation unit Date: Fri, 7 Mar 2025 11:09:59 -0800 Message-Id: <20250307191003.248950-4-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250307191003.248950-1-pierrick.bouvier@linaro.org> References: <20250307191003.248950-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 Reviewed-by: Richard Henderson --- 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 Fri Mar 7 19:10:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14007022 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 C893924FBE2 for ; Fri, 7 Mar 2025 19:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374616; cv=none; b=Zw6Qxe8zpSWJO9d+yyoh2BdfVJwimo3lLdIp7DrAzTG8Fv9UKbdzj54odsCFA8A+3t8FnqkEwD5YqaoqWG5KE1Gis0XZNnt+gLuEAseyjI4hpcji7J59xDWKErfh8HK6rKQgtUQlvu1scfl7f8wTneBnWSasBOQl+o+9BSTHhR0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374616; c=relaxed/simple; bh=f6ywhfIHAeGjN6dW94oj9dG+w9FoBwMOqVbaNl3zrqA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=CYV+dLI3LXUE0WwvY3mUwcrIK28Q6DsDozzwVHRRRJ5w8dLvWtiHJh/vP6Ex8MRKzz9gYPkZTRL1Hv5UakLA3BfWpPBz1GoWGfM7fi0y+SV8tgrEIWNXoRkQT7apUcxoO9xXZMjuUVH38CJmBjSGUYhUO7Ylxi80ZF7NTdpuPLI= 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=XFMaXFKC; arc=none smtp.client-ip=209.85.214.170 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="XFMaXFKC" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-22359001f1aso56634115ad.3 for ; Fri, 07 Mar 2025 11:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741374614; x=1741979414; 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=xUvuEjETtAwgjY+HHVzD3fRoYrhNXj1rMDKPunM+tus=; b=XFMaXFKCKLGUMZk61mwLNCoQNY8ViVvVC1oy+ttFl9+E6uuUjGfCOSE+RI8SyZtkjR tmOR8MJONbXEMqKufE6G7lzv6EJ8Du+gZ7sXoOAVXQCNwwEHDRNOifW4LL5cCuhM3S+R eziBma2q1sdbie5apsxYJQenezFICVufM9Su4CTH6tHNQNyufLlxNeT0TghtdIC9y0Xf +tiQ+vud29ps3A2zhQc3PLylmKZBA0ZzrWjH2NYLjAu6UjYepiPIgc7z84QTGkAl2TOX dczjhKJ/2u5szukvwSqqzUj1N+k/0GzhATKEjKszC44qOTi5VqOPiSIwdlUTuLoe9RUb auaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741374614; x=1741979414; 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=xUvuEjETtAwgjY+HHVzD3fRoYrhNXj1rMDKPunM+tus=; b=L6Tj38oWDf2VeCsj0b80nnzqR4Kgkez9NBLA6Fo9mewcfM6yEAYnJTnweU0cTahumP gFauBjNhLAjavG8ARSxqHI9MCshsoa1CWY2EX9ipGIqWoMFl2G9+rOXt+xBUJz0uHI5c JaOTB0VhvKigWLdyx5r+HnFCuS8wQEwVoW/4gioXqJ8cu3wfuHIpCXHYhKLgCshrXNeq uL1pzSCe3no6DA3ETk+jfUKE8SwlT3iEvEz20K6ORu6CfE3JC8IQATkFnPh8TBuO93Nn K7pE5wDhqsB9LJkCrSTniNrVRwNUHt2vbtZV9WDnanWS1i+w20i/Iof0VliiEZukxNu7 hPHA== X-Forwarded-Encrypted: i=1; AJvYcCXFohPMtCLjmjTwbhHs+dTWLFlUZv+upiOHAlNgpD3ThGVMRfohNgDRFKfHVhSObB1t5Qs=@vger.kernel.org X-Gm-Message-State: AOJu0Yzt/+SeB7tFZQFpc51Y/RqEi+ZT8ZBPgORUEQr9yI0+7LxLpUUN mcB5CidrzaimmzGosIYqj+4TQa5dmxdQquNnOUGXRvGc97UfYTFcUKn2JgIDfcY= X-Gm-Gg: ASbGnctkTr/zXYRgtQ4GO2/KdY2bSquEW2fEW5wXRESOs1E0OoVnEpx/9EN77HkZmN7 O1FIQMXe8m7lGa6ujTFzgHYTjwG4/1dt155xmM8lwm5BrsgdgOS02OsjbgZhbGbHzmXuAgALx8Y n84nemju8P1wpnCH4bSOYeOgoSNpN74YhH0RkIaUFa4UbZyQ4C0dELlW3EuIjiRBzIYimwfOgi/ UIeAOWo5grPmbFQIHmnQ+NJLmIdzZFTcBqRFCVYrIS1wbVE8ZHBTCbFieSjd2zkMyFN8PM/cSva a31edoK8jKbnNf8hGy4WpCS+4LmoZ8Hd2MyhqJp88mci X-Google-Smtp-Source: AGHT+IEbWI3ew4dnMWaB90EaFVDpeNVLWqjEG4CtmHYP2FlvgISb0XWr+8NvwuKEf/16oY50uVRpzg== X-Received: by 2002:a05:6a00:2d90:b0:736:6268:9ec9 with SMTP id d2e1a72fcca58-736aaadf12bmr6908832b3a.16.1741374614354; Fri, 07 Mar 2025 11:10:14 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736b2da32c6sm1449895b3a.149.2025.03.07.11.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 11:10:13 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: philmd@linaro.org, "Maciej S. Szmigiero" , pierrick.bouvier@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Paolo Bonzini , Marcelo Tosatti , richard.henderson@linaro.org, manos.pitsidianakis@linaro.org Subject: [PATCH v2 4/7] hw/hyperv/hyperv-proto: move SYNDBG definition from target/i386 Date: Fri, 7 Mar 2025 11:10:00 -0800 Message-Id: <20250307191003.248950-5-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250307191003.248950-1-pierrick.bouvier@linaro.org> References: <20250307191003.248950-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. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- 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 Fri Mar 7 19:10:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14007023 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 0A68F2505AF for ; Fri, 7 Mar 2025 19:10:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374617; cv=none; b=GlABQfKjiblVxRL187ElEKv1IgjnGJO13CFYWSgDygMsmLE+m/SRz9xeevK83eBkLWzo/8T15tB9K1/PzZTNxAM2+RFJbmAX3erOb996BtK+UV4sQ91JJ5dQxPVVByCszGEsFmMBy5QNYqF13YWGhkne96wN7wCKDVmbNHfDEX0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374617; c=relaxed/simple; bh=EkovfYpD+8I9GxidCF4qswFiKSQoPX9wfWd7my0rMUs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XQVBdK/UDUoZAadcqU3BLZ1o97zjVoVwPpLlMTCCvan1B+DxZgpopYABGTRFeaINa60Ig2WS/n/7tDHa38dcWqC2VU0i+MK2/GbSo7RNL0XJriCI1h5A7agcFoKOOCO8Mg3uBWj9H2G402Ck9Bq3R2tgWjamjvnxLOUmloBQawo= 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=YRoMmE9E; arc=none smtp.client-ip=209.85.214.178 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="YRoMmE9E" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-224341bbc1dso14052405ad.3 for ; Fri, 07 Mar 2025 11:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741374615; x=1741979415; 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=UxupFXt8v+cWVWtDpN1/5KOGycPEEPte7T4sMzf1eqQ=; b=YRoMmE9ES0XSocMKYNSq7iGg2y+mKMI5dd/ImC4kDsVV3iLIr4WJgXzuVWpzu3OVnf aQ29uXopAwAz1+043WC3ZXDv2NIpyEqtQXepUQhrtDq6pUB7FqtccZWt4KLXfKrGFX+s ZofGkQTpqDRrjPlRR9snPFObQuS4r4LvgRaWTzUVGve5xaPkZy/ykhT864k6QJlr2wLW 4FINwxzIzq0NW36VSYHhQNZEqMJQEQ3kbQobUj0QdYoBSBAmnyUTKWUgZDhuFFhFaePv 2OI8KnQktDw3bkf+pJu0J6nEqvRtFTHe2qdYiSWI3+X9u6Jr5eRanRM31Cup3Odso8hu DcAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741374615; x=1741979415; 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=UxupFXt8v+cWVWtDpN1/5KOGycPEEPte7T4sMzf1eqQ=; b=h9vnrrKVjWkd04iJGP7IC6TwUUotMwgNnxrP1GvcBGUI6kvj5RVLDiZYYv+SMTDfl3 IYV4MB5VuS+icDxM/fYEVG8iyq15obH1DknDKW2YcHnOULhbp94dGK3kkYwPPzeBxERd FwJS7eQt/jiYfCHNFSM84Jw6sbd/X30Kfd7jZOmONl1rSU6+gWzvTkimm26VyY1+E6Ce 95MPj3WKzPpGbpiuk1zoAmP6V8u9yH1axmzvmmOabBnP2d/5TK00tiMVqRgjiYiiuK6/ KcflZ4CHrInkU4wABlDfEwVD2iQ6pxeurc6o6EtoY34arHRJFzfP3b6ENvAIGsAdM1IS VEwA== X-Forwarded-Encrypted: i=1; AJvYcCUPrEW1SvAotpKWeGL5zess6vCz8/Xam/SkmyzJOLyp2qbokAxNAGK6XHDd3KC8fMrpCaI=@vger.kernel.org X-Gm-Message-State: AOJu0YzWBMrIWT9Xh3osuK9HnuV55fcXmf87L8q39PEKWenJ0sWjORH7 om5zL7OBpzQNZQGeeVNbZUO8uM2/CiXBrRqCsiMy83ukdDcitNxMVQRDmDH+mzg= X-Gm-Gg: ASbGncsOva3PbvKbC+8zT2VypYTGCFomot9NOaMzFRigvKffXpiN8y/F6MStVP+vVa6 wsMhsck1A4u+R2urhPT0lkM7cHouIVJ8QU1psys5E1ws5z/0oqE5TEa1PksCPQprG2sS50/8fyh z8k1eNqrz7dobBCEKcXEmHLpbevhwX0/feDmYLf1qDcFJYYQ+cE5w3yKhxgDb6pHA+RluB8Hy85 xWL9+iXKvMmZPlnDVKN4RYayozpdor9yLtYPoZCoslxGvsmyBywzGL+iuOxmY5SKGqwwWy/+ZxF Gj5kandq1vKHVWTNDN4va6UuIBwfMLakdkBDAoCaQODF X-Google-Smtp-Source: AGHT+IFk7jHET5Rs41Ubs4P3mm50rGduCenvs6hzji3ZZTTsMDlCYtfecrZbAZzCmTi4EWlLoN77Nw== X-Received: by 2002:a05:6a00:2e17:b0:736:a7ec:a366 with SMTP id d2e1a72fcca58-736aa9de241mr6584061b3a.9.1741374615256; Fri, 07 Mar 2025 11:10:15 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736b2da32c6sm1449895b3a.149.2025.03.07.11.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 11:10:14 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: philmd@linaro.org, "Maciej S. Szmigiero" , pierrick.bouvier@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Paolo Bonzini , Marcelo Tosatti , richard.henderson@linaro.org, manos.pitsidianakis@linaro.org Subject: [PATCH v2 5/7] hw/hyperv/syndbg: common compilation unit Date: Fri, 7 Mar 2025 11:10:01 -0800 Message-Id: <20250307191003.248950-6-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250307191003.248950-1-pierrick.bouvier@linaro.org> References: <20250307191003.248950-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 Reviewed-by: Richard Henderson --- hw/hyperv/syndbg.c | 10 +++++++--- hw/hyperv/meson.build | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/hyperv/syndbg.c b/hw/hyperv/syndbg.c index d3e39170772..ee91266c070 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" @@ -183,12 +183,14 @@ static bool create_udp_pkt(HvSynDbg *syndbg, void *pkt, uint32_t pkt_len, return true; } +#define MSG_BUFSZ 4096 + static uint16_t handle_recv_msg(HvSynDbg *syndbg, uint64_t outgpa, uint32_t count, bool is_raw, uint32_t options, uint64_t timeout, uint32_t *retrieved_count) { uint16_t ret; - uint8_t data_buf[TARGET_PAGE_SIZE - UDP_PKT_HEADER_SIZE]; + uint8_t data_buf[MSG_BUFSZ]; hwaddr out_len; void *out_data; ssize_t recv_byte_count; @@ -201,7 +203,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(MSG_BUFSZ, count), MSG_WAITALL); if (recv_byte_count == -1) { return HV_STATUS_INVALID_PARAMETER; } @@ -374,6 +376,8 @@ static const Property hv_syndbg_properties[] = { static void hv_syndbg_class_init(ObjectClass *klass, void *data) { + g_assert(MSG_BUFSZ > qemu_target_page_size()); + DeviceClass *dc = DEVICE_CLASS(klass); device_class_set_props(dc, hv_syndbg_properties); 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 Fri Mar 7 19:10:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14007024 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 E8161250BFB for ; Fri, 7 Mar 2025 19:10:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374618; cv=none; b=cXXwNlGAYA7U0YmDrOXFdDrPul7dqNpNp1aZe7bBHzONV+xeI/4Gej9G4+BjRUrwN6jieuRwYYIgpGkYo85MN9BrMty5G3j9E04DUkc3wgaih8p25ZAlu9ZISEaOnEbldu2evveapboROx0tkMi64IvHsZABGOS5qflhDq1/pAI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374618; c=relaxed/simple; bh=EF3nJZPeIRU0ZlDv1uOs9eGWyEsrIGrAWMWZE3GcAro=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Hr3sqGVYAmSpHJrDQL0UEwa9RFs8aaMpNVy7FSN8PAKXbFb9lVe3XqyYwSp3Bo0PXcs70QpyUifKpHWord+AH2HLfm2kXcbv9zPVqWg2xOZPslQflOFPDw/kyifl2PzSvTuQ/KneQlzyeiBfzUQOUX4CexEmq3fNjSWIMw51Fn8= 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=TCIwDFhA; arc=none smtp.client-ip=209.85.214.180 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="TCIwDFhA" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-22409077c06so15222225ad.1 for ; Fri, 07 Mar 2025 11:10:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741374616; x=1741979416; 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=TCIwDFhAQ8bXDjcJKVyBdUO/5AA+9Sermqg6uw5ftEFpacWmr8+MWiVQXOqEPM/um1 vdGr1NUhGGhmJT6MGuiemTKSymCnLZAwSS7gAllYzM/LJ/mAz+fOxt0rm1K+x4fLpU7A fnBOW+gFRk1gdjoi0zMY2H1sUnDP+B8QvK3BrK1Tx6qbcWGnNJCU5FFXWweltii8gJ+B UPYgpHWcwsO7Zf6nwcgjddHkVpBzNRFro7RyiLdoE1Jv5AUYeCuLHUnlHVHhCQ9/ssu/ VSZg7hVRQp3Meq8ypndQTL6Wp34Oj4bwkQDVvdDCoJFojqbF1hqwIoq1X8ff4MkuVUBR Ng7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741374616; x=1741979416; 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=so/JKxEElkxDGr+kr+ZfOE+4okv6tn0WGPvrvatyOAfRc/Ru3GQlIVtp7WcunttWDw pHNcTRrldA09msIXaom3++6uS1Rxa97qq284f8rnrIPfS0IeCz7wx92gITPaUH4+Y+9X m9WZWB0ueBPL2KagIvh/NcRN4T97f/mvSGArxqlSJ+v7GgTBTbbucD/ldGvE9sIsYpHC P4CAI/ZwZ6MkXj2y57/65NVy9U0gueBTGwFrK8K65rMOsTsoRJ0xrGVhDRfuSlP3kKIN Hx1cmiuviVpnhEIcjxCQNcpU/egdd8FmAkfvlMp9NnmHe0dvYSsY6BdTduK5kWeC3x0V qKKQ== X-Forwarded-Encrypted: i=1; AJvYcCWFWX4vpTQtLlui4mAXTcUSM1VW2dRk3jen+rY0eSGLiHvHp15INDqR60q7SzzTHLkvL7Y=@vger.kernel.org X-Gm-Message-State: AOJu0YxcT4ePyCEF7V9I3CdYSeKZMps2I2gfk1HJWLMD+zXG2sbqQz4c yjc/lWldcIKCs3SJI5Hcn/NEOAxZSnEhoDvNWg0qrooHZjjyzny+X9zz7jfCczk= X-Gm-Gg: ASbGncvBVjjjDRFnNhqq4KXLI7iMpJmgtH8I9oKbrPbqQKFn1UVOv6VnGkOzMMImdT3 UipOV3uBc1UK9jneaP7tqlikcU4FOCIuZWJQFoedBOij3f+utT9oljQz+7hSQRm6rGouTC0YYeg HRetWhXwlzS+RKBAcETvhkf6k5WglzI+Y3VGK3qGneeoASxrgBcdYyeaObjuXOEyzukQwm5PLiy O4RAvlcCJ6dzyU9fC5jbcAUajKE+Sob9cqq/u7kp9P26fv2/jBAdQPzYmraZKSiAlrN8zzU4Kkw w2z7euxA76Dt7FiusXddyNbvcwsDOFnPmY3si7CUY5/I X-Google-Smtp-Source: AGHT+IEGvvA50bGtGnRgvOVX3N9VYhhII+Do9EFRBDHvk9BNSJg0ZhWlPN1xhGl54jgDafvpI4oJEA== X-Received: by 2002:a17:903:40cb:b0:223:2aab:4626 with SMTP id d9443c01a7336-22428880264mr75741745ad.11.1741374616138; Fri, 07 Mar 2025 11:10:16 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736b2da32c6sm1449895b3a.149.2025.03.07.11.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 11:10:15 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: philmd@linaro.org, "Maciej S. Szmigiero" , pierrick.bouvier@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Paolo Bonzini , Marcelo Tosatti , richard.henderson@linaro.org, manos.pitsidianakis@linaro.org Subject: [PATCH v2 6/7] hw/hyperv/balloon: common balloon compilation units Date: Fri, 7 Mar 2025 11:10:02 -0800 Message-Id: <20250307191003.248950-7-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250307191003.248950-1-pierrick.bouvier@linaro.org> References: <20250307191003.248950-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 Reviewed-by: Richard Henderson --- 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 Fri Mar 7 19:10:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 14007025 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 CBFF42512C0 for ; Fri, 7 Mar 2025 19:10:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374619; cv=none; b=LTVnbyT4/q/ay/jueuH5IyDE8ORggVKpiykBtL949zf7Pgq8+Mt4nZ1Z4yRLYHgGdAmpVKJriAQIhgyWOceweo0vPcHzM6eGAP+CYhvMs7HM4KkMtHSf36OTrkHsP2WXUZffFyu6OeA/4v02x+WUQygSB/rk5cggxtFKLKr0Lyo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741374619; c=relaxed/simple; bh=HyHaiDVA7lVwaYVjiQIxGFKufAoNsvAgFuXov2/NWCA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JDxfA2xLvRr1uVAkc/qYEVMsQo5T3111rMiiQKPryWeK2ReTpgJl+34/DKA4Z1fm0fQqB2ReIOO1XXa+YyDmURGXUak7nztkj8s6QY9HPKzcI05covJl6bs68JMLf4lgW1Pxo2j/TvoEpkLoSGLuclJJaIIRHXfE+L2+Gmt8V7M= 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=g0U7RYvd; arc=none smtp.client-ip=209.85.214.178 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="g0U7RYvd" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2239c066347so42283675ad.2 for ; Fri, 07 Mar 2025 11:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741374617; x=1741979417; 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=g0U7RYvdFvJlVEBNQUHm/Z5s7UXub0xy1bVlgX2ioIKzE18N+/qneB14aM1U2IANju doV4wQJmhxMBbQo5sgqa6owWI3EqJYZwZPW8Y5NDVzuwb75nk/kj8Q8RS+k8W9Ywx5mZ fhHQFhpTnOJhvnXKO2ryWG/LBtwpr6ROIZu5HTsgQHCSDNb3unhuAYu3k8bo2Wyes+xp +ntBc6dT00G6VIwcaY9JPU63OVyZJt6ObQY8br/itd4e6FgQHHFCkdUuT25bQawj0uHI 2jUIk4iqWo496bPAQ2Bg2q3h3R5Y9ve41vexcpO0SPUsXtI3s7UBXsL8vgcrbUP1vn/w GthA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741374617; x=1741979417; 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=M24P7hIDP17dvsea1YEtTCtmcVchfaP3dTSNwV9dM3z7GeBFzDnkqRcGUe4JyyAhIB wQvSiXuuPeT+aF24GjSdDsfjmSAXxAYq0OiwCexPe6NDdJ+MKn2Wl5H7I8KaaNaDFX/C 8p11NJaq62Jv3xX1GW7Tyi/rpfhnydzPIAIkmm39zqF0UQdkZ3K9m8Ou7aTnNaDkKm8a Z9318RZiLTMEe9nSXlCbG39MNoKF9CT3EyjNgxzT+4rUMu/Pl++PcojquAKSFOyof+WP xvuq0snPd7BnRknvlXzrAowxVtG2Okc+/yYx45uA39knQBNRp5CmwlcFp2mgXSxp3H05 Ymqw== X-Forwarded-Encrypted: i=1; AJvYcCUhPsPbPBFlwIpvycEeHI5208e/VdzzA7DolbPx5JFPrRFYk7OJNTWSJSpz83/dMZ4oecg=@vger.kernel.org X-Gm-Message-State: AOJu0YyMFNSnFYYRkzpnhkUTdmETbifuQRxzvemx3nrxD0eHncJF2mdP YIPJaJC6h39lFRab6K9ibd96FYjFdkIlukobfbEErf1f2llI8thkvEOJCLRIrew= X-Gm-Gg: ASbGncvG7f+GaMLa2nGJwxN6bPwuYahgay+WpI7XW5biEP0kGKWEfv8wu+X/IdEhnhh aJ03BIuw7Tb7Gi0nyrQM3QjTbKMC1mUNz8rbXgmeVaJUgKd9HZvcLpK9HXO7AWBQQ+DGYiUPRrg HmG9T+Bf80EW5t0l4xsFnt1Q0+sZmmSqNBQxm2Xjte45EePDUoDOvbpIxOBJSl57Il843x9NBhN mw6NjJFOKwAi5c9Jp3XKh1jR7vW3HtyppQu3OkK4YRcHv2R6E36gdzN6UINJ4YeeHbucIS0e8HA MGl6HZqUsaKY3camkVMrP8Z/Ut0bUhDB29wJQsqXdWUY X-Google-Smtp-Source: AGHT+IG6FYKNJhA8fJgyJC2Shcb8wrPw9XFICBMg0Te6QK6uwGTN0bNhmb4BB9yGI8nrBiug8C0XEA== X-Received: by 2002:a05:6a00:4b4a:b0:736:54c9:df2c with SMTP id d2e1a72fcca58-736aaab75e8mr6208720b3a.15.1741374617086; Fri, 07 Mar 2025 11:10:17 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736b2da32c6sm1449895b3a.149.2025.03.07.11.10.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 11:10:16 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: philmd@linaro.org, "Maciej S. Szmigiero" , pierrick.bouvier@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Paolo Bonzini , Marcelo Tosatti , richard.henderson@linaro.org, manos.pitsidianakis@linaro.org Subject: [PATCH v2 7/7] hw/hyperv/hyperv_testdev: common compilation unit Date: Fri, 7 Mar 2025 11:10:03 -0800 Message-Id: <20250307191003.248950-8-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250307191003.248950-1-pierrick.bouvier@linaro.org> References: <20250307191003.248950-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 Reviewed-by: Richard Henderson --- 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'))