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

Implement hook to pass cpuinfo to LKL with test #798

Merged
merged 3 commits into from
Sep 10, 2020
Merged

Implement hook to pass cpuinfo to LKL with test #798

merged 3 commits into from
Sep 10, 2020

Conversation

AntonioND
Copy link
Contributor

This PR depends on lsds/lkl#7 being merged. It has to be rebased and the gitmodules reference has to be updated.

src/lkl/posix-host.c Outdated Show resolved Hide resolved
tests/basic/print_cpuinfo/print_cpuinfo.c Outdated Show resolved Hide resolved
tests/basic/print_cpuinfo/print_cpuinfo.c Outdated Show resolved Hide resolved
@AntonioND AntonioND changed the title Implement hook to return the number of cores to LKL and test it Implement hook to pass cpuinfo to LKL with test Sep 7, 2020
Copy link
Contributor

@vtikoo vtikoo left a comment

Choose a reason for hiding this comment

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

LGTM

This includes the hooks and tests for /proc/cpuinfo support.
For cpuinfo, the correct hook has been implemented in this commit.
This test makes sure that the number of CPUs is the same number as
ethreads. The environment variable SGXLKL_ETHREADS is set to an
arbitrary value (in the current code, 4) and the same number is passed
as a command line argument to the binary ``cpuinfo``, which verifies
that the number of CPUs in the emulated system matches the number passed
on the command line.
@AntonioND AntonioND merged commit d430700 into lsds:oe_port Sep 10, 2020
@AntonioND AntonioND deleted the an/cpuinfo branch September 10, 2020 15:36
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.

3 participants