Skip to content

Commit

Permalink
policy: operation of svn should be greater-or-equal
Browse files Browse the repository at this point in the history
Signed-off-by: Jiaqi Gao <[email protected]>
  • Loading branch information
gaojiaqi7 committed Sep 24, 2024
1 parent 9295d99 commit 166a10e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions config/policy_pre_production_fmspc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@
"reference": 2
},
"ISVSVN": {
"operation": "equal",
"operation": "greater-or-equal",
"reference": 0
},
"MISCSELECT": {
Expand Down Expand Up @@ -1315,7 +1315,7 @@
"reference": 2
},
"TDXModuleSVN": {
"operation": "equal",
"operation": "greater-or-equal",
"reference": 0
}
}
Expand All @@ -1337,7 +1337,7 @@
"reference": 3
},
"TDXModuleSVN": {
"operation": "equal",
"operation": "greater-or-equal",
"reference": 0
}
}
Expand All @@ -1359,7 +1359,7 @@
"reference": 1
},
"TDXModuleSVN": {
"operation": "equal",
"operation": "greater-or-equal",
"reference": 0
}
}
Expand Down
6 changes: 3 additions & 3 deletions config/policy_production_fmspc.json
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@
"reference": 2
},
"ISVSVN": {
"operation": "equal",
"operation": "greater-or-equal",
"reference": 4
},
"MISCSELECT": {
Expand Down Expand Up @@ -997,7 +997,7 @@
"reference": 3
},
"TDXModuleSVN": {
"operation": "equal",
"operation": "greater-or-equal",
"reference": 2
}
}
Expand All @@ -1019,7 +1019,7 @@
"reference": 1
},
"TDXModuleSVN": {
"operation": "equal",
"operation": "greater-or-equal",
"reference": 4
}
}
Expand Down
4 changes: 2 additions & 2 deletions tools/migtd-policy-generator/src/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl QePolicy {
reference: Reference::Integer(isvprodid),
},
isvsvn: Property {
operation: "equal".to_string(),
operation: "greater-or-equal".to_string(),
reference: Reference::Integer(isvsvn),
},
},
Expand Down Expand Up @@ -262,7 +262,7 @@ impl TdxModulePolicy {
reference: Reference::Integer(id),
},
tdx_module_svn: Property {
operation: "equal".to_string(),
operation: "greater-or-equal".to_string(),
reference: Reference::Integer(
tdx_module.tcb_levels[0].tcb.isvsvn,
),
Expand Down

0 comments on commit 166a10e

Please sign in to comment.