xen: use direct ops on 64-bit
Subsystems (2)
PATCH 3/3 xen: use direct ops on 64-bit
Enable the use of the direct vcpu-access operations on 64-bit.
---arch/x86/xen/enlighten.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
===================================================================
arch/x86/xen/enlighten.c +1 -8
@@ -116,14 +116,7 @@* * 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)
{
@@ -1644,11 +1637,6 @@
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
* because 32-bit already has %fs set properly.
Quoted 3 lines · Jeremy Fitzhardinge
Enable the use of the direct vcpu-access operations on 64-bit.
Signed-off-by Jeremy Fitzhardinge <[email protected]>
Hmmm... these three patches conflict with the previous two patches. I'll soon send out a new tree. Can you please wait a bit and refresh the patches?
Thanks.
Signature · 1 line
tejun
Quoted 10 lines · Tejun Heo
Quoted 4 lines · Jeremy Fitzhardinge
Enable the use of the direct vcpu-access operations on 64-bit.
Signed-off-by Jeremy Fitzhardinge <[email protected]>Hmmm... these three patches conflict with the previous two patches. I'll soon send out a new tree. Can you please wait a bit and refresh the patches?
Sorry about that; I had to do a fair amount of hacking to get things going in the end. I mailed out those other patches prematurely after "testing" them with the wrong kernel.
I'll send updated fixes when I see your changes appear in tip.git.
J