diff options
Diffstat (limited to 'arch/arm/kvm/arm.c')
| -rw-r--r-- | arch/arm/kvm/arm.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 2d6d91001062..0b0d58a905c4 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c | |||
| @@ -281,15 +281,6 @@ void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | |||
| 281 | vcpu->cpu = cpu; | 281 | vcpu->cpu = cpu; |
| 282 | vcpu->arch.host_cpu_context = this_cpu_ptr(kvm_host_cpu_state); | 282 | vcpu->arch.host_cpu_context = this_cpu_ptr(kvm_host_cpu_state); |
| 283 | 283 | ||
| 284 | /* | ||
| 285 | * Check whether this vcpu requires the cache to be flushed on | ||
| 286 | * this physical CPU. This is a consequence of doing dcache | ||
| 287 | * operations by set/way on this vcpu. We do it here to be in | ||
| 288 | * a non-preemptible section. | ||
| 289 | */ | ||
| 290 | if (cpumask_test_and_clear_cpu(cpu, &vcpu->arch.require_dcache_flush)) | ||
| 291 | flush_cache_all(); /* We'd really want v7_flush_dcache_all() */ | ||
| 292 | |||
| 293 | kvm_arm_set_running_vcpu(vcpu); | 284 | kvm_arm_set_running_vcpu(vcpu); |
| 294 | } | 285 | } |
| 295 | 286 | ||
| @@ -541,7 +532,6 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) | |||
| 541 | ret = kvm_call_hyp(__kvm_vcpu_run, vcpu); | 532 | ret = kvm_call_hyp(__kvm_vcpu_run, vcpu); |
| 542 | 533 | ||
| 543 | vcpu->mode = OUTSIDE_GUEST_MODE; | 534 | vcpu->mode = OUTSIDE_GUEST_MODE; |
| 544 | vcpu->arch.last_pcpu = smp_processor_id(); | ||
| 545 | kvm_guest_exit(); | 535 | kvm_guest_exit(); |
| 546 | trace_kvm_exit(*vcpu_pc(vcpu)); | 536 | trace_kvm_exit(*vcpu_pc(vcpu)); |
| 547 | /* | 537 | /* |
