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

Add support for arm cca #211

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MatiasVara
Copy link
Collaborator

@MatiasVara MatiasVara commented Jul 29, 2024

This PR aims at adding support to build realm guests. First commit adds support for create_guest_memfd() and set_user_memory_region2(). To do this, the memory_init() is modified by adding a boolean parameter. This is required when building a confidential guest for arm cca and probably also required by other cases.
The second commit imports the virtee/cca crate and adds the steps to build a cca guest. The following items should be completed before merge the PR:

  • use populate() only for kernel and initialize() for non-kernel area
  • handle the case in which the guest switch from shared -> private
  • correctly calculate max_ipa

This has been testing using the v7 series for Linux as a guest and v5 series for KVM on FVP model.

Feedback is welcome.

@MatiasVara MatiasVara changed the title Enable creating guest memory regions with create_guest_memfd() and set_user_memory_region2() Add support for arm cca Aug 26, 2024
@MatiasVara MatiasVara force-pushed the use-guest-memfd branch 2 times, most recently from d5952be to d4362d6 Compare September 4, 2024 12:10
@MatiasVara MatiasVara force-pushed the use-guest-memfd branch 3 times, most recently from cae99a3 to 4a0e61b Compare September 10, 2024 11:40
@MatiasVara MatiasVara force-pushed the use-guest-memfd branch 3 times, most recently from 5089b4f to e7e2a90 Compare September 13, 2024 17:30
@MatiasVara MatiasVara force-pushed the use-guest-memfd branch 3 times, most recently from dae13da to 6cebf95 Compare October 1, 2024 10:44
@MatiasVara MatiasVara force-pushed the use-guest-memfd branch 2 times, most recently from 18e9a7d to edb2f4a Compare December 19, 2024 13:58
@MatiasVara MatiasVara marked this pull request as ready for review December 19, 2024 15:05
Enable to build confidential guests using ARM CCA (Confidential
Computing Architecture). This work relies on v7 series for Linux and v5
series for KVM. This has been tested only on the corresponding FVP model
simulator. For testing, you require specific kvm-ioctls and kvm-bindings
crates.

Signed-off-by: Matias Ezequiel Vara Larsen <[email protected]>
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.

1 participant