Bug 200877
Summary: | Low 2D graphics performance with Windows 10 (1803) VGA passthrough VM using "Spectre" protection | ||
---|---|---|---|
Product: | Virtualization | Reporter: | Heiko Sieger (hs7762) |
Component: | kvm | Assignee: | virtualization_kvm |
Status: | NEW --- | ||
Severity: | normal | CC: | g_amanakis |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
URL: | https://heiko-sieger.info/low-2d-graphics-benchmark-with-windows-10-1803-kvm-vm/ | ||
Kernel Version: | 4.15.0-32-generic x86_64 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | Red graph - Windows 10 bare metal; blue graph - Windows 10 VM with Spectre protection enabled; yellow graph - Windows 10 VM with spectre protection disabled |
Description
Heiko Sieger
2018-08-21 15:44:25 UTC
More users report the same issue with 2D graphics, see https://www.reddit.com/r/VFIO/comments/97unx4/passmark_lousy_2d_graphics_performance_on_windows/ Benchmarks: https://imgur.com/a/p9rwxlI https://imgur.com/a/UVSBIAs https://imgur.com/a/abNDz9s I reproduced this easily on two systems: Xeon E5 2667v2 / X9SRA running Fedora 28, with Windows 10 1803 as KVM guest Xeon E3 1270v2 / X9SCM running Archlinux, with Windows 10 1803 as KVM guest Both systems are up to date (4.17.19 or 4.18.3), and the performance degradation doesn't occur when Windows 10 1803 runs on bare metal. The performance degradation also doesn't occur when the Windows 10 guest disables spectre mitigation using "InSpectre.exe", or when the spec_ctrl flag is disabled in libvirt, or when the cpu-microcode isn't updated in the host. Does this point to a kernel related problem? Possibly kvm? I did a git-bisect between 4.14.18(bad) and 4.14.10(good). Unsurprisingly, this is the first "bad" commit: KVM/VMX: Allow direct access to MSR_IA32_SPEC_CTRL commit d28b387fb74da95d69d2615732f50cceb38e9a4d George |