Skip to content

Conversation

berrange
Copy link

@berrange berrange commented Oct 9, 2024

The default behaviour for SGX support in upstream Linux is to have /dev/sgx_provision & /dev/sgx_enclave device nodes[1], rather than /dev/sgx/provision & /dev/sgx/enclave.

The code should prefer opening the current default device nodes first, with the other paths as the fallback, so the common case will be an immediate success.

[1] https://github.com/torvalds/linux/blob/master/arch/x86/kernel/cpu/sgx/main.c

The default behaviour for SGX support in upstream Linux is to have
/dev/sgx_provision & /dev/sgx_enclave device nodes[1], rather than
/dev/sgx/provision & /dev/sgx/enclave.

The code should prefer opening the current default device nodes first,
with the other paths as the fallback, so the common case will be an
immediate success.

[1] https://github.com/torvalds/linux/blob/master/arch/x86/kernel/cpu/sgx/main.c
Signed-off-by: Daniel P. Berrangé <[email protected]>
Copy link
Contributor

@haitaohuang haitaohuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants