SVM: split _np_enable VMCB field
authorJan Beulich <jbeulich@suse.com>
Tue, 31 Mar 2020 06:46:44 +0000 (08:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 31 Mar 2020 06:46:44 +0000 (08:46 +0200)
commitf57ae00635da429cee02373dc909542a411a09e5
treeaaa92712862e9f4d4f2927ce3f99f6a685f7923f
parent2a94100dd5646fb8abcd29f48553ff10d0788cc7
SVM: split _np_enable VMCB field

The nest paging enable is actually just a single bit within the 64-bit
VMCB field, which is particularly relevant for uses like the one in
nsvm_vcpu_vmentry(). Split the field, adding definitions for a few other
bits at the same time. To be able to generate accessors for bitfields,
VMCB_ACCESSORS() needs the type part broken out, as typeof() can't be
applied to bitfields. Unfortunately this means specification of the same
type in two distinct places.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/svm/svmdebug.c
xen/include/asm-x86/hvm/svm/vmcb.h