From nobody Mon Feb 26 07:24:00 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TjsYn3w3Vz5CZxN; Mon, 26 Feb 2024 07:24:13 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TjsYm0Rldz4cHr; Mon, 26 Feb 2024 07:24:12 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 2a01:4f8:13b:39f::9f:25 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 88D458D4A221; Mon, 26 Feb 2024 07:24:02 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id EF1B12D029D2; Mon, 26 Feb 2024 07:24:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id Sr2OpuRCgBeq; Mon, 26 Feb 2024 07:24:01 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id C34872D029D8; Mon, 26 Feb 2024 07:24:00 +0000 (UTC) Date: Mon, 26 Feb 2024 07:24:00 +0000 (UTC) From: "Bjoern A. Zeeb" To: Andrew Turner cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 47e073941f4e - main - Import the kernel parts of bhyve/arm64 In-Reply-To: <202402211855.41LItsm2033633@gitrepo.freebsd.org> Message-ID: References: <202402211855.41LItsm2033633@gitrepo.freebsd.org> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:39f::9f:25]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-all@FreeBSD.org,dev-commits-src-main@FreeBSD.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[zabbadoz.net]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_THREE(0.00)[4] X-Rspamd-Queue-Id: 4TjsYm0Rldz4cHr On Wed, 21 Feb 2024, Andrew Turner wrote: > The branch main has been updated by andrew: > > URL: https://cgit.FreeBSD.org/src/commit/?id=47e073941f4e7ca6e9bde3fa65abbfcfed6bfa2b > > commit 47e073941f4e7ca6e9bde3fa65abbfcfed6bfa2b > Author: Andrew Turner > AuthorDate: 2024-01-09 15:22:27 +0000 > Commit: Andrew Turner > CommitDate: 2024-02-21 18:55:32 +0000 > > Import the kernel parts of bhyve/arm64 > > To support virtual machines on arm64 add the vmm code. This is based on > earlier work by Mihai Carabas and Alexandru Elisei at University > Politehnica of Bucharest, with further work by myself and Mark Johnston. > > All AArch64 CPUs should work, however only the GICv3 interrupt > controller is supported. There is initial support to allow the GICv2 > to be supported in the future. Only pure Armv8.0 virtualisation is > supported, the Virtualization Host Extensions are not currently used. > > With a separate userspace patch and U-Boot port FreeBSD guests are able > to boot to multiuser mode, and the hypervisor can be tested with the > kvm unit tests. Linux partially boots, but hangs before entering > userspace. Other operating systems are untested. > > Sponsored by: Arm Ltd > Sponsored by: Innovate UK > Sponsored by: The FreeBSD Foundation > Sponsored by: University Politehnica of Bucharest > Differential Revision: https://reviews.freebsd.org/D37428 > --- > sys/arm64/include/vmm.h | 362 +++++ > sys/arm64/include/vmm_dev.h | 272 ++++ > sys/arm64/include/vmm_instruction_emul.h | 83 ++ > sys/arm64/include/vmm_snapshot.h | 1 + > sys/arm64/vmm/arm64.h | 165 +++ > sys/arm64/vmm/hyp.h | 114 ++ > sys/arm64/vmm/io/vgic.c | 122 ++ > sys/arm64/vmm/io/vgic.h | 52 + > sys/arm64/vmm/io/vgic_if.m | 104 ++ > sys/arm64/vmm/io/vgic_v3.c | 2348 ++++++++++++++++++++++++++++++ > sys/arm64/vmm/io/vgic_v3.h | 57 + > sys/arm64/vmm/io/vgic_v3_reg.h | 129 ++ > sys/arm64/vmm/io/vtimer.c | 503 +++++++ > sys/arm64/vmm/io/vtimer.h | 85 ++ > sys/arm64/vmm/mmu.h | 52 + > sys/arm64/vmm/reset.h | 33 + > sys/arm64/vmm/vmm.c | 1803 +++++++++++++++++++++++ > sys/arm64/vmm/vmm_arm64.c | 1337 +++++++++++++++++ > sys/arm64/vmm/vmm_call.S | 39 + > sys/arm64/vmm/vmm_dev.c | 1054 ++++++++++++++ > sys/arm64/vmm/vmm_hyp.c | 735 ++++++++++ > sys/arm64/vmm/vmm_hyp_el2.S | 39 + > sys/arm64/vmm/vmm_hyp_exception.S | 384 +++++ > sys/arm64/vmm/vmm_instruction_emul.c | 102 ++ > sys/arm64/vmm/vmm_ktr.h | 69 + > sys/arm64/vmm/vmm_mmu.c | 430 ++++++ > sys/arm64/vmm/vmm_reset.c | 177 +++ > sys/arm64/vmm/vmm_stat.c | 165 +++ > sys/arm64/vmm/vmm_stat.h | 145 ++ > sys/conf/files.arm64 | 33 + > sys/conf/ldscript.arm64 | 2 + > sys/conf/options.arm64 | 3 + > sys/modules/Makefile | 2 + > sys/modules/vmm/Makefile | 78 +- > 34 files changed, 11066 insertions(+), 13 deletions(-) I am not exactly sure but I think it is the SYSTEM_LD_BASECMD in files.amr64 which leads to: ld: warning: cannot find entry symbol _start; not setting start address Is there a way to get rid of the warning?