Commit 9123c5f
committed
Merge tag 'kvm-x86-gmem-6.20' of https://github.com/kvm-x86/linux into HEAD
KVM guest_memfd changes for 6.20
- Remove kvm_gmem_populate()'s preparation tracking and half-baked hugepage
handling, and instead rely on SNP (the only user of the tracking) to do its
own tracking via the RMP.
- Retroactively document and enforce (for SNP) that KVM_SEV_SNP_LAUNCH_UPDATE
and KVM_TDX_INIT_MEM_REGION require the source page to be 4KiB aligned, to
avoid non-trivial complexity for a non-existent usecase (and because
in-place conversion simply can't support unaligned sources).
- When populating guest_memfd memory, GUP the source page in common code and
pass the refcounted page to the vendor callback, instead of letting vendor
code do the heavy lifting. Doing so avoids a looming deadlock bug with
in-place due an AB-BA conflict betwee mmap_lock and guest_memfd's filemap
invalidate lock.File tree
6 files changed
+130
-141
lines changed- Documentation/virt/kvm/x86
- arch/x86/kvm
- svm
- vmx
- include/linux
- virt/kvm
6 files changed
+130
-141
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2277 | 2277 | | |
2278 | 2278 | | |
2279 | 2279 | | |
2280 | | - | |
2281 | | - | |
| 2280 | + | |
| 2281 | + | |
2282 | 2282 | | |
2283 | 2283 | | |
| 2284 | + | |
2284 | 2285 | | |
2285 | | - | |
2286 | | - | |
2287 | | - | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
2288 | 2289 | | |
2289 | | - | |
| 2290 | + | |
2290 | 2291 | | |
2291 | 2292 | | |
2292 | | - | |
2293 | | - | |
2294 | | - | |
2295 | | - | |
2296 | | - | |
2297 | | - | |
2298 | | - | |
2299 | | - | |
2300 | | - | |
2301 | | - | |
2302 | | - | |
2303 | | - | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
2310 | | - | |
2311 | | - | |
2312 | | - | |
2313 | | - | |
2314 | | - | |
2315 | | - | |
2316 | | - | |
2317 | | - | |
2318 | | - | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
2319 | 2300 | | |
2320 | | - | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
2321 | 2304 | | |
2322 | | - | |
2323 | | - | |
2324 | | - | |
2325 | | - | |
| 2305 | + | |
2326 | 2306 | | |
2327 | | - | |
2328 | | - | |
2329 | | - | |
2330 | | - | |
| 2307 | + | |
| 2308 | + | |
2331 | 2309 | | |
2332 | 2310 | | |
2333 | | - | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
2334 | 2315 | | |
2335 | | - | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
2336 | 2323 | | |
2337 | 2324 | | |
2338 | | - | |
2339 | | - | |
| 2325 | + | |
2340 | 2326 | | |
2341 | 2327 | | |
2342 | 2328 | | |
| |||
2346 | 2332 | | |
2347 | 2333 | | |
2348 | 2334 | | |
2349 | | - | |
| 2335 | + | |
2350 | 2336 | | |
2351 | 2337 | | |
2352 | | - | |
| 2338 | + | |
| 2339 | + | |
2353 | 2340 | | |
2354 | | - | |
2355 | | - | |
| 2341 | + | |
2356 | 2342 | | |
2357 | | - | |
| 2343 | + | |
| 2344 | + | |
2358 | 2345 | | |
2359 | 2346 | | |
2360 | | - | |
2361 | | - | |
2362 | | - | |
2363 | | - | |
2364 | | - | |
2365 | | - | |
2366 | | - | |
2367 | | - | |
2368 | | - | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
2369 | 2351 | | |
2370 | 2352 | | |
2371 | 2353 | | |
| |||
2396 | 2378 | | |
2397 | 2379 | | |
2398 | 2380 | | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
2399 | 2386 | | |
2400 | 2387 | | |
2401 | 2388 | | |
| |||
2427 | 2414 | | |
2428 | 2415 | | |
2429 | 2416 | | |
2430 | | - | |
2431 | 2417 | | |
2432 | 2418 | | |
2433 | 2419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3118 | 3118 | | |
3119 | 3119 | | |
3120 | 3120 | | |
3121 | | - | |
| 3121 | + | |
3122 | 3122 | | |
3123 | 3123 | | |
3124 | 3124 | | |
3125 | 3125 | | |
3126 | 3126 | | |
3127 | | - | |
3128 | 3127 | | |
3129 | 3128 | | |
3130 | 3129 | | |
3131 | 3130 | | |
3132 | 3131 | | |
3133 | | - | |
3134 | | - | |
3135 | | - | |
3136 | | - | |
3137 | | - | |
3138 | | - | |
3139 | | - | |
3140 | | - | |
3141 | | - | |
| 3132 | + | |
| 3133 | + | |
3142 | 3134 | | |
3143 | 3135 | | |
3144 | 3136 | | |
3145 | 3137 | | |
3146 | 3138 | | |
3147 | | - | |
3148 | | - | |
3149 | 3139 | | |
3150 | 3140 | | |
3151 | 3141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2566 | 2566 | | |
2567 | 2567 | | |
2568 | 2568 | | |
2569 | | - | |
| 2569 | + | |
2570 | 2570 | | |
2571 | 2571 | | |
2572 | 2572 | | |
| |||
2581 | 2581 | | |
2582 | 2582 | | |
2583 | 2583 | | |
2584 | | - | |
| 2584 | + | |
2585 | 2585 | | |
2586 | 2586 | | |
2587 | 2587 | | |
| |||
0 commit comments