-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yjymosheng
committed
Dec 3, 2024
1 parent
6da192a
commit f12f733
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: 2024三阶段总结 | ||
date: 2024-12-03 22:30 | ||
tags: | ||
--- | ||
|
||
# 2024三阶段总结 | ||
|
||
## Unikernel | ||
|
||
>- print_with_color | ||
> | ||
>简单的利用ascll字符实现颜色 | ||
>- support_hashmap | ||
> | ||
>看群内大佬讨论,就引了一个库 | ||
>- alt_alloc | ||
> | ||
> 这个难度不大,因为测例很简单。严格实现后我确实也不知道自己实现的正确与否 | ||
>- shell | ||
> | ||
> 原shell实现了有关rename的,rename我就直接调库了,然后通过创建文件、copy文件内容、删除原文件拼接除了mv的功能 | ||
> | ||
>- 1115挑战(内存调度算法实现优化) | ||
> | ||
> 说来惭愧,我这个印象最深。我写了3次,第一次好像是80多,第二次直接没跑起来,第三次是链表指针不知道指到哪里去了....反正都没超过170,也就没提交.... | ||
> | ||
## 宏内核 | ||
|
||
|
||
>- page_fault | ||
> | ||
> 难度适中? 感觉就是rcore上了一点 | ||
>- sys_map | ||
> | ||
> 就find_free_area然后read进去,虽然感觉用find_free_area找到的地方有些不符合man mmap的说明。 | ||
## Hypervisor | ||
|
||
第一次了解hypervisor具体是怎么操作、干了什么....涨知识了... | ||
|
||
>- simple_hv | ||
> | ||
> 改一下guest的sepc,设置一下a0、a1的值 | ||
>- pflash设备模拟方式 | ||
> | ||
> 一开始没有搞清gpa映射到hpa时,没有经过host的satp,导致在host中拿着pa当va来用,出现了问题。另外,在完成后,修改了一下pflash的内容,想要读u128转string输出,但是没想到,在对* u128解引用时,它居然会先读u128的高64位,导致映射时页面没对齐。 |