Commit Graph

45 Commits

Author SHA1 Message Date
f793259512 Avoiding busy loop in sending packet and optimize device caps 2024-09-30 15:03:58 +08:00
51334c4a36 Clean up smoltcp dependencies 2024-09-26 15:22:16 +08:00
2bda8d17c4 Rename some misleading method names 2024-09-17 17:46:56 +08:00
cefeea7b50 Revise IoMem::resize into IoMem::slice 2024-09-17 17:46:56 +08:00
c8ba695c85 Implement VmIoOnce for IoMem 2024-09-17 17:46:56 +08:00
86f09eef75 Fix all spelling mistakes in history by typos tool 2024-08-27 12:19:48 +08:00
bb4751741a Bump smoltcp to newest git version 2024-08-22 22:58:36 +08:00
c44447d54b Refactor the API of spinlocks 2024-08-18 21:06:40 +08:00
b1ea422efa Fix accesses to VirtIO queue DMA 2024-08-06 11:34:15 +08:00
870d542f60 Remove the error of BlkFeatures::MQ to support multi-processor startup
Co-authored-by: Chuandong Li <lichuand@pku.edu.cn>
2024-07-30 10:24:09 +08:00
ff525112d0 Revise the BlockDevice trait 2024-07-29 13:54:13 +08:00
f86583dbce Make essential changes for publishing OSTD 2024-07-18 18:18:05 +08:00
3d2a0c33af Clean up the virtio console IRQ handler a bit 2024-07-14 16:43:23 +08:00
a465ec1346 Work around a QEMU bug in virtio console pasting 2024-07-14 16:43:23 +08:00
d43fbd88ba Add documentation to bus 2024-07-09 19:42:15 +08:00
59350a8578 Rename aster-frame to ostd 2024-06-27 15:45:49 +08:00
9f67fcdc58 Reuse Rxbuffer and update qemu_args.sh for vsock 2024-06-11 17:51:36 +08:00
646406115e Optimize vsock code structure 2024-06-11 17:51:36 +08:00
60dd17fdd3 Support calling from inside via vsock 2024-06-11 17:51:36 +08:00
48f69c25a9 Support nonblocking option 2024-06-11 17:51:36 +08:00
ad140cec3c Implement vsock socket layer 2024-06-11 17:51:36 +08:00
83a7937334 Make vsock device optional 2024-06-11 17:51:36 +08:00
be45f0ee72 Fix format and clippy errors 2024-06-11 17:51:36 +08:00
52f808e315 Implement vsock driver 2024-06-11 17:51:36 +08:00
c6aa9f9ee8 Limit the number of segments in single bio request 2024-06-05 16:13:59 +08:00
7095b37e7e Refactor the source structure in aster_frame::mm 2024-06-03 22:16:02 +08:00
14e1b1a9fc Rename various concepts related to memory management 2024-06-03 22:16:02 +08:00
c02eacd50c Use deny(unsafe_code) instead of forbid(unsafe_code) 2024-05-31 16:05:58 +08:00
d1990869ae Make ID allocator a separate crate and use it in the frame 2024-05-09 14:35:12 +08:00
cd3faa8123 Inherit HasDaddr for reference type 2024-04-29 20:33:57 +08:00
a482c87696 Remove add_buf from VirtQueue 2024-04-29 20:33:57 +08:00
2256f6ae8a Extend Safeptr to support DmaStream 2024-04-29 20:33:57 +08:00
345ab8f838 Add write_vals for VmIo 2024-04-29 20:33:57 +08:00
abb377b695 Replace SpinLock with RwLock in driver callbacks 2024-04-29 20:33:57 +08:00
cd1575bc6d Refactor virtio drivers with DMA APIs 2024-04-29 20:33:57 +08:00
c875201c3f Fix deadlocks that may arise after converting virtio-blk to async
The IRQ part of the driver must NOT share a SpinLock with
the normal part of the driver unless the SpinLock is acquired
with IRQ disabled in the task context.
2024-04-26 14:36:46 +08:00
349d7baa24 Fix the algorithm error for recycling descriptors in VirtQueue 2024-04-26 14:36:46 +08:00
b7131e721c Modify the virtio-blk to async 2024-04-26 14:36:46 +08:00
dac41e9a2f Support T:?Sized as type parameter for Mutex, SpinLock, RwLock, and RwMutex 2024-04-17 08:51:59 +08:00
c3c6b0c19d Use Dma APIs for virtio-block driver 2024-04-11 15:22:18 +08:00
d8a841f88a Add DmaBuf for DMA-capable memory areas 2024-04-11 15:22:18 +08:00
650c7dfbad Add exFAT file system 2024-03-19 16:26:55 +08:00
52f07458f7 Understanding memory space and move higher the stack 2024-03-19 16:19:54 +08:00
b49e11a25e Fix all doc warnings 2024-03-17 19:12:33 +08:00
e3c227ae06 Refactor project structure 2024-02-28 16:30:48 +08:00