Skip to content

revert: remove SERVTD_ATTR vs INIT_ATTR check#189

Merged
haitaohuang merged 1 commit into
microsoft:mainfrom
haitaohuang:upstream/pr6-servtd-attr-revert
May 28, 2026
Merged

revert: remove SERVTD_ATTR vs INIT_ATTR check#189
haitaohuang merged 1 commit into
microsoft:mainfrom
haitaohuang:upstream/pr6-servtd-attr-revert

Conversation

@haitaohuang
Copy link
Copy Markdown
Collaborator

Revert the cur_servtd_attr == init_attr comparison (intel/MigTD PR intel#832). After rebind, CURR_SERVTD_ATTR can legitimately differ from INIT_ATTR. The hardcoded check (cur == 0x0) remains sufficient.

Revert the cur_servtd_attr == init_attr comparison (intel/MigTD
PR intel#832). After rebind, CURR_SERVTD_ATTR can legitimately differ
from INIT_ATTR. The hardcoded check (cur == 0x0) remains sufficient.

Signed-off-by: Haitao Huang <haitaohuang@microsoft.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reverts a recently added validation that required CURR_SERVTD_ATTR to match INIT_ATTR, based on the observation that after rebind the current Service TD attributes can legitimately differ from the init-time attributes. The remaining validation checks CURR_SERVTD_ATTR only against the hardcoded expected value (currently EXPECTED_SERVTD_ATTR = 0) per the referenced GHCI 1.5 requirement.

Changes:

  • Removed CURR_SERVTD_ATTR == INIT_ATTR validation in read_servtd_ext.
  • Removed the TDCS_FIELD_SERVTD_INIT_ATTR read/compare from verify_servtd_attr, leaving only the hardcoded attribute check.
  • Simplified related log messages and doc comments to reflect the single hardcoded check.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@haitaohuang haitaohuang merged commit 7dd198a into microsoft:main May 28, 2026
62 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.

2 participants