<p dir="ltr">On Dec 4, 2014 5:27 AM, "Jike Song" <<a href="mailto:jike.song@intel.com">jike.song@intel.com</a>> wrote:<br>
><br>
> Hi all,<br>
Hi,<br>
><br>
> We are pleased to announce the first release of KVMGT project. KVMGT is the implementation of Intel GVT-g technology, a full GPU virtualization solution. Under Intel GVT-g, a virtual GPU instance is maintained for each VM, with part of performance critical resources directly assigned. The capability of running native graphics driver inside a VM, without hypervisor intervention in performance critical paths, achieves a good balance of performance, feature, and sharing capability.<br>
Sounds great.<br>
><br>
><br>
> KVMGT is still in the early stage:<br>
><br>
> - Basic functions of full GPU virtualization works, guest can see a full-featured vGPU.<br>
> We ran several 3D workloads such as lightsmark, nexuiz, urbanterror and warsow.<br>
><br>
> - Only Linux guest supported so far, and PPGTT must be disabled in guest through a<br>
> kernel parameter(see README.kvmgt in QEMU).<br>
><br>
> - This drop also includes some Xen specific changes, which will be cleaned up later.<br>
><br>
> - Our end goal is to upstream both XenGT and KVMGT, which shares ~90% logic for vGPU<br>
> device model (will be part of i915 driver), with only difference in hypervisor<br>
> specific services<br>
><br>
> - insufficient test coverage, so please bear with stability issues :)<br>
><br>
><br>
><br>
> There are things need to be improved, esp. the KVM interfacing part:<br>
><br>
> 1 a domid was added to each KVMGT guest<br>
><br>
> An ID is needed for foreground OS switching, e.g.<br>
><br>
> # echo <domid> > /sys/kernel/vgt/control/foreground_vm<br>
><br>
> domid 0 is reserved for host OS.<br>
><br>
><br>
> 2 SRCU workarounds.<br>
><br>
> Some KVM functions, such as:<br>
><br>
> kvm_io_bus_register_dev<br>
> install_new_memslots<br>
><br>
> must be called *without* &kvm->srcu read-locked. Otherwise it hangs.<br>
><br>
> In KVMGT, we need to register an iodev only *after* BAR registers are<br>
> written by guest. That means, we already have &kvm->srcu hold -<br>
> trapping/emulating PIO(BAR registers) makes us in such a condition.<br>
> That will make kvm_io_bus_register_dev hangs.<br>
><br>
> Currently we have to disable rcu_assign_pointer() in such functions.<br>
><br>
> These were dirty workarounds, your suggestions are high welcome!<br>
><br>
><br>
> 3 syscalls were called to access "/dev/mem" from kernel<br>
><br>
> An in-kernel memslot was added for aperture, but using syscalls like<br>
> open and mmap to open and access the character device "/dev/mem",<br>
> for pass-through.<br>
><br>
> <br>
><br>
> The source codes(kernel, qemu as well as seabios) are available at github:<br>
><br>
> git://<a href="http://github.com/01org/KVMGT-kernel">github.com/01org/KVMGT-kernel</a><br>
> git://<a href="http://github.com/01org/KVMGT-qemu">github.com/01org/KVMGT-qemu</a><br>
> git://<a href="http://github.com/01org/KVMGT-seabios">github.com/01org/KVMGT-seabios</a><br>
><br>
> In the KVMGT-qemu repository, there is a "README.kvmgt" to be referred.<br>
><br>
><br>
><br>
> More information about Intel GVT-g and KVMGT can be found at:<br>
><br>
> <a href="https://www.usenix.org/conference/atc14/technical-sessions/presentation/tian">https://www.usenix.org/conference/atc14/technical-sessions/presentation/tian</a><br>
> <a href="http://events.linuxfoundation.org/sites/events/files/slides/KVMGT-a%20Full%20GPU%20Virtualization%20Solution_1.pdf">http://events.linuxfoundation.org/sites/events/files/slides/KVMGT-a%20Full%20GPU%20Virtualization%20Solution_1.pdf</a><br>
><br>
><br>
> Appreciate your comments, BUG reports, and contributions!<br>
I'll prepare fedora builds for testing. Users would do 2 commands to use KVMGT. Feel free to CC me about changes and for testing. I have some devices with Intel graphics. I'll test.<br>
><br>
><br>
><br>
><br>
> --<br>
> Thanks,<br>
> Jike<br>
--<br>
-Igor Gnatenko</p>