-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathlib.rs
More file actions
73 lines (69 loc) · 1.52 KB
/
Copy pathlib.rs
File metadata and controls
73 lines (69 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2022-2023 SUSE LLC
//
// Author: Nicolai Stange <nstange@suse.de>
#![no_std]
#![cfg_attr(
all(test, test_in_svsm),
no_main,
feature(custom_test_frameworks),
test_runner(crate::testing::svsm_test_runner),
reexport_test_harness_main = "test_main"
)]
#![cfg_attr(verus_keep_ghost, feature(proc_macro_hygiene))]
pub mod acpi;
pub use paging::address;
#[cfg(feature = "attest")]
pub mod attest;
#[cfg(feature = "block")]
pub mod block;
pub mod boot_params;
pub mod console;
pub mod cpu;
pub mod crypto;
pub mod debug;
pub mod error;
pub mod fs;
pub mod fw_cfg;
pub mod greq;
pub mod hyperv;
pub mod insn_decode;
pub mod io;
pub mod kernel_region;
pub mod locking;
pub mod mm;
pub mod platform;
pub mod protocols;
pub mod requests;
pub mod serial;
pub mod sev;
pub mod svsm_paging;
pub mod syscall;
pub mod task;
pub mod tdx;
pub mod types;
pub mod utils;
#[cfg(feature = "virtio-drivers")]
pub mod virtio;
pub mod vmm;
#[cfg(feature = "vsock")]
pub mod vsock;
#[cfg(all(feature = "vtpm", not(test)))]
pub mod vtpm;
#[test]
fn test_nop() {}
// When running tests inside the SVSM:
// Build the kernel entrypoint.
#[cfg(all(test, test_in_svsm))]
#[path = "svsm.rs"]
pub mod svsm_bin;
// The kernel expects to access this crate as svsm, so reexport.
#[cfg(all(test, test_in_svsm))]
extern crate self as svsm;
// Include a module containing the test runner.
#[cfg(all(test, test_in_svsm))]
pub mod testing;
// Utilities for test configurations.
#[cfg(test)]
pub mod testutils;