diff options
author | Bui Quang Minh <minhquangbui99@gmail.com> | 2024-01-11 22:44:03 +0700 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2024-02-14 06:09:32 -0500 |
commit | 328a11a08a70ca9e565cee807eb74e1e59e1b5d9 (patch) | |
tree | 833e1c3b1714887ee3a1961699fa6dd1cbc7f343 /tests/data | |
parent | 595cd6fd9dffe51ef3fdb3077979a87ff2947b1f (diff) | |
download | qemu-328a11a08a70ca9e565cee807eb74e1e59e1b5d9.zip qemu-328a11a08a70ca9e565cee807eb74e1e59e1b5d9.tar.gz qemu-328a11a08a70ca9e565cee807eb74e1e59e1b5d9.tar.bz2 |
amd_iommu: report x2APIC support to the operating system
This commit adds XTSup configuration to let user choose to whether enable
this feature or not. When XTSup is enabled, additional bytes in IRTE with
enabled guest virtual VAPIC are used to support 32-bit destination id.
Additionally, this commit exports IVHD type 0x11 besides the old IVHD type
0x10 in ACPI table. IVHD type 0x10 does not report full set of IOMMU
features only the legacy ones, so operating system (e.g. Linux) may only
detects x2APIC support if IVHD type 0x11 is available. The IVHD type 0x10
is kept so that old operating system that only parses type 0x10 can detect
the IOMMU device.
Besides, an amd_iommu-stub.c file is created to provide the definition for
amdvi_extended_feature_register when CONFIG_AMD_IOMMU=n. This function is
used by acpi-build.c to get the extended feature register value for
building the ACPI table. When CONFIG_AMD_IOMMU=y, this function is defined
in amd_iommu.c.
Signed-off-by: Bui Quang Minh <minhquangbui99@gmail.com>
Message-Id: <20240111154404.5333-7-minhquangbui99@gmail.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/data')
0 files changed, 0 insertions, 0 deletions