mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
src: Add compile time check for SNP and TDX
We need to make sure that SEV-SNP and TDX are not enabled at the same time. As these two features belong to mutually exclusive hardware vendors. So, we should make sure that these two features are not enabled at the same. Thus, a compile time check for it. Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
parent
51548471fd
commit
1b9ce69afa
@ -662,6 +662,9 @@ fn start_vmm(toplevel: TopLevel) -> Result<Option<String>, Error> {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
#[cfg(all(feature = "tdx", feature = "sev_snp"))]
|
||||
compile_error!("Feature 'tdx' and 'sev_snp' are mutually exclusive.");
|
||||
|
||||
#[cfg(feature = "dhat-heap")]
|
||||
let _profiler = dhat::Profiler::new_heap();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user