From nobody Sat May 4 23:16:44 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1640348734; cv=none; d=zohomail.com; s=zohoarc; b=dc7K7EdtXDeEPpMQGR1LR1KLCL71TqLfVzif+gLcV3K2Bydl1zfm/wKHbz4zXhX8ODF0T6ScL53RdAttT01V9Rxi+IPmr1ffzmSVX+Rm78KhK8FvuFc0qaxfj7a3pEvSWTY7db6RwaLb8e0u3S7zJRQqf1KzuLEiE2daD2/axEg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1640348734; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=TN0/+3UDKz6bwilrMIlNZuNePKFZICf+qgZEEPafMWM=; b=GK+Tr0K6b4hxJapSLo6fsIXpec/2UgN/UnThwFGvynmWO7h606vo8lN/vsALIcynr3qISpnYwkTcXzImPOpsf5SWwAM3wajLRKQLYCZct2gQ8lDQumpgV1fGOYa3nZyblAY//nItQWKrhyW0V8M45v2XWlM2CMOe3hogB5Mmr8g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1640348734489567.0756584668469; Fri, 24 Dec 2021 04:25:34 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.251349.432631 (Exim 4.92) (envelope-from ) id 1n0jd6-0001v3-Iu; Fri, 24 Dec 2021 12:25:00 +0000 Received: by outflank-mailman (output) from mailman id 251349.432631; Fri, 24 Dec 2021 12:25:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1n0jd6-0001uw-FW; Fri, 24 Dec 2021 12:25:00 +0000 Received: by outflank-mailman (input) for mailman id 251349; Fri, 24 Dec 2021 12:24:59 +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 1n0jd5-0001uq-O8 for xen-devel@lists.xenproject.org; Fri, 24 Dec 2021 12:24:59 +0000 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [2607:f8b0:4864:20::642]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 81c583e6-64b4-11ec-9e60-abaf8a552007; Fri, 24 Dec 2021 13:24:58 +0100 (CET) Received: by mail-pl1-x642.google.com with SMTP id n16so6573696plc.2 for ; Fri, 24 Dec 2021 04:24:58 -0800 (PST) Received: from localhost.localdomain ([47.89.83.13]) by smtp.gmail.com with ESMTPSA id d21sm9532980pfv.45.2021.12.24.04.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Dec 2021 04:24:56 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 81c583e6-64b4-11ec-9e60-abaf8a552007 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TN0/+3UDKz6bwilrMIlNZuNePKFZICf+qgZEEPafMWM=; b=kOQgMg2IyS/j4CZvJIAtntd/p+UMb3WooSvYDGy27G1rgF4ChdEPMaLjvgtnTRhEjF NtgpQvjAME3sNcw7fH1X1Y1gjtdy9IIsCLjSa75Pr3mDJ42J7p0n7tRF0H8obM3rtMho AIUeF8Na/+vmX0+CkFSFkxbcwNqm0V/zoTtG+jS8/wTLi7Qf2zCN/4hDqZf9glQmqA8o SJ4KQTPaHrfM+74M+m0i4ycqrRrVcrmN/oRh0nt+WChHZTFT87oyZlYcIYHrU5os3ViX 1XUeuyN4BiMYxQgCQ0HHIeG7Z0KptdQR+ecPQD9fXuM3907cDAP7CwzU5S0x9kSWxORf xouw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TN0/+3UDKz6bwilrMIlNZuNePKFZICf+qgZEEPafMWM=; b=kMQoEg4aLRdO4N3olXXdvOq6KFpPaaGKLC9M24DvVn3IbcTM6E6TAZxyUYNITJ9UWo E8j74RTCpHlpFIfRiDiWIY1sZkvQYqIdceNtYs6QAYwIpuuCw761lhC6X9FjVkHa1gq3 27lDcEyo2kGddNVPoo9Bqg7RqccxSIhZS7szHNzqrzwqLXg1VuNlNmwzqhSYcwg2vshx OfsVLoVvCefwCAOqiRp3vsDF3/ev7FoaVkXaCUxGtAXZJONf/3KOeyPu34AlZKdvJl1t cbNsSqPSbEP95wlZ1GRUcPuRt7laVMfjkrDQ93UcAL5YTi7zKACFO3qYPuiwG49vcR4k NAiQ== X-Gm-Message-State: AOAM531/hsuq5Vq992hvzbAgox6Fkgzdg0KpVxb5pF8icIieak9Rln4i BpmfAeXrxDyAM9QTsKFRRAk= X-Google-Smtp-Source: ABdhPJzY/4Gmv1rLeXGyOEY1aD9/zkaXpC59+nRdF4AyIzbT6CvQnMN25Gfvhnzn/szRrCL2S9PIMg== X-Received: by 2002:a17:90a:d195:: with SMTP id fu21mr7765690pjb.106.1640348697088; Fri, 24 Dec 2021 04:24:57 -0800 (PST) From: Dongjiu Geng To: sstabellini@kernel.org, julien@xen.org, Volodymyr_Babchuk@epam.com, bertrand.marquis@arm.com, xen-devel@lists.xenproject.org Cc: gengdongjiu1@gmail.com Subject: [PATCH v2] xen/arm: fix the build error for GIC on ARM64 QEMU Platform Date: Fri, 24 Dec 2021 20:24:51 +0800 Message-Id: <20211224122451.1210382-1-gengdongjiu1@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1640348735780000001 Content-Type: text/plain; charset="utf-8" when enable CONFIG_NEW_VGIC in ARM64 QEMU Platform, it will build failed. so fix it and make it can select GICV2. Signed-off-by: Dongjiu Geng --- $ make dist-xen XEN_TARGET_ARCH=3Darm64 CROSS_COMPILE=3Daarch64-linux-gnu- = -j10 make -C xen install make[1]: Entering directory '/home/workspace/gengdongjiu/old_machine/XEN/xe= n/xen' make -f /home/workspace/gengdongjiu/old_machine/XEN/xen/xen/tools/kconfig/M= akefile.kconfig ARCH=3Darm64 SRCARCH=3Darm HOSTCC=3D"gcc" HOSTCXX=3D"g++" s= yncconfig make[2]: Entering directory '/home/workspace/gengdongjiu/old_machine/XEN/xe= n/xen' gcc -Wp,-MD,tools/kconfig/.conf.o.d -c -o tools/kconfig/conf.o tools/k= config/conf.c gcc -Wp,-MD,tools/kconfig/.confdata.o.d -c -o tools/kconfig/confdata.o= tools/kconfig/confdata.c gcc -Wp,-MD,tools/kconfig/.expr.o.d -c -o tools/kconfig/expr.o tools/k= config/expr.c flex -otools/kconfig/lexer.lex.c -L tools/kconfig/lexer.l bison -o tools/kconfig/parser.tab.c --defines=3Dtools/kconfig/parser.tab.h = -t -l tools/kconfig/parser.y gcc -Wp,-MD,tools/kconfig/.preprocess.o.d -c -o tools/kconfig/preproce= ss.o tools/kconfig/preprocess.c gcc -Wp,-MD,tools/kconfig/.symbol.o.d -c -o tools/kconfig/symbol.o too= ls/kconfig/symbol.c gcc -Wp,-MD,tools/kconfig/.lexer.lex.o.d -I /home/workspace/gengdongjiu= /old_machine/XEN/xen/xen/tools/kconfig -c -o tools/kconfig/lexer.lex.o tool= s/kconfig/lexer.lex.c gcc -Wp,-MD,tools/kconfig/.parser.tab.o.d -I /home/workspace/gengdongji= u/old_machine/XEN/xen/xen/tools/kconfig -c -o tools/kconfig/parser.tab.o to= ols/kconfig/parser.tab.c gcc -o tools/kconfig/conf tools/kconfig/conf.o tools/kconfig/confdata.o to= ols/kconfig/expr.o tools/kconfig/lexer.lex.o tools/kconfig/parser.tab.o too= ls/kconfig/preprocess.o tools/kconfig/symbol.o tools/kconfig/conf --syncconfig Kconfig WARNING: unmet direct dependencies detected for GICV3 Depends on [n]: ARM_64 [=3Dy] && !NEW_VGIC [=3Dy] Selected by [y]: - QEMU [=3Dy] && && ARM_64 [=3Dy] WARNING: unmet direct dependencies detected for GICV3 Depends on [n]: ARM_64 [=3Dy] && !NEW_VGIC [=3Dy] Selected by [y]: - QEMU [=3Dy] && && ARM_64 [=3Dy] WARNING: unmet direct dependencies detected for GICV3 Depends on [n]: ARM_64 [=3Dy] && !NEW_VGIC [=3Dy] Selected by [y]: - QEMU [=3Dy] && && ARM_64 [=3Dy] make[2]: Leaving directory '/home/workspace/gengdongjiu/old_machine/XEN/xen= /xen' make -f Rules.mk _install make[2]: Entering directory '/home/workspace/gengdongjiu/old_machine/XEN/xe= n/xen' --- xen/arch/arm/Kconfig | 5 +++-- xen/arch/arm/platforms/Kconfig | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig index ecfa6822e4..373c698018 100644 --- a/xen/arch/arm/Kconfig +++ b/xen/arch/arm/Kconfig @@ -35,7 +35,7 @@ config ACPI =20 config GICV3 bool "GICv3 driver" - depends on ARM_64 && !NEW_VGIC + depends on ARM_64 default y ---help--- =20 @@ -44,13 +44,14 @@ config GICV3 =20 config HAS_ITS bool "GICv3 ITS MSI controller support (UNSUPPORTED)" if UNSUPPORT= ED - depends on GICV3 && !NEW_VGIC + depends on GICV3 =20 config HVM def_bool y =20 config NEW_VGIC bool "Use new VGIC implementation" + depends on !GICV3 ---help--- =20 This is an alternative implementation of the ARM GIC interrupt diff --git a/xen/arch/arm/platforms/Kconfig b/xen/arch/arm/platforms/Kconfig index c93a6b2756..6d3ee99456 100644 --- a/xen/arch/arm/platforms/Kconfig +++ b/xen/arch/arm/platforms/Kconfig @@ -15,7 +15,6 @@ config ALL_PLAT config QEMU bool "QEMU aarch virt machine support" depends on ARM_64 - select GICV3 select HAS_PL011 ---help--- Enable all the required drivers for QEMU aarch64 virt emulated --=20 2.25.1