qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Building QEMU with multiple CPU targets.


From: Anthony Liguori
Subject: Re: [Qemu-devel] Building QEMU with multiple CPU targets.
Date: Mon, 08 Oct 2012 15:53:37 -0500
User-agent: Notmuch/0.13.2+93~ged93d79 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu)

Peter Maydell <address@hidden> writes:

> On 8 October 2012 21:23, Anthony Liguori <address@hidden> wrote:
>> It may be possible to cheat and compile the TCG + CPU code multiple
>> times as dynamic libraries.  You can then load the libraries with
>> dlopen() with local symbol resolution.
>
> ...and when the common code wants to (say) call cpu_exit() on a
> particular core, how does it know which DLL's version to call?
> That said, I have a feeling I've heard about people trying this
> kind of approach before, so it's probably possible to get something
> that works on at least one host OS. I think doing it "properly"
> would be less of a hack, though...

I think you basically need to treat a "foreign" CPU separately from a
local CPU.  You would load foreign CPUs as libraries and interact with
it separately.

I think the initial focus should be on hacking something to work.  Then
we can figure out what's the best path to merging.

Regards,

Anthony Liguori

>
> -- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]