On 10/8/2025 6:33 PM, Jason Gunthorpe wrote:
> On Wed, Oct 08, 2025 at 03:35:39PM +0530, Vasant Hegde wrote:
>
>>> +static inline pt_oaddr_t x86_64_pt_entry_oa(const struct pt_state *pts)
>>> +{
>>> + return oalog2_mul(FIELD_GET(X86_64_FMT_OA, pts->entry),
>>> + PT_GRANULE_LG2SZ);
>>
>> Also here.
>
> Presumably this as well?
>
> @@ -2166,7 +2166,7 @@ static int init_gcr3_table(struct iommu_dev_data
> *dev_data,
> return ret;
>
> pt_iommu_x86_64_hw_info(&pdom->amdv2, &pt_info);
> - ret = update_gcr3(dev_data, 0, pt_info.gcr3_pt, true);
> + ret = update_gcr3(dev_data, 0, __sme_set(pt_info.gcr3_pt), true);
> if (ret)
> free_gcr3_table(&dev_data->gcr3_info);
Right.
-Vasant
- RE: [PATCH v5 07/15] iommupt: Add map_pages op Tian, Kevin
- Re: [PATCH v5 07/15] iommupt: Add map_pages op Jason Gunthorpe
- Re: [PATCH v5 07/15] iommupt: Add map_pages op Vasant Hegde
- Re: [PATCH v5 07/15] iommupt: Add map_pages op Jason Gunthorpe
- Re: [PATCH v5 07/15] iommupt: Add map_pages o... Vasant Hegde
- [PATCH v5 12/15] iommupt: Add the x86 64 bit page table fo... Jason Gunthorpe
- RE: [PATCH v5 12/15] iommupt: Add the x86 64 bit page... Tian, Kevin
- Re: [PATCH v5 12/15] iommupt: Add the x86 64 bit ... Jason Gunthorpe
- Re: [PATCH v5 12/15] iommupt: Add the x86 64 bit page... Vasant Hegde
- Re: [PATCH v5 12/15] iommupt: Add the x86 64 bit ... Jason Gunthorpe
- Re: [PATCH v5 12/15] iommupt: Add the x86 64 ... Vasant Hegde
- [PATCH v5 15/15] iommupt: Add a kunit test for the IOMMU i... Jason Gunthorpe
- [PATCH v5 06/15] iommupt: Add unmap_pages op Jason Gunthorpe
- RE: [PATCH v5 06/15] iommupt: Add unmap_pages op Tian, Kevin
- Re: [PATCH v5 06/15] iommupt: Add unmap_pages op Jason Gunthorpe
- RE: [PATCH v5 06/15] iommupt: Add unmap_pages... Tian, Kevin
- [PATCH v5 03/15] iommupt: Add the basic structure of the i... Jason Gunthorpe
- Re: [PATCH v5 03/15] iommupt: Add the basic structure... Nicolin Chen
- Re: [PATCH v5 03/15] iommupt: Add the basic struc... Jason Gunthorpe
- RE: [PATCH v5 03/15] iommupt: Add the basic structure... Tian, Kevin
- Re: [PATCH v5 03/15] iommupt: Add the basic struc... Jason Gunthorpe
