diff --git a/src/runtime/pkg/katautils/config.go b/src/runtime/pkg/katautils/config.go index 9d1f2eacb..80adc61ae 100644 --- a/src/runtime/pkg/katautils/config.go +++ b/src/runtime/pkg/katautils/config.go @@ -299,6 +299,16 @@ func (h hypervisor) firmware() (string, error) { } func (h hypervisor) snpCertsPath() (string, error) { + // snpCertsPath only matter when using Confidential Guests + if !h.ConfidentialGuest { + return "", nil + } + + // snpCertsPath only matter for SNP guests + if !h.SevSnpGuest { + return "", nil + } + p := h.SnpCertsPath if p == "" {