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

feat: implement x2apic support #86

Merged
merged 5 commits into from
Sep 17, 2024
Merged

feat: implement x2apic support #86

merged 5 commits into from
Sep 17, 2024

Conversation

jovanbulck
Copy link
Owner

Some recent CPUs with LEGACY_XAPIC_DISABLED only support x2apic mode with SGX.
In x2apic mode all APIC configuration needs to go through ring-0 RD/WRMSR
instructions, which is also the only access mode supported for
IA32_TSC_DEADLINE.

Fixes #72

Some recent CPUs with LEGACY_XAPIC_DISABLED only support x2apic mode with SGX.
In x2apic mode all APIC configuration needs to go through ring-0 RD/WRMSR
instructions, which is also the only access mode supported for
IA32_TSC_DEADLINE.

cf issue #72
All selftests should now be compatible with both legacy xapic MMIO and x2apic
MSR addressing modes via libsgxstep support for privileged rdmsr/wrmsr call
gates.

cf issue #72
This further increases the latency of the ucode-assisted page-table walk for
the first instruction following ERESUME and thus the landing space for
SGX-Step's timer interrupt.
@jovanbulck jovanbulck merged commit f527d53 into master Sep 17, 2024
2 checks passed
@jovanbulck jovanbulck deleted the x2apic branch September 19, 2024 10:10
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.

Add x2APIC support
1 participant