@@ -29,6 +29,18 @@ var GuestOsFeaturesRHEL9 []*computepb.GuestOsFeature = []*computepb.GuestOsFeatu
29
29
{Type : common .ToPtr (computepb .GuestOsFeature_GVNIC .String ())},
30
30
{Type : common .ToPtr (computepb .GuestOsFeature_SEV_SNP_CAPABLE .String ())},
31
31
{Type : common .ToPtr (computepb .GuestOsFeature_SEV_LIVE_MIGRATABLE_V2 .String ())},
32
+ {Type : common .ToPtr (computepb .GuestOsFeature_TDX_CAPABLE .String ())},
33
+ }
34
+
35
+ // Guest OS Features for RHEL9.2 images.
36
+ // The TDX support was added since RHEL-9.6.
37
+ var GuestOsFeaturesRHEL92 []* computepb.GuestOsFeature = []* computepb.GuestOsFeature {
38
+ {Type : common .ToPtr (computepb .GuestOsFeature_UEFI_COMPATIBLE .String ())},
39
+ {Type : common .ToPtr (computepb .GuestOsFeature_VIRTIO_SCSI_MULTIQUEUE .String ())},
40
+ {Type : common .ToPtr (computepb .GuestOsFeature_SEV_CAPABLE .String ())},
41
+ {Type : common .ToPtr (computepb .GuestOsFeature_GVNIC .String ())},
42
+ {Type : common .ToPtr (computepb .GuestOsFeature_SEV_SNP_CAPABLE .String ())},
43
+ {Type : common .ToPtr (computepb .GuestOsFeature_SEV_LIVE_MIGRATABLE_V2 .String ())},
32
44
}
33
45
34
46
// Guest OS Features for RHEL9.1 images.
@@ -71,6 +83,14 @@ func GuestOsFeaturesByDistro(distroName string) []*computepb.GuestOsFeature {
71
83
// TODO: this should be updated for the dot-notation
72
84
case distroName == "rhel-91" :
73
85
return GuestOsFeaturesRHEL91
86
+ case distroName == "rhel-92" :
87
+ fallthrough
88
+ case distroName == "rhel-93" :
89
+ fallthrough
90
+ case distroName == "rhel-94" :
91
+ fallthrough
92
+ case distroName == "rhel-95" :
93
+ return GuestOsFeaturesRHEL92
74
94
case strings .HasPrefix (distroName , "centos-9" ):
75
95
fallthrough
76
96
case strings .HasPrefix (distroName , "rhel-9" ):
0 commit comments