diff options
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index d1036ce8917e..02a4269be645 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -482,7 +482,7 @@ static __init int svm_hardware_setup(void) | |||
482 | kvm_enable_efer_bits(EFER_SVME); | 482 | kvm_enable_efer_bits(EFER_SVME); |
483 | } | 483 | } |
484 | 484 | ||
485 | for_each_online_cpu(cpu) { | 485 | for_each_possible_cpu(cpu) { |
486 | r = svm_cpu_init(cpu); | 486 | r = svm_cpu_init(cpu); |
487 | if (r) | 487 | if (r) |
488 | goto err; | 488 | goto err; |
@@ -516,7 +516,7 @@ static __exit void svm_hardware_unsetup(void) | |||
516 | { | 516 | { |
517 | int cpu; | 517 | int cpu; |
518 | 518 | ||
519 | for_each_online_cpu(cpu) | 519 | for_each_possible_cpu(cpu) |
520 | svm_cpu_uninit(cpu); | 520 | svm_cpu_uninit(cpu); |
521 | 521 | ||
522 | __free_pages(pfn_to_page(iopm_base >> PAGE_SHIFT), IOPM_ALLOC_ORDER); | 522 | __free_pages(pfn_to_page(iopm_base >> PAGE_SHIFT), IOPM_ALLOC_ORDER); |