Commit b43a29d
iommu/amd: Add support for nest parent domain allocation
To support nested translation, the nest parent domain is allocated with
IOMMU_HWPT_ALLOC_NEST_PARENT flag, and stores information of the v1 page
table for stage 2 (i.e. GPA->SPA).
Also, only support nest parent domain on AMD system, which can support
the Guest CR3 Table (GCR3TRPMode) feature. This feature is required in
order to program DTE[GCR3 Table Root Pointer] with the GPA.
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>1 parent b2bb057 commit b43a29d
1 file changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2769 | 2769 | | |
2770 | 2770 | | |
2771 | 2771 | | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
| 2775 | + | |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
| 2779 | + | |
2772 | 2780 | | |
2773 | 2781 | | |
2774 | 2782 | | |
2775 | 2783 | | |
2776 | 2784 | | |
2777 | 2785 | | |
2778 | 2786 | | |
2779 | | - | |
| 2787 | + | |
| 2788 | + | |
2780 | 2789 | | |
2781 | 2790 | | |
2782 | 2791 | | |
2783 | 2792 | | |
2784 | 2793 | | |
2785 | 2794 | | |
2786 | | - | |
2787 | | - | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
2788 | 2807 | | |
| 2808 | + | |
2789 | 2809 | | |
2790 | 2810 | | |
2791 | 2811 | | |
| |||
0 commit comments