Fixes CPUs AML & acpi-bios-tables to be x86 backward compatible
v2 cover Fixes CPUs AML & acpi-bios-tables to be x86 backward compatible
Fixes the the CPUs AML code and its corresponding golden masters ACPI tables files for backward compatability of live migration on x86 platforms i.e. when newer Qemu is migrated to older Qemu without CPRS Bit present in the register block. This also reverts the ACPI ABI change introduced for checking the presence of vCPUs dynamically (feedback from Igor Mammedov)
Fixes [PULL 60/65], [PULL 61/65]:
Message-ID: <bf1ecc8dad6061914730a2a2d57af6b37c3a4f8d.1730754238.git.mst@redhat.com>
Message-ID: <4d62d15b11909e9af121577e707b88f2e4524371.1730754238.git.mst@redhat.com>
Salil Mehta (3):
qtest: allow ACPI DSDT Table changes
Fix: CPUs presence logic in _STA for x86 backward compatability tests/qtest/bios-tables-test: Fix DSDT golden masters for x86/{pc,q35}
hw/acpi/cpu.c | 49 +++++++----------- include/hw/acpi/cpu.h | 1 + include/hw/core/cpu.h | 1 - tests/data/acpi/x86/pc/DSDT | Bin 8561 -> 8528 bytes tests/data/acpi/x86/pc/DSDT.acpierst | Bin 8472 -> 8439 bytes tests/data/acpi/x86/pc/DSDT.acpihmat | Bin 9886 -> 9853 bytes tests/data/acpi/x86/pc/DSDT.bridge | Bin 15432 -> 15399 bytes tests/data/acpi/x86/pc/DSDT.cphp | Bin 9025 -> 8992 bytes tests/data/acpi/x86/pc/DSDT.dimmpxm | Bin 10215 -> 10182 bytes tests/data/acpi/x86/pc/DSDT.hpbridge | Bin 8512 -> 8479 bytes tests/data/acpi/x86/pc/DSDT.hpbrroot | Bin 5068 -> 5035 bytes tests/data/acpi/x86/pc/DSDT.ipmikcs | Bin 8633 -> 8600 bytes tests/data/acpi/x86/pc/DSDT.memhp | Bin 9920 -> 9887 bytes tests/data/acpi/x86/pc/DSDT.nohpet | Bin 8419 -> 8386 bytes tests/data/acpi/x86/pc/DSDT.numamem | Bin 8567 -> 8534 bytes tests/data/acpi/x86/pc/DSDT.roothp | Bin 12354 -> 12321 bytes tests/data/acpi/x86/q35/DSDT | Bin 8389 -> 8356 bytes tests/data/acpi/x86/q35/DSDT.acpierst | Bin 8406 -> 8373 bytes tests/data/acpi/x86/q35/DSDT.acpihmat | Bin 9714 -> 9681 bytes .../acpi/x86/q35/DSDT.acpihmat-noinitiator | Bin 8668 -> 8635 bytes tests/data/acpi/x86/q35/DSDT.applesmc | Bin 8435 -> 8402 bytes tests/data/acpi/x86/q35/DSDT.bridge | Bin 12002 -> 11969 bytes tests/data/acpi/x86/q35/DSDT.core-count | Bin 12947 -> 12914 bytes tests/data/acpi/x86/q35/DSDT.core-count2 | Bin 33804 -> 33771 bytes tests/data/acpi/x86/q35/DSDT.cphp | Bin 8853 -> 8820 bytes tests/data/acpi/x86/q35/DSDT.cxl | Bin 13182 -> 13149 bytes tests/data/acpi/x86/q35/DSDT.dimmpxm | Bin 10043 -> 10010 bytes tests/data/acpi/x86/q35/DSDT.ipmibt | Bin 8464 -> 8431 bytes tests/data/acpi/x86/q35/DSDT.ipmismbus | Bin 8477 -> 8444 bytes tests/data/acpi/x86/q35/DSDT.ivrs | Bin 8406 -> 8373 bytes tests/data/acpi/x86/q35/DSDT.memhp | Bin 9748 -> 9715 bytes tests/data/acpi/x86/q35/DSDT.mmio64 | Bin 9519 -> 9486 bytes tests/data/acpi/x86/q35/DSDT.multi-bridge | Bin 13242 -> 13209 bytes tests/data/acpi/x86/q35/DSDT.noacpihp | Bin 8269 -> 8236 bytes tests/data/acpi/x86/q35/DSDT.nohpet | Bin 8247 -> 8214 bytes tests/data/acpi/x86/q35/DSDT.numamem | Bin 8395 -> 8362 bytes tests/data/acpi/x86/q35/DSDT.pvpanic-isa | Bin 8490 -> 8457 bytes tests/data/acpi/x86/q35/DSDT.thread-count | Bin 12947 -> 12914 bytes tests/data/acpi/x86/q35/DSDT.thread-count2 | Bin 33804 -> 33771 bytes tests/data/acpi/x86/q35/DSDT.tis.tpm12 | Bin 8995 -> 8962 bytes tests/data/acpi/x86/q35/DSDT.tis.tpm2 | Bin 9021 -> 8988 bytes tests/data/acpi/x86/q35/DSDT.type4-count | Bin 18623 -> 18590 bytes tests/data/acpi/x86/q35/DSDT.viot | Bin 14649 -> 14616 bytes tests/data/acpi/x86/q35/DSDT.xapic | Bin 35752 -> 35719 bytes 44 files changed, 19 insertions(+), 32 deletions(-)
Signature · 1 line
2.34.1
PATCH v2 1/3 qtest: allow ACPI DSDT Table changes
list changed files in tests/qtest/bios-tables-test-allowed-diff.h
Message-ID: <[email protected]>
--- tests/qtest/bios-tables-test-allowed-diff.h | 41 +++++++++++++++++++++ 1 file changed, 41 insertions(+)
tests/qtest/bios-tables-test-allowed-diff.h +41 -0
@@ -1 +1,42 @@/* List of comma-separated changed AML files to ignore */ +"tests/data/acpi/x86/pc/DSDT" , +"tests/data/acpi/x86/pc/DSDT.acpierst" , +"tests/data/acpi/x86/pc/DSDT.acpihmat" , +"tests/data/acpi/x86/pc/DSDT.bridge" , +"tests/data/acpi/x86/pc/DSDT.cphp" , +"tests/data/acpi/x86/pc/DSDT.dimmpxm" , +"tests/data/acpi/x86/pc/DSDT.hpbridge" , +"tests/data/acpi/x86/pc/DSDT.hpbrroot" , +"tests/data/acpi/x86/pc/DSDT.ipmikcs" , +"tests/data/acpi/x86/pc/DSDT.memhp" , +"tests/data/acpi/x86/pc/DSDT.nohpet" , +"tests/data/acpi/x86/pc/DSDT.numamem" , +"tests/data/acpi/x86/pc/DSDT.roothp" , +"tests/data/acpi/x86/q35/DSDT" , +"tests/data/acpi/x86/q35/DSDT.acpierst" , +"tests/data/acpi/x86/q35/DSDT.acpihmat" , +"tests/data/acpi/x86/q35/DSDT.acpihmat-noinitiator" , +"tests/data/acpi/x86/q35/DSDT.applesmc" , +"tests/data/acpi/x86/q35/DSDT.bridge" , +"tests/data/acpi/x86/q35/DSDT.core-count" , +"tests/data/acpi/x86/q35/DSDT.core-count2" , +"tests/data/acpi/x86/q35/DSDT.cphp" , +"tests/data/acpi/x86/q35/DSDT.cxl" , +"tests/data/acpi/x86/q35/DSDT.dimmpxm" , +"tests/data/acpi/x86/q35/DSDT.ipmibt" , +"tests/data/acpi/x86/q35/DSDT.ipmismbus" , +"tests/data/acpi/x86/q35/DSDT.ivrs" , +"tests/data/acpi/x86/q35/DSDT.memhp" , +"tests/data/acpi/x86/q35/DSDT.mmio64" , +"tests/data/acpi/x86/q35/DSDT.multi-bridge" , +"tests/data/acpi/x86/q35/DSDT.noacpihp" , +"tests/data/acpi/x86/q35/DSDT.nohpet" , +"tests/data/acpi/x86/q35/DSDT.numamem" , +"tests/data/acpi/x86/q35/DSDT.pvpanic-isa" , +"tests/data/acpi/x86/q35/DSDT.thread-count" , +"tests/data/acpi/x86/q35/DSDT.thread-count2" , +"tests/data/acpi/x86/q35/DSDT.tis.tpm12" , +"tests/data/acpi/x86/q35/DSDT.tis.tpm2" , +"tests/data/acpi/x86/q35/DSDT.type4-count" , +"tests/data/acpi/x86/q35/DSDT.viot" , +"tests/data/acpi/x86/q35/DSDT.xapic",
Signature · 1 line
2.34.1
PATCH v2 2/3 Fix: CPUs presence logic in _STA for x86 backward compatability
In reply to Salil MehtaChecking is_present first can break x86 migration from new Qemu version to old Qemu. This is because CPRS Bit is not defined in the older Qemu register block and will always be 0 resulting in check always failing. Remove CPU_PRESENT Bit to preserve older ABI.
- If ((\_SB.PCI0.PRES.CPEN == One))
- {
- Local0 = 0x0F
+ If ((\_SB.PCI0.PRES.CPRS == One))
+ {
+ If ((\_SB.PCI0.PRES.CPEN == One))
+ {
+ Local0 = 0x0F
+ }
+ Else
+ {
+ Local0 = 0x0D
+ }
}Message-ID: <[email protected]>
--- hw/acpi/cpu.c | 49 ++++++++++++++++--------------------------- include/hw/acpi/cpu.h | 1 + include/hw/core/cpu.h | 1 - 3 files changed, 19 insertions(+), 32 deletions(-)
hw/acpi/cpu.c +18 -31
@@ -23,6 +23,8 @@ enum { CPHP_CMD_MAX }; +static bool always_present_cpus; +static ACPIOSTInfo *acpi_cpu_device_status (int idx,AcpiCpuStatus *cdev) {ACPIOSTInfo *info =g_new0 (ACPIOSTInfo,1 );
@@ -79,7 +81,6 @@ static uint64_t cpu_hotplug_rd(void *opaque, hwaddr addr, unsigned size) val |= cdev->is_inserting ?2 :0 ; val |= cdev->is_removing ?4 :0 ; val |= cdev->fw_remove ?16 :0 ; - val |= cdev->cpu ?32 :0 ;trace_cpuhp_acpi_read_flags (cpu_st->selector, val);break ;case ACPI_CPU_CMD_DATA_OFFSET_RW :
@@ -246,15 +247,9 @@ void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner,memory_region_add_subregion (as, base_addr, &state->ctrl_reg); } -static bool should_remain_acpi_present (DeviceState *dev) +static inline bool should_remain_acpi_present (DeviceState *dev) { -CPUClass *k =CPU_GET_CLASS (dev); -/* -* A system may contain CPUs that are always present on one die, NUMA node, -* or socket, yet may be non-present on another simultaneously. Check from -* architecture specific code. -*/ -return k->cpu_persistent_status && k->cpu_persistent_status (CPU (dev)); +return always_present_cpus; }static AcpiCpuStatus *get_cpu_status (CPUHotplugState *cpu_st,DeviceState *dev)
@@ -362,7 +357,6 @@ const VMStateDescription vmstate_cpu_hotplug = {#define CPU_REMOVE_EVENT "CRMV"#define CPU_EJECT_EVENT "CEJ0"#define CPU_FW_EJECT_EVENT "CEJF" -#define CPU_PRESENT "CPRS" void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts, build_madt_cpu_fn build_madt_cpu, hwaddr base_addr,
@@ -423,9 +417,7 @@ void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts,aml_append (field,aml_named_field (CPU_EJECT_EVENT ,1 ));/* tell firmware to do device eject, write only */ aml_append (field,aml_named_field (CPU_FW_EJECT_EVENT ,1 )); -/* 1 if present, read only */ -aml_append (field,aml_named_field (CPU_PRESENT ,1 )); -aml_append (field,aml_reserved_field (2 )); +aml_append (field,aml_reserved_field (3 ));aml_append (field,aml_named_field (CPU_COMMAND ,8 ));aml_append (cpu_ctrl_dev, field);
@@ -455,7 +447,6 @@ void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts,Aml *ctrl_lock =aml_name ("%s.%s" , cphp_res_path,CPU_LOCK );Aml *cpu_selector =aml_name ("%s.%s" , cphp_res_path,CPU_SELECTOR );Aml *is_enabled =aml_name ("%s.%s" , cphp_res_path,CPU_ENABLED ); -Aml *is_present =aml_name ("%s.%s" , cphp_res_path,CPU_PRESENT );Aml *cpu_cmd =aml_name ("%s.%s" , cphp_res_path,CPU_COMMAND );Aml *cpu_data =aml_name ("%s.%s" , cphp_res_path,CPU_DATA );Aml *ins_evt =aml_name ("%s.%s" , cphp_res_path,CPU_INSERT_EVENT );
@@ -482,28 +473,24 @@ void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts, method =aml_method (CPU_STS_METHOD ,1 ,AML_SERIALIZED ); { -Aml *idx =aml_arg (0 ); +Aml *default_sta =aml_int (opts.always_present_cpus ?0xD :0 );Aml *sta =aml_local (0 ); -Aml *ifctx2; -Aml *else_ctx; +Aml *idx =aml_arg (0 ); + + always_present_cpus = opts.always_present_cpus;aml_append (method,aml_acquire (ctrl_lock,0xFFFF ));aml_append (method,aml_store (idx, cpu_selector)); -aml_append (method,aml_store (zero, sta)); - ifctx =aml_if (aml_equal (is_present, one)); +/* +* Default case: +* _STA(0xD) = cpu is present and disabled OR +* _STA(0x0) = cpu is not present (and hence disabled) +*/ +aml_append (method,aml_store (default_sta, sta)); + ifctx =aml_if (aml_equal (is_enabled, one)); { - ifctx2 =aml_if (aml_equal (is_enabled, one)); - { -/* cpu is present and enabled */ -aml_append (ifctx2,aml_store (aml_int (0xF ), sta)); - } -aml_append (ifctx, ifctx2); - else_ctx =aml_else (); - { -/* cpu is present but disabled */ -aml_append (else_ctx,aml_store (aml_int (0xD ), sta)); - } -aml_append (ifctx, else_ctx); +/* _STA(0xF) = cpu is present and enabled */ +aml_append (ifctx,aml_or (aml_int (0xF ), sta, sta)); }aml_append (method, ifctx);aml_append (method,aml_release (ctrl_lock));
include/hw/acpi/cpu.h +1 -0
@@ -55,6 +55,7 @@ void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner,typedef struct CPUHotplugFeatures {bool acpi_1_compatible;bool has_legacy_cphp; +bool always_present_cpus;bool fw_unplugs_cpu;const char *smi_path; }CPUHotplugFeatures ;
include/hw/core/cpu.h +0 -1
@@ -158,7 +158,6 @@ struct CPUClass {void (*dump_state)(CPUState *cpu,FILE *,int flags);void (*query_cpu_fast)(CPUState *cpu,CpuInfoFast *value);int64_t (*get_arch_id)(CPUState *cpu); -bool (*cpu_persistent_status)(CPUState *cpu);bool (*cpu_enabled_status)(CPUState *cpu);void (*set_pc)(CPUState *cpu,vaddr value);vaddr (*get_pc)(CPUState *cpu);
Signature · 1 line
2.34.1
Re: [PATCH V2 2/3] Fix: CPUs presence logic in _STA for x86 backward compatability
Quoted 20 lines · On Sat, 9 Nov 2024 00:07:27 +0000 Salil Mehta <[email protected]> wrote:
Checking
is_presentfirst can break x86 migration from new Qemu version to old Qemu. This is because CPRS Bit is not defined in the older Qemu register block and will always be 0 resulting in check always failing. RemoveCPU_PRESENTBit to preserve older ABI.(quoted diff) +10
-3- If ((\_SB.PCI0.PRES.CPEN == One)) - { - Local0 = 0x0F + If ((\_SB.PCI0.PRES.CPRS == One)) + { + If ((\_SB.PCI0.PRES.CPEN == One)) + { + Local0 = 0x0F + } + Else + { + Local0 = 0x0D + } }
Quoted 3 lines
Reported-by Igor Mammedov <[email protected]>Message-ID: <[email protected]>
Signed-off-by Salil Mehta <[email protected]>
AML parts looks fine modulo global nit.
My recommendation is to revert both patches for 9.2,
as that would fix the broken hotplug and return code to original state. And then repost them (amended) as part of ARM cpuhp series to have cleaner history instead of spaghetti of fixups/refactoring commits.
See other comments below.
Quoted 33 lines
--- hw/acpi/cpu.c | 49 ++++++++++++++++--------------------------- include/hw/acpi/cpu.h | 1 + include/hw/core/cpu.h | 1 - 3 files changed, 19 insertions(+), 32 deletions(-)hw/acpi/cpu.c +3
-2@@ -23,6 +23,8 @@ enum { CPHP_CMD_MAX }; +static bool always_present_cpus; +static ACPIOSTInfo *acpi_cpu_device_status (int idx,AcpiCpuStatus *cdev) {ACPIOSTInfo *info =g_new0 (ACPIOSTInfo,1 );@@ -79,7 +81,6 @@ static uint64_t cpu_hotplug_rd(void *opaque, hwaddr addr, unsigned size) val |= cdev->is_inserting ?2 :0 ; val |= cdev->is_removing ?4 :0 ; val |= cdev->fw_remove ?16 :0 ; - val |= cdev->cpu ?32 :0 ;trace_cpuhp_acpi_read_flags (cpu_st->selector, val);break ;case ACPI_CPU_CMD_DATA_OFFSET_RW :@@ -246,15 +247,9 @@ void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner,memory_region_add_subregion (as, base_addr, &state->ctrl_reg); } -static bool should_remain_acpi_present (DeviceState *dev) +static inline bool should_remain_acpi_present (DeviceState *dev)
hw/acpi/cpu.c void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner, · line 253
Quoted 10 lines
hw/acpi/cpu.c +1
-7{ -CPUClass *k =CPU_GET_CLASS (dev); -/* -* A system may contain CPUs that are always present on one die, NUMA node, -* or socket, yet may be non-present on another simultaneously. Check from -* architecture specific code. -*/ -return k->cpu_persistent_status && k->cpu_persistent_status (CPU (dev)); +return always_present_cpus; }
instead of using global, we should pass parameter to
void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner,
CPUHotplugState *state, hwaddr base_addr, bool always_present_cpus)
^^^^
and store it in 'CPUHotplugState *state::always_present_cpus',
Then caller would supply it to the function depending on configuration
(a new property in GED to opt-in in the feature, and hardcoded 'false' for x86 call sites)
Also this does leave around cpu_enabled_status() callback, instead of adding callbacks we should just use
object_property_get_bool(OBJECT(cdev->cpu), 'realized')
to do the same (i.e. what v6 was hiding behind callbacks).
That is still correct for x86, it might be different for ARM, like a dedicated property 'enabled' depending on where discussion leads us, but that is the topic for discussion with ARM cpuhp patches.
The point is, it's stray arm cpuhp patch and not needed in 9.2. It's better to have 2d6cfbaf1 and bf1ecc8dad6 reverted for 9.2 and then ARM cpuhp will bring them back to the clean 9.1 codebase, instead of having a mess of not necessary right now broken patches + fixups to bring them to desired state.
Quoted 30 lines
hw/acpi/cpu.c +1
-5static AcpiCpuStatus *get_cpu_status (CPUHotplugState *cpu_st,DeviceState *dev)@@ -362,7 +357,6 @@ const VMStateDescription vmstate_cpu_hotplug = {#define CPU_REMOVE_EVENT "CRMV"#define CPU_EJECT_EVENT "CEJ0"#define CPU_FW_EJECT_EVENT "CEJF" -#define CPU_PRESENT "CPRS" void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts, build_madt_cpu_fn build_madt_cpu, hwaddr base_addr,@@ -423,9 +417,7 @@ void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts,aml_append (field,aml_named_field (CPU_EJECT_EVENT ,1 ));/* tell firmware to do device eject, write only */ aml_append (field,aml_named_field (CPU_FW_EJECT_EVENT ,1 )); -/* 1 if present, read only */ -aml_append (field,aml_named_field (CPU_PRESENT ,1 )); -aml_append (field,aml_reserved_field (2 )); +aml_append (field,aml_reserved_field (3 ));aml_append (field,aml_named_field (CPU_COMMAND ,8 ));aml_append (cpu_ctrl_dev, field);@@ -455,7 +447,6 @@ void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts,Aml *ctrl_lock =aml_name ("%s.%s" , cphp_res_path,CPU_LOCK );Aml *cpu_selector =aml_name ("%s.%s" , cphp_res_path,CPU_SELECTOR );Aml *is_enabled =aml_name ("%s.%s" , cphp_res_path,CPU_ENABLED ); -Aml *is_present =aml_name ("%s.%s" , cphp_res_path,CPU_PRESENT );Aml *cpu_cmd =aml_name ("%s.%s" , cphp_res_path,CPU_COMMAND );Aml *cpu_data =aml_name ("%s.%s" , cphp_res_path,CPU_DATA );Aml *ins_evt =aml_name ("%s.%s" , cphp_res_path,CPU_INSERT_EVENT );@@ -482,28 +473,24 @@ void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts,
hw/acpi/cpu.c void build_cpus_aml(Aml *table, MachineState *machine, CPUHotplugFeatures opts, · line 480
Quoted 10 lines
hw/acpi/cpu.c +4
-3method =aml_method (CPU_STS_METHOD ,1 ,AML_SERIALIZED ); { -Aml *idx =aml_arg (0 ); +Aml *default_sta =aml_int (opts.always_present_cpus ?0xD :0 );Aml *sta =aml_local (0 ); -Aml *ifctx2; -Aml *else_ctx; +Aml *idx =aml_arg (0 ); + + always_present_cpus = opts.always_present_cpus;
opts argument is meant to configure AML generator, so I'd rather not overload it with ACPI device configuration and introduction of a global var.
Quoted 54 lines
hw/acpi/cpu.c +9
-14aml_append (method,aml_acquire (ctrl_lock,0xFFFF ));aml_append (method,aml_store (idx, cpu_selector)); -aml_append (method,aml_store (zero, sta)); - ifctx =aml_if (aml_equal (is_present, one)); +/* +* Default case: +* _STA(0xD) = cpu is present and disabled OR +* _STA(0x0) = cpu is not present (and hence disabled) +*/ +aml_append (method,aml_store (default_sta, sta)); + ifctx =aml_if (aml_equal (is_enabled, one)); { - ifctx2 =aml_if (aml_equal (is_enabled, one)); - { -/* cpu is present and enabled */ -aml_append (ifctx2,aml_store (aml_int (0xF ), sta)); - } -aml_append (ifctx, ifctx2); - else_ctx =aml_else (); - { -/* cpu is present but disabled */ -aml_append (else_ctx,aml_store (aml_int (0xD ), sta)); - } -aml_append (ifctx, else_ctx); +/* _STA(0xF) = cpu is present and enabled */ +aml_append (ifctx,aml_or (aml_int (0xF ), sta, sta)); }aml_append (method, ifctx);aml_append (method,aml_release (ctrl_lock));include/hw/acpi/cpu.h +1
-0@@ -55,6 +55,7 @@ void cpu_hotplug_hw_init(MemoryRegion *as, Object *owner,typedef struct CPUHotplugFeatures {bool acpi_1_compatible;bool has_legacy_cphp; +bool always_present_cpus;bool fw_unplugs_cpu;const char *smi_path; }CPUHotplugFeatures ;include/hw/core/cpu.h +0
-1@@ -158,7 +158,6 @@ struct CPUClass {void (*dump_state)(CPUState *cpu,FILE *,int flags);void (*query_cpu_fast)(CPUState *cpu,CpuInfoFast *value);int64_t (*get_arch_id)(CPUState *cpu); -bool (*cpu_persistent_status)(CPUState *cpu);bool (*cpu_enabled_status)(CPUState *cpu);void (*set_pc)(CPUState *cpu,vaddr value);vaddr (*get_pc)(CPUState *cpu);
PATCH v2 3/3 tests/qtest/bios-tables-test: Fix DSDT golden masters for x86/{pc,q35}
In reply to Salil MehtaUpdate the DSDT golden master files for the x86/pc and x86/q35 platforms to address recent changes in the architecture-agnostic CPU AML code, which impacted the backward compatibility of the migration feature on the x86 platform. Additionally, initialize CPU's presence statically within the CPU AML to avoid the need for extending the ACPI ABI for dynamic CPU presence checks.
The following is a diff of the changes in the .dsl file generated with IASL:
* Disassembling to symbolic ASL+ operators
*
- * Disassembly of tests/data/acpi/x86/pc/DSDT, Fri Nov 8 23:03:54 2024
+ * Disassembly of /tmp/aml-FONNW2, Fri Nov 8 23:03:54 2024 *
* Original Table Header:
* Signature "DSDT"
- * Length 0x00002171 (8561)
+ * Length 0x00002150 (8528)
* Revision 0x01 **** 32-bit table (V1), no 64-bit math support
- * Checksum 0xAA
+ * Checksum 0xF6
* OEM ID "BOCHS "
* OEM Table ID "BXPC "
* OEM Revision 0x00000001 (1)
@@ -1480,7 +1480,6 @@
CRMV, 1,
CEJ0, 1,
CEJF, 1,
- CPRS, 1,
Offset (0x05),
CCMD, 8
}
@@ -1515,16 +1514,9 @@
Acquire (\_SB.PCI0.PRES.CPLK, 0xFFFF)
\_SB.PCI0.PRES.CSEL = Arg0
Local0 = Zero- If ((\_SB.PCI0.PRES.CPRS == One))
- {
- If ((\_SB.PCI0.PRES.CPEN == One))
- {
- Local0 = 0x0F
- }
- Else
- {- Local0 = 0x0D
- }
+ If ((\_SB.PCI0.PRES.CPEN == One))
+ {
+ Local0 |= 0x0F
}
Release (\_SB.PCI0.PRES.CPLK)Message-ID: <[email protected]>
--- tests/data/acpi/x86/pc/DSDT | Bin 8561 -> 8528 bytes tests/data/acpi/x86/pc/DSDT.acpierst | Bin 8472 -> 8439 bytes tests/data/acpi/x86/pc/DSDT.acpihmat | Bin 9886 -> 9853 bytes tests/data/acpi/x86/pc/DSDT.bridge | Bin 15432 -> 15399 bytes tests/data/acpi/x86/pc/DSDT.cphp | Bin 9025 -> 8992 bytes tests/data/acpi/x86/pc/DSDT.dimmpxm | Bin 10215 -> 10182 bytes tests/data/acpi/x86/pc/DSDT.hpbridge | Bin 8512 -> 8479 bytes tests/data/acpi/x86/pc/DSDT.hpbrroot | Bin 5068 -> 5035 bytes tests/data/acpi/x86/pc/DSDT.ipmikcs | Bin 8633 -> 8600 bytes tests/data/acpi/x86/pc/DSDT.memhp | Bin 9920 -> 9887 bytes tests/data/acpi/x86/pc/DSDT.nohpet | Bin 8419 -> 8386 bytes tests/data/acpi/x86/pc/DSDT.numamem | Bin 8567 -> 8534 bytes tests/data/acpi/x86/pc/DSDT.roothp | Bin 12354 -> 12321 bytes tests/data/acpi/x86/q35/DSDT | Bin 8389 -> 8356 bytes tests/data/acpi/x86/q35/DSDT.acpierst | Bin 8406 -> 8373 bytes tests/data/acpi/x86/q35/DSDT.acpihmat | Bin 9714 -> 9681 bytes .../acpi/x86/q35/DSDT.acpihmat-noinitiator | Bin 8668 -> 8635 bytes tests/data/acpi/x86/q35/DSDT.applesmc | Bin 8435 -> 8402 bytes tests/data/acpi/x86/q35/DSDT.bridge | Bin 12002 -> 11969 bytes tests/data/acpi/x86/q35/DSDT.core-count | Bin 12947 -> 12914 bytes tests/data/acpi/x86/q35/DSDT.core-count2 | Bin 33804 -> 33771 bytes tests/data/acpi/x86/q35/DSDT.cphp | Bin 8853 -> 8820 bytes tests/data/acpi/x86/q35/DSDT.cxl | Bin 13182 -> 13149 bytes tests/data/acpi/x86/q35/DSDT.dimmpxm | Bin 10043 -> 10010 bytes tests/data/acpi/x86/q35/DSDT.ipmibt | Bin 8464 -> 8431 bytes tests/data/acpi/x86/q35/DSDT.ipmismbus | Bin 8477 -> 8444 bytes tests/data/acpi/x86/q35/DSDT.ivrs | Bin 8406 -> 8373 bytes tests/data/acpi/x86/q35/DSDT.memhp | Bin 9748 -> 9715 bytes tests/data/acpi/x86/q35/DSDT.mmio64 | Bin 9519 -> 9486 bytes tests/data/acpi/x86/q35/DSDT.multi-bridge | Bin 13242 -> 13209 bytes tests/data/acpi/x86/q35/DSDT.noacpihp | Bin 8269 -> 8236 bytes tests/data/acpi/x86/q35/DSDT.nohpet | Bin 8247 -> 8214 bytes tests/data/acpi/x86/q35/DSDT.numamem | Bin 8395 -> 8362 bytes tests/data/acpi/x86/q35/DSDT.pvpanic-isa | Bin 8490 -> 8457 bytes tests/data/acpi/x86/q35/DSDT.thread-count | Bin 12947 -> 12914 bytes tests/data/acpi/x86/q35/DSDT.thread-count2 | Bin 33804 -> 33771 bytes tests/data/acpi/x86/q35/DSDT.tis.tpm12 | Bin 8995 -> 8962 bytes tests/data/acpi/x86/q35/DSDT.tis.tpm2 | Bin 9021 -> 8988 bytes tests/data/acpi/x86/q35/DSDT.type4-count | Bin 18623 -> 18590 bytes tests/data/acpi/x86/q35/DSDT.viot | Bin 14649 -> 14616 bytes tests/data/acpi/x86/q35/DSDT.xapic | Bin 35752 -> 35719 bytes tests/qtest/bios-tables-test-allowed-diff.h | 41 ------------------ 42 files changed, 41 deletions(-)
tests/data/acpi/x86/pc/DSDT binary +0 -0
tests/data/acpi/x86/pc/DSDT.acpierst binary +0 -0
tests/data/acpi/x86/pc/DSDT.acpihmat binary +0 -0
tests/data/acpi/x86/pc/DSDT.bridge binary +0 -0
tests/data/acpi/x86/pc/DSDT.cphp binary +0 -0
tests/data/acpi/x86/pc/DSDT.dimmpxm binary +0 -0
tests/data/acpi/x86/pc/DSDT.hpbridge binary +0 -0
tests/data/acpi/x86/pc/DSDT.hpbrroot binary +0 -0
tests/data/acpi/x86/pc/DSDT.ipmikcs binary +0 -0
tests/data/acpi/x86/pc/DSDT.memhp binary +0 -0
tests/data/acpi/x86/pc/DSDT.nohpet binary +0 -0
tests/data/acpi/x86/pc/DSDT.numamem binary +0 -0
tests/data/acpi/x86/pc/DSDT.roothp binary +0 -0
tests/data/acpi/x86/q35/DSDT binary +0 -0
tests/data/acpi/x86/q35/DSDT.acpierst binary +0 -0
tests/data/acpi/x86/q35/DSDT.acpihmat binary +0 -0
tests/data/acpi/x86/q35/DSDT.acpihmat-noinitiator binary +0 -0
tests/data/acpi/x86/q35/DSDT.applesmc binary +0 -0
tests/data/acpi/x86/q35/DSDT.bridge binary +0 -0
tests/data/acpi/x86/q35/DSDT.core-count binary +0 -0
tests/data/acpi/x86/q35/DSDT.core-count2 binary +0 -0
tests/data/acpi/x86/q35/DSDT.cphp binary +0 -0
tests/data/acpi/x86/q35/DSDT.cxl binary +0 -0
tests/data/acpi/x86/q35/DSDT.dimmpxm binary +0 -0
tests/data/acpi/x86/q35/DSDT.ipmibt binary +0 -0
tests/data/acpi/x86/q35/DSDT.ipmismbus binary +0 -0
tests/data/acpi/x86/q35/DSDT.ivrs binary +0 -0
tests/data/acpi/x86/q35/DSDT.memhp binary +0 -0
tests/data/acpi/x86/q35/DSDT.mmio64 binary +0 -0
tests/data/acpi/x86/q35/DSDT.multi-bridge binary +0 -0
tests/data/acpi/x86/q35/DSDT.noacpihp binary +0 -0
tests/data/acpi/x86/q35/DSDT.nohpet binary +0 -0
tests/data/acpi/x86/q35/DSDT.numamem binary +0 -0
tests/data/acpi/x86/q35/DSDT.pvpanic-isa binary +0 -0
tests/data/acpi/x86/q35/DSDT.thread-count binary +0 -0
tests/data/acpi/x86/q35/DSDT.thread-count2 binary +0 -0
tests/data/acpi/x86/q35/DSDT.tis.tpm12 binary +0 -0
tests/data/acpi/x86/q35/DSDT.tis.tpm2 binary +0 -0
tests/data/acpi/x86/q35/DSDT.type4-count binary +0 -0
tests/data/acpi/x86/q35/DSDT.viot binary +0 -0
tests/data/acpi/x86/q35/DSDT.xapic binary +0 -0
tests/qtest/bios-tables-test-allowed-diff.h +0 -41
42 lines not on this page · raw message
Signature · 1 line
2.34.1