Skip to content

feat(tdx): restrict KVM features to a safe subset for TDX guests#409

Merged
Lencerf merged 1 commit intogoogle:mainfrom
Lencerf:feat/tdx/kvm-features
Mar 1, 2026
Merged

feat(tdx): restrict KVM features to a safe subset for TDX guests#409
Lencerf merged 1 commit intogoogle:mainfrom
Lencerf:feat/tdx/kvm-features

Conversation

@Lencerf
Copy link
Collaborator

@Lencerf Lencerf commented Mar 1, 2026

Restrict the KVM CPUID features exposed to TDX guests to a known-safe subset. This prevents the guest from attempting to use unsupported paravirtualization features such as kvmclock.

@Lencerf Lencerf force-pushed the feat/tdx/kvm-features branch 2 times, most recently from 3dc2223 to 327f82b Compare March 1, 2026 07:04
Restrict the KVM CPUID features exposed to TDX guests to a known-safe
subset. This prevents the guest from attempting to use unsupported
paravirtualization features such as kvmclock.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
@Lencerf Lencerf force-pushed the feat/tdx/kvm-features branch from 327f82b to 268e5b3 Compare March 1, 2026 07:09
@coveralls
Copy link

Pull Request Test Coverage Report for Build 22538266075

Details

  • 0 of 18 (0.0%) changed or added relevant lines in 3 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 26.758%

Changes Missing Coverage Covered Lines Changed/Added Lines %
alioth/src/board/board_x86_64/board_x86_64.rs 0 1 0.0%
alioth/src/hv/kvm/kvm.rs 0 2 0.0%
alioth/src/hv/kvm/kvm_x86_64/kvm_x86_64.rs 0 15 0.0%
Files with Coverage Reduction New Missed Lines %
alioth/src/hv/kvm/kvm.rs 1 0.0%
Totals Coverage Status
Change from base Build 22341061229: -0.01%
Covered Lines: 3801
Relevant Lines: 14693

💛 - Coveralls

@Lencerf Lencerf merged commit 268e5b3 into google:main Mar 1, 2026
5 checks passed
@Lencerf Lencerf deleted the feat/tdx/kvm-features branch March 1, 2026 07:21
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