Commit Graph

2344 Commits

Author SHA1 Message Date
c56aee92f4 Re-organize some systree-related code 2025-06-09 11:13:48 +08:00
a67bd8cdc9 Add macros to help implementing SysObj trait 2025-06-09 11:13:48 +08:00
1dd1c8c775 Enable read and write operations of the attribute to handle offset 2025-06-09 11:13:48 +08:00
3b1248ba7c Fix some potential bugs of sysfs 2025-06-09 11:13:48 +08:00
01328ee404 Fix panic when mount with invalid file system type 2025-06-06 18:26:24 +08:00
55deb6a68b Avoid incrementing the crate version in publish ostd if the mode is try run 2025-06-06 18:22:09 +08:00
f0957d2f54 Fix clippy warnings in kernel crate 2025-06-06 18:22:09 +08:00
81ba3b645b Execute clippy command in the kernel crate directory 2025-06-06 18:22:09 +08:00
2e3de6218f Add more features for statx syscall 2025-06-06 15:07:20 +08:00
0f234df00a Replace the Unifont download URL 2025-06-06 14:30:11 +08:00
f946f09ee4 Implement netlink uevent socket 2025-06-06 11:33:09 +08:00
d35888c817 Add uevent_err test 2025-06-06 11:33:09 +08:00
38c9ab0615 Add LTP syscall tests 2025-06-04 11:04:30 +08:00
a0af7ae680 Rename SYSCALL_TEST_DIR to SYSCALL_TEST_WORKDIR for clarity 2025-06-04 11:04:30 +08:00
418fbcd405 Switch to a new Docker image 2025-06-04 11:04:30 +08:00
18e457401d Bump Docker image version to 0.15.1-20250603 2025-06-04 10:59:51 +08:00
58e4f45bb1 Add per-CPU counters and track RSS for each Vmar 2025-06-03 23:24:32 +08:00
dfd3042276 Add dynamically-allocated CPU-local objects 2025-06-03 23:24:32 +08:00
f24bc718fa Use IoMem::acquire in the virtio-mmio bus 2025-06-03 21:01:03 +08:00
3790f616fd Rename PageProperty::new to PageProperty::new_user 2025-06-03 18:42:53 +08:00
e669d38d2d Clear User bits of non-leaf PTE in boot pagetable 2025-06-03 18:42:53 +08:00
7f3a332101 Enable the unsafe_op_in_unsafe_fn lint 2025-06-03 15:00:13 +08:00
3f8dbe6990 Add unsafe with trivial cleanups 2025-06-03 15:00:13 +08:00
3bc4424a5b Add unsafe with explained comments 2025-06-03 15:00:13 +08:00
619814e652 Add unsafe with caller-upheld comments 2025-06-03 15:00:13 +08:00
31dbae5330 Add unsafe for acquring I/O memory/port 2025-06-03 15:00:13 +08:00
e1e5f9f575 Remove transmute in Vm{Reader,Writer} 2025-06-03 15:00:13 +08:00
2c21b2a3a8 Use wrapping_add to add userspace pointers 2025-06-03 15:00:13 +08:00
899a1424c0 Tweak RCU visiblity and safety 2025-06-03 15:00:13 +08:00
2b00fe9e45 Mark root_paddr() safe 2025-06-03 15:00:13 +08:00
1ed023f413 Fix the level comparison in dfs_mark_stray_and_unlock 2025-06-02 23:49:15 +08:00
c73892c704 Mark pub(super) for internal methods 2025-06-01 15:06:53 +08:00
14388da548 Remove guard generics from xarray::Cursor 2025-06-01 15:06:53 +08:00
72fb0752ae Allow dyn InAtomicMode as AsAtomicModeGuard 2025-06-01 15:06:53 +08:00
6dc0189e43 Remove unnecssary overflow checks 2025-05-30 16:34:33 +08:00
282a0f216f Clarify safety conditions in tdx_guest.rs 2025-05-30 16:34:33 +08:00
ffb4097436 Add RISC-V timer support 2025-05-29 19:51:02 +08:00
63daf69e17 Fix incorrect types in sys_getcpu 2025-05-29 10:33:02 +08:00
56e9824dd1 Make current_cpu_racy a method of CpuId 2025-05-29 10:33:02 +08:00
758c80c321 Pull code from arch/*/irq.rs to trap/irq.rs 2025-05-25 10:19:17 +08:00
dd9fc81a81 Add some TODOs in IOMMU initialization 2025-05-25 09:54:16 +08:00
d2ff5fc1a9 Check SAGAW before enabling DMA remapping 2025-05-25 09:54:16 +08:00
79b3f68892 Make the RCU lifetime of page tables explicit 2025-05-24 17:42:17 +08:00
ef81100958 Add InAtomicMode: Debug 2025-05-24 17:42:17 +08:00
3472560c55 Make TLB issuing less contended 2025-05-24 17:42:17 +08:00
54fbdcf059 Implement the stray marking in PT to ensure serializability 2025-05-24 17:42:17 +08:00
5b7637eac3 Remove the activation lock and use RCU to protect PT removal 2025-05-24 17:42:17 +08:00
d873e121ff DFS lock protocol for the page table 2025-05-24 17:42:17 +08:00
d4afe3a035 Avoid Rust references of IRT entries 2025-05-23 10:38:57 +08:00
189daa2e09 Fix the return value of read_link for ext2 2025-05-23 10:17:08 +08:00