Skip to content

fix(servtd_ext): remove broken init_attr == curr_attr check#857

Open
sgrams wants to merge 1 commit into
intel:mainfrom
sgrams:fix/remove_init_attr_curr_attr
Open

fix(servtd_ext): remove broken init_attr == curr_attr check#857
sgrams wants to merge 1 commit into
intel:mainfrom
sgrams:fix/remove_init_attr_curr_attr

Conversation

@sgrams
Copy link
Copy Markdown
Contributor

@sgrams sgrams commented May 27, 2026

The verify_servtd_attr and read_servtd_ext functions compared CURR_SERVTD_ATTR against INIT_ATTR read from the target TD. This check is invalid because INIT_ATTR is only populated when the rebind feature is supported, while the initial binding does not set it.

Remove the redundant INIT_ATTR comparison and keep only the hardcoded EXPECTED_SERVTD_ATTR verification which ensures the VMM wrote the correct value.

Closes #845

The verify_servtd_attr and read_servtd_ext functions compared
CURR_SERVTD_ATTR against INIT_ATTR read from the target TD. This check
is invalid because INIT_ATTR is only populated when the rebind feature
is supported, while the initial binding does not set it.

Remove the redundant INIT_ATTR comparison and keep only the hardcoded
EXPECTED_SERVTD_ATTR verification which ensures the VMM wrote the
correct value.

Signed-off-by: Stanislaw Grams <stanislaw.grams@intel.com>
@sgrams sgrams requested a review from jyao1 as a code owner May 27, 2026 13:02
@jyao1
Copy link
Copy Markdown
Contributor

jyao1 commented May 29, 2026

@haitaohuang , could you please take a look?

@haitaohuang
Copy link
Copy Markdown
Contributor

LGTM, thanks

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.

Compare init_attr==curr_attr not needed?

3 participants