x86/svm: Add virtual GIF support
authorBrian Woods <brian.woods@amd.com>
Thu, 16 Nov 2017 22:11:15 +0000 (16:11 -0600)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Dec 2017 19:03:28 +0000 (19:03 +0000)
commit4cd0fad64590ff8cfce6fa549cee15f8b07b664c
tree7422d9e6199711b7348d6c13526c16f6bf2547f6
parent8c7109242a8964039dfb84729c8d6568c7c66cba
x86/svm: Add virtual GIF support

This patch detects and enables Virtual GIF if available.  This allows
a nested hypervisor to perform STGIs and CLGIs without having to be
intercepted by host hypervisor.

Signed-off-by: Brian Woods <brian.woods@amd.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/svm/nestedsvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/svm/vmcb.c