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