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

Add x2APIC support #72

Open
jovanbulck opened this issue Feb 5, 2024 · 1 comment
Open

Add x2APIC support #72

jovanbulck opened this issue Feb 5, 2024 · 1 comment
Labels

Comments

@jovanbulck
Copy link
Owner

Nowadays SGX-Step requires nox2apic to operate the APIC timer in memory-mapped I/O mode. It may be useful to also have X2APIC support in SGX-Step.

That would require manipulating MSRs instead of MMIO. This is currently not neatly supported in libsgxstep, but if needed one can implement this manually w call gates, eg as follows:

https://github.com/jovanbulck/sgx-step/blob/master/app/apic/irq_entry.S#L44

@jovanbulck
Copy link
Owner Author

https://lkml.org/lkml/2022/8/30/1520

On platforms with the IA32_XAPIC_DISABLE_STATUS MSR, if SGX or TDX are
enabled the LEGACY_XAPIC_DISABLED will be set by the BIOS. If
legacy APIC is required, then it SGX and TDX need to be disabled in the
BIOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant