Skip to contentSkip to conversation

Dump FDT for Linux Guest from Xen

DISCUSSION Waseem, Amna 2 participants 3 messages Jul 13, 2017 – Jul 14, 2017

lore
Share & tools
lore
#0 lore raw

Hello All,

Is there a way to dump FDT prepared by Xen given to Linux Guest while booting Domain 0.

I want to see flattened device tree created by Xen by remapping I/O and IRQs for Guest.

Is there a simple API to dump the flattened device?

Regards

Amna

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#1 lore raw
Quoted 1 line · Amna

Hello All,

Hello,

Quoted 8 lines

Is there a way to dump FDT prepared by Xen given to Linux Guest while booting Domain 0.

I want to see flattened device tree created by Xen by remapping I/O and IRQs for Guest.

Is there a simple API to dump the flattened device?

I am not sure there is a facility in the Linux kernel to dump the device-tree. However, you can do it from the user space with:

dtc -I fs /proc/device-tree -O dts

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw

Thanks Julien

________________________________________
From: Julien Grall <[email protected]>
Sent: Friday, July 14, 2017 4:20 PM
To: Waseem, Amna; [email protected]; [email protected]
Subject: Re: [Xen-devel] Dump FDT for Linux Guest from Xen

Quoted 1 line · Amna

Hello All,

Hello,

Quoted 10 lines

Is there a way to dump FDT prepared by Xen given to Linux Guest while booting Domain 0.

I want to see flattened device tree created by Xen by remapping I/O and IRQs for Guest.

Is there a simple API to dump the flattened device?

I am not sure there is a facility in the Linux kernel to dump the device-tree. However, you can do it from the user space with:

dtc -I fs /proc/device-tree -O dts

Cheers,

--
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel