Skip to content

add track_remove_slot and remove track_flush_slot

Yan Zhao intel-gfx kvm lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 12 repliesIn review
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

Corrected wrong email address of Sean. sorry.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: x86: add a new page track hook track_remove_slotarch/x86/include/asm/kvm_page_track.h arch/x86/kvm/mmu/page_track.c arch/x86/kvm/x86.c+40 -010 replies
2/3drm/i915/gvt: switch from track_flush_slot to track_remove_slotdrivers/gpu/drm/i915/gvt/kvmgt.c+3 -32 replies
3/3KVM: x86: Remove the unused page track hook track_flush_slotarch/x86/include/asm/kvm_page_track.h arch/x86/kvm/mmu/page_track.c arch/x86/kvm/x86.c+0 -390 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] add track_remove_slot and remove track_flush_slot

This series is based on Sean's series
https://lore.kernel.org/all/[email protected]/,
which allows KVM internal user of page track not to rely on the page track hook .track_flush_slot.

Page track hook track_flush_slot is for notification of slot flush and is called when a slot DELETE/MOVE is on-going.

Page track hook track_remove_slot is for notification of slot removal and is called when the slot DELETE/MOVE has been committed.

As KVMGT, the only external user of page track, actually only cares about when slot removal indeed happens, this series switches KVMGT to use the new hook .track_remove_slot.
And as there are no users to .track_flush_slot any more, this hook is removed.

v2:
Corrected wrong email address of Sean. sorry.

Yan Zhao (3):
KVM: x86: add a new page track hook track_remove_slot drm/i915/gvt: switch from track_flush_slot to track_remove_slot
KVM: x86: Remove the unused page track hook track_flush_slot

 arch/x86/include/asm/kvm_page_track.h | 8 ++++----
 arch/x86/kvm/mmu/page_track.c         | 8 ++++----
 arch/x86/kvm/x86.c                    | 5 +++--
 drivers/gpu/drm/i915/gvt/kvmgt.c      | 6 +++---
 4 files changed, 14 insertions(+), 13 deletions(-)
Signature · 1 line
2.17.1