We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d80807f commit e80cd69Copy full SHA for e80cd69
src/ioctls/vcpu.rs
@@ -153,6 +153,8 @@ pub enum VcpuExit<'a> {
153
X86Rdmsr(ReadMsrExit<'a>),
154
/// Corresponds to KVM_EXIT_X86_WRMSR.
155
X86Wrmsr(WriteMsrExit<'a>),
156
+ /// Corresponds to KVM_EXIT_TDX
157
+ Tdx,
158
/// Corresponds to an exit reason that is unknown from the current version
159
/// of the kvm-ioctls crate. Let the consumer decide about what to do with
160
/// it.
@@ -1455,6 +1457,7 @@ impl VcpuFd {
1455
1457
}
1456
1458
1459
KVM_EXIT_HYPERCALL => Ok(VcpuExit::Hypercall),
1460
+ 40 => Ok(VcpuExit::Tdx),
1461
KVM_EXIT_DEBUG => {
1462
// SAFETY: Safe because the exit_reason (which comes from the kernel) told us
1463
// which union field to use.
0 commit comments