Commit e1c04f7
KVM: x86/mmu: Hard code GFP flags for TDP MMU eager split allocations
Now that the GFP_NOWAIT case is gone, hard code GFP_KERNEL_ACCOUNT when
allocating shadow pages during eager page splitting in the TDP MMU.
Opportunistically replace use of __GFP_ZERO with allocations that zero
to improve readability.
No functional change intended.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20240611220512.2426439-3-dmatlack@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent cf3ff0e commit e1c04f7
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
1342 | | - | |
| 1342 | + | |
1343 | 1343 | | |
1344 | 1344 | | |
1345 | 1345 | | |
1346 | | - | |
1347 | | - | |
1348 | | - | |
| 1346 | + | |
1349 | 1347 | | |
1350 | 1348 | | |
1351 | 1349 | | |
1352 | | - | |
| 1350 | + | |
1353 | 1351 | | |
1354 | 1352 | | |
1355 | 1353 | | |
| |||
1374 | 1372 | | |
1375 | 1373 | | |
1376 | 1374 | | |
1377 | | - | |
| 1375 | + | |
1378 | 1376 | | |
1379 | 1377 | | |
1380 | 1378 | | |
| |||
0 commit comments