mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-03 23:00:40 -07:00
here is diff against tests/data/acpi/q35/DSDT
for currently shipped ovmf binary.
(once firmware blob is updated, it will negotiate CPU hotplug
feature which will ad extra hunk sending SMI and Q35 tests will
need to be updated), but otherwise diff shows new CPU hotplug
AML that is shared between q35 and pc machines.
Method (CSCN, 0, Serialized)
{
Acquire (\_SB.PCI0.PRES.CPLK, 0xFFFF)
- Local0 = One
- While ((Local0 == One))
- {
- Local0 = Zero
- \_SB.PCI0.PRES.CCMD = Zero
- If ((\_SB.PCI0.PRES.CINS == One))
+ Name (CNEW, Package (0xFF){})
+ Local3 = Zero
+ Local4 = One
+ While ((Local4 == One))
+ {
+ Local4 = Zero
+ Local0 = One
+ Local1 = Zero
+ While (((Local0 == One) && (Local3 < One)))
{
- CTFY (\_SB.PCI0.PRES.CDAT, One)
- \_SB.PCI0.PRES.CINS = One
- Local0 = One
+ Local0 = Zero
+ \_SB.PCI0.PRES.CSEL = Local3
+ \_SB.PCI0.PRES.CCMD = Zero
+ If ((\_SB.PCI0.PRES.CDAT < Local3))
+ {
+ Break
+ }
+
+ If ((Local1 == 0xFF))
+ {
+ Local4 = One
+ Break
+ }
+
+ Local3 = \_SB.PCI0.PRES.CDAT
+ If ((\_SB.PCI0.PRES.CINS == One))
+ {
+ CNEW [Local1] = Local3
+ Local1++
+ Local0 = One
+ }
+ ElseIf ((\_SB.PCI0.PRES.CRMV == One))
+ {
+ CTFY (Local3, 0x03)
+ \_SB.PCI0.PRES.CRMV = One
+ Local0 = One
+ }
+
+ Local3++
}
- ElseIf ((\_SB.PCI0.PRES.CRMV == One))
+
+ Local2 = Zero
+ While ((Local2 < Local1))
{
- CTFY (\_SB.PCI0.PRES.CDAT, 0x03)
- \_SB.PCI0.PRES.CRMV = One
- Local0 = One
+ Local3 = DerefOf (CNEW [Local2])
+ CTFY (Local3, One)
+ Debug = Local3
+ \_SB.PCI0.PRES.CSEL = Local3
+ \_SB.PCI0.PRES.CINS = One
+ Local2++
}
}
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20200923094650.1301166-11-imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
||
|---|---|---|
| .. | ||
| fuzz | ||
| libqos | ||
| ac97-test.c | ||
| acpi-utils.c | ||
| acpi-utils.h | ||
| ahci-test.c | ||
| arm-cpu-features.c | ||
| bios-tables-test-allowed-diff.h | ||
| bios-tables-test.c | ||
| boot-order-test.c | ||
| boot-sector.c | ||
| boot-sector.h | ||
| boot-serial-test.c | ||
| cdrom-test.c | ||
| cpu-plug-test.c | ||
| dbus-vmstate-test.c | ||
| dbus-vmstate1.xml | ||
| device-introspect-test.c | ||
| device-plug-test.c | ||
| display-vga-test.c | ||
| drive_del-test.c | ||
| ds1338-test.c | ||
| e1000-test.c | ||
| e1000e-test.c | ||
| eepro100-test.c | ||
| endianness-test.c | ||
| es1370-test.c | ||
| fdc-test.c | ||
| fw_cfg-test.c | ||
| hd-geo-test.c | ||
| hexloader-test.c | ||
| i440fx-test.c | ||
| i82801b11-test.c | ||
| ide-test.c | ||
| intel-hda-test.c | ||
| ioh3420-test.c | ||
| ipmi-bt-test.c | ||
| ipmi-kcs-test.c | ||
| ipoctal232-test.c | ||
| ivshmem-test.c | ||
| libqtest-single.h | ||
| libqtest.c | ||
| m25p80-test.c | ||
| m48t59-test.c | ||
| machine-none-test.c | ||
| megasas-test.c | ||
| meson.build | ||
| microbit-test.c | ||
| migration-helpers.c | ||
| migration-helpers.h | ||
| migration-test.c | ||
| modules-test.c | ||
| ne2000-test.c | ||
| numa-test.c | ||
| nvme-test.c | ||
| pca9552-test.c | ||
| pci-test.c | ||
| pcnet-test.c | ||
| pflash-cfi02-test.c | ||
| pnv-xscom-test.c | ||
| prom-env-test.c | ||
| pvpanic-test.c | ||
| pxe-test.c | ||
| q35-test.c | ||
| qmp-cmd-test.c | ||
| qmp-test.c | ||
| qom-test.c | ||
| qos-test.c | ||
| rtas-test.c | ||
| rtc-test.c | ||
| rtl8139-test.c | ||
| sdhci-test.c | ||
| spapr-phb-test.c | ||
| tco-test.c | ||
| test-arm-mptimer.c | ||
| test-filter-mirror.c | ||
| test-filter-redirector.c | ||
| test-hmp.c | ||
| test-netfilter.c | ||
| test-x86-cpuid-compat.c | ||
| tmp105-test.c | ||
| tpm-crb-swtpm-test.c | ||
| tpm-crb-test.c | ||
| tpm-emu.c | ||
| tpm-emu.h | ||
| tpm-tests.c | ||
| tpm-tests.h | ||
| tpm-tis-device-swtpm-test.c | ||
| tpm-tis-device-test.c | ||
| tpm-tis-swtpm-test.c | ||
| tpm-tis-test.c | ||
| tpm-tis-util.c | ||
| tpm-tis-util.h | ||
| tpm-util.c | ||
| tpm-util.h | ||
| tulip-test.c | ||
| usb-hcd-ehci-test.c | ||
| usb-hcd-ohci-test.c | ||
| usb-hcd-uhci-test.c | ||
| usb-hcd-xhci-test.c | ||
| vhost-user-test.c | ||
| virtio-9p-test.c | ||
| virtio-blk-test.c | ||
| virtio-ccw-test.c | ||
| virtio-net-test.c | ||
| virtio-rng-test.c | ||
| virtio-scsi-test.c | ||
| virtio-serial-test.c | ||
| virtio-test.c | ||
| vmgenid-test.c | ||
| vmxnet3-test.c | ||
| wdt_ib700-test.c | ||