x86/svm: update VGIF support
authorBrian Woods <brian.woods@amd.com>
Mon, 5 Feb 2018 09:14:48 +0000 (10:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 5 Feb 2018 09:14:48 +0000 (10:14 +0100)
commit05bb1116b8c1fc42527bf3b2406eef86a27e3dc3
treefe3c194b30b215c3eb501ba02fcc4c7928af2814
parentc82edf29eaa12cdc4a4365f970103c4e21b555d8
x86/svm: update VGIF support

There are places where the GIF value is checked.  A guest with VGIF
enabled can change the GIF value without the host being involved,
therefore it needs to check the GIF value in the VMCB rather the one in
the nestedsvm struct.

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