On Mon, Sep 23, 2013 at 01:48:12PM -0500, Anthony Liguori wrote:
> On Sep 23, 2013 8:46 AM, "Stefan Hajnoczi" <stefa...@gmail.com> wrote:
> >
> > On Tue, Sep 10, 2013 at 08:08:22PM -0400, Joey Carlini wrote:
> > > I managed to get QEMU running on a Crouton install, virtual box not
> being
> > > possible with the Chrome OS kermel with the KVM mods required, and even
> a
> > > couple distros running. Since I enjoy pain and/or haven't done enough
> cool
> > > things to be called a badass dev, I figured, why not try building QEMU
> into
> > > a Chrome app, now that packaged apps are a thing, and native client
> allows
> > > for C code to run within the browser, letting an entire VM run on a
> stock
> > > Chromebook.
> >
> > QEMU isn't pure C code and effort would be required to make it run under
> > Native Client.
> >
> > I've never used Native Client but I think its machine code verifier
> > checks the application to ensure that control flow is safe.  In other
> > words, low-level things that QEMU does like code generation or stack
> > switching are probably not allowed under Native Client since they are
> > unsafe!
> 
> I'm pretty sure coroutines would provide difficult to port too.

The gthread backend should work since it doesn't use stack-switching.

But it seems like a port to NaCl would be a lot slower and more limited
than a native application.

Stefan

Reply via email to