-
Notifications
You must be signed in to change notification settings - Fork 42
Conversation
dbb4c97
to
ca06c4a
Compare
Codecov Report
@@ Coverage Diff @@
## main #262 +/- ##
==========================================
- Coverage 91.59% 90.42% -1.17%
==========================================
Files 80 82 +2
Lines 22405 24596 +2191
==========================================
+ Hits 20521 22240 +1719
- Misses 1884 2356 +472
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
910eb03
to
79bbb51
Compare
We will first add tdx-ioctls for dbs-tdx. Signed-off-by: fengshifang <[email protected]> Signed-off-by: Chao Wu <[email protected]>
612a7a1
to
4625b0e
Compare
crates/dbs-tdx/src/tdx_ioctls.rs
Outdated
// | ||
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause | ||
// | ||
#![allow(missing_docs)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove?
} | ||
|
||
/// Initialize TDX vcpu | ||
pub fn tdx_init_vcpu(vcpu_fd: &RawFd, hob_address: u64) -> std::result::Result<(), TdxIoctlError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use std::result::Result;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
#[repr(C)] | ||
#[derive(Default)] | ||
/// Tdx capabilities. | ||
pub struct TdxCapabilities { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add documention for struct TdxCapabilities
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added.
This crate may be used temporarily,the related function may be implemented in rust-vmm/kvm-ioctls after tdx is supported in upstream guest kernel. |
Since we add document to all pub elements, we could remove allow missing doc now. Signed-off-by: Chao Wu <[email protected]>
We will first add tdx-ioctls for dbs-tdx.
Signed-off-by: fengshifang [email protected]
Signed-off-by: Chao Wu [email protected]