[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/7] hw/i386/pc_{q35, piix}: Reuse MachineClass::desc as SMB prod
From: |
Bernhard Beschow |
Subject: |
[PATCH 5/7] hw/i386/pc_{q35, piix}: Reuse MachineClass::desc as SMB product name |
Date: |
Fri, 27 Jan 2023 17:47:16 +0100 |
No need to repeat the descriptions.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
hw/i386/pc_piix.c | 2 +-
hw/i386/pc_q35.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index df64dd8dcc..ee9d9a4175 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -197,7 +197,7 @@ static void pc_init1(MachineState *machine,
if (pcmc->smbios_defaults) {
MachineClass *mc = MACHINE_GET_CLASS(machine);
/* These values are guest ABI, do not change */
- smbios_set_defaults("QEMU", "Standard PC (i440FX + PIIX, 1996)",
+ smbios_set_defaults("QEMU", mc->desc,
mc->name, pcmc->smbios_legacy_mode,
pcmc->smbios_uuid_encoded,
pcms->smbios_entry_point_type);
diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
index dc94ce1081..a97846ab9b 100644
--- a/hw/i386/pc_q35.c
+++ b/hw/i386/pc_q35.c
@@ -198,7 +198,7 @@ static void pc_q35_init(MachineState *machine)
if (pcmc->smbios_defaults) {
/* These values are guest ABI, do not change */
- smbios_set_defaults("QEMU", "Standard PC (Q35 + ICH9, 2009)",
+ smbios_set_defaults("QEMU", mc->desc,
mc->name, pcmc->smbios_legacy_mode,
pcmc->smbios_uuid_encoded,
pcms->smbios_entry_point_type);
--
2.39.1
- [PATCH 0/7] PC cleanups, Bernhard Beschow, 2023/01/27
- [PATCH 3/7] hw/i386/ich9: Rename Q35_MASK to ICH9_MASK, Bernhard Beschow, 2023/01/27
- [PATCH 1/7] hw/pci-host/i440fx: Inline sysbus_add_io(), Bernhard Beschow, 2023/01/27
- [PATCH 6/7] hw/i386/pc_{q35, piix}: Minimize usage of get_system_memory(), Bernhard Beschow, 2023/01/27
- [PATCH 5/7] hw/i386/pc_{q35, piix}: Reuse MachineClass::desc as SMB product name,
Bernhard Beschow <=
- [PATCH 4/7] hw/i386/pc_q35: Resolve redundant q35_host variable, Bernhard Beschow, 2023/01/27
- [PATCH 7/7] hw/i386/pc: Initialize ram_memory variable directly, Bernhard Beschow, 2023/01/27
- [PATCH 2/7] hw/pci-host/q35: Inline sysbus_add_io(), Bernhard Beschow, 2023/01/27