Skip to content

snp guest vsm: register intercepts #1142

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

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

Conversation

sluck-msft
Copy link
Contributor

Support for VTL 1 to register for write intercepts on certain registers.

Tested:

  • SNP + Guest VSM boots no debugger
  • SNP boots

@sluck-msft sluck-msft requested a review from a team as a code owner April 4, 2025 16:47
@sluck-msft sluck-msft force-pushed the gvsm/cr-intercepts branch from 85ab7fa to af56d64 Compare April 4, 2025 17:18
@sluck-msft sluck-msft force-pushed the gvsm/cr-intercepts branch from 0eead15 to 2c05abc Compare April 8, 2025 18:40
@sluck-msft sluck-msft force-pushed the gvsm/cr-intercepts branch from 9c2582d to fa71c45 Compare April 9, 2025 00:10
smalis-msft
smalis-msft previously approved these changes Apr 9, 2025
// The APIC is software-enabled after reset for
// secure VTLs, to maintain compatibility with released versions of secure
// kernel
let mut lapic = apic_set.add_apic(vp_info, vtl == Vtl::Vtl1);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jstarks any concerns with this part of the change? Our other components also do this; without it, if I remember correctly, I couldn't get the intercept delivered to VTL 1.

hvdef::HV_SYNIC_INTERCEPTION_SINT_INDEX,
&crate::processor::InterceptMessageType::Register { reg, value }
.generate_hv_message(self.vp_index(), vtl, message_state),
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jstarks also wanted to confirm with you that this post_message approach is correct for sending intercepts to VTL 1.

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