Skip to content

Commit

Permalink
Merge pull request #89 from w-woloszyn/freeze
Browse files Browse the repository at this point in the history
Fix build with X2APIC false
  • Loading branch information
jovanbulck authored Sep 30, 2024
2 parents 1483dc8 + 5045bf9 commit 811395c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ below.

| Linux kernel parameter | Motivation |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `nox2apic` | Optionally configure local APIC device in memory-mapped I/O mode (to make use of SGX-Step's precise single-stepping features). Alternatively, you can leave the CPU in x2APIC mode and recent SGX-Step distributions should also be compatible. |
| `nox2apic` | Optionally configure local APIC device in memory-mapped I/O mode (to make use of SGX-Step's precise single-stepping features). If set, make sure to set X2APIC to 0 in libsgxstep/config.h. Alternatively, you can leave the CPU in x2APIC mode and recent SGX-Step distributions should also be compatible. |
| `iomem=relaxed no_timer_check` | Suppress unneeded warning messages in the kernel logs. |
| `nmi_watchdog=0` | Suppress the kernel NMI watchdog. |
| `isolcpus=1` | Affinitize the victim process to an isolated CPU core. |
Expand Down
1 change: 1 addition & 0 deletions libsgxstep/apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ void apic_init(void);

/* read/write functions for XAPIC in MMIO access mode */
#if !X2APIC
extern void* apic_base;
/*
* From Linux kernel source: /arch/x86/include/asm/apic.h
* NOTE: Intel SDM: "any access that touches bytes 4 through 15 of an APIC
Expand Down

0 comments on commit 811395c

Please sign in to comment.