Jianfeng Jiang
bf13673b97
Replace all usage of `from_bytes` with `from_first_bytes`
2026-02-08 20:32:24 -08:00
jiangjianfeng
4a80f0e5eb
Replace Pod with zerocopy-backed Pod
2026-02-08 20:32:24 -08:00
Tao Su
1442060c2d
Introduce `DmaStream::alloc` to reduce memory copy in TDX
2026-01-07 22:38:50 -08:00
jiangjianfeng
01cac4268e
Manage dependencies at workspace level
2026-01-04 10:51:36 -08:00
jiangjianfeng
34ab63addb
Manage package metadata at workspace level
2026-01-04 10:51:36 -08:00
Zhang Junyang
71681dd947
Refactor DMA APIs
2025-12-31 19:40:11 -08:00
Zhang Junyang
c7a2c81366
Miscellaneous clippy fixes for Rust 2024
2025-12-09 09:23:58 +08:00
Zhang Junyang
69327eee8d
Upgrade to Rust 2024
2025-12-09 09:23:58 +08:00
Zhang Junyang
6d2679852f
Fix `if let` chains that can be collapsed
2025-12-09 09:23:58 +08:00
Zhang Junyang
fc9f47a019
Fix manual implementations of `.is_multiple_of()`
2025-12-09 09:23:58 +08:00
Zhang Junyang
dd410444e5
Format with new `rustfmt`
2025-12-09 09:23:58 +08:00
Qingsong Chen
f026bf38d8
Fix bio request end sector calculation
2025-11-28 11:22:56 +08:00
Qingsong Chen
9e2f5adf9b
Add partition support for block device
2025-11-20 10:43:24 +08:00
Ruihan Li
472edcf795
Clean up unnecessary features
2025-09-24 15:41:07 +08:00
Zhang Junyang
4e2bdc65de
Refactor implicit `Arc` APIs for DMA
2025-09-02 17:53:55 +08:00
Zhang Junyang
a6520880ab
Unify memory object slicing
2025-09-02 17:53:55 +08:00
Zhang Junyang
eb69aa4fb9
Unify address and size APIs for memory objects
2025-09-02 17:53:55 +08:00
Ruihan Li
2700d88bef
Provide efficient `VmIo` with VM readers/writers
2025-08-10 16:40:11 +08:00
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