OSDN Git Service

PPC: e500: dt: create /hypervisor node dynamically
authorAlexander Graf <agraf@suse.de>
Thu, 17 May 2012 09:50:05 +0000 (11:50 +0200)
committerAlexander Graf <agraf@suse.de>
Sat, 23 Jun 2012 23:04:47 +0000 (01:04 +0200)
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppce500_mpc8544ds.c
pc-bios/mpc8544ds.dtb
pc-bios/mpc8544ds.dts

index c046206..54e7ec7 100644 (file)
@@ -118,6 +118,7 @@ static int mpc8544_load_device_tree(CPUPPCState *env,
         tb_freq = kvmppc_get_tbfreq();
 
         /* indicate KVM hypercall interface */
+        qemu_devtree_add_subnode(fdt, "/hypervisor");
         qemu_devtree_setprop_string(fdt, "/hypervisor", "compatible",
                                     "linux,kvm");
         kvmppc_get_hypercall(env, hypercall, sizeof(hypercall));
index a85b93c..8194aa2 100644 (file)
Binary files a/pc-bios/mpc8544ds.dtb and b/pc-bios/mpc8544ds.dtb differ
index 1fcb865..2ca7c54 100644 (file)
        chosen {
                linux,stdout-path = "/soc8544@e0000000/serial@4500";
        };
-
-       hypervisor {
-       };
 };