![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
虚拟化
gudujianjsk
这个作者很懒,什么都没留下…
展开
-
kvm内存管理
qemu/kvm 进程很像一个普通的linux程序。它通过通常的malloc和mmap调用来申请内存。如果一个客户系统想使用1G物理内存,qemu/kvm将会做一个malloc(1 客户系统一旦开始运行,就会把qemu通过malloc申请的内存区域看作它的物理内存(实际上只是在主机上的虚拟内存)。如果客户机的内核访问(以它的角度看到的)0x00处的物理内存,它访问的实际是qe翻译 2012-04-28 12:19:20 · 3086 阅读 · 0 评论 -
qemu的网卡类型
网络是现代计算机系统不可或缺的一部分,QEMU也对虚拟机提供丰富的网络支持。qemu-kvm中主要给客户机提供了如下4种不同模式的网络。(1)基于网桥(Bridge)的虚拟网卡(2)基于NAT(Network Addresss Translation)的虚拟网络(3)QEMU内置的用户模式网络(user mode networking)(4)直接分配网络设备(包括V转载 2012-11-18 10:03:27 · 1348 阅读 · 0 评论 -
收藏 链接 (云计算,虚拟化)
how to create a linux image on KVM for uploading it to the image store on OpenStackhttp://cssoss.wordpress.com/2011/11/a new web site dedicated to hardware and software reviews and compa原创 2012-04-24 13:48:29 · 625 阅读 · 0 评论 -
linux memory hotplug 测试
linux内核已经实现了内存热插的支持,当一个linux系统不管运行在 物理环境 或者虚拟环境 时只要宿主能提供内存热插拔机制,linux内核就能相应的增加或者减少内存。目前已知的VMware已经可以做到内存热插。 改变内存容量有两种方式:40 1.1 purpose of memory hotplug41 ------------42 Memory Hotplug a原创 2012-09-28 10:20:10 · 4280 阅读 · 1 评论 -
VFIO driver
VFIO 是个设备驱动,它提供了安全的 非特权级别的 用户空间的驱动。当配置成最快速的IO性能的时候,虚拟机经常使用直接设备访问(设备配置),从设备和宿主机的角度看,此时VM就变成一个用户空间驱动。VFIO IOMMU 后台主要用户intel VT-d硬件或者 AMD Vi 目前 VFIO 驱动已经被merge 到linux 内核 3.6中:http://www原创 2012-09-26 14:20:58 · 34569 阅读 · 0 评论 -
QEMU Emulator User Documentation
1. Introduction1.1 FeaturesQEMU is a FAST! processor emulator using dynamic translation toachieve good emulation speed.QEMU has two operating modes:-Full system emulation. In this mode, QEMU转载 2012-08-22 20:18:14 · 4097 阅读 · 0 评论 -
Intel内存虚拟化技术分析
VPID 类似ASID, ASID用以区分不同进程的地址空间,切换时不用刷新TLB。VPID用来区分不同的虚拟处理器地址空间,虚拟机切换时不用刷新TLB。VMM为每个VMCS分配一个唯一的VPID,在VMCS中将Enable VPID置1就可以启用该功能。Extended page table(EPT) 页表遍历方式 硬件支持的情况下,当VMENTRY转载 2012-07-31 21:02:08 · 1325 阅读 · 0 评论 -
kvm: hardware assisted paging
CPU vendors began adding hardware virtual memory management unit (vMMU) support circa 2009, with Intel's VT-x (vmx flag) addition. Historically, the guest's physical (gpa) to host physical (hpa) addr转载 2012-07-30 11:24:17 · 880 阅读 · 0 评论 -
How QEMU fakes GPA to guest OS
As the article http://shangavin.7ta.cn/Article/1617946/229307 indicates,QEMU has to supply fake physical address to the upper guest OS. The page cooresponding to the faked physical address is called转载 2012-07-20 18:18:29 · 915 阅读 · 0 评论 -
kernel hacker修炼之道之内核虚拟化 KVM/QEMU——Guest OS, Qemu
这里主要介绍基于x86平台的Guest Os, Qemu, Kvm工作流程,如图,通过KVM APIs可以将qemu的command传递到kvm:1.创建VMsystem_fd = open("/dev/kvm", xxx);vm_fd = ioctl(system_fd, KVM_CREATE_VM, xxx);2.创建VCPUvcpu_fd = kvm_vm_ioctl(v转载 2012-08-06 20:40:46 · 1998 阅读 · 0 评论 -
get_user_pages — 获取用户区进程使用内存的某个页
int get_user_pages ( struct task_struct * tsk, ///// the task_struct to use for page fault accounting, or NULL if faults are not to be recorded. 一般选择current struct mm_struct * m翻译 2012-07-31 21:18:36 · 3191 阅读 · 0 评论 -
EPT in kvm
1. Overview of EPTCPU will use both guest page table and extended page table. The address of EPT is set by the function vmx_set_cr3.1753 static void vmx_set_cr3(struct kvm_vcpu *vcpu, unsigned原创 2012-07-11 18:59:39 · 2585 阅读 · 0 评论 -
EPT学习总结及KVM的处理
EPT为了提升虚拟化内存映射的效率而提供的一项技术。打开EPT后,GuestOS运行时,通过页表转化出来的地址不再是真实的物理地址,而是被称作为guest-physical addresses,经过EPT的转化后才成为真实的物理地址。可以使用 $cat /proc/cpuinfo | grep ept检查硬件是否支持ept机制。如果支持那么kvm会自动的利用EPT。 如果CR转载 2012-07-11 10:52:20 · 1442 阅读 · 0 评论 -
关于虚拟机中cpu时钟频率的问题
弄了好久终于在虚拟机技术上又有了一些突破,不敢独享遂有下文:安装完虚拟机VMware workstation6.0.2后发现提示:Your host does not have synchronized TSCs. Please read VMware Knowledge Base article 2041.——你的主机没有同步TSCs.忽略掉继续运行在运行Solaris 10原创 2009-08-18 18:32:00 · 6362 阅读 · 1 评论 -
调试qemu-SIG38
调试qemu时遇到了问题:Program received signal SIG38, Real-time event 38在gdb上输入:handle SIG38 noprint pass来忽略这个信号。原文链接 :http://comments.gmane.org/gmane.comp.emulators.qemu/126776原创 2012-04-27 20:53:50 · 1599 阅读 · 0 评论