Re: [RFC PATCH v3 06/19] KVM: x86: mmu: add gfn_in_memslot helper

2022-05-22 Thread Maxim Levitsky
On Thu, 2022-05-19 at 16:43 +, Sean Christopherson wrote: > On Wed, Apr 27, 2022, Maxim Levitsky wrote: > > This is a tiny refactoring, and can be useful to check > > if a GPA/GFN is within a memslot a bit more cleanly. > > This doesn't explain the actual motivation, which is to use the new he

Re: [RFC PATCH v3 06/19] KVM: x86: mmu: add gfn_in_memslot helper

2022-05-22 Thread Maxim Levitsky
On Thu, 2022-05-19 at 16:43 +, Sean Christopherson wrote: > On Wed, Apr 27, 2022, Maxim Levitsky wrote: > > This is a tiny refactoring, and can be useful to check > > if a GPA/GFN is within a memslot a bit more cleanly. > > This doesn't explain the actual motivation, which is to use the new he

[RFC PATCH v3 06/19] KVM: x86: mmu: add gfn_in_memslot helper

2022-04-27 Thread Maxim Levitsky
This is a tiny refactoring, and can be useful to check if a GPA/GFN is within a memslot a bit more cleanly. Signed-off-by: Maxim Levitsky --- include/linux/kvm_host.h | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h