当前位置:网站首页>[QNX hypervisor 2.2 user manual] 3.2.3 ACPI table and FDT

[QNX hypervisor 2.2 user manual] 3.2.3 ACPI table and FDT

2022-06-10 18:28:00 Gao Tong @bill

Write it at the front

QNX hypervisor VM For its guest Advanced configuration and power interface are provided (ACPI Advanced Configuration And Power Interface) Table and flat device tree (FDT Flattened Device Tree).

stay QNX hypervisor In the system ,guest The available devices will be specified in VM In the configuration file ( That is to say qvm Process instance configuration ). If guest need ACPI Table or FDT To enumerate the devices available to them , You can modify ACPI Table and FDT, And let qvm Process instance assembly VM To load them into geust The memory of the , In order to guest They can be accessed at startup .

One 、ACPI surface (X86)

stay QNX Hypervisor x86 On the platform VM Running in guest They can be accessed VM Of ACPI surface . from guest From the perspective of , These watches are in VM The locations in the are the same as they are in the hardware . in other words , If these watches are in host-physical In memory 0x12340000 Location ,guest You can go to guest-physical In memory 0x12340000 These tables are found in the . Check your motherboard specifications to see ACPI The location of the table .

You can also create your own ACPI Table as motherboard firmware and hypervisor A supplement to . Use VM To configure load Option to load them into your guest In the memory , as follows :

acpi load ./acpi_foo

The above statement will trigger qvm The process instance assembles a VM To load the acpi_foowe File to guest Memory as a ACPI surface .

Two 、DTS(ARM)

stay ARM platform , You can create a FDT And use VM The configuration of the load Option to load it into guest In the memory .

for example , some OS( such as Linux) Maybe you need one too FDT To convert the

原网站

版权声明
本文为[Gao Tong @bill]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101752055905.html