x86/hypercall: Make the HVM hcall_64bit boolean common
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 14 Feb 2017 18:21:22 +0000 (18:21 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 16 Feb 2017 14:15:25 +0000 (14:15 +0000)
commitbb84ffc56ec14766f33a002a61fd97a62b6b17cd
tree8251cf1f2152734f8d9e9eb81980871b88b26c2b
parentb26c93fb1b14501fece01b213590896c2c069770
x86/hypercall: Make the HVM hcall_64bit boolean common

HVM guests currently make use of arch.hvm_vcpu.hcall_64bit to track the ABI of
the hypercall in use.

The rest of Xen deals in terms of the comat ABI or not, so rename the boolean
and make it common, guared by CONFIG_COMPAT to avoid bloat if a compat ABI is
not wanted/needed.

Set hcall_compat uniformly for PV guests as well as HVM guests.  This removes
the remaining piece of guest-type-specific knowledge from
hypercall_create_continuation(), allowing it to operate only in terms of the
hypercall ABI in use.

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