Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Improve test coverage, remove asm feature, alignment fixes/precautions #74

Merged
merged 11 commits into from
Jan 28, 2022

Conversation

rvolosatovs
Copy link
Contributor

@rvolosatovs rvolosatovs commented Jan 27, 2022

Closes #44
Refs enarx/enarx#1730

@rvolosatovs rvolosatovs added the enhancement New feature or request label Jan 27, 2022
@rvolosatovs rvolosatovs added this to the 0.2.0 milestone Jan 27, 2022
@enarxbot enarxbot added debt Issues to deal with later discussion This requires discussion before action can be taken labels Jan 27, 2022
@rvolosatovs rvolosatovs changed the title v2/tests: Test Execute::syscall method Improve test coverage, remove asm feature and a few usability improvements Jan 27, 2022
@rvolosatovs rvolosatovs removed the discussion This requires discussion before action can be taken label Jan 27, 2022
@rvolosatovs rvolosatovs marked this pull request as ready for review January 27, 2022 17:49
@rvolosatovs rvolosatovs changed the title Improve test coverage, remove asm feature and a few usability improvements Improve test coverage, remove asm feature, alignment fixes/precautions Jan 27, 2022
This improves usability.

Signed-off-by: Roman Volosatovs <[email protected]>
After stabilization, `asm` feature was only necessary to enable
test execution with `miri`, therefore `asm` == `not(miri)`.

Signed-off-by: Roman Volosatovs <[email protected]>
Mainly to add context to each test iteration run for simpler debugging,
although we should use this to improve parallelism of the tests in
future.

Signed-off-by: Roman Volosatovs <[email protected]>
Not necessary anymore, since there are no more features defined on the
crate

Signed-off-by: Roman Volosatovs <[email protected]>
Otherwise, miri complains about UB

Signed-off-by: Roman Volosatovs <[email protected]>
This improves usability of the method

Signed-off-by: Roman Volosatovs <[email protected]>
We have no means to determine the actual alignment of optval if we
receive the call via opaque `syscall` method on the guest side and
there is no way to determine it on the host side.
Align it to `align_of::<usize>()` as a precaution, which is probably the
best we can do here.

Signed-off-by: Roman Volosatovs <[email protected]>
@enarxbot enarxbot merged commit 97eb0e7 into enarx-archive:main Jan 28, 2022
@rvolosatovs rvolosatovs deleted the fix/various branch February 3, 2022 14:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debt Issues to deal with later enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove asm feature
6 participants