KVMGT: a Full GPU Virtualization Solution Oct, 2014 Jike Song,

Document technical information

Format pdf
Size 914.5 kB
First found Jun 9, 2017

Document content analysis

Category Also themed
Language
English
Type
not defined
Concepts
no text concepts found

Persons

Organizations

Places

Transcript

KVMGT: a Full GPU Virtualization Solution
Oct, 2014
Jike Song, [email protected]
Zhiyuan Lv, [email protected]
Kevin Tian, [email protected]
Agenda
 Background
 KVMGT
 Status
 Summary
2
© 2014 Intel Corporation
GPU Virtualization Momentum
App
App
App
App
VM
VM
App
App
…
GPU Accelerated Tasks
Games
VM
Video Playback/Edit
Hypervisor
Web Experience
Office Productivity
Media Transcoding
3D Graphics
Media
Computer Aided Design
Compute
Visual Analysis
…
GPU virtualization becomes a fundamental requirement
3
© 2014 Intel Corporation
Requirements of GPU Virtualization
hcsvg hb b
4
Performance
Direct GPU acceleration
Capability
Consistent visual experience
Sharing
Multiple Virtual Machines
© 2014 Intel Corporation
GPU Virtualization Approaches
API Forwarding
5
Direct Pass-through
Pros:
• Performance
• Sharing
Pros:
• Performance
• Capability
Cons:
• No media/GPGPU
• Compatibility
Cons:
• No sharing
© 2014 Intel Corporation
Full GPU Virtualization
Pros:
• Performance
• Capability
• Sharing
Intel ® GPU Virtualization Technology
 Intel® GVT-s for API Forwarding
 Make existing API forwarding protocols running best on Intel® platform
 Intel® GVT-d for Direct Pass-through
 Xen GPU pass-through upstreaming in progress
 Intel® GVT-g for Full GPU Virtualization
 SW based approach with a good balance of performance, feature and
sharing
6
© 2014 Intel Corporation
Intel ® GVT-g
 Full GPU virtualization
 Run native graphics driver in VM
Full-featured vGPU
 Mediated pass-through
 Pass-through performance critical operations
 Trap-and-emulate privileged operations
Close-to-native performance
Flexible sharing among VMs
 KVMGT is the open source implementation of Intel® GVT-g for KVM
 Support Intel® Processor Graphics built into 4th generation Intel® Core™
processors
 vGT device model is GPL/MIT dual-licensed and VMM agnostic
7
© 2014 Intel Corporation
KVMGT Architecture
VM2
VM1
Host Linux
Qemu
vPCI
layout
i915
Driver
Hooks
I/O
Hooks
VGA
KVMGT changes
vGT
Mediation
GFX
Driver
vGPU
vGPU
Address
space
balloon
Address space balloon
KVM
MPT Services
GPU
8
© 2014 Intel Corporation
Pass-through
Mediated Pass-Through (MPT) Services
VM2
VM1
Host Linux
Qemu
VGA
i915
GFX
Driver
 In-kernel device model
framework
 Selectively pass-through
 Trap-and-emulation
KVM
MPT Services
GPU
9
© 2014 Intel Corporation
vGT
VM2
VM1
Host Linux
Qemu
VGA
 Part of host i915 driver
i915
Driver
Hooks
vGT
GFX
Driver
vGPU
vGPU
 Maintain 1 vGPU
instance for each VM
 vGPU scheduling in a
time-shared manner
KVM
MPT Services
GPU
10
© 2014 Intel Corporation
Qemu Changes
VM2
VM1
Host Linux
Qemu
vPCI
layout
i915
Driver
Hooks
VGA
vGT
GFX
Driver
vGPU
vGPU
KVM
MPT Services
GPU
11
© 2014 Intel Corporation
 Present vGPU in the
virtual PCI hierarchy
 Request vGPU instance
creation/destroy
Host i915 Mediation
VM2
VM1
Host Linux
Qemu
vPCI
layout
i915
Driver
Hooks
I/O
Hooks
VGA
vGT
GFX
Driver
vGPU
vGPU
 Host i915 accesses are
also mediated
 Hook in i915 I/O interfaces
 Centralized GPU sharing
management
 For both host and VMs
KVM
MPT Services
GPU
12
© 2014 Intel Corporation
Address Space Ballooning
VM2
VM1
Host Linux
Qemu
vPCI
layout
i915
Driver
Hooks
I/O
Hooks
VGA
 Graphics memory
partitioning
vGT
GFX
Driver
vGPU
vGPU
Address
space
balloon
Address space balloon
KVM
MPT Services
GPU
13
© 2014 Intel Corporation
 Guest view vs. host view
 Address space ballooning
 Consistent guest/host
views
 No need for address
translation
Implementation Status
 Basic features complete
 Linux guest works steadily with PPGTT(Per-Process Graphics Translation
Table) disabled
 MPT services
 Trap via kvm_io_device, similar to the in-kernel irqchip
 Pass-through via a special in-kernel memslot
 vGT and i915 driver
 Start upstreaming patches to i915 community
 Qemu
 Provide MCH/PCH emulation similar to GPU pass-through
14
© 2014 Intel Corporation
Performance
Software and workloads used in performance tests may have been optimized for performance only on Intel® microprocessors. Performance
tests, such as SYSmark and MobileMark, are measured using specific computer systems, components, software, operations and
functions. Any change to any of those factors may cause the results to vary. You should consult other information and performance tests to
assist you in fully evaluating your contemplated purchases, including the performance of that product when combined with other products.
For more complete information about performance and benchmark results, visit www.intel.com/benchmarks
15
© 2014 Intel Corporation
TODO
 Implement shadow PPGTT
 Is a must to support Windows guest
 Clean up and stabilize the prototype code
 Involve with community for architectural discussion
 Work with community for upstreaming
16
© 2014 Intel Corporation
Summary
 Intel ® GVT-g provides a good balance of performance, feature and
sharing capability
 Minimum impact on performance critical operations
 Running native graphics driver in VM
 Multiplexing capability
 KVMGT implements Intel ® GVT-g for KVM, with >80% of native 3D
performance
 RFC code is coming
 Community contribution is highly appreciated!
17
© 2014 Intel Corporation
Notices and Disclaimers
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
18
© 2014 Intel Corporation.
Intel, the Intel logo are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed
as the property of others.
All information provided here is subject to change without notice. Contact your Intel representative to obtain the latest Intel product
specifications and roadmaps.
Software and workloads used in performance tests may have been optimized for performance only on Intel microprocessors.
Performance tests, such as SYSmark and MobileMark, are measured using specific computer systems, components, software,
operations and functions. Any change to any of those factors may cause the results to vary. You should consult other information and
performance tests to assist you in fully evaluating your contemplated purchases, including the performance of that product when
combined with other products.
Configurations: {describe config + what test used + who did testing}. For more complete information visit
http://www.intel.com/benchmarks
For more complete information about performance and benchmark results, visit www.intel.com/benchmarks .
Results have been estimated or simulated using internal Intel analysis or architecture simulation or modeling, and provided to you for
informational purposes. Any differences in your system hardware, software or configuration may affect your actual performance.
Optimization Notice: Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that
are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other
optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not
manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors.
Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable
product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.
Intel technologies may require enabled hardware, specific software, or services activation. Check with your system manufacturer or
retailer.
No computer system can be absolutely secure. Intel does not assume any liability for lost or stolen data or systems or any damages
resulting from such losses.
Intel® Virtualization Technology requires a computer system with an enabled Intel® processor, updated BIOS, and virtual machine
monitor (VMM). Functionality, performance or other benefits will vary depending on hardware and software configurations. Software
applications may not be compatible with all operating systems. Check with your system manufacturer. Learn more at
http://www.intel.com/go/virtualization.
KVM Remote Control (Keyboard, Video, Mouse) is only available with Intel® Core™ i5 vPro™ and Core™ i7 vPro™ processors with
integrated graphics and Intel® Active Management technology activated. Discrete graphics are not supported.
© 2014 Intel Corporation

Similar documents

×

Report this document