[PATCH 2/3] KVM: Use raw_smp_processor_id() instead of smp_processor_id() where applicable
- From: Avi Kivity <avi@xxxxxxxxxxxx>
- Date: Sun, 31 Dec 2006 13:20:52 -0000
From: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx>
Index: linux-2.6/drivers/kvm/vmx.c
===================================================================
--- linux-2.6.orig/drivers/kvm/vmx.c
+++ linux-2.6/drivers/kvm/vmx.c
@@ -116,7 +116,7 @@ static void vmcs_clear(struct vmcs *vmcs
static void __vcpu_clear(void *arg)
{
struct kvm_vcpu *vcpu = arg;
- int cpu = smp_processor_id();
+ int cpu = raw_smp_processor_id();
if (vcpu->cpu == cpu)
vmcs_clear(vcpu->vmcs);
@@ -541,7 +541,7 @@ static struct vmcs *alloc_vmcs_cpu(int c
static struct vmcs *alloc_vmcs(void)
{
- return alloc_vmcs_cpu(smp_processor_id());
+ return alloc_vmcs_cpu(raw_smp_processor_id());
}
static void free_vmcs(struct vmcs *vmcs)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 0/3] KVM: Miscellaneous stabilization fixes
- From: Avi Kivity
- [PATCH 0/3] KVM: Miscellaneous stabilization fixes
- Prev by Date: [PATCH 0/3] KVM: Miscellaneous stabilization fixes
- Next by Date: [PATCH 3/3] KVM: Recover after an arch module load failure
- Previous by thread: [PATCH 0/3] KVM: Miscellaneous stabilization fixes
- Next by thread: [PATCH 3/3] KVM: Recover after an arch module load failure
- Index(es):
Relevant Pages
- [PATCH 37/38] KVM: Move vmx helper inlines to vmx.c
... static void vmcs_clear(struct vmcs *vmcs) ... More majordomo info
at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/
... (Linux-Kernel) - [PATCH 5/13] KVM: virtualization infrastructure
... +static void load_fs ... +static void vmcs_clear(struct vmcs *vmcs)
... +static struct vmcs *alloc_vmcs ... (Linux-Kernel) - [PATCH 5/13] KVM: virtualization infrastructure
... +static void load_fs ... +static void vmcs_clear(struct vmcs *vmcs)
... +static struct vmcs *alloc_vmcs ... (Linux-Kernel) - [PATCH 5/14] KVM: virtualization infrastructure
... +static void load_fs ... +static void vmcs_clear(struct vmcs *vmcs)
... +static struct vmcs *alloc_vmcs ... (Linux-Kernel) - [PATCH 026/104] KVM: VMX: Improve the method of writing vmcs control
... Put cpu feature detecting part in hardware_setup, and stored the vmcs ...
-static struct vmcs_descriptor { ... static void free_vmcs ... (Linux-Kernel)