On Mon, Nov 15, 2021, Peter Gonda wrote: > On Tue, Nov 9, 2021 at 2:53 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote: > > + /* > > + * Disallow out-of-band SEV/SEV-ES init if the target is already an > > + * SEV guest, or if vCPUs have been created. KVM relies on vCPUs being > > + * created after SEV/SEV-ES initialization, e.g. to init intercepts. > > + */ > > + if (sev_guest(kvm) || kvm->created_vcpus) { > > ret = -EINVAL; > > goto e_mirror_unlock; > > } > > Now that we have some framework for running SEV related selftests, do > you mind adding a regression test for this change? Can do, will likely be a few days though.