From patchwork Tue Nov 14 14:37:59 2023 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: 13455423 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72467C4332F for ; Tue, 14 Nov 2023 14:38:52 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.632620.986890 (Exim 4.92) (envelope-from ) id 1r2uYs-0004gO-FC; Tue, 14 Nov 2023 14:38:42 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 632620.986890; Tue, 14 Nov 2023 14:38:42 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r2uYs-0004gF-Cc; Tue, 14 Nov 2023 14:38:42 +0000 Received: by outflank-mailman (input) for mailman id 632620; Tue, 14 Nov 2023 14:38:41 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1r2uYr-0003vI-CM for xen-devel@lists.xenproject.org; Tue, 14 Nov 2023 14:38:41 +0000 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [2a00:1450:4864:20::633]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 80fed492-82fb-11ee-98db-6d05b1d4d9a1; Tue, 14 Nov 2023 15:38:40 +0100 (CET) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9ae2cc4d17eso851790866b.1 for ; Tue, 14 Nov 2023 06:38:40 -0800 (PST) Received: from m1x-phil.lan (cac94-h02-176-184-25-155.dsl.sta.abo.bbox.fr. [176.184.25.155]) by smtp.gmail.com with ESMTPSA id j2-20020a170906094200b009ad7fc17b2asm5613097ejd.224.2023.11.14.06.38.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 14 Nov 2023 06:38:40 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 80fed492-82fb-11ee-98db-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699972720; x=1700577520; darn=lists.xenproject.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=kBdIXHGvx5/0R2xC8Q+GilhuZtCQOtnJ9hpGFyppJEE=; b=VfrsxR0BlBurVaHJ2Y5Iwqs2Y84fBd/VZRQCgMebzbhGTkhHdXqBTtqt17aXU1E8Cg ruN/+VH+iKd6Zqs/y+UWyz7zvR8PciuJ/MZeFoJ4Usa6NQ0cXaV7Cbl3XwTFuWj1nzV/ FaRZ20NXSeMJ3xBZsg7zqa3Ze9D2B3QFpT/41BKwsnimQldIlmfpZih1MqqUB/L+bmE4 mxrBS2D9OTH+XxLN9IaqcWZVOYVAQBAJ/CqD2Tw3jBku5AHs5iWAI42xb152MrZYMgyL EB1TaSuEGHjMebeAL/1RB7G/z5phTYqe8xku/KpVYFXORyIpZbjHonOxUwo7Z5Bq8fqP IxjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699972720; x=1700577520; 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=kBdIXHGvx5/0R2xC8Q+GilhuZtCQOtnJ9hpGFyppJEE=; b=COPJUGP2sxffgimmf8e2ETn2SE7L4ExawWGIDlUvl4GvM5JlOYZpVDZv6rLYLvTWiR +/iQ8uUK+SlxUGpYU6ujardlgHktLwxPL16RM4ROzNE2wO3mTmyoqMm17ye8nr2ft/DN oQG1zpEKrnTJ4/ks8OouyO+VTWNuCCyvuL/5XWCiSkNky5xNlIuYCSjh3nWHIlC25yXf 10k0N9/t7QdaF8ZEIO/MWkAP+EvEBpLt1EDy8JjgDD5TV108mVIJoCb4cVXA7sDytoyy 1EVe6BgmhvRdMmnW2My1MUCZM7STXGzHcKvh93JvtuuvnrTdEKB4XhgQayf/apJkdS6J 4Pog== X-Gm-Message-State: AOJu0YxM3pVYm6bDmf/wkZZtOficNnftunrlUsTp4f151fGjT4G2yhnn lYA799pfD4nUslhTrw44I+1+zJfmbTJIkPgIHis= X-Google-Smtp-Source: AGHT+IFii/vTCRNAFXoxhgp7tKdZ5NzaA4D0hMTO7kCC4hnZ5p3PauJ+Zda1OHH5OQndb4HCu48Kbw== X-Received: by 2002:a17:906:6b97:b0:9d2:e2f6:45b2 with SMTP id l23-20020a1709066b9700b009d2e2f645b2mr7411114ejr.71.1699972720502; Tue, 14 Nov 2023 06:38:40 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: David Woodhouse , qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Paul Durrant , qemu-arm@nongnu.org, Paolo Bonzini , David Woodhouse , Stefano Stabellini , Richard Henderson , xen-devel@lists.xenproject.org, qemu-block@nongnu.org, Anthony Perard , kvm@vger.kernel.org, Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-9.0 v2 03/19] sysemu/xen-mapcache: Check Xen availability with CONFIG_XEN_IS_POSSIBLE Date: Tue, 14 Nov 2023 15:37:59 +0100 Message-ID: <20231114143816.71079-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231114143816.71079-1-philmd@linaro.org> References: <20231114143816.71079-1-philmd@linaro.org> MIME-Version: 1.0 "sysemu/xen.h" defines CONFIG_XEN_IS_POSSIBLE as a target-agnostic version of CONFIG_XEN accelerator. Use it in order to use "sysemu/xen-mapcache.h" in target-agnostic files. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: David Woodhouse --- include/sysemu/xen-mapcache.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/sysemu/xen-mapcache.h b/include/sysemu/xen-mapcache.h index c8e7c2f6cf..10c2e3082a 100644 --- a/include/sysemu/xen-mapcache.h +++ b/include/sysemu/xen-mapcache.h @@ -10,10 +10,11 @@ #define XEN_MAPCACHE_H #include "exec/cpu-common.h" +#include "sysemu/xen.h" typedef hwaddr (*phys_offset_to_gaddr_t)(hwaddr phys_offset, ram_addr_t size); -#ifdef CONFIG_XEN +#ifdef CONFIG_XEN_IS_POSSIBLE void xen_map_cache_init(phys_offset_to_gaddr_t f, void *opaque);