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)
commite081354d6aa7b67c6d0ef51ff8c428b6c261a6fe
tree64d98dd439194f14bbf43e598681830f6d77bfbb
parent7a86dab8cf2f0fdf508f3555dddfc236623bff60
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