Skip to contentSkip to conversation

Patch "KVM: Use gfn instead of hva for mmu_notifier_retry" has been added to the 6.6-stable tree

DISCUSSION Sean Christopherson 2 participants 2 messages Jun 24, 2024 – Jun 25, 2024 1 message not in the archive Stable branch

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 44 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

KVM: Use gfn instead of hva for mmu_notifier_retry

to the 6.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
kvm-use-gfn-instead-of-hva-for-mmu_notifier_retry.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

commit 68a14ccc3fb35047cc4900c8ddd4b6f959e25b77

Author: Chao Peng <[email protected]>
Date:   Fri Oct 27 11:21:45 2023 -0700

KVM: Use gfn instead of hva for mmu_notifier_retry

[ Upstream commit 8569992d64b8f750e34b7858eac5d7daaf0f80fd ]

Currently in mmu_notifier invalidate path, hva range is recorded and then checked against by mmu_invalidate_retry_hva() in the page fault handling path. However, for the soon-to-be-introduced private memory, a page fault may not have a hva associated, checking gfn(gpa) makes more sense.

For existing hva based shared memory, gfn is expected to also work. The only downside is when aliasing multiple gfns to a single hva, the current algorithm of checking multiple ranges could result in a much larger range being rejected. Such aliasing should be uncommon, so the impact is expected small.

Quoted 4 lines

Message-Id: <[email protected]>

Stable-dep-of: c3f3edf73a8f ("KVM: Stop processing *all* memslots when "null" mmu_notifier handler is found")

Please drop this, and all other related patches. This is not at all appropriate for stable trees.

I'm pretty sure your scripts are borked too, at least from KVM's perspective. I specifically didn't tag c3f3edf73a8f for stable[*], and I thought we had agreed a while back that only KVM (x86?) fixes with an explicit "Cc: stable@" would be automatically included.

[*] https://lore.kernel.org/all/[email protected]

#2 lore raw
Quoted 53 lines · Sean Christopherson
Quoted 44 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

KVM: Use gfn instead of hva for mmu_notifier_retry

to the 6.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
kvm-use-gfn-instead-of-hva-for-mmu_notifier_retry.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

commit 68a14ccc3fb35047cc4900c8ddd4b6f959e25b77

Author: Chao Peng <[email protected]>
Date:   Fri Oct 27 11:21:45 2023 -0700

KVM: Use gfn instead of hva for mmu_notifier_retry

[ Upstream commit 8569992d64b8f750e34b7858eac5d7daaf0f80fd ]

Currently in mmu_notifier invalidate path, hva range is recorded and then checked against by mmu_invalidate_retry_hva() in the page fault handling path. However, for the soon-to-be-introduced private memory, a page fault may not have a hva associated, checking gfn(gpa) makes more sense.

For existing hva based shared memory, gfn is expected to also work. The only downside is when aliasing multiple gfns to a single hva, the current algorithm of checking multiple ranges could result in a much larger range being rejected. Such aliasing should be uncommon, so the impact is expected small.

Quoted 4 lines

Message-Id: <[email protected]>

Stable-dep-of: c3f3edf73a8f ("KVM: Stop processing *all* memslots when "null" mmu_notifier handler is found")

Please drop this, and all other related patches. This is not at all appropriate for stable trees.

Quoted 6 lines

I'm pretty sure your scripts are borked too, at least from KVM's perspective. I specifically didn't tag c3f3edf73a8f for stable[*], and I thought we had agreed a while back that only KVM (x86?) fixes with an explicit "Cc: stable@" would be automatically included.

[*] https://lore.kernel.org/all/[email protected]

All now dropped, sorry about that.

greg k-h