Commit 1441ca1
kvm: x86: mmu: Drop the need_remote_flush() function
This is only used by kvm_mmu_pte_write(), which no longer actually
creates the new SPTE and instead just clears the old SPTE. So we
just need to check if the old SPTE was shadow-present instead of
calling need_remote_flush(). Hence we can drop this function. It was
incomplete anyway as it didn't take access-tracking into account.
This patch should not result in any functional change.
Signed-off-by: Junaid Shahid <junaids@google.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220723024316.2725328-1-junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 959d6c4 commit 1441ca1
1 file changed
Lines changed: 1 addition & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5361 | 5361 | | |
5362 | 5362 | | |
5363 | 5363 | | |
5364 | | - | |
5365 | | - | |
5366 | | - | |
5367 | | - | |
5368 | | - | |
5369 | | - | |
5370 | | - | |
5371 | | - | |
5372 | | - | |
5373 | | - | |
5374 | | - | |
5375 | | - | |
5376 | | - | |
5377 | 5364 | | |
5378 | 5365 | | |
5379 | 5366 | | |
| |||
5519 | 5506 | | |
5520 | 5507 | | |
5521 | 5508 | | |
5522 | | - | |
| 5509 | + | |
5523 | 5510 | | |
5524 | 5511 | | |
5525 | 5512 | | |
| |||
0 commit comments