| Date | Mon, 11 Apr 2022 23:33:20 +0000 | From | Sean Christopherson <> | Subject | Re: [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.
|