From patchwork Thu Nov 5 17:51:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 320663 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp656491ilc; Thu, 5 Nov 2020 10:06:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsLGYtEU+zvPfIlWjbJKXaaTL+Fx+31lMmxrEpjkhSiBrWySgY0wBe7dzvUHhzFnG6hWCM X-Received: by 2002:a25:7455:: with SMTP id p82mr3448845ybc.28.1604599574990; Thu, 05 Nov 2020 10:06:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604599574; cv=none; d=google.com; s=arc-20160816; b=HDX9h0xDYekzs8LbEFNzTx621QUrjXK+savtmXiJsYUUis50u/lOku6Jpq1OJVPvcB MCqueFUH2EBXjCqw12zwQaEPm8S9O+CuiAKkuLrCISLMCBaPFXuKu+UNPahwSIN+iLAL ermF1UAAIHJ9qs88EeON+LaQaYxGZt7l2dA5N2j0yoOYSWFQCsuPK8DreNvBiXnF6JgK NqDTKbSLK5+maP11LQ+yLJ4RPqCLyKOyWdGbsR8x/u6BcFF4c2vXqH0ttjLxYxJItfT0 eFucC80PQLdHH0eoF2rw+UDZzFHeT6R4M+Sj+vQuLzXPqXGudOMzZFxPtk95oMu7wCCQ 7WwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=9rAsNLSka6AMk3Mjx1qnhDke8em3oiSkg4MaBZDRp2A=; b=E4NhRekl4028c06mQx8H+iz+qCJXI52XyTMC8g7rHV/Jj3tKtM/zimzTTPNFhwmgTx lKYeflCtKT8KB0B6Eqm1jftlgg+iUgbcTA/Yno2f7LFLx+N+nZLEEUH7ZDyJNT9poqgk xafgJ/zsLjJd5SalFgALROn5BBC+lRUQZNnWWR81CzBz7tYqccI8qQZhn7D+ftZRWP17 gCGczh5EVnGiM3wB3jUUU+HIe9mWvCyZiYL6NiwqJ7vJHWhUanMPqPYuKE2CesoCIucf 3nPaRVDFlu6jSFkylRjvd/nQeNCIduZ3IPoqkSBz2uxdbZz9XO//V8lRiMKXqz29zG1C N59g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=rEcUh+9H; 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=fail (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 b12si1808542ybg.190.2020.11.05.10.06.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Nov 2020 10:06:14 -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=fail header.i=@linaro.org header.s=google header.b=rEcUh+9H; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kajeI-00011J-HN for patch@linaro.org; Thu, 05 Nov 2020 13:06:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kajQz-0004Sw-83 for qemu-devel@nongnu.org; Thu, 05 Nov 2020 12:52:31 -0500 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:34211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kajQt-0004sQ-EB for qemu-devel@nongnu.org; Thu, 05 Nov 2020 12:52:28 -0500 Received: by mail-wr1-x443.google.com with SMTP id e6so2797984wro.1 for ; Thu, 05 Nov 2020 09:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9rAsNLSka6AMk3Mjx1qnhDke8em3oiSkg4MaBZDRp2A=; b=rEcUh+9HaEgS3Rb+ma5TRQbrekXiMD/UO02zP0VaEgmPy7MXyUewjHo495AC/sMh2i v85sbu34LqeGJRWj0YXj9iXulkiav/EVNELT2iX33lMXFfpkdXxg8nR9H5AOs4+vgvEy bogZZs+3IJchr3Ei9u9cQeKOgslrLQEieTmZq8UE/r0mY78880nyTgqd1aZUC/pGxIGU Gm/zZqnpiMxVV7DhxCwxtKYXCCik91muO2F3j5Xk+48+MW9QrayG6rLXQ2b18q9r7aOC Z4xoudDKptEsoK2zRzznesXugiqX6HHet9WDidLWsaWWeHUp08u/KX+sptUP1Ids1cZQ YxBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9rAsNLSka6AMk3Mjx1qnhDke8em3oiSkg4MaBZDRp2A=; b=Zuoz14Jl/Ji/gcFTUFsZplFNagDbIBFCjEObIweItFa+qtJicytkqdbgpMAUVy1M+1 snx0zMDeu5tghpwlQg8b0X7iABa4yxzz/arTo7flqiVa7HQnixIwenWAnwfdAn2/hm/R ms35dNqaRjyk3Brk3U/qCzAJImD3lUHHf9KSIsC1lnyamQC0sae+IrSPs9CchEAwoQ2x sSRsncFD36RngqiKlCM4xv6Cy3dTokIGnNiTgbYuZszXkwrIsw7ivwdUNh3FhTO+xH7V xbgdAUDgz5DX5Qbr3aI0kGB0p6zDpb3R81SiAIZ9SzQVZ91gJVeMVL62A7ySjPYN6f8C KYHA== X-Gm-Message-State: AOAM530mYxIhAbhm6cDzVjwbakBlgDrwEusBvaxQKVQ+msoO4C9iCqi3 a2m6ugaSYCLCKDW9ZT9zOGGW2g== X-Received: by 2002:adf:e443:: with SMTP id t3mr4397740wrm.14.1604598742039; Thu, 05 Nov 2020 09:52:22 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id i33sm3597425wri.79.2020.11.05.09.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 09:52:08 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 92E741FF98; Thu, 5 Nov 2020 17:51:54 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH 09/15] meson.build: introduce CONFIG_XEN_HVM flag Date: Thu, 5 Nov 2020 17:51:47 +0000 Message-Id: <20201105175153.30489-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201105175153.30489-1-alex.bennee@linaro.org> References: <20201105175153.30489-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::443; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x443.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: julien@xen.org, masami.hiramatsu@linaro.org, andre.przywara@arm.com, stefano.stabellini@linaro.org, takahiro.akashi@linaro.org, Paolo Bonzini , stefano.stabellini@xilinx.com, =?utf-8?q?Alex_?= =?utf-8?q?Benn=C3=A9e?= , stratos-dev@op-lists.linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While Xen traditionally uses i386-softmmu to run it's PV models on all architectures some models are very much x86 only. This includes the full hardware virtualisation (HVM) which is only used on x86 HW. By introducing the symbol we can also fix the inclusion of XEN_PCI_PASSTHROUGH which should only be built for x86 (and Linux) systems. Suggested-by: Paolo Bonzini Signed-off-by: Alex Bennée --- meson.build | 6 +++++- accel/Kconfig | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) -- 2.20.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/meson.build b/meson.build index 58e95227ea..46e4c2fc3a 100644 --- a/meson.build +++ b/meson.build @@ -83,6 +83,7 @@ endif if cpu in ['x86', 'x86_64'] accelerator_targets += { 'CONFIG_HAX': ['i386-softmmu', 'x86_64-softmmu'], + 'CONFIG_XEN_HVM': ['i386-softmmu', 'x86_64-softmmu'], 'CONFIG_HVF': ['x86_64-softmmu'], 'CONFIG_WHPX': ['i386-softmmu', 'x86_64-softmmu'], } @@ -204,6 +205,9 @@ if not get_option('kvm').disabled() and targetos == 'linux' endif if not get_option('xen').disabled() and 'CONFIG_XEN_BACKEND' in config_host accelerators += 'CONFIG_XEN' + if host_machine.cpu() == 'x86_64' + accelerators += 'CONFIG_XEN_HVM' + endif have_xen_pci_passthrough = not get_option('xen_pci_passthrough').disabled() and targetos == 'linux' else have_xen_pci_passthrough = false @@ -916,7 +920,7 @@ foreach target : target_dirs if sym == 'CONFIG_TCG' or target in accelerator_targets.get(sym, []) config_target += { sym: 'y' } config_all += { sym: 'y' } - if sym == 'CONFIG_XEN' and have_xen_pci_passthrough + if sym == 'CONFIG_XEN_HVM' and have_xen_pci_passthrough config_target += { 'CONFIG_XEN_PCI_PASSTHROUGH': 'y' } endif have_accel = true diff --git a/accel/Kconfig b/accel/Kconfig index 2ad94a3839..4cd54029bd 100644 --- a/accel/Kconfig +++ b/accel/Kconfig @@ -7,3 +7,6 @@ config KVM config XEN bool select FSDEV_9P if VIRTFS + +config XEN_HVM + bool