File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -360,13 +360,22 @@ func main() {
360360 logrus .WithError (err ).Fatal ("failed to initialize new runc runtime" )
361361 }
362362 mux := bridge .NewBridgeMux ()
363+
364+ forceSequential , err := amdsevsnp .IsSNP ()
365+ if err != nil {
366+ // IsSNP cannot fail on LCOW
367+ logrus .Errorf ("Got unexpected error from IsSNP(): %v" , err )
368+ // If it fails, we proceed with forceSequential enabled to be safe
369+ forceSequential = true
370+ }
371+
363372 b := bridge.Bridge {
364373 Handler : mux ,
365374 EnableV4 : * v4 ,
366375
367376 // For confidential containers, we protect ourselves against attacks caused
368377 // by concurrent modifications, by processing one request at a time.
369- ForceSequential : amdsevsnp . IsSNP () ,
378+ ForceSequential : forceSequential ,
370379 }
371380 h := hcsv2 .NewHost (rtime , tport , initialEnforcer , logWriter )
372381 // Initialize virtual pod support in the host
You can’t perform that action at this time.
0 commit comments