qemu-ppc
[Top][All Lists]
Advanced

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

Re: [Qemu-ppc] [SLOF] [PATCH v4] board-qemu: add private hcall to inform


From: Segher Boessenkool
Subject: Re: [Qemu-ppc] [SLOF] [PATCH v4] board-qemu: add private hcall to inform host on "phandle" update
Date: Wed, 6 Sep 2017 08:41:21 -0500
User-agent: Mutt/1.4.2.3i

On Wed, Sep 06, 2017 at 02:33:45PM +0200, Greg Kurz wrote:
> But David Gibson seems to be "really, really" opposed to this solution as
> expressed in this thread:
> 
> https://lists.nongnu.org/archive/html/qemu-ppc/2017-07/msg00556.html
> 
> He's asking if we can change SLOF to not use phandles as raw pointers
> instead... I must admit that this goes way beyond my very limited
> knowledge on SLOF and forth... :-\

A phandle is an opaque cookie to everything but the firmware itself.
Using pointers to some internal structure works just fine; most Open
Firmware implementations do this.

Anything other than OF itself should *not* make up phandles.  There
is no way to guarantee these will be unique, so it is a non-starter.

If QEMU wants to create a device node, it should ask OF to do it,
say, via new-device.


Segher



reply via email to

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