]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nSVM: Fix nested guest support for PAUSE filtering.
authorTambe, William <William.Tambe@amd.com>
Tue, 13 Nov 2018 16:51:20 +0000 (16:51 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Dec 2018 10:28:23 +0000 (11:28 +0100)
commitffaf84ee58499b64c8729c34e25e30007da84309
tree64d98dd439194f14bbf43e598681830f6d77bfbb
parent053fe11758791186324c987bce6ad2c39bacda86
KVM: nSVM: Fix nested guest support for PAUSE filtering.

Currently, the nested guest's PAUSE intercept intentions are not being
honored.  Instead, since the L0 hypervisor's pause_filter_count and
pause_filter_thresh values are still in place, these values are used
instead of those programmed in the VMCB by the L1 hypervisor.

To honor the desired PAUSE intercept support of the L1 hypervisor, the L0
hypervisor must use the PAUSE filtering fields of the L1 hypervisor. This
requires saving and restoring of both the L0 and L1 hypervisor's PAUSE
filtering fields.

Signed-off-by: William Tambe <william.tambe@amd.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/svm.c