Re: [RFC Part2 PATCH v3 11/26] KVM: X86: Extend struct kvm_arch to include SEV information
From: Brijesh Singh
Date: Wed Sep 13 2017 - 11:14:39 EST
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