831 Commits

Author SHA1 Message Date
Zhang Junyang
d15b4d9115 Allow dynamically borrowed mutex guard 2024-05-09 10:41:21 +08:00
Zhang Junyang
11e4984df2 Allow dynamically borrowed RwLock guards 2024-05-09 10:41:21 +08:00
Fabing Li
c2d09675b3 Rename FileDescripter to FileDesc 2024-05-09 10:23:46 +08:00
Chen Chengjun
0594a73ac9 Improve the efficiency of unmap in VmMappingInner 2024-05-08 16:05:18 +08:00
Ruihan Li
ab87f473c4 Remove pointless error codes in unregister_observer 2024-05-08 15:48:55 +08:00
StanPlatinum
2b67dee1fc Add syscall epoll_pwait 2024-05-06 14:17:58 +08:00
Chen Chengjun
1435dd0896 Add syscall nanosleep 2024-05-06 14:15:24 +08:00
Jianfeng Jiang
cd3faa8123 Inherit HasDaddr for reference type 2024-04-29 20:33:57 +08:00
Jianfeng Jiang
a482c87696 Remove add_buf from VirtQueue 2024-04-29 20:33:57 +08:00
Jianfeng Jiang
2256f6ae8a Extend Safeptr to support DmaStream 2024-04-29 20:33:57 +08:00
Jianfeng Jiang
345ab8f838 Add write_vals for VmIo 2024-04-29 20:33:57 +08:00
Jianfeng Jiang
abb377b695 Replace SpinLock with RwLock in driver callbacks 2024-04-29 20:33:57 +08:00
Jianfeng Jiang
cd1575bc6d Refactor virtio drivers with DMA APIs 2024-04-29 20:33:57 +08:00
Hsy-Intel
5e127b2da0 Remove local tdx-guest crate 2024-04-29 10:13:04 +08:00
Chuandong Li
e77026c30e Fix some performance issue in VmMapping 2024-04-26 17:09:00 +08:00
LI Qing
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
LI Qing
349d7baa24 Fix the algorithm error for recycling descriptors in VirtQueue 2024-04-26 14:36:46 +08:00
LI Qing
b7131e721c Modify the virtio-blk to async 2024-04-26 14:36:46 +08:00
Yingdi Shan
efa75a2f31 Improve the performance of page_cache by using fine-grained lock and allow page discarding 2024-04-26 11:37:55 +08:00
LI Qing
c44b2b35ff Fix the issue about acquiring Mutex after a RwLock in ramfs 2024-04-26 11:31:50 +08:00
Ruihan Li
698e748150 Set socket errors after connecting 2024-04-25 18:40:08 +08:00
Ruihan Li
27c5c27fd0 Implement non-blocking connect 2024-04-25 18:40:08 +08:00
Ruihan Li
9211061181 Add proper IO events for unbound sockets 2024-04-25 18:40:08 +08:00
Ruihan Li
8628543067 Implement (un)register_observer for TCP/UDP 2024-04-25 18:40:08 +08:00
Jianfeng Jiang
29ebf8e60c Support reading argv and envp from init stack 2024-04-25 18:27:08 +08:00
YanWQ-monad
4f575e2028 Fix writev fault when io_vec.len is 0 2024-04-22 15:16:46 +08:00
Jianfeng Jiang
c778e0c07c Remove redundant empty page in init stack 2024-04-22 15:15:15 +08:00
Fabing Li
c335873d12 Enable kernel mode unit tests in kernel threads 2024-04-22 13:57:22 +08:00
Chuandong Li
57cb922253 Increase user stack size 2024-04-22 10:40:46 +08:00
Fabing Li
dac41e9a2f Support T:?Sized as type parameter for Mutex, SpinLock, RwLock, and RwMutex 2024-04-17 08:51:59 +08:00
Ruihan Li
92a9f5616e Fix error codes in bind, listen, and accept 2024-04-12 14:39:54 +08:00
Ruihan Li
346887ace5 Fix error codes in UDP sendto and recvfrom 2024-04-12 14:39:54 +08:00
Ruihan Li
00cfdf86c8 Fix error codes in TCP sendto and recvfrom 2024-04-12 14:39:54 +08:00
Ruihan Li
51080c1925 Fix error codes in get{sock,peer}name 2024-04-12 14:39:54 +08:00
Ruihan Li
8b094454aa Use From<IpEndpoint> for SockAddr (not TryFrom) 2024-04-12 14:39:54 +08:00
LI Qing
c3c6b0c19d Use Dma APIs for virtio-block driver 2024-04-11 15:22:18 +08:00
Jianfeng Jiang
d8a841f88a Add DmaBuf for DMA-capable memory areas 2024-04-11 15:22:18 +08:00
LI Qing
a60a8ad3e1 Support big file for Ext2 2024-04-10 13:44:12 +08:00
Ruihan Li
bd8be26b30 Access the console device table with IRQ disabled 2024-04-10 12:14:28 +08:00
StanPlatinum
e4fd51bc6f sigretrun --> sigreturn 2024-04-09 22:06:57 +08:00
Chen Chengjun
afc4bf7520 Modify the behavior of mapping segment vmo 2024-04-08 18:54:46 +08:00
Chen Chengjun
33c8727a13 Introduce XArray and refactor the COW mechanism of Vmo 2024-04-08 18:54:46 +08:00
Jianfeng Jiang
10690063eb Reimplement reading cstring from user space 2024-04-01 17:31:15 +08:00
Jianfeng Jiang
a18fc9eb25 Write time to user only if addr is not zero 2024-04-01 13:58:18 +08:00
Yingdi Shan
679a8d8d98 Add asynchronous I/O supports for page cache 2024-03-27 17:57:41 +08:00
Fabing Li
30a2553a70 Fix observer missing in socket for mongoose support 2024-03-27 11:06:17 +08:00
Jianfeng Jiang
a2e9b0aaae Make background polling thread sleep 2024-03-25 18:32:11 +08:00
Fabing Li
b450eef166 Add potential integer overflow check among Framework APIs 2024-03-25 16:55:54 +08:00
Zhenchen Wang
ed0752aacc Add syscall chroot
Signed-off-by: Zhenchen Wang <m202372036@hust.edu.cn>

Signed-off-by: Zhenchen Wang <m202372036@hust.edu.cn>
2024-03-25 16:34:35 +08:00
Chen Chengjun
f924eb3694 Adding split functionality to VmMapping for optimizing page permission management 2024-03-23 09:45:29 +08:00