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

internal/cloud/gcp/compute: Add TDX_CAPABLE guest OS feature #4587

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

bgartzi
Copy link
Contributor

@bgartzi bgartzi commented Jan 31, 2025

Latest RHEL images (from 9.6 on) should fully support running as TDX guests, as well as latest CentOS images.

See: https://issues.redhat.com/browse/COS-3111
See: coreos/coreos-assembler#4006
See: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/5979

This pull request includes:

  • adequate testing for the new functionality or fixed issue
  • adequate documentation informing people about the change such as
    • submit a PR for the READMEs listed here
    • submit a PR for the osbuild.org website repository if this PR changed any behavior not covered by the automatically updated READMEs

I couldn't find anything relevant to be changed to address the points above.

@bgartzi
Copy link
Contributor Author

bgartzi commented Feb 13, 2025

Hi @thozza, @ondrejbudai, based on other similar PRs I think you could provide some feedback about this. Would any of you mind having a look?
Thanks! :)

Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

Thank you!

I have one tiny suggestion. In addition, I'd like to ask what about the support in c10s? Should the capability be added there as well?

@thozza thozza requested review from a team, mvo5, achilleas-k and thozza and removed request for a team February 13, 2025 11:42
@bgartzi bgartzi requested a review from a team as a code owner February 13, 2025 15:55
@bgartzi
Copy link
Contributor Author

bgartzi commented Feb 13, 2025

Thanks @thozza!

In addition, I'd like to ask what about the support in c10s? Should the capability be added there as well?

I would say so, but I need to double confirm.

Copy link
Member

@thozza thozza left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@bgartzi
Copy link
Contributor Author

bgartzi commented Feb 24, 2025

Hi @thozza!

I asked the centos-devel mailing list whether centos-stream 10 images should be marked as TDX_CAPABLE or not. However, I haven't received any reply.

However, there are many reasons that make me think we should keep this going:

  • TDX guest enablement patches are included in the centos stream 10 kernel, if I understood correctly.
  • centos stream 9 is already marked as TDX_CAPABLE.
  • Both RHEL 9 (from 9.6 on) and 10 are marked as TDX_CAPABLE.
  • I created a custom centos stream 10 image in GCP marked as TDX_CAPABLE. I booted a TDX confidential computing machine with such guest. It booted correctly and traces indicated that TDX was enabled successfully.

@thozza
Copy link
Member

thozza commented Feb 24, 2025

Thanks @bgartzi .

Would you mind extending this PR or submitting a new one?

@bgartzi
Copy link
Contributor Author

bgartzi commented Feb 24, 2025

Sorry @thozza, I might be missing something. Doesn't the actual patch already imply that c10s images will carry TDX_CAPABLE? It currently inherits the guest OS features from rhel 10, which at the same time inherits them from RHEL-9's, right?

@thozza
Copy link
Member

thozza commented Feb 26, 2025

Sorry @thozza, I might be missing something. Doesn't the actual patch already imply that c10s images will carry TDX_CAPABLE? It currently inherits the guest OS features from rhel 10, which at the same time inherits them from RHEL-9's, right?

Sorry, I didn't check the complete code, only the PR diff chunks. You are right.

@bgartzi
Copy link
Contributor Author

bgartzi commented Feb 26, 2025

Thanks for confirming @thozza!

Copy link
Member

@ondrejbudai ondrejbudai left a comment

Choose a reason for hiding this comment

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

Shouldn't then we have a case for RHEL-9.6 as well, since it's mentioned in the comment?

@thozza
Copy link
Member

thozza commented Feb 26, 2025

Shouldn't then we have a case for RHEL-9.6 as well, since it's mentioned in the comment?

No.

RHEL 9.6 and later uses GuestOsFeaturesRHEL9. GuestOsFeaturesRHEL95 is used only up to 9.5, including it, unless there is a different condition.

Copy link
Member

@ondrejbudai ondrejbudai left a comment

Choose a reason for hiding this comment

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

Right, I missed the first line of the diff, thanks, and sorry for my confusion.

@thozza thozza enabled auto-merge (rebase) February 26, 2025 12:17
@thozza thozza merged commit d5a77ff into osbuild:main Feb 27, 2025
47 of 50 checks passed
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