From patchwork Tue Mar 26 13:14:10 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: 782609 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp1675384wrt; Tue, 26 Mar 2024 06:14:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWx5XTCsGV3U0vecKWWutYZSuPnJ9cPI51+utjiWnGPl8Ipv/4FmwXRJXn8Ml6H4ohyrbQ/wXRskUphGCUfon1Q X-Google-Smtp-Source: AGHT+IHQRaLP8vvwN7GYaxpAY7ij3Rm82JdeJhvj3Sls5MM1Og4emcRly5+lVHMVi9RvFdFiS4mk X-Received: by 2002:a05:620a:16c7:b0:78a:39dd:509e with SMTP id a7-20020a05620a16c700b0078a39dd509emr11195564qkn.10.1711458885597; Tue, 26 Mar 2024 06:14:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711458885; cv=none; d=google.com; s=arc-20160816; b=iQtuIlRGmWQkUwvVDubckNhpkNoKi/1u6YKGcxRQIAm6cScJz7JazdtbQcyU+cjyBI hPSIPgTPyrXZCi+sNm0TwkYHitrMHzNPjbPrLPTdjHZlEpmP2w2BFmduD1nlYG2xDjDC +657poQ7EZ0jgAxj3+MSwm20Z4mtgmv23bdKUOAMMzJUGJ67HDlOxaFC2tpT2SWziSHk AIcjBDLrRRZBPber0mw2smJTk3WzKmTGWlIqRcjYXXzDl4EuI5vWgaIP7J/C/xvoodZ+ v4RnEptP/1n488bBUlbXSiCrS+piDC96HFQm+rY9hdJ8MTAJWwZjvc8/RvB/No69f0Wk 2Bhw== 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=IBArclXLgBtGIQsug37uXb6juwwdgaFEKEzp1NzqfYA=; fh=ie+i1vYFxsl9KDoYtZHoGgei1PDSIGuiFigfHu8q4PM=; b=lPhW5cZs39FN69545hKI9dd+TQ4DTbF5pm0Cu0BiaV9jdhLnFDo2V9HvxHQa8Yn89m GLk7qm4TjMDASSba3mmvjpzreMrg5Uks90i6gzeItvJcQvZxiqQpYvE3kqFKGB+n8/WV ys7P1RP/xGbxkHlYgDJmd7Q99DzlO1GXYkCbigoZjaI0TpJMX2uFgDfG7xkoMc4A8jHB FDWwF4N2cUsa+HBhSTxiNZSAc3f+KGUWT8Yk+mLXoWVoUnbUj0lwJzILOOILf5SaRB2+ CS9EGQGphApKcGLsS6Syr9BG71eISS2Yz6fcaUFeDW31QuZxzzRJWS/CGuOXSkgdZKA0 yA+g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mVlXtdD4; 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 a5-20020a05620a124500b0078908ec89c2si7420421qkl.367.2024.03.26.06.14.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Mar 2024 06:14:45 -0700 (PDT) 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=mVlXtdD4; 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 1rp6dC-0003Nk-EA; Tue, 26 Mar 2024 09:14:22 -0400 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 1rp6d9-0003NU-As for qemu-devel@nongnu.org; Tue, 26 Mar 2024 09:14:19 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rp6d6-0008Co-UW for qemu-devel@nongnu.org; Tue, 26 Mar 2024 09:14:18 -0400 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-513cf9bacf1so7438477e87.0 for ; Tue, 26 Mar 2024 06:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711458854; x=1712063654; 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=IBArclXLgBtGIQsug37uXb6juwwdgaFEKEzp1NzqfYA=; b=mVlXtdD4/Yat5n5KcwksZTrKO4MFcAjUImiIbD1lKZGugqjwgRe9wsCuqoVb11YzcK h3sALBi4yG6pvJkr4CQ1gKU5n3fYtGNU46ty2y00dIIzIH7wTXkYb1/Eo+FcwRAIXtnb L2p2gx2tSe7wFH0Epe9uFKcDvGAHsO94qRygvRRT5RQqeicFFEcjomwaWjdcmbjqjDtU XkwXndDC3Dcs2nD65x1Vf4I1TkKjgmDLC8SdVwsfy3MNzSd4ih9pHwnstNl1HgRaRJaS jThRPQKxChzaQ4dVz4IfiWNAIc3Q1VJxdd5fuqvH3Sl0Dfn4q3Vx2o/hK8BVhZHa519y +4iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711458854; x=1712063654; 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=IBArclXLgBtGIQsug37uXb6juwwdgaFEKEzp1NzqfYA=; b=dkrm2VNHGvb6sXGi3dVZhVW0G3a3aCU5IZHSTk4cY8JyojsJ5mg3eNwDOl6fPvKFbT 1HrVDvPiXcHYgtR0pEXtG7BSQwEF2CHMblH9D7u4xwDYYBl/7+xosnjla4/soz78az17 CrXb7X1w4BhRLOTSJX0hRKOIq/CrGL7j9CneWryiwPsN9JlGVFg3QteqAZJHQMyhKBBC +qNJKa20iyYH6hqN4sJmWz7imGq/oO2nDcNI79RbJp3EJhfq42aGpqVxPUJc4IEcytYZ /nqNbBlyifqtqLEJibyfaBw3lB4iRfahUdu8CcypPBWghzBsTg/7Cwar4HNx97iJyWty W5Mw== X-Gm-Message-State: AOJu0Yw9NuZ9bwUoQfV9xLcGCBuop3OEVl8aeyvJI1G4jptFaGcI6tZf rhnLr7dx0r+PUKDxPzBx5Gl0kJahic+lJz8WGlm/Ifq2ghQoORLVhsWaOg90P3sA1FN6GLr6LTy g X-Received: by 2002:a2e:a0c5:0:b0:2d6:bd60:1c17 with SMTP id f5-20020a2ea0c5000000b002d6bd601c17mr6581350ljm.28.1711458853565; Tue, 26 Mar 2024 06:14:13 -0700 (PDT) Received: from m1x-phil.lan ([176.176.155.229]) by smtp.gmail.com with ESMTPSA id s19-20020a05600c45d300b00414112a6159sm11482143wmo.44.2024.03.26.06.14.12 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 26 Mar 2024 06:14:13 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Sergio Lopez , Michael Tokarev Cc: mst@redhat.com, Eduardo Habkost , Richard Henderson , Marcel Apfelbaum , Ani Sinha , Paolo Bonzini , Igor Mammedov , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-9.1] hw/i386: Add a config to only build the microvm machine Date: Tue, 26 Mar 2024 14:14:10 +0100 Message-ID: <20240326131410.93866-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::12d; envelope-from=philmd@linaro.org; helo=mail-lf1-x12d.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 Add a config file to build a binary only containing the microvm machine, inspired by a discussion on the list: https://lore.kernel.org/qemu-devel/604bf457-23a7-4d06-b59f-a7b46945c626@tls.msk.ru/ As suggested in commit d1d5e9eefd ("configure: allow the selection of alternate config in the build"), it can be built using: $ ../configure --without-default-features \ --target-list=x86_64-softmmu \ --with-devices-x86_64=microvm Inspired-by: Michael Tokarev Signed-off-by: Philippe Mathieu-Daudé --- configs/devices/x86_64-softmmu/microvm.mak | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 configs/devices/x86_64-softmmu/microvm.mak diff --git a/configs/devices/x86_64-softmmu/microvm.mak b/configs/devices/x86_64-softmmu/microvm.mak new file mode 100644 index 0000000000..fe48b5b4a7 --- /dev/null +++ b/configs/devices/x86_64-softmmu/microvm.mak @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2024 Linaro Ltd. +# +# Config that only supports the 64-bit microvm machine. +# This avoids bringing in any of numerous legacy features from +# the legacy machines or the 32bit platform. +# + +CONFIG_MICROVM=y +CONFIG_PCI_DEVICES=n +CONFIG_SMBIOS=y +CONFIG_SMBIOS_LEGACY=n +CONFIG_VIRTIO_BALLOON=y +CONFIG_VIRTIO_BLK=y +CONFIG_VIRTIO_CRYPTO=y +CONFIG_VIRTIO_GPU=y +CONFIG_VIRTIO_INPUT=y +CONFIG_VIRTIO_NET=y +CONFIG_VIRTIO_RNG=y +CONFIG_VIRTIO_SCSI=y +CONFIG_VIRTIO_SERIAL=y