From patchwork Fri Mar 7 21:56: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: 871269 Delivered-To: patch@linaro.org Received: by 2002:a5d:64c8:0:b0:38f:210b:807b with SMTP id f8csp979794wri; Fri, 7 Mar 2025 13:56:55 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWM2GNjmz1ZBb0CgLAI/Kj8QFqwSlo0V8Joo0WyFMe1Iq4a8YQkNnBSxWrNJRy37KPbl4VcjQ==@linaro.org X-Google-Smtp-Source: AGHT+IGknFx73pEULUkZtOUKEbgBTe7KgkD1mqg9fvg+/JUsFMwmQRcVsVR6tfTiO1bJtQJw78hc X-Received: by 2002:a05:622a:528a:b0:474:de57:8c53 with SMTP id d75a77b69052e-476623891bemr15760331cf.4.1741384615104; Fri, 07 Mar 2025 13:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741384615; cv=none; d=google.com; s=arc-20240605; b=jW/zD3rSueLjSY8B9HUC/A0xrCj0H6l45K4XHSGVvE+f1tmeabPLhorTAWz6KJsheF RyDNHdTCdHcSujneLWvAz/iV4eFMdmKyjhJIoS9b8bFMopYyDCE68+2CDyxBMChxxwwW PYu+KWAgAqYYjWwdILZ5LdAFbHk8qRTBi8bTI3J3zGvdrbq2lFeWoG1Zs8g+1NLzfU09 kJ6le3okYJabdoExNaMwmXdAPeYynoE84WDWSyQHSaYHLjfqWolYnAbO8S7GEOPnYfOh rXogOf53HcQeHm9yXQRLpFKob9dBfVfQnqZ0pfgaDaztZcL7yNzGoRsLVwn5Be4yH4ym qebA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=vmW8mpO+51LbriEKWobYb1vkwz08PyFagyva1YCnsvQ=; fh=hipmfhSGa4WVtYLLPcg94YgUb7EgmjQTwNEVz4+dVKk=; b=KPGZ2HGUaqlw+noV7wevKXL/kjMQj0Wf8OjUVrLbhyXUH+wTRooyi+vMV71YPx38Fc ey2OaeXkwFC6PClTIPhdzRENGPrPUDju5uQNrrzmqeQhPQcJxQvcSPfQArfzx8LXhhAE ncdYllXE1Hkn3Lgbg9VjT8ho4KQWPSbshRHGoat1HqWro3a1IuLM2T/15lEu++P657go bk/7s2dBLhh7fQAAxTDTcR/Ws0v+/TS8xA3N/VroqXAPYxvJ0uS1ICKdBXDmDil3ASbz UZwwDI50TGLnxnsIIlEOSaK+17/zGbzoTLEukA84QmU65LPkYrlhUPuSh1GE6W+Cu0M6 SGcQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WqCclSze; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4751d9bacf3si44269681cf.165.2025.03.07.13.56.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Mar 2025 13:56:55 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WqCclSze; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tqfgM-0004y7-69; Fri, 07 Mar 2025 16:56:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tqfgK-0004xh-Qs for qemu-devel@nongnu.org; Fri, 07 Mar 2025 16:56:36 -0500 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tqfgJ-0001jI-7y for qemu-devel@nongnu.org; Fri, 07 Mar 2025 16:56:36 -0500 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-2235189adaeso40782595ad.0 for ; Fri, 07 Mar 2025 13:56:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741384594; x=1741989394; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vmW8mpO+51LbriEKWobYb1vkwz08PyFagyva1YCnsvQ=; b=WqCclSze4Vm5pJ9B9fFH0O+WEMAagATv1UeIKdE40vwmwFGcOyPs0ggR0XxGG1Uryu se24i11UP8ifUCy9zYN5AnpIf1RRGvCWKtYIP8eqNnmoziMnhvS20BwdKpECzbDb+hNo 8OLGjvbXhz3nURxWA7fwTk5gFHq9Cg/SOKqA26h0cZRbkxjr8LJVjmeZcSZfvyg/wVdg 1Z+syHWa4gjFtjVrt+kbRYA/+w3d8sGbanP9k64A9F2FQ+UqRGYPqy76yHOhyA2wz7Ii Q8HMiZQy9oF8sLGTbeeSmv4Jpzl68qFICVy+16lT2N+of9wLXjqn1uQvJnbxDfeUMPSi eOAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741384594; x=1741989394; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vmW8mpO+51LbriEKWobYb1vkwz08PyFagyva1YCnsvQ=; b=jh9qio3xX8badGspczFBuuy5AS150k/vZnSb8pbiftPgcNBJ7gqOhP7nLUMq67EzW/ guoO6cu5lgxpSp3oHkt9C7Z5uP5HMfFuBrvyFnGkEKtMMqLBl3Pdfvxw60BvhSXcGYu/ wdMwhFmeY7REgX7K7l/Phwo3XEkMr8rnXJdBuyZPxYKtkIHW+mlJDl/sCkmtOdN7/WA7 E2C/HtJDVuWxCnYx+/9puwkqhH8xc+Ap2qWNIiPKT5kTxiaLagSu8SC+COV/49fJNIvC 4/PAteREHxZs5iO3FNX/PhBkRQC1XZVIRVyw3Fl6oGw+XRH4MC+G7hojrLcqk1ltVoCq 60zg== X-Gm-Message-State: AOJu0YypAp00aQZ+VqDfKfG0tul2GiYW38FLcNLBjg0MCBKz5MInYaXJ MRZ1dloI7rS/9cMxaRgQxlfjpzcE04O7jFUS+7JKXk10vEhB7xzc0CbUp/aYiFOURQ4eLhkwhR5 e X-Gm-Gg: ASbGncv9VedSGENjsHP5XHxwbKnk1sSAEO7uUcnJq03F0UwTzTgWCgPlGesNg4bTvMJ JHEOUmqg04H4YxvCabjwGP0QAW38je19IxVPq4c3r2roOkYHQjo5IcLsccn2xf1sY8+0TeFc64S d/ZOzYN35FjfjAjksSWHNWP/1W3Uvhs31bmVlXreyn1kWLbD/NrMJSaNa9NcyU+tLpbnW9MeN18 tAzzXc70QFny3Uvr0VxKZXC/VSvfWw6ne4ispHM9urJLBvoRbbfyYRD7RrVwgJjvPNTNhztubXo wnfkXDyAYhDcu/WENBMnLbscSENUJAooIA1BAkcdS+Sn X-Received: by 2002:a17:903:2f82:b0:223:fbbe:599c with SMTP id d9443c01a7336-2246452f784mr19947915ad.19.1741384593835; Fri, 07 Mar 2025 13:56:33 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-736ac9247dcsm2000927b3a.125.2025.03.07.13.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Mar 2025 13:56:33 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: philmd@linaro.org, Paolo Bonzini , pierrick.bouvier@linaro.org, kvm@vger.kernel.org, alex.bennee@linaro.org, Marcelo Tosatti , "Maciej S. Szmigiero" , richard.henderson@linaro.org, manos.pitsidianakis@linaro.org Subject: [PATCH v4 0/7] hw/hyperv: remove duplication compilation units Date: Fri, 7 Mar 2025 13:56:16 -0800 Message-Id: <20250307215623.524987-1-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62e; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Work towards having a single binary, by removing duplicated object files. hw/hyperv/hyperv.c was excluded at this time, because it depends on target dependent symbols: - from system/kvm.h - kvm_check_extension - kvm_vm_ioctl - from exec/cpu-all.h | memory_ldst_phys.h.inc - ldq_phys v2 - remove osdep from header - use hardcoded buffer size for syndbg, assuming page size is always 4Kb. v3 - fix assert for page size. v4 - use KiB unit Pierrick Bouvier (7): hw/hyperv/hv-balloon-stub: common compilation unit hw/hyperv/hyperv.h: header cleanup hw/hyperv/vmbus: common compilation unit hw/hyperv/hyperv-proto: move SYNDBG definition from target/i386 hw/hyperv/syndbg: common compilation unit hw/hyperv/balloon: common balloon compilation units hw/hyperv/hyperv_testdev: common compilation unit include/hw/hyperv/hyperv-proto.h | 12 ++++++++ include/hw/hyperv/hyperv.h | 3 +- target/i386/kvm/hyperv-proto.h | 12 -------- hw/hyperv/syndbg.c | 11 +++++-- hw/hyperv/vmbus.c | 50 ++++++++++++++++---------------- hw/hyperv/meson.build | 9 +++--- 6 files changed, 52 insertions(+), 45 deletions(-)