lkml.org 
[lkml]   [2020]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 1/2] KVM: SVM: fix svn_pin_memory()'s use of get_user_pages_fast()
From
Date
On 2020-05-26 00:33, Vitaly Kuznetsov wrote:
...
> I bit unrelated to this patch, but callers of sev_pin_memory() treat
> NULL differently:
>
> sev_launch_secret()/svm_register_enc_region() return -ENOMEM
> sev_dbg_crypt() returns -EFAULT
>
> Should we switch to ERR_PTR() to preserve the error?
>
>> /* Avoid using vmalloc for smaller buffers. */
>> size = npages * sizeof(struct page *);
>> if (size > PAGE_SIZE)
>
> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
>

Thanks for the review, Vitaly. If anyone is able to do any run-time
testing of this patch and also patch 2/2, then I think a maintainer
would be more willing to pick them up.

Any testing help there is greatly appreciated!


thanks,
--
John Hubbard
NVIDIA

\
 
 \ /
  Last update: 2020-06-30 05:10    [W:0.040 / U:3.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site