lkml.org 
[lkml]   [2017]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC Part2 PATCH v3 11/26] KVM: X86: Extend struct kvm_arch to include SEV information
From
Date


On 09/13/2017 08:37 AM, Borislav Petkov wrote:
...

>> + return &kvm->arch.sev_info;
>> +}
>> +
>> +static inline void sev_set_active(struct kvm *kvm)
>> +{
>> + to_sev_info(kvm)->active = true;
>> +}
>
> Is this the accepted way to do this in KVM land or can you simply access
> all members directly:
>
> kvm->arch.sev_info.<member>
>
> Because I see stuff like that:
>

Actually, I see both approaches used in svm.c but I am flexible to go with
either ways. lets wait for Paolo and Radim comments.

-Brijesh

\
 
 \ /
  Last update: 2017-09-13 17:16    [W:0.170 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site