xen: use direct ops on 64-bit
Enable the use of the direct vcpu-access operations on 64-bit. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
committed by
H. Peter Anvin
parent
5393744b71
commit
e4d0407185
@@ -87,14 +87,7 @@ struct shared_info *HYPERVISOR_shared_info = (void *)&xen_dummy_shared_info;
|
|||||||
*
|
*
|
||||||
* 0: not available, 1: available
|
* 0: not available, 1: available
|
||||||
*/
|
*/
|
||||||
static int have_vcpu_info_placement =
|
static int have_vcpu_info_placement = 1;
|
||||||
#ifdef CONFIG_X86_32
|
|
||||||
1
|
|
||||||
#else
|
|
||||||
0
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
static void xen_vcpu_setup(int cpu)
|
static void xen_vcpu_setup(int cpu)
|
||||||
{
|
{
|
||||||
@@ -914,11 +907,6 @@ asmlinkage void __init xen_start_kernel(void)
|
|||||||
|
|
||||||
machine_ops = xen_machine_ops;
|
machine_ops = xen_machine_ops;
|
||||||
|
|
||||||
#ifdef CONFIG_X86_64
|
|
||||||
/* Disable until direct per-cpu data access. */
|
|
||||||
have_vcpu_info_placement = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_X86_64
|
#ifdef CONFIG_X86_64
|
||||||
/*
|
/*
|
||||||
* Setup percpu state. We only need to do this for 64-bit
|
* Setup percpu state. We only need to do this for 64-bit
|
||||||
|
Reference in New Issue
Block a user