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

Commits on Sep 17, 2024

  1. libsgxstep: support x2apic mode

    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
    jovanbulck committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    513c622 View commit details
    Browse the repository at this point in the history
  2. selftest: support x2apic and tsc_deadline MSRs

    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
    jovanbulck committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    26518e8 View commit details
    Browse the repository at this point in the history
  3. app: fix linker warnings

    jovanbulck committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    3fc7b46 View commit details
    Browse the repository at this point in the history
  4. app/{bench,memcmp}: flush PTE to improve single-stepping

    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 committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    20ee407 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4884538 View commit details
    Browse the repository at this point in the history