File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2215,10 +2215,6 @@ static int snp_launch_start(struct kvm *kvm, struct kvm_sev_cmd *argp)
2215
2215
if (sev -> snp_context )
2216
2216
return - EINVAL ;
2217
2217
2218
- sev -> snp_context = snp_context_create (kvm , argp );
2219
- if (!sev -> snp_context )
2220
- return - ENOTTY ;
2221
-
2222
2218
if (params .flags )
2223
2219
return - EINVAL ;
2224
2220
@@ -2233,6 +2229,10 @@ static int snp_launch_start(struct kvm *kvm, struct kvm_sev_cmd *argp)
2233
2229
if (params .policy & SNP_POLICY_MASK_SINGLE_SOCKET )
2234
2230
return - EINVAL ;
2235
2231
2232
+ sev -> snp_context = snp_context_create (kvm , argp );
2233
+ if (!sev -> snp_context )
2234
+ return - ENOTTY ;
2235
+
2236
2236
start .gctx_paddr = __psp_pa (sev -> snp_context );
2237
2237
start .policy = params .policy ;
2238
2238
memcpy (start .gosvw , params .gosvw , sizeof (params .gosvw ));
You can’t perform that action at this time.
0 commit comments