File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
openhcl/underhill_core/src
vm/devices/get/get_protocol/src Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -1268,6 +1268,9 @@ async fn new_underhill_vm(
12681268
12691269 if let Some ( value) = env_cfg. attempt_ak_cert_callback {
12701270 tracing:: info!( "using HCL_ATTEMPT_AK_CERT_CALLBACK={value} from cmdline" ) ;
1271+ dps. general
1272+ . management_vtl_features
1273+ . set_control_ak_cert_callback ( true ) ;
12711274 dps. general
12721275 . management_vtl_features
12731276 . set_attempt_ak_cert_callback ( value) ;
@@ -2661,9 +2664,16 @@ async fn new_underhill_vm(
26612664 if dps
26622665 . general
26632666 . management_vtl_features
2664- . attempt_ak_cert_callback ( ) =>
2667+ . control_ak_cert_provisioning ( ) =>
26652668 {
2666- TpmAkCertTypeResource :: Trusted ( request_ak_cert, Some ( true ) )
2669+ TpmAkCertTypeResource :: Trusted (
2670+ request_ak_cert,
2671+ Some (
2672+ dps. general
2673+ . management_vtl_features
2674+ . attempt_ak_cert_callback ( ) ,
2675+ ) ,
2676+ )
26672677 }
26682678 AttestationType :: Host => TpmAkCertTypeResource :: Trusted ( request_ak_cert, None ) ,
26692679 }
Original file line number Diff line number Diff line change @@ -155,8 +155,9 @@ open_enum! {
155155pub struct ManagementVtlFeatures {
156156 pub strict_encryption_policy : bool ,
157157 pub _reserved1 : bool ,
158+ pub control_ak_cert_provisioning : bool ,
158159 pub attempt_ak_cert_callback : bool ,
159- #[ bits( 61 ) ]
160+ #[ bits( 60 ) ]
160161 pub _reserved2 : u64 ,
161162}
162163
You can’t perform that action at this time.
0 commit comments