Commit 0089c05
KVM: x86/mmu: Avoid reacquiring RCU if TDP MMU fails to allocate an SP
Avoid needlessly reacquiring the RCU read lock if the TDP MMU fails to
allocate a shadow page during eager page splitting. Opportunistically
drop the local variable ret as well now that it's no longer necessary.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20240611220512.2426439-5-dmatlack@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 3d4a5a4 commit 0089c05
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1402 | 1402 | | |
1403 | 1403 | | |
1404 | 1404 | | |
1405 | | - | |
1406 | 1405 | | |
1407 | 1406 | | |
1408 | 1407 | | |
| |||
1440 | 1439 | | |
1441 | 1440 | | |
1442 | 1441 | | |
1443 | | - | |
1444 | | - | |
1445 | 1442 | | |
1446 | | - | |
1447 | 1443 | | |
1448 | 1444 | | |
1449 | | - | |
1450 | | - | |
| 1445 | + | |
| 1446 | + | |
1451 | 1447 | | |
1452 | 1448 | | |
| 1449 | + | |
| 1450 | + | |
1453 | 1451 | | |
1454 | 1452 | | |
1455 | 1453 | | |
| |||
1472 | 1470 | | |
1473 | 1471 | | |
1474 | 1472 | | |
1475 | | - | |
| 1473 | + | |
1476 | 1474 | | |
1477 | 1475 | | |
1478 | 1476 | | |
| |||
0 commit comments