diff options
author | iximeow <me@iximeow.net> | 2021-07-03 14:41:09 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-07-03 14:43:37 -0700 |
commit | 11ce930421ba8b534024f6695dff8fdfd7e47ff0 (patch) | |
tree | 465b559f8a58ee74d9af06b4c0c7f82e5d0d3013 /test/long_mode | |
parent | 2b13f206b94e885dd3f58eac96357cb892ea1d1a (diff) |
support AMD `sev_snp`
Diffstat (limited to 'test/long_mode')
-rw-r--r-- | test/long_mode/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/long_mode/mod.rs b/test/long_mode/mod.rs index 6a45b38..4d44694 100644 --- a/test/long_mode/mod.rs +++ b/test/long_mode/mod.rs @@ -3329,6 +3329,14 @@ fn test_tsxldtrk() { test_display(&[0xf2, 0x0f, 0x01, 0xe9], "xresldtrk"); } +#[test] +fn test_sevsnp() { + test_display(&[0xf3, 0x0f, 0x01, 0xff], "psmash"); + test_display(&[0xf2, 0x0f, 0x01, 0xff], "pvalidate"); + test_display(&[0xf3, 0x0f, 0x01, 0xfe], "rmpadjust"); + test_display(&[0xf2, 0x0f, 0x01, 0xfe], "rmpupdate"); +} + // some test cases are best just lifted from llvm or gcc. #[test] fn from_llvm() { |