x86/svm: Don't use vmcb->tlb_control as if it is a boolean
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 12 Feb 2019 18:37:04 +0000 (18:37 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 14 Apr 2020 14:56:52 +0000 (15:56 +0100)
commitfcd06227f83643194f8018f8dd37adce57763a61
treee4aff13ac92f9ea02a477bf55786e744faf1ba46
parentd6f22d5d9e8d6848ec229083ac9fb044f0adea93
x86/svm: Don't use vmcb->tlb_control as if it is a boolean

svm_asid_handle_vmrun() treats tlb_control as if it were boolean, but this has
been superseded by new additions to the SVM spec.

Introduce an enum containing all legal values, and update
svm_asid_handle_vmrun() to use appropriate constants.

While adjusting this, take the opportunity to fix up two coding style issues,
and trim the include list.

No functional change.

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