File qemu-10.0.2.patch of Package qemu
diff '--color=auto' -rub qemu-10.0.0/block/vhdx.c qemu-10.0.0-patched/block/vhdx.c
--- qemu-10.0.0/block/vhdx.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/block/vhdx.c 2025-05-27 22:57:25.329484220 -0300
@@ -2020,7 +2020,7 @@
/* The creator field is optional, but may be useful for
* debugging / diagnostics */
- creator = g_utf8_to_utf16("QEMU v" QEMU_VERSION, -1, NULL,
+ creator = g_utf8_to_utf16("DELL v" QEMU_VERSION, -1, NULL,
&creator_items, NULL);
signature = cpu_to_le64(VHDX_FILE_SIGNATURE);
ret = blk_co_pwrite(blk, VHDX_FILE_ID_OFFSET, sizeof(signature), &signature,
diff '--color=auto' -rub qemu-10.0.0/block/vvfat.c qemu-10.0.0-patched/block/vvfat.c
--- qemu-10.0.0/block/vvfat.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/block/vvfat.c 2025-05-27 22:58:19.052253526 -0300
@@ -1176,7 +1176,7 @@
}
memcpy(s->volume_label, label, label_length);
} else {
- memcpy(s->volume_label, "QEMU VVFAT", 10);
+ memcpy(s->volume_label, "DELL VVFAT", 10);
}
if (floppy) {
diff '--color=auto' -rub qemu-10.0.0/chardev/msmouse.c qemu-10.0.0-patched/chardev/msmouse.c
--- qemu-10.0.0/chardev/msmouse.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/chardev/msmouse.c 2025-05-27 22:58:48.883235979 -0300
@@ -172,7 +172,7 @@
}
static const QemuInputHandler msmouse_handler = {
- .name = "QEMU Microsoft Mouse",
+ .name = "DELL Microsoft Mouse",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL,
.event = msmouse_input_event,
.sync = msmouse_input_sync,
diff '--color=auto' -rub qemu-10.0.0/chardev/wctablet.c qemu-10.0.0-patched/chardev/wctablet.c
--- qemu-10.0.0/chardev/wctablet.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/chardev/wctablet.c 2025-05-27 22:59:37.304830696 -0300
@@ -179,7 +179,7 @@
}
static const QemuInputHandler wctablet_handler = {
- .name = "QEMU Wacom Pen Tablet",
+ .name = "DELL Wacom Pen Tablet",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_ABS,
.event = wctablet_input_event,
.sync = wctablet_input_sync,
diff '--color=auto' -rub qemu-10.0.0/contrib/vhost-user-gpu/vhost-user-gpu.c qemu-10.0.0-patched/contrib/vhost-user-gpu/vhost-user-gpu.c
--- qemu-10.0.0/contrib/vhost-user-gpu/vhost-user-gpu.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/contrib/vhost-user-gpu/vhost-user-gpu.c 2025-05-27 23:00:04.426763512 -0300
@@ -1254,7 +1254,7 @@
QTAILQ_INIT(&g.reslist);
QTAILQ_INIT(&g.fenceq);
- context = g_option_context_new("QEMU vhost-user-gpu");
+ context = g_option_context_new("DELL vhost-user-gpu");
g_option_context_add_main_entries(context, entries, NULL);
if (!g_option_context_parse(context, &argc, &argv, &error)) {
g_printerr("Option parsing failed: %s\n", error->message);
diff '--color=auto' -rub qemu-10.0.0/hw/acpi/aml-build.c qemu-10.0.0-patched/hw/acpi/aml-build.c
--- qemu-10.0.0/hw/acpi/aml-build.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/acpi/aml-build.c 2025-05-27 23:01:51.348023793 -0300
@@ -1723,11 +1723,11 @@
build_append_int_noprefix(array, 0, 4); /* Length */
build_append_int_noprefix(array, desc->rev, 1); /* Revision */
build_append_int_noprefix(array, 0, 1); /* Checksum */
- build_append_padded_str(array, desc->oem_id, 6, '\0'); /* OEMID */
+ build_append_padded_str(array, ACPI_BUILD_APPNAME6, 6, '\0'); /* OEMID */
/* OEM Table ID */
- build_append_padded_str(array, desc->oem_table_id, 8, '\0');
+ build_append_padded_str(array, "PTL ", 8, '\0');
build_append_int_noprefix(array, 1, 4); /* OEM Revision */
- g_array_append_vals(array, ACPI_BUILD_APPNAME8, 4); /* Creator ID */
+ g_array_append_vals(array, "PTL ", 4); /* Creator ID */
build_append_int_noprefix(array, 1, 4); /* Creator Revision */
}
@@ -2345,7 +2345,7 @@
}
/* Hypervisor Vendor Identity */
- build_append_padded_str(tbl, "QEMU", 8, '\0');
+ build_append_padded_str(tbl, "Intel", 8, '\0');
/* TODO: extra fields need to be added to support revisions above rev6 */
assert(f->rev == 6);
diff '--color=auto' -rub qemu-10.0.0/hw/acpi/core.c qemu-10.0.0-patched/hw/acpi/core.c
--- qemu-10.0.0/hw/acpi/core.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/acpi/core.c 2025-05-27 23:03:10.319780039 -0300
@@ -56,9 +56,9 @@
#define ACPI_TABLE_PFX_SIZE sizeof(uint16_t) /* size of the extra prefix */
static const char unsigned dfl_hdr[ACPI_TABLE_HDR_SIZE - ACPI_TABLE_PFX_SIZE] =
- "QEMU\0\0\0\0\1\0" /* sig (4), len(4), revno (1), csum (1) */
- "QEMUQEQEMUQEMU\1\0\0\0" /* OEM id (6), table (8), revno (4) */
- "QEMU\1\0\0\0" /* ASL compiler ID (4), version (4) */
+ "DELL\0\0\0\0\1\0" /* sig (4), len(4), revno (1), csum (1) */
+ "ASUSASASUSASUS\1\0\0\0" /* OEM id (6), table (8), revno (4) */
+ "DELL\1\0\0\0" /* ASL compiler ID (4), version (4) */
;
char unsigned *acpi_tables;
diff '--color=auto' -rub qemu-10.0.0/hw/acpi/vmgenid.c qemu-10.0.0-patched/hw/acpi/vmgenid.c
--- qemu-10.0.0/hw/acpi/vmgenid.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/acpi/vmgenid.c 2025-05-27 23:04:36.120745940 -0300
@@ -25,6 +25,8 @@
void vmgenid_build_acpi(VmGenIdState *vms, GArray *table_data, GArray *guid,
BIOSLinker *linker, const char *oem_id)
{
+ //FUCK YOU~~~
+ return;//do this once
Aml *ssdt, *dev, *scope, *method, *addr, *if_ctx;
uint32_t vgia_offset;
QemuUUID guid_le;
diff '--color=auto' -rub qemu-10.0.0/hw/arm/sbsa-ref.c qemu-10.0.0-patched/hw/arm/sbsa-ref.c
--- qemu-10.0.0/hw/arm/sbsa-ref.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/arm/sbsa-ref.c 2025-05-27 23:05:00.741546627 -0300
@@ -894,7 +894,7 @@
};
mc->init = sbsa_ref_init;
- mc->desc = "QEMU 'SBSA Reference' ARM Virtual Machine";
+ mc->desc = "DELL 'SBSA Reference' ARM Real Machine";
mc->default_cpu_type = ARM_CPU_TYPE_NAME("neoverse-n2");
mc->valid_cpu_types = valid_cpu_types;
mc->max_cpus = 512;
diff '--color=auto' -rub qemu-10.0.0/hw/char/escc.c qemu-10.0.0-patched/hw/char/escc.c
--- qemu-10.0.0/hw/char/escc.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/char/escc.c 2025-05-27 23:05:26.030201245 -0300
@@ -1037,7 +1037,7 @@
}
static const QemuInputHandler sunmouse_handler = {
- .name = "QEMU Sun Mouse",
+ .name = "DELL Sun Mouse",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL,
.event = sunmouse_handle_event,
.sync = sunmouse_sync,
diff '--color=auto' -rub qemu-10.0.0/hw/display/edid-generate.c qemu-10.0.0-patched/hw/display/edid-generate.c
--- qemu-10.0.0/hw/display/edid-generate.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/display/edid-generate.c 2025-05-27 23:06:30.079451971 -0300
@@ -394,10 +394,10 @@
/* =============== set defaults =============== */
if (!info->vendor || strlen(info->vendor) != 3) {
- info->vendor = "RHT";
+ info->vendor = "DEL";
}
if (!info->name) {
- info->name = "QEMU Monitor";
+ info->name = "DELL Monitor";
}
if (!info->prefx) {
info->prefx = 1280;
@@ -449,7 +449,7 @@
uint16_t vendor_id = ((((info->vendor[0] - '@') & 0x1f) << 10) |
(((info->vendor[1] - '@') & 0x1f) << 5) |
(((info->vendor[2] - '@') & 0x1f) << 0));
- uint16_t model_nr = 0x1234;
+ uint16_t model_nr = 0xA05F;
uint32_t serial_nr = info->serial ? atoi(info->serial) : 0;
stw_be_p(edid + 8, vendor_id);
stw_le_p(edid + 10, model_nr);
diff '--color=auto' -rub qemu-10.0.0/hw/i386/acpi-build.c qemu-10.0.0-patched/hw/i386/acpi-build.c
--- qemu-10.0.0/hw/i386/acpi-build.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/i386/acpi-build.c 2025-05-27 23:07:56.954115177 -0300
@@ -869,6 +869,7 @@
static void build_dbg_aml(Aml *table)
{
+ return;//do this once
Aml *field;
Aml *method;
Aml *while_ctx;
@@ -1700,11 +1701,11 @@
aml_append(dsdt, scope);
/* create fw_cfg node, unconditionally */
- {
+ /*{
scope = aml_scope("\\_SB.PCI0");
fw_cfg_add_acpi_dsdt(scope, x86ms->fw_cfg);
aml_append(dsdt, scope);
- }
+ }*/
sb_scope = aml_scope("\\_SB");
{
diff '--color=auto' -rub qemu-10.0.0/hw/i386/fw_cfg.c qemu-10.0.0-patched/hw/i386/fw_cfg.c
--- qemu-10.0.0/hw/i386/fw_cfg.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/i386/fw_cfg.c 2025-05-27 23:08:44.075841295 -0300
@@ -75,7 +75,7 @@
if (pcmc->smbios_defaults) {
/* These values are guest ABI, do not change */
- smbios_set_defaults("QEMU", mc->desc, mc->name);
+ smbios_set_defaults("DELL", mc->desc, mc->name);
}
/* tell smbios about cpuid version and features */
@@ -228,7 +228,7 @@
Aml *dev = aml_device("FWCF");
Aml *crs = aml_resource_template();
- aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0002")));
+ aml_append(dev, aml_name_decl("_HID", aml_string("DELL0002")));
/* device present, functioning, decoding, not shown in UI */
aml_append(dev, aml_name_decl("_STA", aml_int(0xB)));
diff '--color=auto' -rub qemu-10.0.0/hw/i386/pc.c qemu-10.0.0-patched/hw/i386/pc.c
--- qemu-10.0.0/hw/i386/pc.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/i386/pc.c 2025-05-27 23:10:18.026866521 -0300
@@ -75,9 +75,9 @@
* depending on QEMU versions up to QEMU 2.4.
*/
#define PC_CPU_MODEL_IDS(v) \
- { "qemu32-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },\
- { "qemu64-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },\
- { "athlon-" TYPE_X86_CPU, "model-id", "QEMU Virtual CPU version " v, },
+ { "qemu32-" TYPE_X86_CPU, "model-id", "CPU version " v, },\
+ { "qemu64-" TYPE_X86_CPU, "model-id", "CPU version " v, },\
+ { "athlon-" TYPE_X86_CPU, "model-id", "CPU version " v, },
GlobalProperty pc_compat_9_2[] = {};
const size_t pc_compat_9_2_len = G_N_ELEMENTS(pc_compat_9_2);
diff '--color=auto' -rub qemu-10.0.0/hw/i386/pc_piix.c qemu-10.0.0-patched/hw/i386/pc_piix.c
--- qemu-10.0.0/hw/i386/pc_piix.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/i386/pc_piix.c 2025-05-27 23:10:30.346866606 -0300
@@ -461,7 +461,7 @@
pcmc->default_cpu_version = 1;
m->family = "pc_piix";
- m->desc = "Standard PC (i440FX + PIIX, 1996)";
+ m->desc = "DELL M4A88TD-Mi440fx";
m->default_machine_opts = "firmware=bios-256k.bin";
m->default_display = "std";
m->default_nic = "e1000";
diff '--color=auto' -rub qemu-10.0.0/hw/i386/pc_q35.c qemu-10.0.0-patched/hw/i386/pc_q35.c
--- qemu-10.0.0/hw/i386/pc_q35.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/i386/pc_q35.c 2025-05-27 23:10:46.291785917 -0300
@@ -343,7 +343,7 @@
pcmc->default_cpu_version = 1;
m->family = "pc_q35";
- m->desc = "Standard PC (Q35 + ICH9, 2009)";
+ m->desc = "DELL M4A88TD-Mq35";
m->units_per_default_bus = 1;
m->default_machine_opts = "firmware=bios-256k.bin";
m->default_display = "std";
diff '--color=auto' -rub qemu-10.0.0/hw/ide/atapi.c qemu-10.0.0-patched/hw/ide/atapi.c
--- qemu-10.0.0/hw/ide/atapi.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/ide/atapi.c 2025-05-27 23:11:25.941075623 -0300
@@ -798,8 +798,8 @@
buf[5] = 0; /* reserved */
buf[6] = 0; /* reserved */
buf[7] = 0; /* reserved */
- padstr8(buf + 8, 8, "QEMU");
- padstr8(buf + 16, 16, "QEMU DVD-ROM");
+ padstr8(buf + 8, 8, "DELL");
+ padstr8(buf + 16, 16, "DELL DVD-ROM");
padstr8(buf + 32, 4, s->version);
idx = 36;
}
diff '--color=auto' -rub qemu-10.0.0/hw/ide/core.c qemu-10.0.0-patched/hw/ide/core.c
--- qemu-10.0.0/hw/ide/core.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/ide/core.c 2025-05-27 23:12:12.019574453 -0300
@@ -2639,20 +2639,20 @@
pstrcpy(s->drive_serial_str, sizeof(s->drive_serial_str), dev->serial);
} else {
snprintf(s->drive_serial_str, sizeof(s->drive_serial_str),
- "QM%05d", s->drive_serial);
+ "DELL%05d", s->drive_serial);
}
if (dev->model) {
pstrcpy(s->drive_model_str, sizeof(s->drive_model_str), dev->model);
} else {
switch (kind) {
case IDE_CD:
- strcpy(s->drive_model_str, "QEMU DVD-ROM");
+ strcpy(s->drive_model_str, "DELL DVD-ROM");
break;
case IDE_CFATA:
- strcpy(s->drive_model_str, "QEMU MICRODRIVE");
+ strcpy(s->drive_model_str, "DELL MICRODRIVE");
break;
default:
- strcpy(s->drive_model_str, "QEMU HARDDISK");
+ strcpy(s->drive_model_str, "DELL HARDDISK");
break;
}
}
diff '--color=auto' -rub qemu-10.0.0/hw/input/adb-kbd.c qemu-10.0.0-patched/hw/input/adb-kbd.c
--- qemu-10.0.0/hw/input/adb-kbd.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/input/adb-kbd.c 2025-05-27 23:12:35.818128472 -0300
@@ -356,7 +356,7 @@
}
static const QemuInputHandler adb_keyboard_handler = {
- .name = "QEMU ADB Keyboard",
+ .name = "DELL ADB Keyboard",
.mask = INPUT_EVENT_MASK_KEY,
.event = adb_keyboard_event,
};
diff '--color=auto' -rub qemu-10.0.0/hw/input/adb-mouse.c qemu-10.0.0-patched/hw/input/adb-mouse.c
--- qemu-10.0.0/hw/input/adb-mouse.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/input/adb-mouse.c 2025-05-27 23:12:49.821930286 -0300
@@ -94,7 +94,7 @@
}
static const QemuInputHandler adb_mouse_handler = {
- .name = "QEMU ADB Mouse",
+ .name = "DELL ADB Mouse",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL,
.event = adb_mouse_handle_event,
/*
diff '--color=auto' -rub qemu-10.0.0/hw/input/hid.c qemu-10.0.0-patched/hw/input/hid.c
--- qemu-10.0.0/hw/input/hid.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/input/hid.c 2025-05-27 23:13:22.027625754 -0300
@@ -511,20 +511,20 @@
}
static const QemuInputHandler hid_keyboard_handler = {
- .name = "QEMU HID Keyboard",
+ .name = "DELL HID Keyboard",
.mask = INPUT_EVENT_MASK_KEY,
.event = hid_keyboard_event,
};
static const QemuInputHandler hid_mouse_handler = {
- .name = "QEMU HID Mouse",
+ .name = "DELL HID Mouse",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL,
.event = hid_pointer_event,
.sync = hid_pointer_sync,
};
static const QemuInputHandler hid_tablet_handler = {
- .name = "QEMU HID Tablet",
+ .name = "DELL HID Tablet",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_ABS,
.event = hid_pointer_event,
.sync = hid_pointer_sync,
diff '--color=auto' -rub qemu-10.0.0/hw/input/ps2.c qemu-10.0.0-patched/hw/input/ps2.c
--- qemu-10.0.0/hw/input/ps2.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/input/ps2.c 2025-05-27 23:13:48.874724939 -0300
@@ -1232,7 +1232,7 @@
};
static const QemuInputHandler ps2_keyboard_handler = {
- .name = "QEMU PS/2 Keyboard",
+ .name = "DELL PS/2 Keyboard",
.mask = INPUT_EVENT_MASK_KEY,
.event = ps2_keyboard_event,
};
@@ -1243,7 +1243,7 @@
}
static const QemuInputHandler ps2_mouse_handler = {
- .name = "QEMU PS/2 Mouse",
+ .name = "DELL PS/2 Mouse",
.mask = INPUT_EVENT_MASK_BTN | INPUT_EVENT_MASK_REL,
.event = ps2_mouse_event,
.sync = ps2_mouse_sync,
diff '--color=auto' -rub qemu-10.0.0/hw/input/virtio-input-hid.c qemu-10.0.0-patched/hw/input/virtio-input-hid.c
--- qemu-10.0.0/hw/input/virtio-input-hid.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/input/virtio-input-hid.c 2025-05-27 23:14:40.213705043 -0300
@@ -16,10 +16,10 @@
#include "standard-headers/linux/input.h"
-#define VIRTIO_ID_NAME_KEYBOARD "QEMU Virtio Keyboard"
-#define VIRTIO_ID_NAME_MOUSE "QEMU Virtio Mouse"
-#define VIRTIO_ID_NAME_TABLET "QEMU Virtio Tablet"
-#define VIRTIO_ID_NAME_MULTITOUCH "QEMU Virtio MultiTouch"
+#define VIRTIO_ID_NAME_KEYBOARD "DELL Keyboard"
+#define VIRTIO_ID_NAME_MOUSE "DELL Mouse"
+#define VIRTIO_ID_NAME_TABLET "DELL Tablet"
+#define VIRTIO_ID_NAME_MULTITOUCH "DELL MultiTouch"
/* ----------------------------------------------------------------- */
diff '--color=auto' -rub qemu-10.0.0/hw/m68k/virt.c qemu-10.0.0-patched/hw/m68k/virt.c
--- qemu-10.0.0/hw/m68k/virt.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/m68k/virt.c 2025-05-27 23:15:00.341809410 -0300
@@ -312,7 +312,7 @@
static void virt_machine_class_init(ObjectClass *oc, void *data)
{
MachineClass *mc = MACHINE_CLASS(oc);
- mc->desc = "QEMU M68K Virtual Machine";
+ mc->desc = "DELL M68K Real Machine";
mc->init = virt_init;
mc->default_cpu_type = M68K_CPU_TYPE_NAME("m68040");
mc->max_cpus = 1;
diff '--color=auto' -rub qemu-10.0.0/hw/misc/pvpanic-isa.c qemu-10.0.0-patched/hw/misc/pvpanic-isa.c
--- qemu-10.0.0/hw/misc/pvpanic-isa.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/misc/pvpanic-isa.c 2025-05-27 23:15:51.426057619 -0300
@@ -69,7 +69,7 @@
PVPanicISAState *s = PVPANIC_ISA_DEVICE(adev);
Aml *dev = aml_device("PEVT");
- aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0001")));
+ aml_append(dev, aml_name_decl("_HID", aml_string("DELL0001")));
crs = aml_resource_template();
aml_append(crs,
diff '--color=auto' -rub qemu-10.0.0/hw/nvme/ctrl.c qemu-10.0.0-patched/hw/nvme/ctrl.c
--- qemu-10.0.0/hw/nvme/ctrl.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/nvme/ctrl.c 2025-05-27 23:16:14.801471616 -0300
@@ -8786,7 +8786,7 @@
id->vid = cpu_to_le16(pci_get_word(pci_conf + PCI_VENDOR_ID));
id->ssvid = cpu_to_le16(pci_get_word(pci_conf + PCI_SUBSYSTEM_VENDOR_ID));
- strpadcpy((char *)id->mn, sizeof(id->mn), "QEMU NVMe Ctrl", ' ');
+ strpadcpy((char *)id->mn, sizeof(id->mn), "DELL NVMe Ctrl", ' ');
strpadcpy((char *)id->fr, sizeof(id->fr), QEMU_VERSION, ' ');
strpadcpy((char *)id->sn, sizeof(id->sn), n->params.serial, ' ');
diff '--color=auto' -rub qemu-10.0.0/hw/nvram/fw_cfg-acpi.c qemu-10.0.0-patched/hw/nvram/fw_cfg-acpi.c
--- qemu-10.0.0/hw/nvram/fw_cfg-acpi.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/nvram/fw_cfg-acpi.c 2025-05-27 23:16:38.532176911 -0300
@@ -11,7 +11,7 @@
void fw_cfg_acpi_dsdt_add(Aml *scope, const MemMapEntry *fw_cfg_memmap)
{
Aml *dev = aml_device("FWCF");
- aml_append(dev, aml_name_decl("_HID", aml_string("QEMU0002")));
+ aml_append(dev, aml_name_decl("_HID", aml_string("DELL0002")));
/* device present, functioning, decoding, not shown in UI */
aml_append(dev, aml_name_decl("_STA", aml_int(0xB)));
aml_append(dev, aml_name_decl("_CCA", aml_int(1)));
diff '--color=auto' -rub qemu-10.0.0/hw/nvram/fw_cfg.c qemu-10.0.0-patched/hw/nvram/fw_cfg.c
--- qemu-10.0.0/hw/nvram/fw_cfg.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/nvram/fw_cfg.c 2025-05-27 23:16:58.270812557 -0300
@@ -56,7 +56,7 @@
#define FW_CFG_DMA_CTL_SELECT 0x08
#define FW_CFG_DMA_CTL_WRITE 0x10
-#define FW_CFG_DMA_SIGNATURE 0x51454d5520434647ULL /* "QEMU CFG" */
+#define FW_CFG_DMA_SIGNATURE 0x4155535520434647ULL /* "QEMU CFG" */
struct FWCfgEntry {
uint32_t len;
diff '--color=auto' -rub qemu-10.0.0/hw/pci-host/gpex.c qemu-10.0.0-patched/hw/pci-host/gpex.c
--- qemu-10.0.0/hw/pci-host/gpex.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/pci-host/gpex.c 2025-05-27 23:17:22.285142377 -0300
@@ -243,7 +243,7 @@
DeviceClass *dc = DEVICE_CLASS(klass);
set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories);
- dc->desc = "QEMU generic PCIe host bridge";
+ dc->desc = "DELL generic PCIe host bridge";
dc->vmsd = &vmstate_gpex_root;
k->vendor_id = PCI_VENDOR_ID_REDHAT;
k->device_id = PCI_DEVICE_ID_REDHAT_PCIE_HOST;
diff '--color=auto' -rub qemu-10.0.0/hw/ppc/e500plat.c qemu-10.0.0-patched/hw/ppc/e500plat.c
--- qemu-10.0.0/hw/ppc/e500plat.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/ppc/e500plat.c 2025-05-27 23:17:49.333874917 -0300
@@ -22,8 +22,8 @@
static void e500plat_fixup_devtree(void *fdt)
{
- const char model[] = "QEMU ppce500";
- const char compatible[] = "fsl,qemu-e500";
+ const char model[] = "DELL ppce500";
+ const char compatible[] = "fsl,asus-e500";
qemu_fdt_setprop(fdt, "/", "model", model, sizeof(model));
qemu_fdt_setprop(fdt, "/", "compatible", compatible,
diff '--color=auto' -rub qemu-10.0.0/hw/ppc/prep.c qemu-10.0.0-patched/hw/ppc/prep.c
--- qemu-10.0.0/hw/ppc/prep.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/ppc/prep.c 2025-05-27 23:18:06.723112183 -0300
@@ -178,7 +178,7 @@
uint16_t crc;
/* Set parameters for Open Hack'Ware BIOS */
- NVRAM_set_string(nvram, 0x00, "QEMU_BIOS", 16);
+ NVRAM_set_string(nvram, 0x00, "DELL_BIOS", 16);
NVRAM_set_lword(nvram, 0x10, 0x00000002); /* structure v2 */
NVRAM_set_word(nvram, 0x14, NVRAM_size);
NVRAM_set_string(nvram, 0x20, arch, 16);
diff '--color=auto' -rub qemu-10.0.0/hw/riscv/virt.c qemu-10.0.0-patched/hw/riscv/virt.c
--- qemu-10.0.0/hw/riscv/virt.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/riscv/virt.c 2025-05-27 23:18:46.987547968 -0300
@@ -1394,13 +1394,13 @@
uint8_t *smbios_tables, *smbios_anchor;
size_t smbios_tables_len, smbios_anchor_len;
struct smbios_phys_mem_area mem_array;
- const char *product = "QEMU Virtual Machine";
+ const char *product = "DELL Machine";
if (kvm_enabled()) {
- product = "KVM Virtual Machine";
+ product = "DELL Machine";
}
- smbios_set_defaults("QEMU", product, mc->name);
+ smbios_set_defaults("DELL", product, mc->name);
if (riscv_is_32bit(&s->soc[0])) {
smbios_set_default_processor_family(0x200);
diff '--color=auto' -rub qemu-10.0.0/hw/scsi/megasas.c qemu-10.0.0-patched/hw/scsi/megasas.c
--- qemu-10.0.0/hw/scsi/megasas.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/scsi/megasas.c 2025-05-27 23:19:06.580217069 -0300
@@ -48,7 +48,7 @@
#define MEGASAS_MAX_SECTORS 0xFFFF /* No real limit */
#define MEGASAS_MAX_ARRAYS 128
-#define MEGASAS_HBA_SERIAL "QEMU123456"
+#define MEGASAS_HBA_SERIAL "DELL123456"
#define NAA_LOCALLY_ASSIGNED_ID 0x3ULL
#define IEEE_COMPANY_LOCALLY_ASSIGNED 0x525400
diff '--color=auto' -rub qemu-10.0.0/hw/scsi/mptconfig.c qemu-10.0.0-patched/hw/scsi/mptconfig.c
--- qemu-10.0.0/hw/scsi/mptconfig.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/scsi/mptconfig.c 2025-05-27 23:19:54.150045052 -0300
@@ -189,12 +189,12 @@
size_t mptsas_config_manufacturing_0(MPTSASState *s, uint8_t **data, int address)
{
return MPTSAS_CONFIG_PACK(0, MPI_CONFIG_PAGETYPE_MANUFACTURING, 0x00,
- "s16s8s16s16s16",
- "QEMU MPT Fusion",
+ "s11s4s51s41s91",
+ "DELL MPT Fusion",
"2.5",
- "QEMU MPT Fusion",
- "QEMU",
- "0000111122223333");
+ "DELL MPT Fusion",
+ "DELL",
+ "1145141919810000");
}
static
diff '--color=auto' -rub qemu-10.0.0/hw/scsi/scsi-bus.c qemu-10.0.0-patched/hw/scsi/scsi-bus.c
--- qemu-10.0.0/hw/scsi/scsi-bus.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/scsi/scsi-bus.c 2025-05-27 23:20:29.907769665 -0300
@@ -698,8 +698,8 @@
r->buf[3] = 2 | 0x10; /* HiSup, response data format */
r->buf[4] = r->len - 5; /* Additional Length = (Len - 1) - 4 */
r->buf[7] = 0x10 | (r->req.bus->info->tcq ? 0x02 : 0); /* Sync, TCQ. */
- memcpy(&r->buf[8], "QEMU ", 8);
- memcpy(&r->buf[16], "QEMU TARGET ", 16);
+ memcpy(&r->buf[8], "DELL ", 8);
+ memcpy(&r->buf[16], "DELL TARGET ", 16);
pstrcpy((char *) &r->buf[32], 4, qemu_hw_version());
}
return true;
diff '--color=auto' -rub qemu-10.0.0/hw/scsi/scsi-disk.c qemu-10.0.0-patched/hw/scsi/scsi-disk.c
--- qemu-10.0.0/hw/scsi/scsi-disk.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/scsi/scsi-disk.c 2025-05-27 23:21:11.200112815 -0300
@@ -2568,7 +2568,7 @@
s->version = g_strdup(qemu_hw_version());
}
if (!s->vendor) {
- s->vendor = g_strdup("QEMU");
+ s->vendor = g_strdup("DELL");
}
if (s->serial && strlen(s->serial) > MAX_SERIAL_LEN) {
error_setg(errp, "The serial number can't be longer than %d characters",
@@ -2632,7 +2632,7 @@
s->qdev.blocksize = s->qdev.conf.logical_block_size;
s->qdev.type = TYPE_DISK;
if (!s->product) {
- s->product = g_strdup("QEMU HARDDISK");
+ s->product = g_strdup("DELL HARDDISK");
}
scsi_realize(&s->qdev, errp);
}
@@ -2659,7 +2659,7 @@
s->qdev.type = TYPE_ROM;
s->features |= 1 << SCSI_DISK_F_REMOVABLE;
if (!s->product) {
- s->product = g_strdup("QEMU CD-ROM");
+ s->product = g_strdup("DELL CD-ROM");
}
scsi_realize(&s->qdev, errp);
}
diff '--color=auto' -rub qemu-10.0.0/hw/scsi/spapr_vscsi.c qemu-10.0.0-patched/hw/scsi/spapr_vscsi.c
--- qemu-10.0.0/hw/scsi/spapr_vscsi.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/scsi/spapr_vscsi.c 2025-05-27 23:21:38.196147816 -0300
@@ -713,8 +713,8 @@
resp_data[3] = 0x02; /* Resp data format */
resp_data[4] = 36 - 5; /* Additional length */
resp_data[7] = 0x10; /* Sync transfers */
- memcpy(&resp_data[16], "QEMU EMPTY ", 16);
- memcpy(&resp_data[8], "QEMU ", 8);
+ memcpy(&resp_data[16], "DELL EMPTY ", 16);
+ memcpy(&resp_data[8], "DELL ", 8);
req->writing = 0;
vscsi_preprocess_desc(req);
diff '--color=auto' -rub qemu-10.0.0/hw/sd/sd.c qemu-10.0.0-patched/hw/sd/sd.c
--- qemu-10.0.0/hw/sd/sd.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/sd/sd.c 2025-05-27 23:21:58.660656601 -0300
@@ -432,7 +432,7 @@
#define MID 0xaa
#define OID "XY"
-#define PNM "QEMU!"
+#define PNM "DELL!"
#define PRV 0x01
#define MDT_YR 2006
#define MDT_MON 2
diff '--color=auto' -rub qemu-10.0.0/hw/smbios/smbios.c qemu-10.0.0-patched/hw/smbios/smbios.c
--- qemu-10.0.0/hw/smbios/smbios.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/smbios/smbios.c 2025-05-28 00:00:58.971050908 -0300
@@ -551,6 +551,168 @@
#define T9_BASE 0x900
#define T11_BASE 0xe00
+#define T7_BASE 0x700 //
+#define T20_BASE 0x1400 //
+#define T22_BASE 0x1600 //
+#define T26_BASE 0x1A00 //
+#define T27_BASE 0x1B00 //
+#define T28_BASE 0x1C00 //
+#define T29_BASE 0x1D00 //
+#define T37_BASE 0x2500 //
+#define T39_BASE 0x2700 //
+
+/* */
+static struct {
+ const char *socket_designation;
+ QTAILQ_ENTRY(type7) next;
+} type7;
+
+/* */
+static struct {
+ const char *description;
+ QTAILQ_ENTRY(type26) next;
+} type26;
+
+/* */
+static struct {
+ const char *description;
+ QTAILQ_ENTRY(type27) next;
+} type27;
+
+/* */
+static struct {
+ const char *description;
+ QTAILQ_ENTRY(type28) next;
+} type28;
+
+/* SMBIOS type 7 CacheInformation CPU缓存信息 123级cpu缓存 */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 7 内部参数信息
+static void smbios_build_type_7_table(unsigned instance,const char *socket_designation,uint16_t cache_configuration,uint16_t max_cache_size,uint8_t error_correction,uint8_t system_cache_type,uint8_t associativity)
+{
+ type7.socket_designation=socket_designation;
+ SMBIOS_BUILD_TABLE_PRE(7, T7_BASE + instance, true);
+ SMBIOS_TABLE_SET_STR(7, socket_designation,type7.socket_designation);
+ t->cache_configuration=cache_configuration;
+ t->max_cache_size=max_cache_size;
+ t->installed_size=max_cache_size;
+ t->supported_sram_type=0x20;
+ t->current_sram_type=0x20; //0x20 代表Synchronous
+ t->cache_speed=0x0; //None
+ t->error_correction=error_correction;
+ t->system_cache_type=system_cache_type;
+ t->associativity=associativity;
+ SMBIOS_BUILD_TABLE_POST;
+}
+
+/* SMBIOS type 20 MemoryDeviceMappedAddress 内存设备映射地址信息 */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 20 内部参数信息
+static void smbios_build_type_20_table(uint64_t start, uint64_t size)
+{
+ uint64_t end, start_kb, end_kb;
+ end = start + size - 1;
+ assert(end > start);
+ start_kb = start / KiB;
+ end_kb = end/ KiB; // 直接塞进去当前内存大小(不知道是否逻辑正确)
+
+ SMBIOS_BUILD_TABLE_PRE(20, T20_BASE, true); /* required */
+ t->starting_address = cpu_to_le32(start_kb);
+ t->ending_address = cpu_to_le32(end_kb);
+ t->memory_device_handle=0x003C; //查文档
+ t->memory_array_mapped_address_handle=0x0040;//查文档
+ t->partition_row_position=0x1;//查文档
+ t->interleave_position=0x1;//查文档
+ t->interleave_data_depth=0x2;//查文档
+ SMBIOS_BUILD_TABLE_POST;
+}
+
+/* SMBIOS type 26 VoltageProbe 电压传感器设备信息 */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 26 内部参数信息
+static void smbios_build_type_26_table(unsigned instance,const char *description,uint8_t location_and_status)
+{
+ type26.description=description;
+ SMBIOS_BUILD_TABLE_PRE(26, T26_BASE + instance, true);
+ SMBIOS_TABLE_SET_STR(26, description,type26.description);
+ t->location_and_status=location_and_status;
+ t->max_value=0x5800;
+ t->min_value=0x100;
+ t->resolution=0x100;
+ t->tolerance=0x800;
+ t->accuracy=0x10;
+ t->oem_defined=0x00000000;
+ t->nominal_value=0x1000;
+ // 这些参数你要查一下文档进行设置,我随便设置的
+ SMBIOS_BUILD_TABLE_POST;
+}
+
+/* SMBIOS type 27 CoolingDevice 风扇设备信息 */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 27 内部参数信息
+static void smbios_build_type_27_table(unsigned instance,const char *description,uint8_t device_type_and_status)
+{
+ type27.description=description;
+ SMBIOS_BUILD_TABLE_PRE(27, T27_BASE + instance, true);
+ t->temperature_probe_handle = cpu_to_le16(0x0029);
+ t->device_type_and_status = device_type_and_status; //Power Supply Fan | Ok 0x67=b01100111
+ t->cooling_unit_group=0x1;
+ t->OEM_defined=0x00000000;
+ t->nominal_speed=0x5DC; //0x5DC代表1500转
+ // 这些参数你要查一下文档进行设置,我随便设置的
+ SMBIOS_TABLE_SET_STR(27, description,type27.description);
+ SMBIOS_BUILD_TABLE_POST;
+}
+
+/* SMBIOS type 28 TemperatureProbe 温度设备信息 */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 28 内部参数信息
+static void smbios_build_type_28_table(unsigned instance,const char *description,uint8_t location_and_status)
+{
+ type28.description=description;
+ SMBIOS_BUILD_TABLE_PRE(28, T28_BASE + instance, true);
+ SMBIOS_TABLE_SET_STR(28, description, type28.description);
+ t->location_and_status=location_and_status;
+ t->maximum_value=0x780;
+ t->minimum_value=0x100;
+ t->resolution=0x1000;
+ t->tolerance=0x800;
+ t->accuracy=0x10;
+ t->OEM_defined=0x00000000;
+ t->nominal_value=0x100;
+ // 这些参数你要查一下文档进行设置,我随便设置的
+ SMBIOS_BUILD_TABLE_POST;
+}
+
+/* SMBIOS type 37 MemoryChannel 内存通道信息(这个没有写完) */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 37 内部参数信息
+static void smbios_build_type_37_table(void)
+{
+ SMBIOS_BUILD_TABLE_PRE(37, T37_BASE, true); /* required */
+ SMBIOS_BUILD_TABLE_POST;
+}
+
+/* SMBIOS type 29 ElectricalCurrentProbe (这个没有写完) */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 29 内部参数信息
+static void smbios_build_type_29_table(void)
+{
+ SMBIOS_BUILD_TABLE_PRE(29, T29_BASE, true); /* required */
+ SMBIOS_TABLE_SET_STR(29, description,"ASUS Electrical");
+ SMBIOS_BUILD_TABLE_POST;
+}
+
+/* SMBIOS type 39 SystemPowerSupply (这个没有写完) */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 39 内部参数信息
+static void smbios_build_type_39_table(void)
+{
+ SMBIOS_BUILD_TABLE_PRE(39, T39_BASE, true); /* required */
+ SMBIOS_TABLE_SET_STR(39, device_name,"ASUS PowerSupply");
+ SMBIOS_BUILD_TABLE_POST;
+}
+
+/* SMBIOS type 22 PortableBattery (这个没有写完) */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 22 内部参数信息
+static void smbios_build_type_22_table(void)
+{
+ SMBIOS_BUILD_TABLE_PRE(22, T22_BASE, true); /* required */
+ SMBIOS_TABLE_SET_STR(22, device_name,"ASUS Battery");
+ SMBIOS_BUILD_TABLE_POST;
+}
#define T16_BASE 0x1000
#define T17_BASE 0x1100
#define T19_BASE 0x1300
@@ -562,18 +724,18 @@
{
SMBIOS_BUILD_TABLE_PRE(0, T0_BASE, false); /* optional, leave up to BIOS */
- SMBIOS_TABLE_SET_STR(0, vendor_str, smbios_type0.vendor);
- SMBIOS_TABLE_SET_STR(0, bios_version_str, smbios_type0.version);
+ SMBIOS_TABLE_SET_STR(0, vendor_str, "American Megatrends International LLC."); // modify
+ SMBIOS_TABLE_SET_STR(0, bios_version_str, "H3.7G");// modify;
t->bios_starting_address_segment = cpu_to_le16(0xE800); /* from SeaBIOS */
- SMBIOS_TABLE_SET_STR(0, bios_release_date_str, smbios_type0.date);
+ SMBIOS_TABLE_SET_STR(0, bios_release_date_str, "02/21/2023");// modify
t->bios_rom_size = 0; /* hardcoded in SeaBIOS with FIXME comment */
t->bios_characteristics = cpu_to_le64(0x08); /* Not supported */
- t->bios_characteristics_extension_bytes[0] = 0;
- t->bios_characteristics_extension_bytes[1] = 0x14; /* TCD/SVVP | VM */
+ t->bios_characteristics_extension_bytes[0] = 0xEF; // modify
+ t->bios_characteristics_extension_bytes[1] = 0x0F; /* // modify 只要不是0x10 也就是16就不会显示VirtualMachineSupported */
if (smbios_type0.uefi) {
t->bios_characteristics_extension_bytes[1] |= 0x08; /* |= UEFI */
}
@@ -582,8 +744,8 @@
t->system_bios_major_release = smbios_type0.major;
t->system_bios_minor_release = smbios_type0.minor;
} else {
- t->system_bios_major_release = 0;
- t->system_bios_minor_release = 0;
+ t->system_bios_major_release = 3; // modify bios版本号
+ t->system_bios_minor_release = 7; // modify bios版本号
}
/* hardcoded in SeaBIOS */
@@ -608,33 +770,33 @@
{
SMBIOS_BUILD_TABLE_PRE(1, T1_BASE, true); /* required */
- SMBIOS_TABLE_SET_STR(1, manufacturer_str, smbios_type1.manufacturer);
- SMBIOS_TABLE_SET_STR(1, product_name_str, smbios_type1.product);
- SMBIOS_TABLE_SET_STR(1, version_str, smbios_type1.version);
- SMBIOS_TABLE_SET_STR(1, serial_number_str, smbios_type1.serial);
+ SMBIOS_TABLE_SET_STR(1, manufacturer_str, "Maxsun"); // modify
+ SMBIOS_TABLE_SET_STR(1, product_name_str, "MS-Terminator B760M"); // modify
+ SMBIOS_TABLE_SET_STR(1, version_str, "VER:H3.7G(2022/11/29)"); // modify
+ SMBIOS_TABLE_SET_STR(1, serial_number_str, "Default string"); // modify
if (qemu_uuid_set) {
smbios_encode_uuid(&t->uuid, &qemu_uuid);
} else {
memset(&t->uuid, 0, 16);
}
t->wake_up_type = 0x06; /* power switch */
- SMBIOS_TABLE_SET_STR(1, sku_number_str, smbios_type1.sku);
- SMBIOS_TABLE_SET_STR(1, family_str, smbios_type1.family);
+ SMBIOS_TABLE_SET_STR(1, sku_number_str, "Default string"); // modify
+ SMBIOS_TABLE_SET_STR(1, family_str, "Default string"); // modify
SMBIOS_BUILD_TABLE_POST;
}
static void smbios_build_type_2_table(void)
{
- SMBIOS_BUILD_TABLE_PRE(2, T2_BASE, false); /* optional */
+ SMBIOS_BUILD_TABLE_PRE(2, T2_BASE, true); /* optional */
- SMBIOS_TABLE_SET_STR(2, manufacturer_str, type2.manufacturer);
- SMBIOS_TABLE_SET_STR(2, product_str, type2.product);
- SMBIOS_TABLE_SET_STR(2, version_str, type2.version);
- SMBIOS_TABLE_SET_STR(2, serial_number_str, type2.serial);
- SMBIOS_TABLE_SET_STR(2, asset_tag_number_str, type2.asset);
+ SMBIOS_TABLE_SET_STR(2, manufacturer_str, "Maxsun"); // modify
+ SMBIOS_TABLE_SET_STR(2, product_str, "MS-Terminator B760M"); // modify
+ SMBIOS_TABLE_SET_STR(2, version_str, "VER:H3.7G(2022/11/29)"); // modify
+ SMBIOS_TABLE_SET_STR(2, serial_number_str, "Default string"); // modify
+ SMBIOS_TABLE_SET_STR(2, asset_tag_number_str,"Default string"); // modify
t->feature_flags = 0x01; /* Motherboard */
- SMBIOS_TABLE_SET_STR(2, location_str, type2.location);
+ SMBIOS_TABLE_SET_STR(2, location_str,"Default string"); // modify
t->chassis_handle = cpu_to_le16(0x300); /* Type 3 (System enclosure) */
t->board_type = 0x0A; /* Motherboard */
t->contained_element_count = 0;
@@ -646,21 +808,21 @@
{
SMBIOS_BUILD_TABLE_PRE(3, T3_BASE, true); /* required */
- SMBIOS_TABLE_SET_STR(3, manufacturer_str, type3.manufacturer);
+ SMBIOS_TABLE_SET_STR(3, manufacturer_str, "Default string"); // modify
t->type = 0x01; /* Other */
- SMBIOS_TABLE_SET_STR(3, version_str, type3.version);
- SMBIOS_TABLE_SET_STR(3, serial_number_str, type3.serial);
- SMBIOS_TABLE_SET_STR(3, asset_tag_number_str, type3.asset);
+ SMBIOS_TABLE_SET_STR(3, version_str, "Default string"); // modify
+ SMBIOS_TABLE_SET_STR(3, serial_number_str, "Default string"); // modify
+ SMBIOS_TABLE_SET_STR(3, asset_tag_number_str, "Default string"); // modify
t->boot_up_state = 0x03; /* Safe */
t->power_supply_state = 0x03; /* Safe */
t->thermal_state = 0x03; /* Safe */
- t->security_status = 0x02; /* Unknown */
+ t->security_status = 0x03; /* Unknown */ // modify 0x03代表None
t->oem_defined = cpu_to_le32(0);
t->height = 0;
t->number_of_power_cords = 0;
t->contained_element_count = 0;
t->contained_element_record_length = 0;
- SMBIOS_TABLE_SET_STR(3, sku_number_str, type3.sku);
+ SMBIOS_TABLE_SET_STR(3, sku_number_str, "Default string"); // modify
SMBIOS_BUILD_TABLE_POST;
}
@@ -682,10 +844,10 @@
true, tbl_len); /* required */
snprintf(sock_str, sizeof(sock_str), "%s%2x", type4.sock_pfx, instance);
- SMBIOS_TABLE_SET_STR(4, socket_designation_str, sock_str);
+ SMBIOS_TABLE_SET_STR(4, socket_designation_str, "LGA1700"); // modify 直接改成12代的LGA1700 接口
t->processor_type = 0x03; /* CPU */
- t->processor_family = 0xfe; /* use Processor Family 2 field */
- SMBIOS_TABLE_SET_STR(4, processor_manufacturer_str, type4.manufacturer);
+ t->processor_family = 0xC6; /* use Processor Family 2 field */ // modify 0xC6代表 Intel® Core™ i7 processor
+ SMBIOS_TABLE_SET_STR(4, processor_manufacturer_str, "Intel(R) Corporation"); // modify
if (type4.processor_id == 0) {
t->processor_id[0] = cpu_to_le32(smbios_cpuid_version);
t->processor_id[1] = cpu_to_le32(smbios_cpuid_features);
@@ -693,19 +855,19 @@
t->processor_id[0] = cpu_to_le32((uint32_t)type4.processor_id);
t->processor_id[1] = cpu_to_le32(type4.processor_id >> 32);
}
- SMBIOS_TABLE_SET_STR(4, processor_version_str, type4.version);
- t->voltage = 0;
- t->external_clock = cpu_to_le16(0); /* Unknown */
- t->max_speed = cpu_to_le16(type4.max_speed);
- t->current_speed = cpu_to_le16(type4.current_speed);
+ SMBIOS_TABLE_SET_STR(4, processor_version_str, "12th Gen Intel(R) Core(TM) i7"); // modify
+ t->voltage = 0x8B;
+ t->external_clock = cpu_to_le16(100); /* Unknown */ // modify 外频100mhz
+ t->max_speed = cpu_to_le16(4900); // modify 最大频率4.9gzh
+ t->current_speed = cpu_to_le16(4455); // modify 当前频率4455mhz
t->status = 0x41; /* Socket populated, CPU enabled */
t->processor_upgrade = 0x01; /* Other */
- t->l1_cache_handle = cpu_to_le16(0xFFFF); /* N/A */
- t->l2_cache_handle = cpu_to_le16(0xFFFF); /* N/A */
- t->l3_cache_handle = cpu_to_le16(0xFFFF); /* N/A */
- SMBIOS_TABLE_SET_STR(4, serial_number_str, type4.serial);
- SMBIOS_TABLE_SET_STR(4, asset_tag_number_str, type4.asset);
- SMBIOS_TABLE_SET_STR(4, part_number_str, type4.part);
+ t->l1_cache_handle = cpu_to_le16(0x0051); /* N/A */ // modify L1缓存抄写物理机
+ t->l2_cache_handle = cpu_to_le16(0x0052); /* N/A */ // modify L2缓存抄写物理机
+ t->l3_cache_handle = cpu_to_le16(0x0053); /* N/A */ // modify L3缓存抄写物理机
+ SMBIOS_TABLE_SET_STR(4, serial_number_str, "To Be Filled By O.E.M."); //
+ SMBIOS_TABLE_SET_STR(4, asset_tag_number_str, "To Be Filled By O.E.M."); //
+ SMBIOS_TABLE_SET_STR(4, part_number_str, "To Be Filled By O.E.M."); //
threads_per_socket = machine_topo_get_threads_per_socket(ms);
cores_per_socket = machine_topo_get_cores_per_socket(ms);
@@ -715,8 +877,8 @@
t->thread_count = (threads_per_socket > 255) ? 0xFF : threads_per_socket;
- t->processor_characteristics = cpu_to_le16(0x02); /* Unknown */
- t->processor_family2 = cpu_to_le16(type4.processor_family);
+ t->processor_characteristics = cpu_to_le16(0x04); /* Unknown */ // modify 0x4 计算得到代表64-bit Capable
+ t->processor_family2 = cpu_to_le16(0xC6); // modify 和t->processor_family保持一致不一致都可以
if (tbl_len == SMBIOS_TYPE_4_LEN_V30) {
t->core_count2 = t->core_enabled2 = cpu_to_le16(cores_per_socket);
@@ -741,12 +903,12 @@
QTAILQ_FOREACH(t8, &type8, next) {
SMBIOS_BUILD_TABLE_PRE(8, T0_BASE + instance, true);
- SMBIOS_TABLE_SET_STR(8, internal_reference_str, t8->internal_reference);
- SMBIOS_TABLE_SET_STR(8, external_reference_str, t8->external_reference);
+ SMBIOS_TABLE_SET_STR(8, internal_reference_str, "FAN"); // modify
+ SMBIOS_TABLE_SET_STR(8, external_reference_str, "CPU FAN"); // modify
/* most vendors seem to set this to None */
- t->internal_connector_type = 0x0;
- t->external_connector_type = t8->connector_type;
- t->port_type = t8->port_type;
+ t->internal_connector_type = 0x0; // modify 0x0代表None
+ t->external_connector_type =0xFF; // modify 0xFF代表Other
+ t->port_type = 0xFF; // modify 0xFF代表 Other
SMBIOS_BUILD_TABLE_POST;
instance++;
@@ -816,7 +978,6 @@
{
char count_str[128];
size_t i;
-
if (type11.nvalues == 0) {
return;
}
@@ -843,9 +1004,9 @@
SMBIOS_BUILD_TABLE_PRE(16, T16_BASE, true); /* required */
- t->location = 0x01; /* Other */
+ t->location = 0x03; /* Other */ // modify 0x03代表 System board or motherboard
t->use = 0x03; /* System memory */
- t->error_correction = 0x06; /* Multi-bit ECC (for Microsoft, per SeaBIOS) */
+ t->error_correction = 0x03; /* Multi-bit ECC (for Microsoft, per SeaBIOS) */ // modify 0x03代表 None
size_kb = QEMU_ALIGN_UP(current_machine->ram_size, KiB) / KiB;
if (size_kb < MAX_T16_STD_SZ) {
t->maximum_capacity = cpu_to_le32(size_kb);
@@ -872,8 +1033,8 @@
t->physical_memory_array_handle = cpu_to_le16(0x1000); /* Type 16 above */
t->memory_error_information_handle = cpu_to_le16(0xFFFE); /* Not provided */
- t->total_width = cpu_to_le16(0xFFFF); /* Unknown */
- t->data_width = cpu_to_le16(0xFFFF); /* Unknown */
+ t->total_width = cpu_to_le16(64); /* Unknown */ // modify 64位
+ t->data_width = cpu_to_le16(64); /* Unknown */ // modify 64位
size_mb = QEMU_ALIGN_UP(size, MiB) / MiB;
if (size_mb < MAX_T17_STD_SZ) {
t->size = cpu_to_le16(size_mb);
@@ -886,20 +1047,20 @@
t->form_factor = 0x09; /* DIMM */
t->device_set = 0; /* Not in a set */
snprintf(loc_str, sizeof(loc_str), "%s %d", type17.loc_pfx, instance);
- SMBIOS_TABLE_SET_STR(17, device_locator_str, loc_str);
- SMBIOS_TABLE_SET_STR(17, bank_locator_str, type17.bank);
- t->memory_type = 0x07; /* RAM */
- t->type_detail = cpu_to_le16(0x02); /* Other */
- t->speed = cpu_to_le16(type17.speed);
- SMBIOS_TABLE_SET_STR(17, manufacturer_str, type17.manufacturer);
- SMBIOS_TABLE_SET_STR(17, serial_number_str, type17.serial);
- SMBIOS_TABLE_SET_STR(17, asset_tag_number_str, type17.asset);
- SMBIOS_TABLE_SET_STR(17, part_number_str, type17.part);
- t->attributes = 0; /* Unknown */
+ SMBIOS_TABLE_SET_STR(17, device_locator_str, "Controller0-ChannelA-DIMM0"); // modify 内存设备位置
+ SMBIOS_TABLE_SET_STR(17, bank_locator_str, "BANK 0"); // modify 内存插槽位置
+ t->memory_type = 0x1A; /* DDR4 */ // modify ddr4类型
+ t->type_detail = cpu_to_le16(0x80); /* test 0x80*/ // modify 0x80代表 Synchronous
+ t->speed = cpu_to_le16(3200); // modify 3200mhz
+ SMBIOS_TABLE_SET_STR(17, manufacturer_str, "KINGSTON"); // modify
+ SMBIOS_TABLE_SET_STR(17, serial_number_str, "DF1EC466"); // modify
+ SMBIOS_TABLE_SET_STR(17, asset_tag_number_str, "9876543210"); // modify
+ SMBIOS_TABLE_SET_STR(17, part_number_str, "SED3200U1888S"); // modify
+ t->attributes = 1; /* test 1 */ // modify 1代表 记不得了,你要测一下
t->configured_clock_speed = t->speed; /* reuse value for max speed */
- t->minimum_voltage = cpu_to_le16(0); /* Unknown */
- t->maximum_voltage = cpu_to_le16(0); /* Unknown */
- t->configured_voltage = cpu_to_le16(0); /* Unknown */
+ t->minimum_voltage = cpu_to_le16(1200); /* Unknown */ // modify 1.2v
+ t->maximum_voltage = cpu_to_le16(1350); /* Unknown */ // modify 1.35v
+ t->configured_voltage = cpu_to_le16(1200); /* Unknown */ // modify 1.2v
SMBIOS_BUILD_TABLE_POST;
}
@@ -915,7 +1076,7 @@
end = start + size - 1;
assert(end > start);
start_kb = start / KiB;
- end_kb = end / KiB;
+ end_kb = end/ KiB; // modify 直接end除以Kib
if (start_kb < UINT32_MAX && end_kb < UINT32_MAX) {
t->starting_address = cpu_to_le32(start_kb);
t->ending_address = cpu_to_le32(end_kb);
@@ -1018,19 +1179,19 @@
{
smbios_have_defaults = true;
- SMBIOS_SET_DEFAULT(smbios_type1.manufacturer, manufacturer);
- SMBIOS_SET_DEFAULT(smbios_type1.product, product);
- SMBIOS_SET_DEFAULT(smbios_type1.version, version);
- SMBIOS_SET_DEFAULT(type2.manufacturer, manufacturer);
- SMBIOS_SET_DEFAULT(type2.product, product);
- SMBIOS_SET_DEFAULT(type2.version, version);
- SMBIOS_SET_DEFAULT(type3.manufacturer, manufacturer);
- SMBIOS_SET_DEFAULT(type3.version, version);
+ SMBIOS_SET_DEFAULT(smbios_type1.manufacturer, "Maxsun"); // modify
+ SMBIOS_SET_DEFAULT(smbios_type1.product, "MS-Terminator B760M"); // modify
+ SMBIOS_SET_DEFAULT(smbios_type1.version, "VER:H3.7G(2022/11/29)"); // modify
+ SMBIOS_SET_DEFAULT(type2.manufacturer, "Maxsun"); // modify
+ SMBIOS_SET_DEFAULT(type2.product, "MS-Terminator B760M"); // modify
+ SMBIOS_SET_DEFAULT(type2.version, "VER:H3.7G(2022/11/29)"); // modify
+ SMBIOS_SET_DEFAULT(type3.manufacturer, "Default string"); // modify
+ SMBIOS_SET_DEFAULT(type3.version, "Default string"); // modify
SMBIOS_SET_DEFAULT(type4.sock_pfx, "CPU");
- SMBIOS_SET_DEFAULT(type4.manufacturer, manufacturer);
- SMBIOS_SET_DEFAULT(type4.version, version);
+ SMBIOS_SET_DEFAULT(type4.manufacturer, "Intel(R) Corporation"); // modify
+ SMBIOS_SET_DEFAULT(type4.version, "12th Gen Intel(R) Core(TM) i7-12700"); // modify
SMBIOS_SET_DEFAULT(type17.loc_pfx, "DIMM");
- SMBIOS_SET_DEFAULT(type17.manufacturer, manufacturer);
+ SMBIOS_SET_DEFAULT(type17.manufacturer, "KINGSTON"); // modify
}
static void smbios_entry_point_setup(SmbiosEntryPointType ep_type)
@@ -1119,6 +1280,28 @@
goto err_exit;
}
}
+ //
+ //unsigned instance,const char *socket_designation,uint16_t cache_configuration,uint16_t max_cache_size,uint8_t error_correction,uint8_t system_cache_type,uint8_t associativity
+ /*
+ cach1 example
+ t->cache_configuration=0x180; 180代表Write Back,Enabled,Internal,Not Socketed,L1
+ t->max_cache_size=0x100; 100是256KB
+ t->installed_size=0x100; 100是256KB
+ t->supported_sram_type=0x20; Synchronous
+ t->current_sram_type=0x20; Synchronous
+ t->cache_speed=0x0; unknown
+ t->error_correction=0x4; Parity
+ t->system_cache_type=0x4; Data
+ t->associativity=0x9; 12-way Set-Associative
+ */
+ unsigned cores_per_socket = machine_topo_get_cores_per_socket(ms);
+ smbios_build_type_7_table(0,"L1 Cache",0x180,cores_per_socket*0x20,0x4,0x4,0x7); // 设置1级数据缓存,每个核心32kb
+ smbios_build_type_7_table(1,"L1 Cache",0x180,cores_per_socket*0x20,0x4,0x3,0x7); // 设置1级指令缓存,每个核心32kb
+ smbios_build_type_7_table(2,"L2 Cache",0x181,cores_per_socket*0x800,0x5,0x4,0x8); // 设置2级数据缓存,每个核心2m
+ smbios_build_type_7_table(3,"L2 Cache",0x181,cores_per_socket*0x800,0x5,0x3,0x8); // 设置2级指令缓存,每个核心2m
+ smbios_build_type_7_table(4,"L3 Cache",0x182,0x2000,0x6,0x5,0x8); // 设置3级Unified缓存,8M
+ smbios_build_type_7_table(5,"L3 Cache",0x182,0x2000,0x6,0x5,0x8); // 设置3级Unified缓存,8M
+ smbios_build_type_7_table(6,"ASUS L4 Cache",0x183,0x4000,0x6,0x5,0x1); // 设置4级Unified缓存,16M
smbios_build_type_8_table();
smbios_build_type_9_table(errp);
@@ -1147,19 +1330,58 @@
smbios_build_type_17_table(i, GET_DIMM_SZ);
}
- for (i = 0; i < mem_array_size; i++) {
+ for (i = 0; i < dimm_cnt; i++) {// modify mem_array_size改为dimm_cnt,减少type19 出现次数
smbios_build_type_19_table(i, offset, mem_array[i].address,
- mem_array[i].length);
+ GET_DIMM_SZ);// modify mem_array[i].length改为GET_DIMM_SZ做单条处理,我这里也只想最大内存16G就单条
+ smbios_build_type_20_table(mem_array[i].address,
+ GET_DIMM_SZ);// 生成内存设备映射地址信息 我这里也只想最大内存16G就单条
}
+ smbios_build_type_22_table();/* SMBIOS type 22 PortableBattery (这个没有写完) */
/*
* make sure 16 bit handle numbers in the headers of tables 19
* and 32 do not overlap.
*/
assert((mem_array_size + offset) < (T32_BASE - T19_BASE));
+ // VoltageProbe
+ //(unsigned instance,const char *description,uint8_t location_and_status)t->location_and_status=0x6A;
+ //https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 26 内部参数信息
+ smbios_build_type_26_table(0,"LM78A",0x6A);//
+ smbios_build_type_26_table(1,"LM78A",0x67);//
+ smbios_build_type_26_table(2,"ASUS",0x63);//
+ smbios_build_type_26_table(3,"ASUS",0x64);//
+ smbios_build_type_26_table(4,"ASUS",0x63);//
+ smbios_build_type_26_table(5,"ASUS",0x64);//
+ smbios_build_type_26_table(6,"ASUS",0x6A);//
+ smbios_build_type_26_table(7,"ASUS",0x67);//
+ // CoolingDevice
+ //(unsigned instance,const char *description,uint8_t device_type_and_status) t->device_type_and_status = 0x67; //Power Supply Fan | Ok 0x67=b01100111
+ //https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 27 内部参数信息
+ smbios_build_type_27_table(0,"CPU FAN",0x67);//
+ smbios_build_type_27_table(1,"ASUS",0x65);//
+ smbios_build_type_27_table(2,"ASUS",0x63);//
+ smbios_build_type_27_table(3,"ASUS",0x65);//
+ smbios_build_type_27_table(4,"ASUS",0x63);//
+ smbios_build_type_27_table(5,"ASUS",0x67);//
+ // TemperatureProbe
+ //unsigned instance,const char *description,uint8_t location_and_status) t->location_and_status=0x6A;
+ //https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf 请使用这个规范文件System Management BIOS (SMBIOS) Reference Specification设置type 28 内部参数信息
+ smbios_build_type_28_table(0,"LM78A",0x63);//
+ smbios_build_type_28_table(1,"LM78A",0x6A);//
+ smbios_build_type_28_table(2,"ASUS",0x67);//
+ smbios_build_type_28_table(3,"ASUS",0x67);//
+ smbios_build_type_28_table(4,"ASUS",0x69);//
+ smbios_build_type_28_table(5,"ASUS",0x63);//
+ smbios_build_type_28_table(6,"ASUS",0x6A);//
+ smbios_build_type_29_table();// ElectricalCurrentProbe
+
+
+
smbios_build_type_32_table();
+ smbios_build_type_37_table();// MemoryChannel
smbios_build_type_38_table();
+ smbios_build_type_39_table();// SystemPowerSupply
smbios_build_type_41_table(errp);
smbios_build_type_127_table();
diff '--color=auto' -rub qemu-10.0.0/hw/ufs/lu.c qemu-10.0.0-patched/hw/ufs/lu.c
--- qemu-10.0.0/hw/ufs/lu.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/ufs/lu.c 2025-05-28 00:01:57.049845990 -0300
@@ -184,8 +184,8 @@
outbuf[5] = 0;
outbuf[6] = 0;
outbuf[7] = 0x2;
- strpadcpy((char *)&outbuf[8], 8, "QEMU", ' ');
- strpadcpy((char *)&outbuf[16], 16, "QEMU UFS", ' ');
+ strpadcpy((char *)&outbuf[8], 8, "DELL", ' ');
+ strpadcpy((char *)&outbuf[16], 16, "DELL UFS", ' ');
memset(&outbuf[32], 0, 4);
return SCSI_INQUIRY_LEN;
diff '--color=auto' -rub qemu-10.0.0/hw/usb/dev-audio.c qemu-10.0.0-patched/hw/usb/dev-audio.c
--- qemu-10.0.0/hw/usb/dev-audio.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/dev-audio.c 2025-05-28 00:03:02.225487166 -0300
@@ -40,7 +40,7 @@
static void usb_audio_reinit(USBDevice *dev, unsigned channels);
-#define USBAUDIO_VENDOR_NUM 0x46f4 /* CRC16() of "QEMU" */
+#define USBAUDIO_VENDOR_NUM 0x46f4 /* CRC16() of "DELL" */
#define USBAUDIO_PRODUCT_NUM 0x0002
#define DEV_CONFIG_VALUE 1 /* The one and only */
@@ -73,8 +73,8 @@
};
static const USBDescStrings usb_audio_stringtable = {
- [STRING_MANUFACTURER] = "QEMU",
- [STRING_PRODUCT] = "QEMU USB Audio",
+ [STRING_MANUFACTURER] = "DELL",
+ [STRING_PRODUCT] = "DELL USB Audio",
[STRING_SERIALNUMBER] = "1",
[STRING_CONFIG] = "Audio Configuration",
[STRING_USBAUDIO_CONTROL] = "Audio Device",
@@ -1005,7 +1005,7 @@
dc->vmsd = &vmstate_usb_audio;
device_class_set_props(dc, usb_audio_properties);
set_bit(DEVICE_CATEGORY_SOUND, dc->categories);
- k->product_desc = "QEMU USB Audio Interface";
+ k->product_desc = "DELL USB Audio Interface";
k->realize = usb_audio_realize;
k->handle_reset = usb_audio_handle_reset;
k->handle_control = usb_audio_handle_control;
diff '--color=auto' -rub qemu-10.0.0/hw/usb/dev-hid.c qemu-10.0.0-patched/hw/usb/dev-hid.c
--- qemu-10.0.0/hw/usb/dev-hid.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/dev-hid.c 2025-05-28 00:04:16.573986260 -0300
@@ -63,10 +63,10 @@
};
static const USBDescStrings desc_strings = {
- [STR_MANUFACTURER] = "QEMU",
- [STR_PRODUCT_MOUSE] = "QEMU USB Mouse",
- [STR_PRODUCT_TABLET] = "QEMU USB Tablet",
- [STR_PRODUCT_KEYBOARD] = "QEMU USB Keyboard",
+ [STR_MANUFACTURER] = "DELL",
+ [STR_PRODUCT_MOUSE] = "DELL USB Mouse",
+ [STR_PRODUCT_TABLET] = "DELL USB Tablet",
+ [STR_PRODUCT_KEYBOARD] = "DELL USB Keyboard",
[STR_SERIAL_COMPAT] = "42",
[STR_CONFIG_MOUSE] = "HID Mouse",
[STR_CONFIG_TABLET] = "HID Tablet",
@@ -805,7 +805,7 @@
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
uc->realize = usb_tablet_realize;
- uc->product_desc = "QEMU USB Tablet";
+ uc->product_desc = "DELL USB Tablet";
dc->vmsd = &vmstate_usb_ptr;
device_class_set_props(dc, usb_tablet_properties);
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
@@ -827,7 +827,7 @@
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
uc->realize = usb_mouse_realize;
- uc->product_desc = "QEMU USB Mouse";
+ uc->product_desc = "DELL USB Mouse";
dc->vmsd = &vmstate_usb_ptr;
device_class_set_props(dc, usb_mouse_properties);
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
@@ -850,7 +850,7 @@
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
uc->realize = usb_keyboard_realize;
- uc->product_desc = "QEMU USB Keyboard";
+ uc->product_desc = "DELL USB Keyboard";
dc->vmsd = &vmstate_usb_kbd;
device_class_set_props(dc, usb_keyboard_properties);
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
diff '--color=auto' -rub qemu-10.0.0/hw/usb/dev-hub.c qemu-10.0.0-patched/hw/usb/dev-hub.c
--- qemu-10.0.0/hw/usb/dev-hub.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/dev-hub.c 2025-05-28 00:05:33.044379461 -0300
@@ -104,9 +104,9 @@
};
static const USBDescStrings desc_strings = {
- [STR_MANUFACTURER] = "QEMU",
- [STR_PRODUCT] = "QEMU USB Hub",
- [STR_SERIALNUMBER] = "314159",
+ [STR_MANUFACTURER] = "DELL",
+ [STR_PRODUCT] = "DELL USB Hub",
+ [STR_SERIALNUMBER] = "114514",
};
static const USBDescIface desc_iface_hub = {
@@ -676,7 +676,7 @@
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
uc->realize = usb_hub_realize;
- uc->product_desc = "QEMU USB Hub";
+ uc->product_desc = "DELL USB Hub";
uc->usb_desc = &desc_hub;
uc->find_device = usb_hub_find_device;
uc->handle_reset = usb_hub_handle_reset;
diff '--color=auto' -rub qemu-10.0.0/hw/usb/dev-mtp.c qemu-10.0.0-patched/hw/usb/dev-mtp.c
--- qemu-10.0.0/hw/usb/dev-mtp.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/dev-mtp.c 2025-05-28 00:06:36.501437904 -0300
@@ -247,8 +247,8 @@
/* ----------------------------------------------------------------------- */
-#define MTP_MANUFACTURER "QEMU"
-#define MTP_PRODUCT "QEMU filesharing"
+#define MTP_MANUFACTURER "DELL"
+#define MTP_PRODUCT "DELL filesharing"
#define MTP_WRITE_BUF_SZ (512 * KiB)
enum {
@@ -362,7 +362,7 @@
static const USBDesc desc = {
.id = {
- .idVendor = 0x46f4, /* CRC16() of "QEMU" */
+ .idVendor = 0x46f4, /* CRC16() of "DELL" */
.idProduct = 0x0004,
.bcdDevice = 0,
.iManufacturer = STR_MANUFACTURER,
@@ -2090,7 +2090,7 @@
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
uc->realize = usb_mtp_realize;
- uc->product_desc = "QEMU USB MTP";
+ uc->product_desc = "DELL USB MTP";
uc->usb_desc = &desc;
uc->cancel_packet = usb_mtp_cancel_packet;
uc->handle_attach = usb_desc_attach;
diff '--color=auto' -rub qemu-10.0.0/hw/usb/dev-network.c qemu-10.0.0-patched/hw/usb/dev-network.c
--- qemu-10.0.0/hw/usb/dev-network.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/dev-network.c 2025-05-28 00:08:27.009022585 -0300
@@ -99,15 +99,15 @@
#define ETH_FRAME_LEN 1514 /* Max. octets in frame sans FCS */
static const USBDescStrings usb_net_stringtable = {
- [STRING_MANUFACTURER] = "QEMU",
- [STRING_PRODUCT] = "RNDIS/QEMU USB Network Device",
- [STRING_ETHADDR] = "400102030405",
- [STRING_DATA] = "QEMU USB Net Data Interface",
- [STRING_CONTROL] = "QEMU USB Net Control Interface",
- [STRING_RNDIS_CONTROL] = "QEMU USB Net RNDIS Control Interface",
- [STRING_CDC] = "QEMU USB Net CDC",
- [STRING_SUBSET] = "QEMU USB Net Subset",
- [STRING_RNDIS] = "QEMU USB Net RNDIS",
+ [STRING_MANUFACTURER] = "DELL",
+ [STRING_PRODUCT] = "RNDIS/DELL USB Network Device",
+ [STRING_ETHADDR] = "400114514405",
+ [STRING_DATA] = "DELL USB Net Data Interface",
+ [STRING_CONTROL] = "DELL USB Net Control Interface",
+ [STRING_RNDIS_CONTROL] = "DELL USB Net RNDIS Control Interface",
+ [STRING_CDC] = "DELL USB Net CDC",
+ [STRING_SUBSET] = "DELL USB Net Subset",
+ [STRING_RNDIS] = "DELL USB Net RNDIS",
[STRING_SERIALNUMBER] = "1",
};
@@ -717,7 +717,7 @@
/* mandatory */
case OID_GEN_VENDOR_DESCRIPTION:
- pstrcpy((char *)outbuf, outlen, "QEMU USB RNDIS Net");
+ pstrcpy((char *)outbuf, outlen, "DELL USB RNDIS Net");
return strlen((char *)outbuf) + 1;
case OID_GEN_VENDOR_DRIVER_VERSION:
@@ -1371,7 +1371,7 @@
s->speed = 1000000; /* 100MBps, in 100Bps units */
s->media_state = 0; /* NDIS_MEDIA_STATE_CONNECTED */;
s->filter = 0;
- s->vendorid = 0x1234;
+ s->vendorid = 0x8086;
s->connection = 1; /* Connected */
s->intr = usb_ep_get(dev, USB_TOKEN_IN, 1);
s->bulk_in = usb_ep_get(dev, USB_TOKEN_IN, 2);
@@ -1417,7 +1417,7 @@
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
uc->realize = usb_net_realize;
- uc->product_desc = "QEMU USB Network Interface";
+ uc->product_desc = "DELL USB Network Interface";
uc->usb_desc = &desc_net;
uc->handle_reset = usb_net_handle_reset;
uc->handle_control = usb_net_handle_control;
diff '--color=auto' -rub qemu-10.0.0/hw/usb/dev-serial.c qemu-10.0.0-patched/hw/usb/dev-serial.c
--- qemu-10.0.0/hw/usb/dev-serial.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/dev-serial.c 2025-05-28 00:09:32.690027509 -0300
@@ -119,9 +119,9 @@
};
static const USBDescStrings desc_strings = {
- [STR_MANUFACTURER] = "QEMU",
- [STR_PRODUCT_SERIAL] = "QEMU USB SERIAL",
- [STR_PRODUCT_BRAILLE] = "QEMU USB BAUM BRAILLE",
+ [STR_MANUFACTURER] = "DELL",
+ [STR_PRODUCT_SERIAL] = "DELL USB SERIAL",
+ [STR_PRODUCT_BRAILLE] = "DELL USB BAUM BRAILLE",
[STR_SERIALNUMBER] = "1",
};
@@ -665,7 +665,7 @@
DeviceClass *dc = DEVICE_CLASS(klass);
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
- uc->product_desc = "QEMU USB Serial";
+ uc->product_desc = "DELL USB Serial";
uc->usb_desc = &desc_serial;
device_class_set_props(dc, serial_properties);
}
diff '--color=auto' -rub qemu-10.0.0/hw/usb/dev-smartcard-reader.c qemu-10.0.0-patched/hw/usb/dev-smartcard-reader.c
--- qemu-10.0.0/hw/usb/dev-smartcard-reader.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/dev-smartcard-reader.c 2025-05-28 00:10:58.843947848 -0300
@@ -80,8 +80,8 @@
#define CCID_CONTROL_GET_CLOCK_FREQUENCIES 0x2
#define CCID_CONTROL_GET_DATA_RATES 0x3
-#define CCID_PRODUCT_DESCRIPTION "QEMU USB CCID"
-#define CCID_VENDOR_DESCRIPTION "QEMU"
+#define CCID_PRODUCT_DESCRIPTION "DELL USB CCID"
+#define CCID_VENDOR_DESCRIPTION "DELL"
#define CCID_INTERFACE_NAME "CCID Interface"
#define CCID_SERIAL_NUMBER_STRING "1"
/*
@@ -419,8 +419,8 @@
};
static const USBDescStrings desc_strings = {
- [STR_MANUFACTURER] = "QEMU",
- [STR_PRODUCT] = "QEMU USB CCID",
+ [STR_MANUFACTURER] = "DELL",
+ [STR_PRODUCT] = "DELL USB CCID",
[STR_SERIALNUMBER] = "1",
[STR_INTERFACE] = "CCID Interface",
};
@@ -1336,7 +1336,7 @@
s->bulk_out_pos = 0;
ccid_reset_parameters(s);
ccid_reset(s);
- s->debug = parse_debug_env("QEMU_CCID_DEBUG", D_VERBOSE, s->debug);
+ s->debug = parse_debug_env("DELL_CCID_DEBUG", D_VERBOSE, s->debug);
}
static int ccid_post_load(void *opaque, int version_id)
@@ -1441,7 +1441,7 @@
HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(klass);
uc->realize = ccid_realize;
- uc->product_desc = "QEMU USB CCID";
+ uc->product_desc = "DELL USB CCID";
uc->usb_desc = &desc_ccid;
uc->handle_reset = ccid_handle_reset;
uc->handle_control = ccid_handle_control;
diff '--color=auto' -rub qemu-10.0.0/hw/usb/dev-storage.c qemu-10.0.0-patched/hw/usb/dev-storage.c
--- qemu-10.0.0/hw/usb/dev-storage.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/dev-storage.c 2025-05-28 00:11:53.484720299 -0300
@@ -47,8 +47,8 @@
};
static const USBDescStrings desc_strings = {
- [STR_MANUFACTURER] = "QEMU",
- [STR_PRODUCT] = "QEMU USB HARDDRIVE",
+ [STR_MANUFACTURER] = "DELL",
+ [STR_PRODUCT] = "DELL USB HARDDRIVE",
[STR_SERIALNUMBER] = "1",
[STR_CONFIG_FULL] = "Full speed config (usb 1.1)",
[STR_CONFIG_HIGH] = "High speed config (usb 2.0)",
@@ -164,7 +164,7 @@
static const USBDesc desc = {
.id = {
- .idVendor = 0x46f4, /* CRC16() of "QEMU" */
+ .idVendor = 0x46f4, /* CRC16() of "DELL" */
.idProduct = 0x0001,
.bcdDevice = 0,
.iManufacturer = STR_MANUFACTURER,
@@ -590,7 +590,7 @@
DeviceClass *dc = DEVICE_CLASS(klass);
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
- uc->product_desc = "QEMU USB MSD";
+ uc->product_desc = "DELL USB MSD";
uc->usb_desc = &desc;
uc->cancel_packet = usb_msd_cancel_io;
uc->handle_attach = usb_desc_attach;
diff '--color=auto' -rub qemu-10.0.0/hw/usb/dev-uas.c qemu-10.0.0-patched/hw/usb/dev-uas.c
--- qemu-10.0.0/hw/usb/dev-uas.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/dev-uas.c 2025-05-28 00:12:39.778221975 -0300
@@ -171,9 +171,9 @@
};
static const USBDescStrings desc_strings = {
- [STR_MANUFACTURER] = "QEMU",
+ [STR_MANUFACTURER] = "DELL",
[STR_PRODUCT] = "USB Attached SCSI HBA",
- [STR_SERIALNUMBER] = "27842",
+ [STR_SERIALNUMBER] = "33121",
[STR_CONFIG_HIGH] = "High speed config (usb 2.0)",
[STR_CONFIG_SUPER] = "Super speed config (usb 3.0)",
};
@@ -321,7 +321,7 @@
static const USBDesc desc = {
.id = {
- .idVendor = 0x46f4, /* CRC16() of "QEMU" */
+ .idVendor = 0x46f4, /* CRC16() of "DELL" */
.idProduct = 0x0003,
.bcdDevice = 0,
.iManufacturer = STR_MANUFACTURER,
diff '--color=auto' -rub qemu-10.0.0/hw/usb/dev-wacom.c qemu-10.0.0-patched/hw/usb/dev-wacom.c
--- qemu-10.0.0/hw/usb/dev-wacom.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/dev-wacom.c 2025-05-28 00:13:46.535387456 -0300
@@ -64,7 +64,7 @@
};
static const USBDescStrings desc_strings = {
- [STR_MANUFACTURER] = "QEMU",
+ [STR_MANUFACTURER] = "DELL",
[STR_PRODUCT] = "Wacom PenPartner",
[STR_SERIALNUMBER] = "1",
};
@@ -231,7 +231,7 @@
if (!s->mouse_grabbed) {
s->eh_entry = qemu_add_mouse_event_handler(usb_mouse_event, s, 0,
- "QEMU PenPartner tablet");
+ "DELL PenPartner tablet");
qemu_activate_mouse_event_handler(s->eh_entry);
s->mouse_grabbed = 1;
}
@@ -269,7 +269,7 @@
if (!s->mouse_grabbed) {
s->eh_entry = qemu_add_mouse_event_handler(usb_wacom_event, s, 1,
- "QEMU PenPartner tablet");
+ "DELL PenPartner tablet");
qemu_activate_mouse_event_handler(s->eh_entry);
s->mouse_grabbed = 1;
}
@@ -425,7 +425,7 @@
DeviceClass *dc = DEVICE_CLASS(klass);
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
- uc->product_desc = "QEMU PenPartner Tablet";
+ uc->product_desc = "DELL PenPartner Tablet";
uc->usb_desc = &desc_wacom;
uc->realize = usb_wacom_realize;
uc->handle_reset = usb_wacom_handle_reset;
@@ -433,7 +433,7 @@
uc->handle_data = usb_wacom_handle_data;
uc->unrealize = usb_wacom_unrealize;
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
- dc->desc = "QEMU PenPartner Tablet";
+ dc->desc = "DELL PenPartner Tablet";
dc->vmsd = &vmstate_usb_wacom;
}
diff '--color=auto' -rub qemu-10.0.0/hw/usb/u2f.c qemu-10.0.0-patched/hw/usb/u2f.c
--- qemu-10.0.0/hw/usb/u2f.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/u2f.c 2025-05-28 00:15:15.633277635 -0300
@@ -34,7 +34,7 @@
#include "u2f.h"
/* U2F key Vendor / Product */
-#define U2F_KEY_VENDOR_NUM 0x46f4 /* CRC16() of "QEMU" */
+#define U2F_KEY_VENDOR_NUM 0x46f4 /* CRC16() of "DELL" */
#define U2F_KEY_PRODUCT_NUM 0x0005
enum {
@@ -46,7 +46,7 @@
};
static const USBDescStrings desc_strings = {
- [STR_MANUFACTURER] = "QEMU",
+ [STR_MANUFACTURER] = "DELL",
[STR_PRODUCT] = "U2F USB key",
[STR_SERIALNUMBER] = "0",
[STR_CONFIG] = "U2F key config",
@@ -322,7 +322,7 @@
DeviceClass *dc = DEVICE_CLASS(klass);
USBDeviceClass *uc = USB_DEVICE_CLASS(klass);
- uc->product_desc = "QEMU U2F USB key";
+ uc->product_desc = "DELL U2F USB key";
uc->usb_desc = &desc_u2f_key;
uc->handle_reset = u2f_key_handle_reset;
uc->handle_control = u2f_key_handle_control;
@@ -330,7 +330,7 @@
uc->handle_attach = usb_desc_attach;
uc->realize = u2f_key_realize;
uc->unrealize = u2f_key_unrealize;
- dc->desc = "QEMU U2F key";
+ dc->desc = "DELL U2F key";
dc->vmsd = &vmstate_u2f_key;
}
diff '--color=auto' -rub qemu-10.0.0/hw/usb/u2f-emulated.c qemu-10.0.0-patched/hw/usb/u2f-emulated.c
--- qemu-10.0.0/hw/usb/u2f-emulated.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/u2f-emulated.c 2025-05-28 00:14:04.987986024 -0300
@@ -385,7 +385,7 @@
kc->realize = u2f_emulated_realize;
kc->unrealize = u2f_emulated_unrealize;
kc->recv_from_guest = u2f_emulated_recv_from_guest;
- dc->desc = "QEMU U2F emulated key";
+ dc->desc = "DELL U2F emulated key";
device_class_set_props(dc, u2f_emulated_properties);
}
diff '--color=auto' -rub qemu-10.0.0/hw/usb/u2f-passthru.c qemu-10.0.0-patched/hw/usb/u2f-passthru.c
--- qemu-10.0.0/hw/usb/u2f-passthru.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/hw/usb/u2f-passthru.c 2025-05-28 00:14:18.576957018 -0300
@@ -528,7 +528,7 @@
kc->realize = u2f_passthru_realize;
kc->unrealize = u2f_passthru_unrealize;
kc->recv_from_guest = u2f_passthru_recv_from_guest;
- dc->desc = "QEMU U2F passthrough key";
+ dc->desc = "DELL U2F passthrough key";
dc->vmsd = &u2f_passthru_vmstate;
device_class_set_props(dc, u2f_passthru_properties);
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
diff '--color=auto' -rub qemu-10.0.0/include/hw/acpi/aml-build.h qemu-10.0.0-patched/include/hw/acpi/aml-build.h
--- qemu-10.0.0/include/hw/acpi/aml-build.h 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/include/hw/acpi/aml-build.h 2025-05-28 00:15:57.486820409 -0300
@@ -4,8 +4,8 @@
#include "hw/acpi/acpi-defs.h"
#include "hw/acpi/bios-linker-loader.h"
-#define ACPI_BUILD_APPNAME6 "BOCHS "
-#define ACPI_BUILD_APPNAME8 "BXPC "
+#define ACPI_BUILD_APPNAME6 "INTEL "
+#define ACPI_BUILD_APPNAME8 "PC8086 "
#define ACPI_BUILD_TABLE_FILE "etc/acpi/tables"
#define ACPI_BUILD_RSDP_FILE "etc/acpi/rsdp"
diff '--color=auto' -rub qemu-10.0.0/include/hw/firmware/smbios.h qemu-10.0.0-patched/include/hw/firmware/smbios.h
--- qemu-10.0.0/include/hw/firmware/smbios.h 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/include/hw/firmware/smbios.h 2025-05-28 00:19:14.760228445 -0300
@@ -321,6 +321,106 @@
uint8_t device_number;
} QEMU_PACKED;
+/* SMBIOS type 7 CacheInformation CPU������Ϣ 123��cpu���� ������ dds666 added */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf ��ʹ������淶�ļ�System Management BIOS (SMBIOS) Reference Specification����type 7 �ڲ�������Ϣ
+struct smbios_type_7 {
+ struct smbios_structure_header header;
+ uint8_t socket_designation;
+ uint16_t cache_configuration;
+ uint16_t max_cache_size;
+ uint16_t installed_size;
+ uint16_t supported_sram_type;
+ uint16_t current_sram_type;
+ uint8_t cache_speed;
+ uint8_t error_correction;
+ uint8_t system_cache_type;
+ uint8_t associativity;
+} QEMU_PACKED;
+
+/* SMBIOS type 20 MemoryDeviceMappedAddress �ڴ��豸ӳ���ַ��Ϣ ������ dds666 added */
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf ��ʹ������淶�ļ�System Management BIOS (SMBIOS) Reference Specification����type 20 �ڲ�������Ϣ
+struct smbios_type_20 {
+ struct smbios_structure_header header;
+ uint32_t starting_address;
+ uint32_t ending_address;
+ uint16_t memory_device_handle;
+ uint16_t memory_array_mapped_address_handle;
+ uint8_t partition_row_position;
+ uint8_t interleave_position;
+ uint8_t interleave_data_depth;
+} QEMU_PACKED;
+
+/* SMBIOS type 26 VoltageProbe ��ѹ�������豸��Ϣ ������ dds666 added*/
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf ��ʹ������淶�ļ�System Management BIOS (SMBIOS) Reference Specification����type 26 �ڲ�������Ϣ
+struct smbios_type_26 {
+ struct smbios_structure_header header;
+ uint8_t description;
+ uint8_t location_and_status;
+ uint16_t max_value;
+ uint16_t min_value;
+ uint16_t resolution;
+ uint16_t tolerance;
+ uint16_t accuracy;
+ uint32_t oem_defined;
+ uint16_t nominal_value;
+
+} QEMU_PACKED;
+
+/* SMBIOS type 27 CoolingDevice �����豸��Ϣ ������ dds666 added*/
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf ��ʹ������淶�ļ�System Management BIOS (SMBIOS) Reference Specification����type 27 �ڲ�������Ϣ
+struct smbios_type_27 {
+ struct smbios_structure_header header;
+ uint16_t temperature_probe_handle;
+ uint8_t device_type_and_status;
+ uint8_t cooling_unit_group;
+ uint32_t OEM_defined;
+ uint16_t nominal_speed;
+ uint8_t description;
+} QEMU_PACKED;
+
+/* SMBIOS type 28 TemperatureProbe �¶��豸��Ϣ ������ dds666 added*/
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf ��ʹ������淶�ļ�System Management BIOS (SMBIOS) Reference Specification����type 28 �ڲ�������Ϣ
+struct smbios_type_28 {
+ struct smbios_structure_header header;
+ uint8_t description;
+ uint8_t location_and_status;
+ uint16_t maximum_value;
+ uint16_t minimum_value;
+ uint16_t resolution;
+ uint16_t tolerance;
+ uint16_t accuracy;
+ uint32_t OEM_defined;
+ uint16_t nominal_value;
+} QEMU_PACKED;
+
+
+/* SMBIOS type 37 MemoryChannel �ڴ�ͨ����Ϣ�����û��д�꣩ ������ dds666 added*/
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf ��ʹ������淶�ļ�System Management BIOS (SMBIOS) Reference Specification����type 37 �ڲ�������Ϣ
+struct smbios_type_37 {
+ struct smbios_structure_header header;
+} QEMU_PACKED;
+
+/* SMBIOS type 29 ElectricalCurrentProbe �����û��д�꣩ ������ dds666 added*/
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf ��ʹ������淶�ļ�System Management BIOS (SMBIOS) Reference Specification����type 29 �ڲ�������Ϣ
+struct smbios_type_29 {
+ struct smbios_structure_header header;
+ uint8_t description;
+} QEMU_PACKED;
+
+/* SMBIOS type 39 SystemPowerSupply �����û��д�꣩ ������ dds666 added*/
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf ��ʹ������淶�ļ�System Management BIOS (SMBIOS) Reference Specification����type 39 �ڲ�������Ϣ
+struct smbios_type_39 {
+ struct smbios_structure_header header;
+ uint8_t device_name;
+} QEMU_PACKED;
+
+/* SMBIOS type 22 PortableBattery �����û��д�꣩ ������ dds666 added*/
+//https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.8.0WIP50.pdf ��ʹ������淶�ļ�System Management BIOS (SMBIOS) Reference Specification����type 22 �ڲ�������Ϣ
+struct smbios_type_22 {
+ struct smbios_structure_header header;
+ uint8_t device_name;
+} QEMU_PACKED;
+
/* SMBIOS type 127 -- End-of-table */
struct smbios_type_127 {
struct smbios_structure_header header;
diff '--color=auto' -rub qemu-10.0.0/migration/rdma.c qemu-10.0.0-patched/migration/rdma.c
--- qemu-10.0.0/migration/rdma.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/migration/rdma.c 2025-05-28 00:20:29.352454141 -0300
@@ -220,7 +220,7 @@
[RDMA_CONTROL_NONE] = "NONE",
[RDMA_CONTROL_ERROR] = "ERROR",
[RDMA_CONTROL_READY] = "READY",
- [RDMA_CONTROL_QEMU_FILE] = "QEMU FILE",
+ [RDMA_CONTROL_QEMU_FILE] = "DELL FILE",
[RDMA_CONTROL_RAM_BLOCKS_REQUEST] = "RAM BLOCKS REQUEST",
[RDMA_CONTROL_RAM_BLOCKS_RESULT] = "RAM BLOCKS RESULT",
[RDMA_CONTROL_COMPRESS] = "COMPRESS",
diff '--color=auto' -rub qemu-10.0.0/pc-bios/optionrom/optionrom.h qemu-10.0.0-patched/pc-bios/optionrom/optionrom.h
--- qemu-10.0.0/pc-bios/optionrom/optionrom.h 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/pc-bios/optionrom/optionrom.h 2025-05-28 00:20:57.839944610 -0300
@@ -43,7 +43,7 @@
#define FW_CFG_DMA_CTL_SELECT 0x08
#define FW_CFG_DMA_CTL_WRITE 0x10
-#define FW_CFG_DMA_SIGNATURE 0x51454d5520434647ULL /* "QEMU CFG" */
+#define FW_CFG_DMA_SIGNATURE 0x4155535520434647ULL /* "QEMU CFG" */
#define BIOS_CFG_DMA_ADDR_HIGH 0x514
#define BIOS_CFG_DMA_ADDR_LOW 0x518
diff '--color=auto' -rub qemu-10.0.0/pc-bios/s390-ccw/virtio-scsi.h qemu-10.0.0-patched/pc-bios/s390-ccw/virtio-scsi.h
--- qemu-10.0.0/pc-bios/s390-ccw/virtio-scsi.h 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/pc-bios/s390-ccw/virtio-scsi.h 2025-05-28 00:21:46.727926922 -0300
@@ -25,7 +25,7 @@
#define VIRTIO_SCSI_S_OK 0x00
#define VIRTIO_SCSI_S_BAD_TARGET 0x03
-#define QEMU_CDROM_SIGNATURE "QEMU CD-ROM "
+#define QEMU_CDROM_SIGNATURE "DELL CD-ROM "
enum virtio_scsi_vq_id {
VR_CONTROL = 0,
diff '--color=auto' -rub qemu-10.0.0/target/i386/cpu.c qemu-10.0.0-patched/target/i386/cpu.c
--- qemu-10.0.0/target/i386/cpu.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/target/i386/cpu.c 2025-05-28 00:25:52.551938171 -0300
@@ -5720,7 +5720,7 @@
object_property_set_str(OBJECT(cpu), "vendor", CPUID_VENDOR_AMD,
&error_abort);
object_property_set_str(OBJECT(cpu), "model-id",
- "QEMU TCG CPU version " QEMU_HW_VERSION,
+ "TCG CPU version " QEMU_HW_VERSION,
&error_abort);
}
@@ -8008,7 +8008,7 @@
/* Hyper-V vendor id */
if (!cpu->hyperv_vendor) {
- object_property_set_str(OBJECT(cpu), "hv-vendor-id", "Microsoft Hv",
+ object_property_set_str(OBJECT(cpu), "hv-vendor-id", "GenuineIntel",
&error_abort);
}
len = strlen(cpu->hyperv_vendor);
diff '--color=auto' -rub qemu-10.0.0/target/i386/kvm/kvm.c qemu-10.0.0-patched/target/i386/kvm/kvm.c
--- qemu-10.0.0/target/i386/kvm/kvm.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/target/i386/kvm/kvm.c 2025-05-28 00:26:25.046992255 -0300
@@ -2206,7 +2206,7 @@
abort();
#endif
} else if (cpu->expose_kvm) {
- memcpy(signature, "KVMKVMKVM\0\0\0", 12);
+ memcpy(signature, "GenuineIntel", 12);
c = &cpuid_data.entries[cpuid_i++];
c->function = KVM_CPUID_SIGNATURE | kvm_base;
c->eax = KVM_CPUID_FEATURES | kvm_base;
diff '--color=auto' -rub qemu-10.0.0/target/s390x/tcg/misc_helper.c qemu-10.0.0-patched/target/s390x/tcg/misc_helper.c
--- qemu-10.0.0/target/s390x/tcg/misc_helper.c 2025-05-08 10:03:51.000000000 -0300
+++ qemu-10.0.0-patched/target/s390x/tcg/misc_helper.c 2025-05-28 00:29:44.324736792 -0300
@@ -331,18 +331,18 @@
/* Basic Machine Configuration */
char type[5] = {};
- ebcdic_put(sysib.sysib_111.manuf, "QEMU ", 16);
+ ebcdic_put(sysib.sysib_111.manuf, "DELL ", 16);
/* same as machine type number in STORE CPU ID, but in EBCDIC */
snprintf(type, ARRAY_SIZE(type), "%X", cpu->model->def->type);
ebcdic_put(sysib.sysib_111.type, type, 4);
/* model number (not stored in STORE CPU ID for z/Architecture) */
- ebcdic_put(sysib.sysib_111.model, "QEMU ", 16);
- ebcdic_put(sysib.sysib_111.sequence, "QEMU ", 16);
- ebcdic_put(sysib.sysib_111.plant, "QEMU", 4);
+ ebcdic_put(sysib.sysib_111.model, "DELL ", 16);
+ ebcdic_put(sysib.sysib_111.sequence, "DELL ", 16);
+ ebcdic_put(sysib.sysib_111.plant, "DELL", 4);
} else if ((sel1 == 2) && (sel2 == 1)) {
/* Basic Machine CPU */
- ebcdic_put(sysib.sysib_121.sequence, "QEMUQEMUQEMUQEMU", 16);
- ebcdic_put(sysib.sysib_121.plant, "QEMU", 4);
+ ebcdic_put(sysib.sysib_121.sequence, "ASUSASUSASUSASUS", 16);
+ ebcdic_put(sysib.sysib_121.plant, "DELL", 4);
sysib.sysib_121.cpu_addr = cpu_to_be16(env->core_id);
} else if ((sel1 == 2) && (sel2 == 2)) {
/* Basic Machine CPUs */
@@ -357,8 +357,8 @@
case STSI_R0_FC_LEVEL_2:
if ((sel1 == 2) && (sel2 == 1)) {
/* LPAR CPU */
- ebcdic_put(sysib.sysib_221.sequence, "QEMUQEMUQEMUQEMU", 16);
- ebcdic_put(sysib.sysib_221.plant, "QEMU", 4);
+ ebcdic_put(sysib.sysib_221.sequence, "ASUSASUSASUSASUS", 16);
+ ebcdic_put(sysib.sysib_221.plant, "DELL", 4);
sysib.sysib_221.cpu_addr = cpu_to_be16(env->core_id);
} else if ((sel1 == 2) && (sel2 == 2)) {
/* LPAR CPUs */
@@ -366,7 +366,7 @@
sysib.sysib_222.total_cpus = cpu_to_be16(total_cpus);
sysib.sysib_222.conf_cpus = cpu_to_be16(conf_cpus);
sysib.sysib_222.reserved_cpus = cpu_to_be16(reserved_cpus);
- ebcdic_put(sysib.sysib_222.name, "QEMU ", 8);
+ // ebcdic_put(sysib.sysib_222.name, "DELL ", 8);ebcdic_put(sysib.sysib_322.vm[0].cpi, "KVM/Linux ", 16);
sysib.sysib_222.caf = cpu_to_be32(1000);
sysib.sysib_222.dedicated_cpus = cpu_to_be16(conf_cpus);
} else {
@@ -382,7 +382,7 @@
sysib.sysib_322.vm[0].reserved_cpus = cpu_to_be16(reserved_cpus);
sysib.sysib_322.vm[0].caf = cpu_to_be32(1000);
/* Linux kernel uses this to distinguish us from z/VM */
- ebcdic_put(sysib.sysib_322.vm[0].cpi, "KVM/Linux ", 16);
+ ebcdic_put(sysib.sysib_322.vm[0].cpi, "ATX/Linux ", 16);
sysib.sysib_322.vm[0].ext_name_encoding = 2; /* UTF-8 */
/* If our VM has a name, use the real name */