lkml.org 
[lkml]   [2021]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v13 09/12] mm: x86: Invoke hypercall when page encryption status is changed
From
Date

On 4/21/21 7:12 AM, Ashish Kalra wrote:
>>> +
>>> + psize = page_level_size(level);
>>> + pmask = page_level_mask(level);
>>> +
>>> + kvm_sev_hypercall3(KVM_HC_PAGE_ENC_STATUS,
>>> + pfn << PAGE_SHIFT, psize >> PAGE_SHIFT, enc);
>>> +
>>> + vaddr_next = (vaddr & pmask) + psize;
>>> + }
>> As with other patches from Brijesh, that should be a while loop. :)
>>
> I see that early_set_memory_enc_dec() is also using a for loop, so which
> patches are you referring to ?
>
I guess Boris is referring to my SNP patches. Please go ahead and use
the while loop as recommended by Boris.

-Brijesh

\
 
 \ /
  Last update: 2021-04-21 15:51    [W:0.210 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site