x86: move vgc_flags to struct pv_vcpu
authorJan Beulich <jbeulich@suse.com>
Fri, 27 Dec 2019 08:57:05 +0000 (09:57 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Dec 2019 08:57:05 +0000 (09:57 +0100)
commit3d4985fc844e0887a47abcdfa55b887df3168fd2
tree63914df6ef647ee48384c0a36796c14eea54956d
parent3f8c7d3d765d47f627bf75e14c1ff6c5d61df7ed
x86: move vgc_flags to struct pv_vcpu

There's been effectively no use of the field for HVM.

Also shrink the field to unsigned int, even if this doesn't immediately
yield any space benefit for the structure itself. The resulting 32-bit
padding slot can eventually be used for some other field. The change in
size makes accesses slightly more efficient though, as no REX.W prefix
is going to be needed anymore on the respective insns.

Mirror the HVM side change here (dropping of setting the field to
VGCF_online) also to Arm, on the assumption that it was cloned like
this originally. VGCF_online really should simply and consistently be
the guest view of the inverse of VPF_down, and hence needs representing
only in the get/set vCPU context interfaces.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c
xen/arch/x86/domctl.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/pv/callback.c
xen/arch/x86/x86_64/asm-offsets.c
xen/include/asm-x86/domain.h