]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/i386/pc_q35.c
smbios: Encode UUID according to SMBIOS specification
[mirror_qemu.git] / hw / i386 / pc_q35.c
index aef4628f921c95ef3cad82e6ba500a6f074cd156..f69e4a1bfa0ade9cbcf6baaaa68e527551afe9a8 100644 (file)
@@ -52,6 +52,7 @@
 static bool has_acpi_build = true;
 static bool smbios_defaults = true;
 static bool smbios_legacy_mode;
+static bool smbios_uuid_encoded = true;
 /* Make sure that guest addresses aligned at 1Gbyte boundaries get mapped to
  * host addresses aligned at 1Gbyte boundaries.  This way we can use 1GByte
  * pages in the host.
@@ -163,7 +164,7 @@ static void pc_q35_init(MachineState *machine)
         MachineClass *mc = MACHINE_GET_CLASS(machine);
         /* These values are guest ABI, do not change */
         smbios_set_defaults("QEMU", "Standard PC (Q35 + ICH9, 2009)",
-                            mc->name, smbios_legacy_mode);
+                            mc->name, smbios_legacy_mode, smbios_uuid_encoded);
     }
 
     /* allocate ram and load rom/bios */
@@ -283,6 +284,7 @@ static void pc_q35_init(MachineState *machine)
 
 static void pc_compat_2_1(MachineState *machine)
 {
+    smbios_uuid_encoded = false;
 }
 
 static void pc_compat_2_0(MachineState *machine)