mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
spapr: Add /system-id
Section B.6.2.1 Root Node Properties of PAPR specification defines a set of properties which shall be present in the device tree root, one of these properties is "system-id" which "should be unique across all systems and all manufacturers". Since UUID is meant to be unique, it makes sense to use it as "system-id". This adds "system-id" property to the device tree root when not empty. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
7d94a30b54
commit
3dc0a66d26
1 changed files with 3 additions and 0 deletions
|
@ -375,6 +375,9 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base,
|
|||
qemu_uuid[14], qemu_uuid[15]);
|
||||
|
||||
_FDT((fdt_property_string(fdt, "vm,uuid", buf)));
|
||||
if (qemu_uuid_set) {
|
||||
_FDT((fdt_property_string(fdt, "system-id", buf)));
|
||||
}
|
||||
g_free(buf);
|
||||
|
||||
if (qemu_get_vm_name()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue