tdx: Address Rust 1.51.0 clippy issue (upper_case_acroynms)

error: name `FinalizeTDX` contains a capitalized acronym
   --> vmm/src/vm.rs:274:5
    |
274 |     FinalizeTDX(hypervisor::HypervisorVmError),
    |     ^^^^^^^^^^^ help: consider making the acronym lowercase, except the initial letter: `FinalizeTdx`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2021-03-25 17:01:21 +00:00
parent e294688904
commit 3c6dfd7709
3 changed files with 12 additions and 12 deletions

View File

@@ -369,7 +369,7 @@ impl vm::Vm for KvmVm {
reserved: u32,
attributes: u64,
cpuid: u64,
};
}
let data = TdxInitVm {
max_vcpus,
reserved: 0,
@@ -411,7 +411,7 @@ impl vm::Vm for KvmVm {
host_address: u64,
guest_address: u64,
pages: u64,
};
}
let data = TdxInitMemRegion {
host_address,
guest_address,
@@ -440,7 +440,7 @@ fn tdx_command(
command: TdxCommand,
metadata: u32,
data: u64,
};
}
let cmd = TdxIoctlCmd {
command,
metadata,