hexware-kernel/patches/qemu/9008-antidetect-hw-i386.patch
2024-07-26 03:09:31 +03:00

55 lines
1.8 KiB
Diff

diff -Naur --no-dereference a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
--- a/hw/i386/acpi-build.c 2023-07-04 11:03:21.583219269 +0000
+++ b/hw/i386/acpi-build.c 2023-07-20 16:54:22.568741489 +0000
@@ -932,6 +932,7 @@
static void build_dbg_aml(Aml *table)
{
+ return;
Aml *field;
Aml *method;
Aml *while_ctx;
@@ -1758,13 +1759,13 @@
aml_append(scope, aml_name_decl("_S5", pkg));
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);
+ // scope = aml_scope("\\_SB.PCI0");
+ // fw_cfg_add_acpi_dsdt(scope, x86ms->fw_cfg);
+ // aml_append(dsdt, scope);
}
sb_scope = aml_scope("\\_SB");
{
Object *pci_host = acpi_get_i386_pci_host();
diff -Naur --no-dereference a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
--- a/hw/i386/pc_piix.c 2023-07-04 11:03:21.587219272 +0000
+++ b/hw/i386/pc_piix.c 2023-07-04 11:39:20.301679934 +0000
@@ -496,7 +496,7 @@
pcmc->pci_root_uid = 0;
pcmc->default_cpu_version = 1;
- m->family = "pc_piix";
- m->desc = "Standard PC (i440FX + PIIX, 1996)";
+ m->family = "ASUS";
+ m->desc = "M4A88TD-M";
m->default_machine_opts = "firmware=bios-256k.bin";
m->default_display = "std";
diff -Naur --no-dereference a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
--- a/hw/i386/pc_q35.c 2023-07-04 11:03:21.587219272 +0000
+++ b/hw/i386/pc_q35.c 2023-07-04 11:39:20.301679934 +0000
@@ -348,7 +348,7 @@
pcmc->default_cpu_version = 1;
- m->family = "pc_q35";
- m->desc = "Standard PC (Q35 + ICH9, 2009)";
+ m->family = "ASUS";
+ m->desc = "M4A88TD-M";
m->units_per_default_bus = 1;
m->default_machine_opts = "firmware=bios-256k.bin";
m->default_display = "std";