From patchwork Thu Feb 15 08:46:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 772885 Delivered-To: patch@linaro.org Received: by 2002:adf:9dc2:0:b0:33b:4db1:f5b3 with SMTP id q2csp722243wre; Thu, 15 Feb 2024 00:47:28 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWipeztn0bjQKftkK+efNWfeUaWn5B4pZV/GZEmitvnl/AD1Dhuq8PVlW9sR90p9eLwFTLzhxO9dsQOgWNGH7SE X-Google-Smtp-Source: AGHT+IGaXnt/YVGi0DOEoebVT4pwWtjKcF6EYYmxz4Zr74jQuWRT48rxR66yJpONOcaHG6fCVA6e X-Received: by 2002:ac8:58cd:0:b0:42d:b436:d318 with SMTP id u13-20020ac858cd000000b0042db436d318mr1493695qta.44.1707986847825; Thu, 15 Feb 2024 00:47:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707986847; cv=none; d=google.com; s=arc-20160816; b=zl05azgUDQtRYVT0z85Q1pgvpT125g6E5YtLKTw92sPzUbWtw1NR6XPHgSN40KZ8Qk r4Dh4KhgZW22aUoKd889gm6YkBI0wgU74yZe03RfcgL99zam7Jays42DM0alcVtlnKmP XGfam3cBak1hQvOOSdrekLGnWimEXfKBxQYBtkxg6QjxzO2Z4M0jE/KI2O9oOQh/fbhB ScGvhQUzHmuanNoGPmViIpMTWwr963uSYz9mgEzPW3wkqM1d9JD/Yr4YsZ/wiydKUPHl Rl8ZNW5R8C1eHikN4k5+tdYjoTfHapnd+UmzV6zldBRVo1l9su0RQO0C+FI8SwlFhqWK XKpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=z3Yvd12ZTKEdeYnpZuZujgW5c5hDdepl6bEEcV+HKcs=; fh=hBwAhUvUgYEnvtHOXpm7r5xrtxxKgz44vWYf7Bzsg9M=; b=gi8yzTatdK6vp4/RTzBvGsbguC8tuVbZwlu8bdE512hPqh9r5BVwIlbE8ilcT6o7f/ kPBsHDlW+Pp3cIlG16syfYeM+qM0mRHP48Fkau2ciRML0mNBQHhGBdQSCX5sjNPnwD0a 7Jt0z3ypbD31COBns5cVlMPiJPXgQy8b/RDoksaaYoV7BxPqCPGYFxw+25Xxc3dSYGQd QxMKJ6JXE2ngQTOSO406IbzaEEjVG1BiU59fFGl9bD7WyI5qs2e3fNZfaNfo0Pm36GGE OQH6jkjyycYPefFfteiYkOvuLB1F91YOjrxOUAggSwla6YzKwI74lpXtEqsQgFHuCxKk OKKQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GjHa2qVf; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id po7-20020a05620a384700b007871d87a992si976815qkn.690.2024.02.15.00.47.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Feb 2024 00:47:27 -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=GjHa2qVf; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raXOd-0006DK-Jb; Thu, 15 Feb 2024 03:47:07 -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 1raXOb-0006Cg-Jt for qemu-devel@nongnu.org; Thu, 15 Feb 2024 03:47:05 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raXOZ-0002SW-Io for qemu-devel@nongnu.org; Thu, 15 Feb 2024 03:47:05 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-41211acfcfcso3617885e9.1 for ; Thu, 15 Feb 2024 00:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707986822; x=1708591622; 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=z3Yvd12ZTKEdeYnpZuZujgW5c5hDdepl6bEEcV+HKcs=; b=GjHa2qVfmRH8tR7ZAkL5D0KuUXvgBkK5mzxaSy1gQGe8SrBhZoAgzLkgPqs2d/Wwpa f6mgXvIM9RXqeEtGU64ArPK4IBSnLINAqEMJDeItcs+1gzld8B41hmTsOZTEfsTqiM4q IvIqxPU/4ckubtz3OSYtEvsBBvo9afID5ixIN1EB5pPdE05Jwj2laHRZDYbSIdbiXBXi OfUumhi80MaOeGikOIucb4lfAa1y04Or0WUcHC2ACw/mIuZNgR3wpdLGyQ3Hi1E/9kvq 5Friyei9pT0vpVSwsX8X5efcIJcQWN56IywpWDdoUmwTcjHw5zRFnjCq8xRkN7z5gviz VXQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707986822; x=1708591622; 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=z3Yvd12ZTKEdeYnpZuZujgW5c5hDdepl6bEEcV+HKcs=; b=WQ9JMde8xYo9M5BtHMzkZelyvWs9c9/xlvD9HBwrkj8vI3SNOTT4VGEFK+1ZveFybU kGQfE6T0F63+kHXoWRds4XJv4/+NTFnov30/8ocXiB8Z787j/08ibKn3KQMxcD3nuqGh zxLXLXuMub/DVBRTsGpyNND+QqEKBil2wj/fQ6VFx/FWzH2NvBU2YcIGW5kQBP9znBY2 9zoW4TB73GgHa0l+FgyDko+WB+EwHCkp4jESm0hCQrP0yLLeyFDlRO/2BMxp1NFuSpaP Ab97n521BulwWlCTLDhh2AuTtniA4KPaHitjNuvWf1ibfVvuHDeVkLVzsfIbYizEMT65 J5Aw== X-Forwarded-Encrypted: i=1; AJvYcCVhyGNd0tU5SKZxUOtsTtwcs6dyH1WsQsh6JfuNfPIP3w5yiYNM2A7ohsgcaRK9YVXaCndmPKlbxIUX+lTqnUpj5+yiqlk= X-Gm-Message-State: AOJu0YxLtXgId/v7jYVJETaBvidV0xrcPrjLSLGVM5dua0AdhWp/6GnU moll4lnVcycVl/RYNRJN7aAmJw8bGsNakASsTpsT9l9uRCMOWx7FwQ1y3Zmx+GM= X-Received: by 2002:a05:600c:3543:b0:411:ebf7:9a69 with SMTP id i3-20020a05600c354300b00411ebf79a69mr814356wmq.9.1707986821773; Thu, 15 Feb 2024 00:47:01 -0800 (PST) Received: from localhost.localdomain (14.red-88-28-17.dynamicip.rima-tde.net. [88.28.17.14]) by smtp.gmail.com with ESMTPSA id y5-20020a7bcd85000000b00410ab50f70fsm4250040wmj.15.2024.02.15.00.46.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 15 Feb 2024 00:47:01 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Markus Armbruster , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Thomas Huth Cc: "Edgar E . Iglesias" , Damien Hedde , Zhao Liu , Paolo Bonzini , Beraldo Leal , Gustavo Romero , Alexander Graf , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Marcel Apfelbaum , =?utf-8?q?Philippe_Mathieu-D?= =?utf-8?q?aud=C3=A9?= , Amir Gonnen , Wainer dos Santos Moschetta , =?utf-8?q?Marc-Andr?= =?utf-8?q?=C3=A9_Lureau?= , Luc Michel , Richard Henderson , Eduardo Habkost , Yanan Wang , Stefan Hajnoczi , Bernhard Beschow , Eric Blake , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= Subject: [PATCH v3 0/1] target: New binary to prototype heterogeneous machines Date: Thu, 15 Feb 2024 09:46:52 +0100 Message-ID: <20240215084654.56297-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Since v2: - Run check-qtest instead of check-unit in CI (Alex) Almost 2 years later we got hundreds of cleanups patches merged, so we can get this patch in. Building the 'any' target has to be explictly requested in ./configure target-list argument. This binary will be use to rework QEMU startup code, paving the way toward dynamic machines. It might also allow experimenting with multiple TCG target frontends and possibly prototyping concurrent HW/SW accelerations. The corresponding CI jobs takes <3min!!! https://gitlab.com/philmd/qemu/-/jobs/6177909577 Duration: 2 minutes 50 seconds v1: https://lore.kernel.org/qemu-devel/20220215002658.60678-1-f4bug@amsat.org/ v2: https://lore.kernel.org/qemu-devel/20240209152945.25727-1-philmd@linaro.org/ Philippe Mathieu-Daudé (1): target: Add system emulation aiming to target any architecture configs/devices/any-softmmu/default.mak | 9 +++++++++ configs/targets/any-softmmu.mak | 3 +++ meson.build | 6 ++++-- qapi/machine.json | 2 +- include/sysemu/arch_init.h | 1 + target/any/cpu-param.h | 13 +++++++++++++ target/any/cpu-qom.h | 12 ++++++++++++ target/any/cpu.h | 24 ++++++++++++++++++++++++ .gitlab-ci.d/buildtest.yml | 20 ++++++++++++++++++++ hw/any/meson.build | 5 +++++ hw/meson.build | 1 + target/Kconfig | 1 + target/any/Kconfig | 4 ++++ target/any/meson.build | 7 +++++++ target/meson.build | 1 + 15 files changed, 106 insertions(+), 3 deletions(-) create mode 100644 configs/devices/any-softmmu/default.mak create mode 100644 configs/targets/any-softmmu.mak create mode 100644 target/any/cpu-param.h create mode 100644 target/any/cpu-qom.h create mode 100644 target/any/cpu.h create mode 100644 hw/any/meson.build create mode 100644 target/any/Kconfig create mode 100644 target/any/meson.build