x86/vcpu: Remove struct vcpu allocation restriction when possible
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Nov 2018 17:46:38 +0000 (17:46 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Nov 2018 17:07:11 +0000 (17:07 +0000)
commitf2722ea0230dca796f63148d8ed3313f1dbcbe8b
treea4cba362a5817585963c5cf4458351a564ab66dd
parentf8810d333e2aa73920e144ae2ddec2ce1ef59af8
x86/vcpu: Remove struct vcpu allocation restriction when possible

There is no need for struct vcpu to live below the 4G boundary for PV guests,
or for HVM vcpus using HAP.

Plumb struct domain into alloc_vcpu_struct() so the x86 version can query the
domain's type and paging settings.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/domain.c
xen/arch/x86/domain.c
xen/common/domain.c
xen/include/xen/domain.h