diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c index 0d0db3a..b5888ef 100644 --- a/arch/ppc/qemu/init.c +++ b/arch/ppc/qemu/init.c @@ -526,9 +526,17 @@ static void kvm_of_init(void) if (!fw_cfg_read_i32(FW_CFG_PPC_IS_KVM)) return; - push_str("/hypervisor"); + push_str("/"); fword("find-device"); + fword("new-device"); + + push_str("hypervisor"); + fword("device-name"); + + push_str("hypervisor"); + fword("device-type"); + /* compatible */ push_str("linux,kvm"); @@ -567,6 +575,8 @@ static void kvm_of_init(void) fword("encode-string"); push_str("guest-name"); fword("property"); + + fword("finish-device"); } void diff --git a/arch/ppc/qemu/tree.fs b/arch/ppc/qemu/tree.fs index b7bb706..4d107a9 100644 --- a/arch/ppc/qemu/tree.fs +++ b/arch/ppc/qemu/tree.fs @@ -39,11 +39,6 @@ new-device : close ; finish-device -new-device - " hypervisor" device-name - " hypervisor" device-type -finish-device - \ ------------------------------------------------------------- \ /packages \ -------------------------------------------------------------