|
[PATCH 2/3] KVM: Use raw_smp_processor_id() instead of smp_processor_id() w: msg#00307emulators.kvm.devel
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) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [PATCH 1/3] KVM: Fix GFP_KERNEL alloc in atomic section bug: 00307, Avi Kivity |
|---|---|
| Next by Date: | Re: cannot boot minix3: 00307, Dor Laor |
| Previous by Thread: | [PATCH 1/3] KVM: Fix GFP_KERNEL alloc in atomic section bugi: 00307, Avi Kivity |
| Next by Thread: | [PATCH 3/3] KVM: Recover after an arch module load failure: 00307, Avi Kivity |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |