From nobody Mon May 20 08:55:09 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 4VjWch08Rtz5KVQK for ; Mon, 20 May 2024 08:55:48 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) (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 4VjWcg0ZPjz4nq0 for ; Mon, 20 May 2024 08:55:47 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=F3BYyJJJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2607:f8b0:4864:20::62a as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1f0937479f8so64737655ad.3 for ; Mon, 20 May 2024 01:55:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716195345; x=1716800145; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=tdrX0FZbY2tLRILMB7HpK/jkomulMQuxDYs8p45O7zQ=; b=F3BYyJJJU3i2uu3+riP6p9SFJJawqrWi7l8MCa8Us1Dt0ze2Ys5BvO2+GPcKBeEt1/ KgqSPBBxdhUF1jiUx5zYZQmLcDXoPD7lsw92MQlE4rD6d18lFPkDxHwQSvtxvYwGNkxm i33mQZQuwCWB7a30eZBsQAIGSXLfGu/yyjJZ3WLqbPqY8b6FIU7qKbmlcOZBd9mAI8eq o2x+cblVJlAjiBfiV3YVf6smwcNAAmoT16HpudprfUccO/LNahwHgQLIaspKaz8jEMI7 Yn3FvgysaNaSyApOHHK2ynajr+qblnNy7xVobI0mhlkU/TdPjH3o16tvIu0SMWnY9OTU nYNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716195345; x=1716800145; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tdrX0FZbY2tLRILMB7HpK/jkomulMQuxDYs8p45O7zQ=; b=ApMuUuuOnoJE6B2O6EH6VCfqYyDy/kiXagiYqCtH0eNzUcrzOtrQqEni2oZ6ZvY5dl jOF0M5Q38bFzJ40cCdZumtDXPvnpSdicfLqu2ZVZfeI59XZG9jzy1rY8MoZJGR87Rwbw p+un61fRgDthv5N7ublfe1zTCjyM5hN2rMp6wGI5k7eaFItoD7R0hTOdgmsOAVRrV9z8 +WlJA7/kJHmVzDMnj8fXywogmv/d06mG/xNKYMH8wL2CR9J0FtLYTRiJeXRHeqs5M7xE eh4ye5RMrqQoiDGt8oBSvk05jJ8WusOz4Tqwl7ZRlKEvLvlWFis9wj3bsLRE2+6opMo2 33+A== X-Gm-Message-State: AOJu0YxWmwwYYCNiBYV527nGl1HF/IuW6/SklX9y7A+g4awMxcsU/eJy svzq34OF7VGI93baQuI/IaxBnbTOeewzbgA/P8lqHOBFYwA7eJPsFuQXMtzwY/7sMq7K9kX+j0V 1U3TtuQJu1Pe5aSfQmJWdulRYTPUAeW0Aac0= X-Google-Smtp-Source: AGHT+IFo3QUny9gIlGs8hviCIm4tw9NCtqdTQKPZkWinffJVOLmzIyXCf2frns4SuH/TrVDqUfhJN/VW6I7yk4l+v/0= X-Received: by 2002:a17:903:1251:b0:1eb:5344:6a01 with SMTP id d9443c01a7336-1ef4404a25bmr306256435ad.44.1716195345157; Mon, 20 May 2024 01:55:45 -0700 (PDT) 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 From: Mario Marietto Date: Mon, 20 May 2024 10:55:09 +0200 Message-ID: Subject: How much hard is to write a version of bhyve that can accelerate qemu ? To: FreeBSD virtualization Content-Type: multipart/alternative; boundary="000000000000e9d7910618dedd68" X-Spamd-Bar: - X-Spamd-Result: default: False [-1.78 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_SPAM_SHORT(0.22)[0.220]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::62a:from] X-Rspamd-Queue-Id: 4VjWcg0ZPjz4nq0 --000000000000e9d7910618dedd68 Content-Type: text/plain; charset="UTF-8" Hello. some days ago I had a nice discussion with a qemu and haxm hypervisor developer that ended with a nice question and I would like to hear your opinions : ME : "HAXM was created to bring Intel Virtualization Technology to Windows and macOSusers" ; keeping in consideration that MacOS has some code of FreeBSD inside. Is the source code of HAXM freely available ? Are you able to port it to FreeBSD ? The idea is to accelerate qemu with HAXM on FreeBSD. Do you know someone that can and wants to do this ? qemu and HAXM developer : HAXM has been imported into pkgsrc/emulators/haxm ---> http://mail-index.netbsd.org/netbsd-users/2019/02/13/msg022207.html ME : wow. So,it exists for NetBSD but not for FreeBSD ? That's so bad. qemu and HAXM developer : Yes - https://github.com/intel/haxm. But it is not supported. I see no point in porting an unsupported solution to a new OS, thus dont think someone will want to port it. ME : So,it exists for NetBSD but not for FreeBSD ? That's so bad. qemu and HAXM developer : Yes, it supports NetBSD. ME : If NetBSD developers have been interested to port it,so why shouldn't FreeBSD ones be ? At least,in theory....after all,on FreeBSD qemu lacks the acceleration of a good hypervisor. qemu and HAXM developer : This can be solved by adding for example bhyve support to qemu. This should be a better solution, than porting an unsupported hypervisor. I'm not aware why FreeBSD developers didn't add it already, you may ask for the reason. How hard is it to write a version of bhyve that can accelerate qemu ? -- Mario. --000000000000e9d7910618dedd68 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello.

some days ago I had a nice discussion with a qemu and haxm hypervisor=20 developer that ended with a nice question and I would like to hear your=20 opinions :

ME : "HAXM was created to bring Intel Virtualization Technology to=20 Windows and macOSusers" ; keeping in consideration that MacOS has some= =20 code of FreeBSD inside. Is the source code of HAXM freely available ?=20 Are you able to port it to FreeBSD ? The idea is to accelerate qemu with HAXM on FreeBSD. Do you know someone that can and wants to do this ?

qemu and HAXM developer : HAXM has been imported into pkgsrc/emulators/hax= m ---> http://mail-index.netbsd.org/netbsd-users/201= 9/02/13/msg022207.html

ME : wow. So,it exists for NetBSD but not for FreeBSD ? That's so bad.<= br>
qemu and HAXM developer : Yes - https://github.com/intel/haxm. But it is not supported. I see no point in porting an unsupported=20 solution to a new OS, thus dont think someone will want to port it.

ME : So,it exists for NetBSD but not for FreeBSD ? That's so bad.

qemu and HAXM developer : Yes, it supports NetBSD.

ME : If NetBSD developers have been interested to port it,so why=20 shouldn't FreeBSD ones be ? At least,in theory....after all,on FreeBSD= =20 qemu lacks the acceleration of a good hypervisor.

qemu and HAXM developer : This can be solved by adding for example bhyve support to qemu. This should be a better solution, than porting an=20 unsupported hypervisor. I'm not aware why FreeBSD developers didn't= add=20 it already, you may ask for the reason.

How hard is it to write a version of bhyve that can accelerate qemu ?

--
Mar= io.
--000000000000e9d7910618dedd68--