Commit 4d75f14
KVM: MIPS: Mark "struct page" pfns accessed only in "slow" page fault path
Mark pages accessed only in the slow page fault path in order to remove
an unnecessary user of kvm_pfn_to_refcounted_page(). Marking pages
accessed in the primary MMU during KVM page fault handling isn't harmful,
but it's largely pointless and likely a waste of a cycles since the
primary MMU will call into KVM via mmu_notifiers when aging pages. I.e.
KVM participates in a "pull" model, so there's no need to also "push"
updates.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010182427.1434605-71-seanjc@google.com>1 parent d8f4cda commit 4d75f14
1 file changed
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
488 | | - | |
489 | 487 | | |
490 | 488 | | |
491 | 489 | | |
| |||
498 | 496 | | |
499 | 497 | | |
500 | 498 | | |
501 | | - | |
| 499 | + | |
502 | 500 | | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
| 501 | + | |
507 | 502 | | |
508 | 503 | | |
509 | 504 | | |
| |||
512 | 507 | | |
513 | 508 | | |
514 | 509 | | |
515 | | - | |
516 | 510 | | |
517 | 511 | | |
518 | 512 | | |
| |||
523 | 517 | | |
524 | 518 | | |
525 | 519 | | |
526 | | - | |
527 | | - | |
528 | 520 | | |
529 | 521 | | |
530 | 522 | | |
| |||
0 commit comments