Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kvm_watcher 项目:目标是分析 kvm 的状态信息 #552

Open
13 of 17 tasks
helight opened this issue Oct 20, 2023 · 15 comments
Open
13 of 17 tasks

kvm_watcher 项目:目标是分析 kvm 的状态信息 #552

helight opened this issue Oct 20, 2023 · 15 comments
Assignees
Labels
enhancement New feature or request

Comments

@helight
Copy link
Member

helight commented Oct 20, 2023

kvm_watcher 项目:目标是分析 kvm 的状态信息
KVM(Kernel-based Virtual Machine)是Linux内核中的虚拟化解决方案,允许在单个物理主机上同时运行多个虚拟机。

  1. 插桩客户机的退出事件(vm exit)检查是否有过多的操作:
  2. 针对客户机vcpu的检测:
  3. kvm客户机中产生的page fault事件:
  4. 功能模块合并
  5. 虚拟机脏页信息统计
  6. 添加项目README
  7. 中断请求相关信息统计
    KVM模块接收到来自用户空间的模拟设备的请求后,将调用虚拟中断芯片的接口向虚拟中断芯片发送中断请求,对于在内核空间模拟的设备,这个过程相当于通过pic/ioapic设备发送中断请求。
  8. hypercall(超级调用)
    • 超级调用信息统计,包括超级调用号,调用参数,次数等信息。

项目目标

  • 通过eBPF技术在主机侧提取并分析KVM虚拟机的状态信息

项目技术要求

  1. 熟悉kvm内核虚拟化的技术原理
  2. 熟悉Linux eBPF技术,能够通过eBPF实现内核事件的解析

运行要求

  1. 运行系统: ubuntu22.4 以上
  2. 文档丰富:具有Readme,设计文档等。
@helight helight added the enhancement New feature or request label Oct 20, 2023
@nanshuaibo nanshuaibo assigned nanshuaibo and helight and unassigned nanshuaibo Oct 20, 2023
@nanshuaibo
Copy link
Contributor

nanshuaibo commented Nov 3, 2023

编写BPF程序,用于记录VM EXIT事件的原因的处理延迟、发生次数等信息的统计,并提交pr
#563

@nanshuaibo
Copy link
Contributor

nanshuaibo commented Nov 10, 2023

添加参数控制,优化代码输出结果
#578

@nanshuaibo
Copy link
Contributor

提交vcpu监测程序,修改action,完善kvm_exits代码
#600

@nanshuaibo
Copy link
Contributor

合并为主程序,对vcpu挂起轮询时间变化的监控
#609

@nanshuaibo
Copy link
Contributor

nanshuaibo commented Dec 7, 2023

修改action
添加虚拟机脏页信息统计功能
优化代码
#624
#625

@nanshuaibo
Copy link
Contributor

添加kvmmmu_paga_fault指标提取功能
#633

@nanshuaibo
Copy link
Contributor

记录mmio page fault处理延时等信息,优化代码
#636

@nanshuaibo
Copy link
Contributor

添加项目README.md
#636

@nanshuaibo
Copy link
Contributor

#644

@Monkey857
Copy link
Contributor

修改项目README.md
add comment
#652

@Monkey857
Copy link
Contributor

kvm_watcher项目:向Makefile中添加测试环境的安装 #662

@nanshuaibo
Copy link
Contributor

nanshuaibo commented Jan 26, 2024

#666
增加了一些功能,完善代码

@Monkey857
Copy link
Contributor

kvm_watcher项目:添加更细粒度的kvm_exit事件监测功能 #673

@Monkey857
Copy link
Contributor

kvm_watcher项目:完善并优化VM EXIT数据采集 #682

@Monkey857
Copy link
Contributor

kvm_watcher项目:对VM_EXIT的数据采集添加了一些功能,完善代码 #696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants