130 Commits

Author SHA1 Message Date
Wang Siyuan
dfd3042276 Add dynamically-allocated CPU-local objects 2025-06-03 23:24:32 +08:00
Zejun Zhao
ffb4097436 Add RISC-V timer support 2025-05-29 19:51:02 +08:00
stuuupidcat
95744692a5 Remove unnecessary #[inline] attributes 2025-05-22 12:19:21 +08:00
Ruihan Li
54bd64269b Rename systree to aster-systree 2025-05-03 18:22:11 +08:00
Ruihan Li
f720c05706 Fail the CI if workspace lints are not enabled 2025-05-03 18:22:11 +08:00
Qingsong Chen
88f08de3af Refactor framebuffer 2025-04-29 19:48:45 +08:00
Fabing Li
63831dc2df Add ktest cases 2025-04-24 20:03:54 +08:00
Fabing Li
79b0866259 Add sysfs implementation 2025-04-24 20:03:54 +08:00
Zejun Zhao
3aa1079ca6 Clarify the usage of ostd::arch 2025-04-18 13:26:16 +08:00
Ruihan Li
d6e40933b8 Move the log lock to a better location 2025-04-16 21:59:24 +08:00
jiangjianfeng
7d24e63216 Move network polling code to bottom half 2025-04-15 14:54:51 +08:00
jiangjianfeng
9804f053f2 Add guard which disables bottom half 2025-04-15 14:54:51 +08:00
Ruihan Li
a1f81df263 Remove ostd/src/mm/offset.rs 2025-04-15 09:15:22 +08:00
Chen Chengjun
a21e895102 Enable RCU to read reference to stored pointers 2025-04-10 14:42:51 +08:00
Cautreoxit
b4a1dc03f3 Delete useless visibility for BARs 2025-03-27 18:44:15 +08:00
Cautreoxit
4fff7cdc22 Add an API for BioRequest to return the number of sectors 2025-03-26 10:38:24 +08:00
jiangjianfeng
0e1c660225 Make VmReader's several methods accept &mut self 2025-03-25 14:25:08 +08:00
Yuke Peng
1f03955f51 Change IoMem directory 2025-03-22 17:38:30 +08:00
Ruihan Li
9e1c939a3f Remove static_assertions 2025-03-06 16:35:21 +08:00
Ruihan Li
0d36375dfa Avoid generic_const_exprs feature 2025-03-06 16:35:21 +08:00
Yuke Peng
96d83e43b4 Make VirtioConsolesPrinter heapless 2025-03-05 20:24:59 +08:00
Zhang Junyang
55ee4bda2c Use RCU for console device callbacks 2025-03-03 09:24:49 +08:00
Fabing Li
cbb4b4e631 Fix lint errors 2025-02-27 11:36:41 +08:00
Qingsong Chen
04be02efb7 Add init_component for mlsdisk 2025-02-11 11:38:43 +08:00
Qingsong Chen
f6e040ec94 Add a basic ktest for mlsdisk 2025-02-11 11:38:43 +08:00
Qingsong Chen
d8dc153be9 Fix deadlock of CurrentTx in mlsdisk 2025-02-11 11:38:43 +08:00
Qingsong Chen
c040df72b3 Rename SwornDisk to MlsDisk 2025-02-11 11:38:43 +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
1c4e88e648 Fix #[allow(dead_code)] in virtio 2025-02-08 15:10:04 +08:00
Ruihan Li
b415538097 Remove useless #[allow(lint)] 2025-02-08 15:10:04 +08:00
Zhang Junyang
397ce9652f Refactor boot modules to make heap allocation explicit 2025-01-02 10:41:51 +08:00
Zhang Junyang
51349a3da1 Heapless memory region initialization 2025-01-02 10:41:51 +08:00
Qingsong Chen
56a137dc56 Add mlsdisk as a component
Co-authored-by: Shaowei Song <songshaowei.ssw@antgroup.com>
2025-01-01 09:19:32 +08:00
Zhang Junyang
983a6af3cc Polish the doc and rename variables in ostd::mm 2024-12-27 12:12:51 +08:00
Zhang Junyang
cdac59beda Implement a new set of physical page APIs 2024-12-27 12:12:51 +08:00
Zhang Junyang
c9a37ccab1 Renaming concepts around pages and frames
This commit renames `Frame` -> `UntypedFrame` and `Page` -> `Frame`.
So do other concepts in the following list:
 - `Segment` -> `UntypedSegment`,
 - `ContPages` -> `Segment`,
 - `DynPage` -> `AnyFrame`,
 - `PageMeta` -> `FrameMeta`,
 - `FrameMeta` -> `UntypedMeta`.

This commit also re-organized the source in the `mm/page` and `mm/frame`
module to accommodate the changes.
2024-12-27 12:12:51 +08:00
jiangjianfeng
9a540d0fb6 Notify virtqueue in a batch manner 2024-12-19 14:49:56 +08:00
Shaowei Song
4cb85f0adb Fix dependency issue between components logger and virtio 2024-12-13 10:36:45 +08:00
Ruihan Li
28edc57dd0 Fix the nested bottom half 2024-12-05 13:42:12 +08:00
Chen Chengjun
0cb2ea562e Inject the logger for Asterinas 2024-12-04 13:24:06 +08:00
Shaowei Song
ecad132ec9 Refactor the block layer by introducing BioSegmentPool 2024-12-02 13:25:20 +08:00
Shaowei Song
d37da228ab Improve flexibility of DmaStreamSlice 2024-12-02 13:25:20 +08:00
Marsman1996
6d3bb5a9d0 Fix compile error caused by updated Step::steps_between in Rust 2024-12-01 18:56:28 +08:00
Qingsong Chen
f762eb8913 Remove the lazy_static dependency 2024-11-28 15:28:30 +08:00
Qingsong Chen
81898362b6 Add virtio legacy interface 2024-11-21 19:10:06 +08:00
jiangjianfeng
495c93c2ad Refactor Rwlock to take type parameter 2024-11-21 15:46:10 +08:00
Jianfeng Jiang
c8c9b9753e Make all network benchmark run with tap backend and vhost on 2024-11-20 20:24:03 +08:00
Cautreoxit
885950c2a4 Add VirtioBlockFeature to cache virtio-blk's features 2024-11-17 15:32:56 +08:00