From 848523221903d628002cd8b6953b149f63b689b8 Mon Sep 17 00:00:00 2001 From: Kathryn Baldauf Date: Tue, 16 Jul 2024 14:41:16 -0700 Subject: [PATCH] Remove graceful removal of vpci devices Signed-off-by: Kathryn Baldauf --- internal/uvm/create.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/uvm/create.go b/internal/uvm/create.go index ecbe9ab975..f91848ccd0 100644 --- a/internal/uvm/create.go +++ b/internal/uvm/create.go @@ -234,15 +234,6 @@ func (uvm *UtilityVM) CloseCtx(ctx context.Context) (err error) { windows.Close(uvm.vmmemProcess) if uvm.hcsSystem != nil { - for key, dev := range uvm.vpciDevices { - // Try to remove any devices that are still on the UVM, but do not - // fail the close if there is an error. - // This would be devices that were added on pod creation. - if err := dev.Release(ctx); err != nil { - log.G(ctx).Errorf("graceful removal of vpci device %v failed: %s", key, err) - } - } - _ = uvm.hcsSystem.Terminate(ctx) // uvm.Wait() waits on <-uvm.outputProcessingDone, which may not be closed until below // (for a Create -> Stop without a Start), or uvm.outputHandler may be blocked on IO and