Commit Graph

197 Commits

Author SHA1 Message Date
Fabing Li c335873d12 Enable kernel mode unit tests in kernel threads 2024-04-22 13:57:22 +08:00
Ruihan Li 4851204059 Implement a safe and race-free `Waiter` 2024-04-17 11:07:07 +08:00
Fabing Li dac41e9a2f Support T:?Sized as type parameter for Mutex, SpinLock, RwLock, and RwMutex 2024-04-17 08:51:59 +08:00
LeslieKid e8a991048f Fix typos in comments 2024-04-12 13:28:08 +08:00
LI Qing c3c6b0c19d Use Dma APIs for virtio-block driver 2024-04-11 15:22:18 +08:00
Jianfeng Jiang d8a841f88a Add DmaBuf for DMA-capable memory areas 2024-04-11 15:22:18 +08:00
Zhang Junyang e3cb4d25e3 Fix the kernel stack alignment 2024-04-09 16:59:21 +08:00
Chen Chengjun 33c8727a13 Introduce XArray and refactor the COW mechanism of Vmo 2024-04-08 18:54:46 +08:00
Chen Chengjun 233e1fac98 Add more getter methods for VmSpace 2024-04-08 18:54:46 +08:00
Ruihan Li acf956fa03 Fix the kernel page fault handler 2024-04-08 17:02:38 +08:00
Ruihan Li 849c6e3259 Introduce `PHYS_MEM_VADDR_RANGE` 2024-04-08 17:02:38 +08:00
nishirong 02e4cdc80e Fix kernel stack's underflowing initial rsp 2024-04-07 18:05:36 +08:00
Zhang Junyang 4dd707488d Fix a code format error in the trap handler 2024-04-03 15:19:08 +08:00
Yuke Peng e7e613db4e Implement kernel page fault handler 2024-04-03 13:34:20 +08:00
Ruihan Li 198363c2d3 Speed up stack unwinding 2024-04-03 08:17:58 +08:00
fgh1999 54109e7e9e Remove IRQ guard in `preempt()`
Fix #478.
Kernel preemption is not taken into account currently.
2024-04-02 09:03:59 +08:00
Jianfeng Jiang 8f51259a10 Remove unused fields from waiter 2024-03-29 15:04:29 +08:00
Jianfeng Jiang d39036579b Downgrade intrusive-collections to 0.9.5 2024-03-27 12:03:53 +08:00
Fabing Li b450eef166 Add potential integer overflow check among Framework APIs 2024-03-25 16:55:54 +08:00
Zhang Junyang 0b617dd76c Allow booting without initramfs 2024-03-23 09:12:38 +08:00
Jianfeng Jiang 5941d3e6eb Fix format errors 2024-03-22 15:01:18 +08:00
Zhang Junyang 52f07458f7 Understanding memory space and move higher the stack 2024-03-19 16:19:54 +08:00
Zhang Junyang b49e11a25e Fix all doc warnings 2024-03-17 19:12:33 +08:00
Jianfeng Jiang 3f402d2d88 Add syscall alarm 2024-03-14 17:26:23 +08:00
Hsy-Intel f7a9ed8739 Refactor TSC Frequency Determination Method 2024-03-13 11:25:08 +08:00
Hsy-Intel 37c3a7a48c Handle TDX MMIO and DMA direct 2024-03-13 11:25:08 +08:00
Yuke Peng 461c872c43 Implement read/write functions for IoBar 2024-03-08 11:46:49 +08:00
LI Qing e0d92b5203 Add support for converting from `VmFrame` to `VmSegment` 2024-03-07 10:56:20 +08:00
Jianfeng Jiang a51b3c7076 Format OSDK documentation 2024-03-01 13:41:49 +08:00
Zhang Junyang f415585dff Fix workspace clippy usage 2024-02-28 16:30:48 +08:00
Zhang Junyang 7eac2772d0 Gone with x86_64-custom 2024-02-28 16:30:48 +08:00
Zhang Junyang e3c227ae06 Refactor project structure 2024-02-28 16:30:48 +08:00
Zhang Junyang bd878dd1c9 Update dev image for OSDK and bump version to 0.4.0 2024-02-28 16:30:48 +08:00
Zhang Junyang 3494bc45af Apply the new format policy 2024-02-28 16:30:48 +08:00
Zhang Junyang 60e996ea2f Use cargo install for bzImage setup building 2024-02-28 16:30:48 +08:00
Zhang Junyang f97d0f1260 Implement OSDK functionalities and opt-in OSDK for asterinas 2024-02-28 16:30:48 +08:00
Chen Chengjun cfcef6965a Adjust the format of imports in Asterinas 2024-02-26 10:03:45 +08:00
Jianfeng Jiang 22c2cebdec Add `in_interrupt` and refactor line discipline 2024-02-23 15:45:44 +08:00
Yuke Peng 748a92d278 Refactor timer in framework 2024-02-06 21:11:40 +08:00
Yuke Peng 8d6915d0e6 Fix typo 2024-02-06 21:11:40 +08:00
LI Qing 12d338dd9b Replace `VmFrame::zero` with `VmWriter::fill` 2024-02-02 16:59:34 +08:00
Jianfeng Jiang a6ff38bf2b Add license for tdx-guest 2024-01-18 08:22:58 +08:00
Jianfeng Jiang 0920a084e4 License Makefile, shell scripts, assembly source code, Dockerfile 2024-01-18 08:22:58 +08:00
Jianfeng Jiang faaa4438d6 License rust and c source files 2024-01-18 08:22:58 +08:00
Ruihan Li 5fb8a9f7e5 Clean up `waiter` correctly when the timer expires 2024-01-15 13:59:19 +08:00
Ruihan Li 2fe84663ab Remove unused `is_woken_up` method 2024-01-15 13:59:19 +08:00
Ruihan Li 98bb9c5256 Fix a race condition in `Waiter` 2024-01-15 13:59:19 +08:00
Zhang Junyang 11ff35d34e Style improvements on the boot code 2024-01-02 07:21:36 +08:00
Zhang Junyang 501894652f Refactor the crate linux-boot-params 2024-01-02 07:21:36 +08:00
Zhang Junyang 327e991477 Rename boot-wrapper to bzimage-setup 2024-01-02 07:21:36 +08:00