Http://www.ilsistemista.net/index.php/virtualization/42-kvm-virtio-paravirtualized-drivers-why-they-matter.html? Limitstart = 0
As you probably already know, there are basically two different schools in the specified aliztion CHAMP:
The para-specific alization one, where a modified Guest OS uses specific host-side syscall (hypercall) to do its "dirty work" with physical devices
The Full Hardware virtua
created in the/sys/devices/pci0000:00 directory. And in the/sys/bus/pci/devices/directory, create the corresponding symbolic connection for the PCI device, while in the/sys/bus/pci/drivers/directory, create the VIRTIO-PCI directory, there is a supporting device symbol connection file under the directory.
3.virtio bus definition and registration,
.Careful you will also find that the above list, almost all of the Linux system, in addition to the "other PV" this geek (in fact, there is "Windows PV", as for why, perhaps the people who write documents lazy, perhaps, later).Why almost all Linux systems, the official said the sentence:
(KVM only) all VMs is required to support the Virtio drivers. These drive
Update Driver, follow the above steps to update the Virtio driver. Note 2: For the XP system Virtio-win driver version is very important, the beginning of the installation is not successful because the driver version information is not correct, if the installation process is slow is basically the driver version is not correct, change the driver test, tested, for the XPSP2/XPSP3 operating system, The
from:http://www.ibm.com/developerworks/cn/linux/l-virtio/In general, virtio it is the abstraction layer on the device in the semi-virtualized hypervisor. virtiodeveloped by Rusty Russell, he was designed to support his own virtualization solution lguest . This article begins with the introduction of semi-virtualized and simulated devices, and then explores virtio
, and the I/O operations of character devices are directly accessed. To improve performance, block device I/O operations are queued and integrated.
The driver's task is to process requests. The queuing and integration of requests are solved by the I/O scheduling algorithm. Therefore, the core of the block device driver is the request processing function or the "manufacturing request" function.
Virtio-blk
Initialization
The relevant code is located at:
Virtio [edit]
Paravirtualized drivers for KVM/Linux
Virtio was chosen to be the main platform for Io Virtualization in KVM
The idea behind it is to have a common framework for hypervisors for Io implements alization
More information (although not uptodate) can be found here
At the moment network/block/balloon devices are suported for KVM
The
hypervisor can work together to make the simulation more efficient. The disadvantage of the semi-virtualization method is that the operating system knows that it is virtualized and must be modified before it can work.
Figure 1. Device Simulation in fully virtualized and semi-virtualized Environments
The hardware is constantly changing with the virtualization technology. The new processor incorporates advanced commands to make the transition from the guest operating system to the hypervisor
1.virtio (virtual i/0) the principle image of this paper comes from the practical and principle analysis of the virtual technology of book Virtio is an API on top of hypervisor that optimizes client I/O operations650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/8A/F9/wKiom1g_493SeejsAAI4bhyfLrg983.png "title=" 1XNDYOCFFK) {$94[d]8kj15.png "alt=" Wkiom1g_493seejsaai4bhyflrg983.png "/>Before using
to replace the interface of the virtual Nic. Add hardware at the bottom, as the name suggests. next we will add Virtual Hardware: hard disk and nic. Add hardware, select "Storage", and move forward. Select "file", browse, and select the virtual hard disk file you just created. Then, select "device type" of "target", and select "virtio disk" . Add hardware, select "network", and move forward. select "virtio
Virtio-win-0.1-81.iso image file is mounted to the system in the form of an optical drive. Virtio-win-0.1-81.iso is a driver file for Virtio.After executing the above command, we can use the VNC client to install the OS on the virtual machine.When you install to a hard disk, you will see such as:You can see that there are no hard drives, click "Load Drivers", su
Direct Downloads is available for the. iso,. vfd, and Qemu-ga installers.
Stable Virtio-win Iso:https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso
Stable Virtio-win x86 floppy:https://fedorapeople.org/groups/virt/
Linux now supports at least 8 virtualized systems:
Xen
Kvm
VMware ' s VMI
IBM ' s System p
IBM ' s System z
User Mode Linux
Lguest
IBM ' s Legacy iSeries
And the new system is also emerging, each system in the network equipment, block equipment, console and other device drivers in the new feature support and performance optimization of the bottleneck.To solve these problems, Rusty Russell developed the
Linux currently supports at least 8 types of virtualized systems:
Xen
Kvm
VMware ' s VMI
IBM ' s System p
IBM ' s System z
User Mode Linux
Lguest
IBM ' s Legacy iSeries
And the new system is also emerging, each system in the network equipment, block equipment, console and other device drivers in the new feature support and performance optimization of the bottleneck.To solve these problems, Rusty Russell developed the
The use of KVM is actually a lot of, but the basic command line, for beginners is not intuitive, and there is no mention of virtio-driven installation. So I sent another one.
The performance of a virtual hard disk and a virtual network using the Virtio interface is not comparable to the default IDE interface.
From installing the virtual machine to running the virtual system, use it all three times to the
#yum-y install QEMU-KVM libvirt virt-install bridge-utils#lsmod | grep KVM # Make sure modules is Loaded#systemctl start Libvirtd#systemctl enable LIBVIRTD Forget, Http://libvirt.org/formatdomain.html#elementsNICS here mentioned can direct mode, this is not quite cool, O (∩_∩) o haha ~ Kvm-linux official win7 Installation tutorial Http://www.linux-kvm.org/page/Windows7Install inside mentioned the direct installation need a hours scare, hurriedly download V
For the question of the review document that day, and looked at the code, the Virtio send and receive queue is created in the guest's front-end driver
Guest front-end driver, take network devices as an example: After VIRTIO-NET:PCI discovery, the transceiver queue is allocated via the PCI bus
static int virtnet_probe (Structvirtio_device *vdev)
{
......
/*
* Initialize Virtqueue
* Create and initialize Sen
QEMU assigns a dedicated PCI device to the Virtio device id,device IDs (vendor ID 0X1AF4) from 0x1000 through 0X10FF, The vendor ID and device ID in the PCI subsystem became the Virtio type and the vendor domain, so the PCI driver does not need to know the true meaning of the Virtio device type, and for kernel only registers a struct virtio_device, It is mounted
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.