Commit Graph

187 Commits

Author SHA1 Message Date
Jianfeng Jiang f86583dbce Make essential changes for publishing OSTD 2024-07-18 18:18:05 +08:00
Zhang Junyang 8a9c012249 Check CPUID before enabling AVX512 2024-07-17 10:24:45 +08:00
Ruihan Li 07a0ea07c0 Disable preemption in page table locks 2024-07-16 21:38:09 +08:00
Ruihan Li cc49384e96 Rename `inc_ref` to `inc_ref_count` 2024-07-16 21:38:09 +08:00
Ruihan Li ef1fd645c2 Rename `get_ref_count` to `ref_count` 2024-07-16 21:38:09 +08:00
Ruihan Li e9330eea7d Prefer `ManuallyDrop` than `mem::forget` 2024-07-16 21:38:09 +08:00
Ruihan Li 7966719e6a Wrap mutable data into `UnsafeCell` 2024-07-16 21:38:09 +08:00
Ruihan Li 4f2d537516 Remove the level in `RawPageTableNode` 2024-07-16 21:38:09 +08:00
Shaowei Song 6cfccccab1 Enable AVX-512 flags in XCR0 2024-07-16 21:26:20 +08:00
Hsy-Intel 4292ec2ebb Make intel_tdx feature as default 2024-07-16 21:22:29 +08:00
Zhang Junyang 9e5f3123e1 Log messages to the serial atomically and rename `arch::serial`
Co-authored-by: Chuandong Li <lichuand@pku.edu.cn>
2024-07-09 21:56:03 +08:00
Yuke Peng d43fbd88ba Add documentation to bus 2024-07-09 19:42:15 +08:00
Yuke Peng 0970adb37b Add documentation to x86/device 2024-07-09 19:42:15 +08:00
Zhang Junyang 9cbbcf63a7 Switch the dependency of `unwinding` back to `crates.io` 2024-07-09 09:45:58 +08:00
Shaowei Song 02bf6a9b47 Bump version to 0.6.2 2024-07-08 17:13:16 +08:00
Yuke Peng defb563541 Bump version to 0.6.1 2024-07-08 15:26:29 +08:00
Ruihan Li 28f5480f70 Add notes about the volatile memory copy 2024-07-08 15:03:23 +08:00
Yuke Peng 608eba369c Format logger output 2024-07-04 10:56:55 +08:00
Yuke Peng cf56bce57c Pass kernel command line option to logger 2024-07-04 10:56:55 +08:00
Zhang Junyang 0cf954801d Support sending IPI using APIC
Co-authored-by: Chuandong Li <lichuand@pku.edu.cn>
2024-07-03 17:50:10 +08:00
Zhang Junyang fef8eebadc Reverse the page table unlock order 2024-07-03 17:42:31 +08:00
Zhang Junyang 02912e19cb Add documentations for the page table cursors' validity 2024-07-03 17:42:31 +08:00
Zhang Junyang 0f8d8da372 Refactor code related to CPU local memory
Co-authored-by: Chuandong Li <lichuand@pku.edu.cn>
2024-07-03 17:40:53 +08:00
Qingsong Chen 98619f3482 Init RNG with rdrand directly (without getrandom) 2024-07-03 14:56:33 +08:00
Qingsong Chen 9932ea0797 Remove PDPE's global bit of boot page table 2024-07-03 14:56:33 +08:00
Zhang Junyang ece62cf806 Add missing TLB flushes for coherent DMA mappings 2024-07-02 16:16:54 +08:00
Zhang Junyang 8cd8cf3938 Add missing TLB flushes for the kernel stack guard pages 2024-07-02 16:16:54 +08:00
Ruihan Li 57ecfa2fec Add `#[must_use]` to all guard types 2024-07-02 12:41:52 +08:00
Chen Chengjun b7a3f1a540 Use volatile copy in VmReader/VmWriter 2024-06-28 20:23:24 +08:00
Chen Chengjun cd2b305fa8 Modify the userspace read/write usage location 2024-06-28 15:36:21 +08:00
Chen Chengjun af908c29cf Refactor the read/write operations to userspace 2024-06-28 15:36:21 +08:00
Chen Chengjun 09b6153d29 Refactor VmReader/Writer to support both kernel space and user space 2024-06-28 15:36:21 +08:00
Chen Chengjun 994427c71a Add function memcpy_fallible 2024-06-28 15:36:21 +08:00
Chen Chengjun 5f7cf245ac Enable exception table mechanism 2024-06-28 15:36:21 +08:00
Jianfeng Jiang 3de8a9330a Fix the OSDK CI failure 2024-06-27 15:45:49 +08:00
Jianfeng Jiang fe7251c413 Rename aster_main as ostd::main 2024-06-27 15:45:49 +08:00
Jianfeng Jiang 59350a8578 Rename aster-frame to ostd 2024-06-27 15:45:49 +08:00