35 Commits

Author SHA1 Message Date
Cautreoxit
4fff7cdc22 Add an API for BioRequest to return the number of sectors 2025-03-26 10:38:24 +08:00
Ruihan Li
9e1c939a3f Remove static_assertions 2025-03-06 16:35:21 +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
b415538097 Remove useless #[allow(lint)] 2025-02-08 15:10:04 +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
Shaowei Song
4cb85f0adb Fix dependency issue between components logger and virtio 2024-12-13 10:36:45 +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
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
Cautreoxit
32572e22d9 Implement flush for virtio-blk 2024-11-17 15:32:56 +08:00
Zhang Junyang
909639fd70 Separate SegmentSlice from Segment 2024-10-09 19:23:46 +08:00
Shaowei Song
dce796cdde Refactor all io APIs of vfs based on VmReader/VmWriter 2024-08-22 22:54:30 +08:00
Shaowei Song
2102107be1 Refactor VmReader&VmWriter as given fallibility marker 2024-08-21 22:24:15 +08:00
Shaowei Song
8dce83605f Add sys_fallocate 2024-08-08 21:10:38 +08:00
Shaowei Song
20a856b07f Revise the naming of all sync/async io APIs 2024-07-30 20:58:07 +08:00
Shaowei Song
ff525112d0 Revise the BlockDevice trait 2024-07-29 13:54:13 +08:00
Shaowei Song
b1cec501d8 [page_cache] Gap within one page should be filled with zeros in shrink case 2024-07-25 21:31:18 +08:00
Jianfeng Jiang
f86583dbce Make essential changes for publishing OSTD 2024-07-18 18:18:05 +08:00
Jianfeng Jiang
59350a8578 Rename aster-frame to ostd 2024-06-27 15:45:49 +08:00
Shaocong Sun
1b22267a87 Add readahead for pagecache 2024-06-26 20:22:20 +08:00
Zhang Junyang
ab1d931cb7 Adjust for Rust unstable feature's stability change 2024-06-21 10:57:08 +08:00
Jianfeng Jiang
33a7da9991 Fix typos in API documentation 2024-06-09 22:57:14 +08:00
LI Qing
c6aa9f9ee8 Limit the number of segments in single bio request 2024-06-05 16:13:59 +08:00
Zhang Junyang
7095b37e7e Refactor the source structure in aster_frame::mm 2024-06-03 22:16:02 +08:00
Zhang Junyang
14e1b1a9fc Rename various concepts related to memory management 2024-06-03 22:16:02 +08:00
Chen Chengjun
c02eacd50c Use deny(unsafe_code) instead of forbid(unsafe_code) 2024-05-31 16:05:58 +08:00
Jianfeng Jiang
cd1575bc6d Refactor virtio drivers with DMA APIs 2024-04-29 20:33:57 +08:00
LI Qing
b7131e721c Modify the virtio-blk to async 2024-04-26 14:36:46 +08:00
Zhang Junyang
52f07458f7 Understanding memory space and move higher the stack 2024-03-19 16:19:54 +08:00
LI Qing
e0d92b5203 Add support for converting from VmFrame to VmSegment 2024-03-07 10:56:20 +08:00
Zhang Junyang
e3c227ae06 Refactor project structure 2024-02-28 16:30:48 +08:00