Re: [PATCH v3 3/7] KVM: pfncache: Use RCU for readers instead of a rwlock
"Woodhouse, David" <[email protected]>
| Newsgroups | dev.linux.lists.sashiko-reviews,org.kernel.vger.kvm |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2026-08-06 at 11:11 -0700, Sean Christopherson wrote:
>
> It's probably a slow path for all current users, but it definitely won't be a slow
> path for nested virtualization, because a refresh() will be required any time the
> GPA changes, i.e. any time the vCPU runs a different vmc{b,c}12.
Those need caching anyway, FWIW. We need a pool of nested contexts
(including these GPCs), rather than throwing them away each some the L1
switches to a different L2.
> That's why I think we should treat GPCs that are strictly bound to a
> vCPU differently.
Yes. I wonder if it's reasonable to tie it to the GUEST_USES_PFN case;
they aren't *perfectly* correlated (maybe the steal one could be
considered to be in your category too)... but perhaps those are the
ones that *care*?
Amazon Development Centre (London) Ltd. Registered in England and Wales with registration number 04543232 with its registered office at 1 Principal Place, Worship Street, London EC2A 2FA, United Kingdom.
smime.p7s
(application/pkcs7-signature, 3.9 KB) - not displayed