Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keystone: Run Enclave functionality #271

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

FredKhayat
Copy link
Collaborator

No description provided.

@FredKhayat FredKhayat self-assigned this Nov 22, 2024
@FredKhayat FredKhayat force-pushed the fkhayat/keystone-run-enclave branch 2 times, most recently from 75c6a76 to 3c73e64 Compare November 22, 2024 20:49
Copy link
Owner

@CharlyCst CharlyCst left a comment

Choose a reason for hiding this comment

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

The code looks good to me :)

It seems there is a timeout issue with the CI with one of the keystone test, do you have the same issue locally?

@CharlyCst
Copy link
Owner

Same issue it seems, the tests do not terminate:

Boot HART MEDELEG         : 0x000000000000b109
[Info  | miralis::virt] > Hello from test keystone payload
[Info  | miralis::virt] > Enclave created successfully
[Info  | miralis::virt] > Illegal argument test passed
Error: The operation was canceled.

The cancelation is the CI timeout. In the test payload are you exiting properly? What is happening when you run the tests in local?

@FredKhayat
Copy link
Collaborator Author

Same issue it seems, the tests do not terminate:

Boot HART MEDELEG         : 0x000000000000b109
[Info  | miralis::virt] > Hello from test keystone payload
[Info  | miralis::virt] > Enclave created successfully
[Info  | miralis::virt] > Illegal argument test passed
Error: The operation was canceled.

The cancelation is the CI timeout. In the test payload are you exiting properly? What is happening when you run the tests in local?

When I run the test in local, it terminates successfully, but on the CI, it seems to get stuck when jumping into the enclave. Do you have an idea of what might be the problem?

@CharlyCst
Copy link
Owner

Hmmm in general the QEMU features might be different, which version are you using? The CI is using 6.2.0 if that didn't change recently.
Do you need to pass some special flags?

@FredKhayat
Copy link
Collaborator Author

FredKhayat commented Nov 26, 2024

I am using version 7.2.13 and I am not passing any special flags, I will try downgrading my QEMU version to see if I can replicate the bug locally

Edit: The QEMU version seems to cause the issue :)

@CharlyCst
Copy link
Owner

I see, can you check with GDB where the system is stuck? Is it inside of Miralis or somewhere else? And if in Miralis, do you know where?

We didn't have the issue before, so something must have changed ^^

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