f411199de7
acpi: add aml_to_integer()
...
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 >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
2015-12-22 18:39:21 +02:00
7b38ba9cb6
acpi: add aml_call0() helper
...
it will help to call a method with 0 arguments
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 >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
2015-12-22 18:39:21 +02:00
7059eb4262
acpi: add aml_decrement() and aml_subtract()
...
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 >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
2015-12-22 18:39:21 +02:00
20ca520884
acpi: extend aml_add() to accept target argument
...
it allows to express following ASL expression:
Add(arg1, arg2, result)
usecases that do not need to store result
should pass NULL as 3rd arg that would express
Add(arg1, arg2,)
construct.
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 >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
2015-12-22 18:39:21 +02:00
7e192a383b
acpi: add aml_create_qword_field()
...
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 >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
2015-12-22 18:39:20 +02:00
6e1db3f263
acpi: add aml_mutex(), aml_acquire(), aml_release()
...
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com >
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 >
2015-12-22 18:39:20 +02:00
2d3f667dc6
acpi: add aml_lgreater_equal()
...
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 >
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
2015-12-22 18:39:20 +02:00
52483d147b
acpi: add aml_sizeof
...
Implement SizeOf term which is used by NVDIMM _DSM method in later patch
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com >
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 >
2015-12-22 18:39:20 +02:00
95cb066190
acpi: add aml_derefof
...
Implement DeRefOf term which is used by NVDIMM _DSM method in later patch
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-12-22 18:39:20 +02:00
8870ca0e94
acpi: support specified oem table id for build_header
...
Let build_header() support specified OEM table id so that we can build
multiple SSDT later
If the oem table id is not specified (aka, NULL), we use the default id
instead as the previous behavior
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-12-22 18:39:20 +02:00
37d0e98006
ACPI: Add aml_gpio_int() wrapper for GPIO Interrupt Connection
...
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Tested-by: Wei Huang <wei@redhat.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Message-id: 1449804086-3464-8-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-12-17 13:37:14 +00:00
4ecdc746e9
ACPI: Add GPIO Connection Descriptor
...
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Tested-by: Wei Huang <wei@redhat.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Message-id: 1449804086-3464-7-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-12-17 13:37:14 +00:00
45fcf53940
acpi: extend aml_interrupt() to support multiple irqs
...
ASL Interrupt() macro translates to Extended Interrupt Descriptor
which supports variable number of IRQs. It will be used for
conversion of ASL code for pc/q35 machines that use it for
returning several IRQs in _PSR object.
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Message-id: 1449804086-3464-3-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-12-17 13:37:13 +00:00
4dbfc88149
acpi: support serialized method
...
Add serialized method support so that explicit Mutex can be
avoided
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com >
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Message-id: 1449804086-3464-2-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-12-17 13:37:13 +00:00
b92ad3949b
hw/arm/virt: Add gic-version option to virt machine
...
Add gic_version to VirtMachineState, set it to value of the option
and pass it around where necessary. Instantiate devices and fdt
nodes according to the choice.
max_cpus for virt machine increased to 123 (calculated from redistributor
space available in the memory map). GICv2 compatibility check happens
inside arm_gic_common_realize().
ITS region is added to the memory map too, however currently it not used,
just reserved.
Signed-off-by: Pavel Fedin <p.fedin@samsung.com >
Tested-by: Ashok kumar <ashoks@broadcom.com >
[PMM: Added missing cpu_to_le* calls, thanks to Shannon Zhao]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-09-24 01:29:37 +01:00
9372e3f567
acpi: Remove unused definition.
...
Signed-off-by: Richard W.M. Jones <rjones@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-09-10 11:21:21 +03:00
920557971b
ich9: add TCO interface emulation
...
This interface provides some registers within a 32-byte range and can be
acessed through PCI-to-LPC bridge interface (PMBASE + 0x60).
It's commonly used as a watchdog timer to detect system lockups through
SMIs that are generated -- if TCO_EN bit is set -- on every timeout. If
NO_REBOOT bit is not set in GCS (General Control and Status register),
the system will be resetted upon second timeout if TCO_RLD register
wasn't previously written to prevent timeout.
This patch adds support to TCO watchdog logic and few other features
like mapping NMIs to SMIs (NMI2SMI_EN bit), system intruder detection,
etc. are not implemented yet.
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-07-07 13:12:22 +03:00
fba72476c6
ich9: add smm_enabled field and arguments
...
Q35's ACPI device is hard-coding SMM availability to KVM. Place the
logic where the board is created instead, so that it will be possible
to override it.
Acked-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2015-07-06 17:59:44 +02:00
ca79373653
hw/arm/virt-acpi-build: Add GICv2m description in ACPI MADT table
...
Add GICv2m description in ACPI MADT table, so guest can use MSI when
booting with ACPI.
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Andrew Jones <drjones@redhat.com >
Tested-by: Andrew Jones <drjones@redhat.com >
Message-id: 1434676210-2276-1-git-send-email-shannon.zhao@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-06-26 14:22:36 +01:00
b8a0d75ef8
ACPI: Add definitions for the SPCR table
...
SPCR is the Serial Port Console Redirection Table. See the document
linked from http://uefi.org/acpi . For serial port types, "Interface
Type", see the documentation for the Debug Port Table 2 (DBG2).
Signed-off-by: Andrew Jones <drjones@redhat.com >
Tested-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Acked-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 1433929959-29530-2-git-send-email-drjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-06-15 18:06:11 +01:00
11e66a15a0
ich9: implement SMI_LOCK
...
Add write mask for the smi enable register, so we can disable write
access to certain bits. Open all bits on reset. Disable write access
to GBL_SMI_EN when SMI_LOCK (in ich9 lpc pci config space) is set.
Write access to SMI_LOCK itself is disabled too.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com >
Acked-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2015-06-05 19:45:13 +02:00
9a10bbb4e8
hw/acpi: acpi_pm1_cnt_init(): take "disable_s3" and "disable_s4"
...
This patch only modifies the function prototype and updates all chipset
code that calls acpi_pm1_cnt_init() to pass in their own disable_s3 and
disable_s4 settings. vt82c686 is assumed to be fixed "S3 and S4 enabled".
RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1204696
Cc: Amit Shah <amit.shah@redhat.com >
Cc: "Michael S. Tsirkin" <mst@redhat.com >
Cc: Paolo Bonzini <pbonzini@redhat.com >
Cc: Richard Henderson <rth@twiddle.net >
Cc: Eduardo Habkost <ehabkost@redhat.com >
Cc: Aurelien Jarno <aurelien@aurel32.net >
Cc: Leon Alrae <leon.alrae@imgtec.com >
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Laszlo Ersek <lersek@redhat.com >
2015-06-04 11:25:42 +02:00
ca9b46bcec
acpi: add acpi_send_gpe_event() to rise sci for hotplug
...
Add a new API named acpi_send_gpe_event() to send hotplug SCI.
This API can be used by pci, cpu and memory hotplug.
This patch is rebased on master.
Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
2015-06-03 18:19:16 +02:00
68e6b0af78
acpi: add aml_while() term
...
Add encoding for ACPI DefWhile Opcode.
Reviewed-by: Shannon Zhao <zhaoshenglong@huawei.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-06-01 14:18:54 +02:00
af39d5363f
acpi: add aml_increment() term
...
Add encoding for ACPI DefIncrement Opcode.
Reviewed-by: Shannon Zhao <zhaoshenglong@huawei.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-06-01 14:18:54 +02:00
f7bd7b8eb6
acpi: add aml_shiftright() term
...
Add encoding for ACPI DefShiftRight Opcode.
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
2015-06-01 14:18:54 +02:00
a57dddddd2
acpi: add aml_shiftleft() term
...
Add encoding for ACPI DefShiftLeft Opcode.
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
2015-06-01 14:18:54 +02:00
928b899657
acpi: add aml_index() term
...
Add encoding for ACPI DefIndex Opcode.
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
2015-06-01 14:18:54 +02:00
96396e2858
acpi: add aml_lless() term
...
Add encoding for ACPI DefLLess Opcode.
Reviewed-by: Shannon Zhao <zhaoshenglong@huawei.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-06-01 14:18:54 +02:00
c08cf07042
acpi: add aml_add() term
...
Add encoding for ACPI DefAdd Opcode.
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org >
2015-06-01 14:18:54 +02:00
5cb18b3d7b
TPM2 ACPI table support
...
Add a TPM2 ACPI table if a TPM 2 is used in the backend.
Also add an SSDT for the TPM 2.
Rename tpm_find() to tpm_get_version() and have this function
return the version of the TPM found, TPMVersion_Unspec if
no TPM is found. Use the version number to build version
specific ACPI tables.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-06-01 14:18:54 +02:00
e1f776c434
hw/acpi/aml-build: Add Unicode macro
...
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 1432522520-8068-22-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:59 +01:00
616ef329ad
hw/acpi/aml-build: Add aml_dword_io() term
...
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 1432522520-8068-21-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:58 +01:00
ed8176a37a
hw/acpi/aml-build: Add aml_create_dword_field() term
...
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 1432522520-8068-20-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:58 +01:00
467b07dfae
hw/acpi/aml-build: Add aml_else() term
...
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 1432522520-8068-19-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:58 +01:00
ea7df04a02
hw/acpi/aml-build: Add aml_lnot() term
...
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 1432522520-8068-18-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:58 +01:00
922cc8823e
hw/acpi/aml-build: Add aml_or() term
...
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 1432522520-8068-17-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:58 +01:00
b930fb9db4
hw/acpi/aml-build: Add ToUUID macro
...
Add ToUUID macro, this is useful for generating PCIe ACPI table.
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 1432522520-8068-16-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:57 +01:00
ed8b5847e4
hw/acpi/aml-build: Make aml_buffer() definition consistent with the spec
...
According to ACPI spec, DefBuffer can take two parameters: BufferSize
and ByteList. Make it consistent with the spec. Uninitialized buffer
could be requested by passing ByteList as NULL to reserve space.
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 1432522520-8068-15-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:57 +01:00
243bdb79fb
hw/arm/virt-acpi-build: Generate RSDT table
...
RSDT points to other tables FADT, MADT, GTDT. This code is shared with x86.
Here we still use RSDT as UEFI puts ACPI tables below 4G address space,
and UEFI ignore the RSDT or XSDT.
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Message-id: 1432522520-8068-12-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:56 +01:00
ee246400c1
hw/arm/virt-acpi-build: Generate GTDT table
...
ACPI v5.1 defines GTDT for ARM devices as a place to describe timer
related information in the system. The Arch Timer interrupts must
be provided for GTDT.
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Message-id: 1432522520-8068-11-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:56 +01:00
982d06c561
hw/arm/virt-acpi-build: Generate MADT table
...
MADT describes GIC enabled ARM platforms. The GICC and GICD
subtables are used to define the GIC regions.
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Message-id: 1432522520-8068-10-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:56 +01:00
c2f7c0c306
hw/arm/virt-acpi-build: Generate FADT table and update ACPI headers
...
In the case of mach virt, it is used to set the Hardware Reduced bit
and enable PSCI SMP booting through HVC. So ignore FACS and FADT
points to DSDT.
Update the header definitions for FADT taking into account the new
additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h`
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Message-id: 1432522520-8068-9-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:55 +01:00
205d1d1c04
hw/acpi/aml-build: Add aml_interrupt() term
...
Add aml_interrupt() for describing device interrupt in resource template.
These can be used to generating DSDT table for ACPI on ARM.
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Message-id: 1432522520-8068-7-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:55 +01:00
dc17ab1de5
hw/acpi/aml-build: Add aml_memory32_fixed() term
...
Add aml_memory32_fixed() for describing device mmio region in resource
template. These can be used to generating DSDT table for ACPI on ARM.
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Message-id: 1432522520-8068-6-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:55 +01:00
ff80dc7fa8
hw/acpi/aml-build: Make enum values to be upper case to match coding style
...
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Message-id: 1432522520-8068-2-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-05-29 11:28:54 +01:00
7824df3889
acpi: add a missing backslash to the \_SB scope.
...
A predefined scope in the ACPI specs is precede with a backslash.
Signed-off-by: Gal Hammer <ghammer@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
2015-04-28 07:56:19 +02:00
c06b2ffb02
acpi: add hardware implementation for memory hot unplug
...
- implements QEMU hardware part of memory hot unplug protocol
described at "docs/spec/acpi_mem_hotplug.txt"
- handles memory remove notification event
- handles device eject notification
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-04-27 21:09:07 +02:00
af50989731
acpi: extend aml_field() to support UpdateRule
...
The flags field is declared with default update rule 'Preserve',
this patch extends aml_field() to support UpdateRule so that we
can specify different values per field.
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-04-27 21:08:20 +02:00
f7d3e29db5
acpi, mem-hotplug: add unplug cb for memory device
...
This patch adds unplug cb for memory device. It resets memory status
"is_enabled" in acpi_memory_unplug_cb(), removes the corresponding
memory region, unregisters vmstate, and unparents the object.
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com >
Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-04-27 21:07:39 +02:00