lkml.org 
[lkml]   [2022]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 7/9] KVM: x86/mmu: Add try_get_mt_mask to x86_ops
On Mon, Apr 11, 2022, Sean Christopherson wrote:
> And as a bonus, if we use 0/-errno, then we can use KVM_X86_OP_OPTIONAL_RET0()
> and SVM doesn't need to provide an implementation.

Gah, got ahead of myself. If we go this route, the caller would need to ensure
it initializes mt_mask. Probabably not worth it, so scratch that idea. I also
though about overloading the return type, e.g.

mt_mask = ...
if (mt_mask < 0)
return false;

But again, probably not a net positive.

\
 
 \ /
  Last update: 2022-04-12 01:34    [W:0.306 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site