qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] linux-user: Support explicit targets for PowerP


From: Aaron Sierra
Subject: Re: [Qemu-devel] [PATCH] linux-user: Support explicit targets for PowerPC
Date: Tue, 7 Nov 2017 09:28:12 -0600 (CST)

----- Original Message -----
> From: "Peter Maydell" <address@hidden>
> Sent: Tuesday, November 7, 2017 9:24:35 AM

> On 7 November 2017 at 15:20, Aaron Sierra <address@hidden> wrote:
>> I had that thought, too, as being the cleanest and simplest to implement,
>> but it didn't work out as a practical solution. Having execution depend
>> on the name of the file would require a lot of tuning of magics, masks,
>> and interpreters in /proc/sys/fs/binfmt_misc to get the behavior that I
>> depend on. It would require one entry per binary.
>>
>> With the implementation that I've proposed, I only need two fairly generic
>> entries (ppc and ppc64) stock from Ubuntu's qemu-user-static package.
>> With Docker it's trivial to bind <any_path>/qemu-ppc.e500mc to
>> /usr/bin/qemu-ppc-static within the container. Which gives me complete
>> control over how the container is emulated.
> 
> If you don't need the binfmt-invokes-the-right-QEMU magic to work
> out of the box, why can't you just use a wrapper script here?

Because there is no mechanism to evaluate a script within the fully PowerPC
container without emulation being available right from the very first
instruction.

I _do_ depend on the right QEMU binary being correctly mapped before
launching the container.

-Aaron S.

> thanks
> -- PMM



reply via email to

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