Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2024 10:55:09 +0200
From:      Mario Marietto <marietto2008@gmail.com>
To:        FreeBSD virtualization <freebsd-virtualization@freebsd.org>
Subject:   How much hard is to write a version of bhyve that can accelerate qemu ?
Message-ID:  <CA%2B1FSihUy4iRjnGiAGGopyCmT3DjKtU_qegQiG8S-9GNT_T3fg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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.

[-- Attachment #2 --]
<div dir="ltr">Hello.<br>
<br>
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 :<br>
<br>
ME :  &quot;HAXM was created to bring Intel Virtualization Technology to 
Windows and macOSusers&quot; ; 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 ?<br>
<br>
qemu and HAXM developer :  HAXM has been imported into pkgsrc/emulators/haxm ---&gt; <a href="http://mail-index.netbsd.org/netbsd-users/2019/02/13/msg022207.html" target="_blank" class="gmail-link gmail-link--external" rel="nofollow ugc noopener">http://mail-index.netbsd.org/netbsd-users/2019/02/13/msg022207.html</a><br>;
<br>
ME : wow. So,it exists for NetBSD but not for FreeBSD ? That&#39;s so bad.<br>
<br>
qemu and HAXM developer : Yes - <a href="https://github.com/intel/haxm" target="_blank" class="gmail-link gmail-link--external" rel="nofollow ugc noopener">https://github.com/intel/haxm</a>.
 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.<br>
<br>
ME : So,it exists for NetBSD but not for FreeBSD ? That&#39;s so bad.<br>
<br>
qemu and HAXM developer : Yes, it supports NetBSD.<br>
<br>
ME : If NetBSD developers have been interested to port it,so why 
shouldn&#39;t FreeBSD ones be ? At least,in theory....after all,on FreeBSD 
qemu lacks the acceleration of a good hypervisor.<br>
<br>
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&#39;m not aware why FreeBSD developers didn&#39;t add 
it already, you may ask for the reason.<br>
<br>
How hard is it to write a version of bhyve that can accelerate qemu ?<br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Mario.<br></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSihUy4iRjnGiAGGopyCmT3DjKtU_qegQiG8S-9GNT_T3fg>