devicetree-spec.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Virtualization difficulty -- phandles
@ 2017-07-12  6:15 Cyril Novikov
  2017-07-12 17:10 ` Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Cyril Novikov @ 2017-07-12  6:15 UTC (permalink / raw)
  To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA

Hi, all!

The product that I work on supports physical device assignment (aka 
"pass-through") to virtual machines, which means we need to take 
portions of the physical FDT and include them in the guest FDT. This 
needs to happen automatically in software.

The problem is phandles, because we cannot identify them in the blob and 
therefore can't find any dependent devices/nodes that also need to be 
included in the guest FDT. So the process cannot be fully automated. We 
can't even advise the user what other devices should be assigned to the 
VM. The hypervisor runs or bare metal, so having to parse the source DTS 
files for this is very inconvenient.

Would it be possible to add metadata properties to the binary FDT 
format, which would identify other property cells that are in fact 
phandles? It could be a per-node property or a single root node 
property, up to you guys. DTC would then automatically generate the 
metadata property along with the phandle property when compiling the DTS.

--
Cyril

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-07-28  4:25 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-12  6:15 Virtualization difficulty -- phandles Cyril Novikov
2017-07-12 17:10 ` Florian Fainelli
     [not found]   ` <180baf3e-9e7b-c791-3be2-81d807b14759-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-07-13  4:23     ` Cyril Novikov
2017-07-13 16:47       ` Florian Fainelli
     [not found]         ` <4594fc97-9b9f-267e-ee8e-8cbe89341fe7-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-07-16  5:35           ` David Gibson
     [not found]             ` <20170716053548.GL17539-K0bRW+63XPQe6aEkudXLsA@public.gmane.org>
2017-07-18  1:37               ` Cyril Novikov
2017-07-19  3:30                 ` David Gibson
2017-07-24 17:09               ` Frank Rowand
     [not found]                 ` <597629DC.5060800-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-07-25  7:50                   ` David Gibson
     [not found]                     ` <20170725075034.GD8978-K0bRW+63XPQe6aEkudXLsA@public.gmane.org>
2017-07-27 20:58                       ` Frank Rowand
     [not found]                         ` <597A53E1.4010002-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-07-27 21:59                           ` Pantelis Antoniou
2017-07-28  4:25                           ` David Gibson
2017-07-14 10:58 ` Mark Rutland
2017-07-18  1:47   ` Cyril Novikov
2017-07-19  3:40     ` David Gibson
     [not found]       ` <20170719034029.GT3140-K0bRW+63XPQe6aEkudXLsA@public.gmane.org>
2017-07-22  4:24         ` Cyril Novikov
2017-07-24  6:14           ` David Gibson
2017-07-24 16:27 ` Frank Rowand
     [not found]   ` <59762000.7000302-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-07-24 23:00     ` Cyril Novikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).