mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
ppc: Suppress /hypervisor outside KVM
My New World PowerMac G3 does not have a /hypervisor node. Move all Forth code to kvm_of_init() to make it match the comment: Don't expose /hypervisor when not in KVM. Cc: Alexander Graf <agraf@suse.de> Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Alexander Graf <agraf@suse.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@895 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Alexander Graf
parent
43221313e3
commit
05ec5dd149
@@ -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
|
||||
|
||||
@@ -39,11 +39,6 @@ new-device
|
||||
: close ;
|
||||
finish-device
|
||||
|
||||
new-device
|
||||
" hypervisor" device-name
|
||||
" hypervisor" device-type
|
||||
finish-device
|
||||
|
||||
\ -------------------------------------------------------------
|
||||
\ /packages
|
||||
\ -------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user