target/i386: SEV: do not assume machine->cgs is SEV
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Jun 2024 18:09:44 +0000 (20:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 17 Jun 2024 07:47:39 +0000 (09:47 +0200)
commit109238a8d97cd8e85ca614109724a0b1222b21f5
tree919bcb79c26b2e35d5944955388d22d1d15c49f0
parent0c4da54883336e43af13ad3b3c33dac646cfa9fb
target/i386: SEV: do not assume machine->cgs is SEV

There can be other confidential computing classes that are not derived
from sev-common.  Avoid aborting when encountering them.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/sev.c