From nobody Wed May 22 06:05:04 2024 X-Original-To: freebsd-virtualization@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 4Vkgkt44GZz5Kxdr for ; Wed, 22 May 2024 06:05:10 +0000 (UTC) (envelope-from editor@callfortesting.org) Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vkgks2XLTz4PcL for ; Wed, 22 May 2024 06:05:09 +0000 (UTC) (envelope-from editor@callfortesting.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=callfortesting-org.20230601.gappssmtp.com header.s=20230601 header.b=ZXTSTVb7; dmarc=none; spf=none (mx1.freebsd.org: domain of editor@callfortesting.org has no SPF policy when checking 2607:f8b0:4864:20::1035) smtp.mailfrom=editor@callfortesting.org Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2b2bc7b37bcso1984379a91.2 for ; Tue, 21 May 2024 23:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=callfortesting-org.20230601.gappssmtp.com; s=20230601; t=1716357907; x=1716962707; darn=freebsd.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=6ApLy8ePT8o9yjPH0P/VdfIaMebwHLiSyUQeizr7Ukc=; b=ZXTSTVb7sqjf0ELxw/5U4r475WOIu6L0BwORNHPRLG8H+j24bE0xuwwlGkmwelBGS9 PeikbmQOMEj51w5wwc9en7Ea7ZJ8eRd6MCNDld21XgzZQ6Jcb2FPI3IZ5+JwTFw2Nzjl dTt7MXw/f47Qedc7UrFlqrcjX5/hRxrsGiQgfwGTo1mkOtkm3D3J6TnJ5QAmIFaSXE5M O85Qfm9WYTvZ0OQrITcPlexzo/wzjGP/XJZt7IRU7z1p/wdichSQGk4mZSkIlEr3AlLE 0lFzVtV0kosw4dQQku/HND17G+KTHFgwNmsyPWWNr2Sbho0+5Ni81OwG7yI7uaQcn0J2 RG5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716357907; x=1716962707; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=6ApLy8ePT8o9yjPH0P/VdfIaMebwHLiSyUQeizr7Ukc=; b=pooglmX8+3CBgha9XlEF8ZcnaK57QBw60rRUZMNnZoA9mQpuyjbtYvy+UOZT2NH52l WgTWvU0dQjOcWYsDWeol2d2GoHHtbyUTjCTFkxzPJgMk6Khfni8uoifpok0+0/JL1YR9 FH1LGsQ8lvM1byCmUkVzR2O33/hmyM33Xsa2scJyoKFotXtEXeRVRxFib8RJlstEoHUl 2OkekKZeRei88MojZ0nNsDCfvpQ8C3rYAouUekAlbWJwXSxi//oeyR6/aevl6/88VWYm SqV6oxlV6Hf+L8ENw7AKuX4McEacIdArm2do27DsRb+OsZEUM7eUN3Yzg7B1yBCUDKLV tVLw== X-Gm-Message-State: AOJu0Yz/YqOfcBLkYFUsx/Bh7q+m5AmyjJbee9RJp5iYNEjd8DTlZ2Au yoHydha0cJNoO1GuOYl4IpwLjVWZ9nXcks8Ed5RjVFsAxWlyR7MyazFUUkH2fAVCXiqkK/QrOjk P X-Google-Smtp-Source: AGHT+IFA3KrHH1gml8/2mx6TWW9LpeOE9XTKfkOrX3JT88oP0erLZTAM4MDfpC/2li+sibspDqgB1Q== X-Received: by 2002:a17:90a:8d13:b0:2b2:7986:229b with SMTP id 98e67ed59e1d1-2bd9f5d4f65mr1109211a91.37.1716357906829; Tue, 21 May 2024 23:05:06 -0700 (PDT) Received: from ?IPV6:2601:1c0:5601:c835:c02:7b47:6464:8b43? ([2601:1c0:5601:c835:c02:7b47:6464:8b43]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2b67158c362sm22587683a91.36.2024.05.21.23.05.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 May 2024 23:05:06 -0700 (PDT) Message-ID: Date: Tue, 21 May 2024 23:05:04 -0700 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: FreeBSD virtualization From: Michael Dexter Subject: bhyve/aarch64 Major Progress Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.29 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; R_DKIM_ALLOW(-0.20)[callfortesting-org.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; DMARC_NA(0.00)[callfortesting.org]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1035:from]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; DKIM_TRACE(0.00)[callfortesting-org.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4Vkgks2XLTz4PcL All, Recent bhyve for aarch64 (ARM64) is *really* impressive. System: ThunderX with gic0: OS VM-IMAGE camdd'd to a physical disk and the same image used for a VM: FreeBSD-15.0-CURRENT-arm64-aarch64-zfs-20240516-d7adf3b47a05-270169.raw.xz Package: u-boot-bhyve-arm64 Syntax: #!/bin/sh [ -e /dev/vmm/arm64 ] && \ { /usr/sbin/bhyvectl --destroy --vm=arm64 ; sleep 1 ; } kldstat -q -m vmm || kldload vmm bhyve -m 4G -c 4 -D \ -s 0,hostbridge \ -s 2,virtio-blk,/root/FreeBSD-15.0-CURRENT-arm64-aarch64-zfs.raw \ -o bootrom=/usr/local/share/u-boot/u-boot-bhyve-arm64/u-boot.bin \ -o console=stdio \ arm64 Result: Works amazingly well, supporting up to 16 vCPUs, virtio-blk, and virtio-net. NVMe emulation is not yet implemented and there is more to test, but it's providing a useful environments for simultaneous buildworlds on the host and in the guest. Even bhyve(8) is updated! Thank you Andrew, Mark, and everyone else who has made this possible! Michael