diff options
author | Baoquan He <bhe@redhat.com> | 2017-08-09 10:33:38 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-08-15 18:14:39 +0200 |
commit | 3ac3e5ee5ed56b07448f295902e44916eb6979fc (patch) | |
tree | 1e6c62c314a67922605b7d959708c77157e13d50 /drivers/pci/pci-driver.c | |
parent | iommu/amd: Add function copy_dev_tables() (diff) | |
download | linux-3ac3e5ee5ed56b07448f295902e44916eb6979fc.tar.xz linux-3ac3e5ee5ed56b07448f295902e44916eb6979fc.zip |
iommu/amd: Copy old trans table from old kernel
Here several things need be done:
- If iommu is pre-enabled in a normal kernel, just disable it and print
warning.
- If any one of IOMMUs is not pre-enabled in kdump kernel, just continue
as it does in normal kernel.
- If failed to copy dev table of old kernel, continue to proceed as
it does in normal kernel.
- Only if all IOMMUs are pre-enabled and copy dev table is done well, free
the dev table allocated in early_amd_iommu_init() and make amd_iommu_dev_table
point to the copied one.
- Disable and Re-enable event/cmd buffer, install the copied DTE table
to reg, and detect and enable guest vapic.
- Flush all caches
Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/pci/pci-driver.c')
0 files changed, 0 insertions, 0 deletions