diff options
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r-- | drivers/kvm/vmx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index fbab07af6574..2d204fd45972 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c | |||
@@ -116,7 +116,7 @@ static void vmcs_clear(struct vmcs *vmcs) | |||
116 | static void __vcpu_clear(void *arg) | 116 | static void __vcpu_clear(void *arg) |
117 | { | 117 | { |
118 | struct kvm_vcpu *vcpu = arg; | 118 | struct kvm_vcpu *vcpu = arg; |
119 | int cpu = smp_processor_id(); | 119 | int cpu = raw_smp_processor_id(); |
120 | 120 | ||
121 | if (vcpu->cpu == cpu) | 121 | if (vcpu->cpu == cpu) |
122 | vmcs_clear(vcpu->vmcs); | 122 | vmcs_clear(vcpu->vmcs); |
@@ -541,7 +541,7 @@ static struct vmcs *alloc_vmcs_cpu(int cpu) | |||
541 | 541 | ||
542 | static struct vmcs *alloc_vmcs(void) | 542 | static struct vmcs *alloc_vmcs(void) |
543 | { | 543 | { |
544 | return alloc_vmcs_cpu(smp_processor_id()); | 544 | return alloc_vmcs_cpu(raw_smp_processor_id()); |
545 | } | 545 | } |
546 | 546 | ||
547 | static void free_vmcs(struct vmcs *vmcs) | 547 | static void free_vmcs(struct vmcs *vmcs) |