From b3bb85186370cd397ba5fa2e0ccb3e7fc992f4fb Mon Sep 17 00:00:00 2001 From: Amelia Crate Date: Wed, 21 Feb 2024 15:08:15 -0800 Subject: [PATCH] Tag rhel 9.2+ with SEV_LIVE_MIGRATABLE_V2 SEV-SNP capable kernels containing commit ac3f9c9f are compatible. SEV_LIVE_MIGRATABLE indicated compatibility with an older version of SEV live migration, without ac3f9c9f. See: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=ac3f9c9f1b37edaa7d1a9b908bc79d843955a1a2 --- internal/cloud/gcp/compute.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/internal/cloud/gcp/compute.go b/internal/cloud/gcp/compute.go index 29aec4a5f..bb922c62d 100644 --- a/internal/cloud/gcp/compute.go +++ b/internal/cloud/gcp/compute.go @@ -28,6 +28,17 @@ var GuestOsFeaturesRHEL9 []*computepb.GuestOsFeature = []*computepb.GuestOsFeatu {Type: common.ToPtr(computepb.GuestOsFeature_SEV_CAPABLE.String())}, {Type: common.ToPtr(computepb.GuestOsFeature_GVNIC.String())}, {Type: common.ToPtr(computepb.GuestOsFeature_SEV_SNP_CAPABLE.String())}, + {Type: common.ToPtr(computepb.GuestOsFeature_SEV_LIVE_MIGRATABLE_V2.String())}, +} + +// Guest OS Features for RHEL9.1 images. +// The SEV_LIVE_MIGRATABLE_V2 support was added since RHEL-9.2 +var GuestOsFeaturesRHEL91 []*computepb.GuestOsFeature = []*computepb.GuestOsFeature{ + {Type: common.ToPtr(computepb.GuestOsFeature_UEFI_COMPATIBLE.String())}, + {Type: common.ToPtr(computepb.GuestOsFeature_VIRTIO_SCSI_MULTIQUEUE.String())}, + {Type: common.ToPtr(computepb.GuestOsFeature_SEV_CAPABLE.String())}, + {Type: common.ToPtr(computepb.GuestOsFeature_GVNIC.String())}, + {Type: common.ToPtr(computepb.GuestOsFeature_SEV_SNP_CAPABLE.String())}, } // Guest OS Features for RHEL9.0 images. @@ -53,6 +64,8 @@ func GuestOsFeaturesByDistro(distroName string) []*computepb.GuestOsFeature { case distroName == "rhel-90": return GuestOsFeaturesRHEL90 + case distroName == "rhel-91": + return GuestOsFeaturesRHEL91 case strings.HasPrefix(distroName, "centos-9"): fallthrough case strings.HasPrefix(distroName, "rhel-9"):