2c6b94d84e
it replaces a static complied in DSDT MMIO region for memory hotplug with one created at runtime leaving only truly static memory hotplug related ASL bits in DSDT. And replaces template patching of MEMORY_SLOTS_NUMBER value with ASL API created named value. Later it also would make easier to reuse current ACPI memory hotplug on other targets. Also later it would be possible to move remaining memory hotplug ASL methods into build_ssdt() and add all memory hotplug related AML into SSDT only when memory hotplug is enabled, further reducing ACPI tables blob if memory hotplug isn't used. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
/*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
#include "hw/acpi/pc-hotplug.h"
|
|
|
|
ACPI_EXTRACT_ALL_CODE ssdp_misc_aml
|
|
|
|
DefinitionBlock ("ssdt-misc.aml", "SSDT", 0x01, "BXPC", "BXSSDTSUSP", 0x1)
|
|
{
|
|
|
|
/****************************************************************
|
|
* PCI memory ranges
|
|
****************************************************************/
|
|
|
|
Scope(\) {
|
|
ACPI_EXTRACT_NAME_DWORD_CONST acpi_pci32_start
|
|
Name(P0S, 0x12345678)
|
|
ACPI_EXTRACT_NAME_DWORD_CONST acpi_pci32_end
|
|
Name(P0E, 0x12345678)
|
|
ACPI_EXTRACT_NAME_BYTE_CONST acpi_pci64_valid
|
|
Name(P1V, 0x12)
|
|
ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_start
|
|
Name(P1S, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
|
|
ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_end
|
|
Name(P1E, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
|
|
ACPI_EXTRACT_NAME_BUFFER8 acpi_pci64_length
|
|
Name(P1L, Buffer() { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 })
|
|
}
|
|
}
|