.. | .. |
---|
750 | 750 | * involves poking the GIC, which must be done in a |
---|
751 | 751 | * non-preemptible context. |
---|
752 | 752 | */ |
---|
753 | | - migrate_disable(); |
---|
| 753 | + preempt_disable(); |
---|
754 | 754 | |
---|
755 | 755 | kvm_pmu_flush_hwstate(vcpu); |
---|
756 | 756 | |
---|
.. | .. |
---|
799 | 799 | kvm_timer_sync_user(vcpu); |
---|
800 | 800 | kvm_vgic_sync_hwstate(vcpu); |
---|
801 | 801 | local_irq_enable(); |
---|
802 | | - migrate_enable(); |
---|
| 802 | + preempt_enable(); |
---|
803 | 803 | continue; |
---|
804 | 804 | } |
---|
805 | 805 | |
---|
.. | .. |
---|
871 | 871 | /* Exit types that need handling before we can be preempted */ |
---|
872 | 872 | handle_exit_early(vcpu, ret); |
---|
873 | 873 | |
---|
874 | | - migrate_enable(); |
---|
| 874 | + preempt_enable(); |
---|
875 | 875 | |
---|
876 | 876 | /* |
---|
877 | 877 | * The ARMv8 architecture doesn't give the hypervisor |
---|