kvm

Writing a KVM client

linux
linux, kernel, kvm

Major steps required in the workflow # Open /dev/kvm Obtain KVM API version Check extension if Needed Create a virtual machines Allocate memory for the virtual machines Create virtual CPUs Initialize registers Run guest code The documentation for KVM API is available at Link. The KVM provides an API via a special node /device/kvm. We use this node and ioctl interface to communicate and setup the VM. The ioctl’s can be differentiated into KVM System API, Virtual machine API, vCPU API and device API The /dev/kvm node is used to control the KVM system and to create new VM’s. ...