Re: Port DragonFly to Xen platform
--0016367b6eca33486d0482f7db86
Content-Type: text/plain; charset=UTF-8
On Mon, Mar 29, 2010 at 2:17 PM, Magnus Eriksson <magetoo@fastmail.fm>wrote:
> On Mon, 29 Mar 2010, Sylvestre Gallon wrote:
>
> Do you want me to try to make the same study for Xen (it will probably
>> take more time) or do you want me to focus on kvm? After some reading
>> I found the KVM project funnier :D .
>>
>
> I for one would be interested in seeing a Xen port. Not that you should
> pay much attention to my opinion if there are others that think KVM is the
> way to go, but it would be pretty neat to be able to have DragonFly running
> "natively" in a Xen VM (especially since NetBSD is my main platform, and the
> webhost I plan to use also provide Xen VMs).
>
>
> If I recall correctly, Manuel Bouyer did the initial Xen 2 NetBSD port in
> about two weeks (DomU) -- things have presumably changed a lot in Xen since
> then, but it suggests that Xen is not necessarily as huge and hairy as
> others have said. (Then again, maybe it is, when you get to implementing
> the Dom0 bits.)
>
> HVM DomU support should be "free". If DFly runs in QEmu, it should run in
an HVM domU without issues.
PV DomU support is "fairly easy", in that you just need to come up with a
paravirt driver for the console, network, and storage devices. PCI- and
USB-passthrough will be harder.
Dom0 support is hard, and requires a lot of changes to the kernel, as you
are essentially adding a whole new CPU architecture (Xen).
In the long-run, a KVM-like system where the DFly kernel becomes the
hypervisor and VMs run as user processes is better than the Xen split-dom,
"we're our own architecture, but we fake it using a real kernel" stuff. And
the start of this setup is already there, in the vkernel stuff. In theory,
it "shouldn't be too hard" to get a KVM-like system working. ;)
--
Freddie Cash
fjwcash@gmail.com
--0016367b6eca33486d0482f7db86
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div class=3D"gmail_quote">On Mon, Mar 29, 2010 at 2:17 PM, Magnus Eriksson=
<span dir=3D"ltr"><<a href=3D"mailto:magetoo@fastmail.fm">magetoo@fastm=
ail.fm</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"=
margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Mon, 29 Mar 2010, Sylvestre Gallon wrote:<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Do you want me to try to make the same study for Xen (it will probably<br>
take more time) or do you want me to focus on kvm? After some reading<br>
I found the KVM project funnier :D .<br>
</blockquote>
<br>
I for one would be interested in seeing a Xen port. =C2=A0Not that you shou=
ld pay much attention to my opinion if there are others that think KVM is t=
he way to go, but it would be pretty neat to be able to have DragonFly runn=
ing "natively" in a Xen VM (especially since NetBSD is my main pl=
atform, and the webhost I plan to use also provide Xen VMs).<br>
<br>
<br>
If I recall correctly, Manuel Bouyer did the initial Xen 2 NetBSD port in a=
bout two weeks (DomU) -- things have presumably changed a lot in Xen since =
then, but it suggests that Xen is not necessarily as huge and hairy as othe=
rs have said. =C2=A0(Then again, maybe it is, when you get to implementing =
the Dom0 bits.)<br>
<br></blockquote><div>HVM DomU support should be "free". =C2=A0If=
DFly runs in QEmu, it should run in an HVM domU without issues.</div><div>=
<br></div><div>PV DomU support is "fairly easy", in that you just=
need to come up with a paravirt driver for the console, network, and stora=
ge devices. =C2=A0PCI- and USB-passthrough will be harder.</div>
<div><br></div><div>Dom0 support is hard, and requires a lot of changes to =
the kernel, as you are essentially adding a whole new CPU architecture (Xen=
).</div></div><br clear=3D"all">In the long-run, a KVM-like system where th=
e DFly kernel becomes the hypervisor and VMs run as user processes is bette=
r than the Xen split-dom, "we're our own architecture, but we fake=
it using a real kernel" stuff. =C2=A0And the start of this setup is a=
lready there, in the vkernel stuff. =C2=A0In theory, it "shouldn't=
be too hard" to get a KVM-like system working. =C2=A0;)<div>
<br>-- <br>Freddie Cash<br><a href=3D"mailto:fjwcash@gmail.com">fjwcash@gma=
il.com</a><br>
</div>
--0016367b6eca33486d0482f7db86--
討論串 (同標題文章)
完整討論串 (本文為第 17 之 20 篇):