476 Commits

Author SHA1 Message Date
Zhang Junyang
288942b970 Revise the docs of the slab and remove an unused type 2025-03-14 21:17:47 +08:00
Zhang Junyang
a708a0c046 Inject a scalable slab allocator 2025-03-14 19:55:00 +08:00
Zhang Junyang
fdbe52c2ee Relax AnyFrameMeta's requirement of Debug and 'static 2025-03-14 19:55:00 +08:00
Ruihan Li
ca9ec119e4 Retire page table implementation in EFI stub 2025-03-14 12:29:13 +08:00
Zhang Junyang
eb74d87bed Bump version to 0.12.0 2025-03-14 09:48:59 +08:00
Zhang Junyang
6ed38f5cb0 Mark all physical memory metadata with memory region info 2025-03-14 08:37:37 +08:00
Zhang Junyang
28e7c0ff1f Add a fixed-size cache of frame allocation 2025-03-14 08:37:37 +08:00
Zhang Junyang
5f05963ee5 Inject a scalable buddy system allocator to OSTD
Co-authored-by: Zhe Tang <tangzh@stu.pku.edu.cn>
2025-03-14 08:37:37 +08:00
Zhang Junyang
92bc8cbbf7 Make CPU-local and early ACPI initialization heap-less 2025-03-14 08:37:37 +08:00
Zhang Junyang
7496b24da1 Fix some incorrect memory region initialization 2025-03-14 08:37:37 +08:00
Zhang Junyang
8a6c8c44e9 Refactor MemoryRegionArray::into_non_overlapping 2025-03-14 08:37:37 +08:00
Zhang Junyang
46217ab021 Add range truncate utility 2025-03-14 08:37:37 +08:00
Hsy-Intel
7b5f2c414a Use the latest tdx-guest crate version to fix the TDX init issue 2025-03-13 12:56:46 +08:00
Hsy-Intel
9edee83ef1 Use the latest tdx-guest crate version to fix the MMIO emulation issue 2025-03-10 17:58:35 +08:00
Ruihan Li
9e1c939a3f Remove static_assertions 2025-03-06 16:35:21 +08:00
Ruihan Li
0c028a7d8c Adjust AnyFrameMeta safety conditions 2025-03-06 16:35:21 +08:00
Ruihan Li
0d36375dfa Avoid generic_const_exprs feature 2025-03-06 16:35:21 +08:00
Ruihan Li
b08e655a76 Remove outdated comments 2025-03-06 16:35:21 +08:00
Ruihan Li
2cefa7e5fa Remove lots of unsafe code in acpi/ 2025-03-05 19:34:48 +08:00
Chen Chengjun
c5b8eae77e Make the IRQ state within the trap correct 2025-03-03 15:16:42 +08:00
Yuke Peng
51216daec6 Change MMIO access in IoApic to VolatileRef 2025-03-03 14:25:42 +08:00
Zhang Junyang
a5065d878e Refactor the implementation of RcuOption for clarity 2025-03-03 09:24:49 +08:00
Ruihan Li
8dbee0a65e Revise the safety conditions for OwnerPtr
Co-authored-by: Zhang Junyang <junyang@stu.pku.edu.cn>
2025-03-03 09:24:49 +08:00
Zhang Junyang
eee11fa813 Add a read-copy-update method to RCU and allow nullable RCU 2025-03-03 09:24:49 +08:00
LeslieKid
43985c737a Enable RCU
Co-authored-by: Zhang Junyang <junyang@stu.pku.edu.cn>
2025-03-03 09:24:49 +08:00
Fabing Li
30251964ee Bump version to 0.11.3 2025-02-27 11:55:02 +08:00
Fabing Li
cbb4b4e631 Fix lint errors 2025-02-27 11:36:41 +08:00
Fabing Li
82a2c4cdec Bumped version to 0.11.2 2025-02-27 09:05:03 +08:00
Fabing Li
8aa8d640e6 Upgrade the toolchain to nightly-2025-02-01 2025-02-27 09:05:03 +08:00
Ruihan Li
14dc4752fa Don't panic when allocating the last page 2025-02-26 13:10:52 +08:00
Zejun Zhao
29791ba77e Distribute tasks among all the CPUs 2025-02-21 10:02:46 +08:00
Chen Chengjun
5834f299bc Fix a potential race condition during PTE read/write operations 2025-02-20 22:36:35 +08:00
Yuke Peng
3e47a6fdaa Correct the mask of fault recording register offset in IOMMU 2025-02-20 19:44:12 +08:00
Yuke Peng
fa1cfc03f2 Support handling multiple IOMMU faults 2025-02-20 19:44:12 +08:00
Yuke Peng
baee45a60f Remove confusing statement 2025-02-20 19:43:10 +08:00
Yuke Peng
bad1a7a79a Panic if overriding existing device page tables 2025-02-20 19:43:10 +08:00
Ruihan Li
eca88697dd Avoid some #![expect(lint)] 2025-02-18 19:23:15 +08:00
Ruihan Li
7e58955dd7 Bump volatile to v0.6.1 2025-02-18 19:23:15 +08:00
Zhang Junyang
0b050d5e66 Linked lists of Frames 2025-02-14 13:24:51 +08:00
Zhang Junyang
1bbed2e077 Fix Segment::from_unused which lacks a panic 2025-02-14 13:24:51 +08:00
Zhang Junyang
b59cd9cea2 Use 64-bit reference counts for frames and fix meta layouts 2025-02-14 13:24:51 +08:00
Zhang Junyang
44d54f4b23 Implement UniqueFrame and Frame::from_in_use 2025-02-14 13:24:51 +08:00
Hsy-Intel
b007e334b8 Fix the #VE irq issue causing TDX CI failure 2025-02-14 10:19:44 +08:00
jiangjianfeng
55713b88c4 Remove unused dependencies 2025-02-10 10:36:56 +08:00
Ruihan Li
95bbc7f367 Enforce #[expect(lint)] 2025-02-08 15:10:04 +08:00
Ruihan Li
0dca168717 Use #[expect(lint)], not #[allow(lint)] 2025-02-08 15:10:04 +08:00
Ruihan Li
b415538097 Remove useless #[allow(lint)] 2025-02-08 15:10:04 +08:00
Ruihan Li
2cf4aebe7a Use FnOnce() + Send as task func 2025-01-23 09:57:10 +08:00
Ruihan Li
fb8f493b43 Implement RwArc 2025-01-09 10:58:16 +08:00
Ruihan Li
16862a2024 Use mutable pointer for kernel heap
Co-authored-by: Chen Chengjun <chenchengjun.ccj@antgroup.com>
2025-01-02 13:21:47 +08:00