Commit a005ef6
iommu/amd: Pass page table type as param to pdom_setup_pgtable()
Current code forces v1 page table for UNMANAGED domain and global page
table type (amd_iommu_pgtable) for rest of paging domain.
Following patch series adds support for domain_alloc_paging() ops. Also
enhances domain_alloc_user() to allocate page table based on 'flags.
Hence pass page table type as parameter to pdomain_setup_pgtable(). So
that caller can decide right page table type. Also update
dma_max_address() to take pgtable as parameter.
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jacob Pan <jacob.pan@linux.microsoft.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20241028093810.5901-9-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent b3c9890 commit a005ef6
1 file changed
Lines changed: 19 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2286 | 2286 | | |
2287 | 2287 | | |
2288 | 2288 | | |
2289 | | - | |
| 2289 | + | |
2290 | 2290 | | |
2291 | 2291 | | |
2292 | | - | |
2293 | 2292 | | |
2294 | | - | |
2295 | 2293 | | |
2296 | | - | |
| 2294 | + | |
2297 | 2295 | | |
2298 | | - | |
2299 | | - | |
2300 | | - | |
2301 | | - | |
2302 | | - | |
2303 | | - | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
2310 | | - | |
2311 | 2296 | | |
2312 | 2297 | | |
2313 | 2298 | | |
| |||
2319 | 2304 | | |
2320 | 2305 | | |
2321 | 2306 | | |
| 2307 | + | |
2322 | 2308 | | |
2323 | 2309 | | |
2324 | 2310 | | |
| |||
2327 | 2313 | | |
2328 | 2314 | | |
2329 | 2315 | | |
2330 | | - | |
| 2316 | + | |
2331 | 2317 | | |
2332 | | - | |
| 2318 | + | |
2333 | 2319 | | |
2334 | 2320 | | |
2335 | 2321 | | |
| |||
2342 | 2328 | | |
2343 | 2329 | | |
2344 | 2330 | | |
2345 | | - | |
| 2331 | + | |
| 2332 | + | |
2346 | 2333 | | |
2347 | 2334 | | |
2348 | 2335 | | |
| |||
2367 | 2354 | | |
2368 | 2355 | | |
2369 | 2356 | | |
2370 | | - | |
| 2357 | + | |
2371 | 2358 | | |
2372 | 2359 | | |
2373 | 2360 | | |
2374 | 2361 | | |
2375 | 2362 | | |
2376 | 2363 | | |
2377 | 2364 | | |
2378 | | - | |
| 2365 | + | |
2379 | 2366 | | |
2380 | 2367 | | |
2381 | 2368 | | |
| |||
2393 | 2380 | | |
2394 | 2381 | | |
2395 | 2382 | | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
2396 | 2391 | | |
2397 | | - | |
| 2392 | + | |
2398 | 2393 | | |
2399 | 2394 | | |
2400 | 2395 | | |
| |||
2412 | 2407 | | |
2413 | 2408 | | |
2414 | 2409 | | |
2415 | | - | |
| 2410 | + | |
2416 | 2411 | | |
2417 | 2412 | | |
2418 | 2413 | | |
| |||
0 commit comments