Skip to content

Commit

Permalink
xen: use direct ops on 64-bit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Fitzhardinge authored and H. Peter Anvin committed Feb 5, 2009
1 parent 5393744 commit e4d0407
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,7 @@ struct shared_info *HYPERVISOR_shared_info = (void *)&xen_dummy_shared_info;
*
* 0: not available, 1: available
*/
static int have_vcpu_info_placement =
#ifdef CONFIG_X86_32
1
#else
0
#endif
;

static int have_vcpu_info_placement = 1;

static void xen_vcpu_setup(int cpu)
{
Expand Down Expand Up @@ -914,11 +907,6 @@ asmlinkage void __init xen_start_kernel(void)

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
/*
* Setup percpu state. We only need to do this for 64-bit
Expand Down

0 comments on commit e4d0407

Please sign in to comment.