diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2013-09-12 04:33:42 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-09-24 13:12:17 -0400 |
commit | 6b948a7276b61ba0bb5a102bd240d2473a751506 (patch) | |
tree | 80915e832948a233f0ee9937992fe939dc9e5351 /arch/s390 | |
parent | 56aba608257b451f663d25313d5ecae134d5557f (diff) |
KVM: s390: Remove dead "rerun vcpu" code
The need for SIE_INTERCEPT_RERUNVCPU has been removed long ago already,
with the following commit:
f7850c92884b40915001e332a0a33ed4f10158e8
[S390] remove kvm mmu reload on s390
Since the remainders are dead code, they are now removed by this patch.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/asm/kvm_host.h | 1 | ||||
-rw-r--r-- | arch/s390/kvm/intercept.c | 6 | ||||
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 4 | ||||
-rw-r--r-- | arch/s390/kvm/kvm-s390.h | 3 |
4 files changed, 1 insertions, 13 deletions
diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h index e87ecaa2c569..6a0e27be6305 100644 --- a/arch/s390/include/asm/kvm_host.h +++ b/arch/s390/include/asm/kvm_host.h | |||
@@ -220,7 +220,6 @@ struct kvm_s390_interrupt_info { | |||
220 | /* for local_interrupt.action_flags */ | 220 | /* for local_interrupt.action_flags */ |
221 | #define ACTION_STORE_ON_STOP (1<<0) | 221 | #define ACTION_STORE_ON_STOP (1<<0) |
222 | #define ACTION_STOP_ON_STOP (1<<1) | 222 | #define ACTION_STOP_ON_STOP (1<<1) |
223 | #define ACTION_RELOADVCPU_ON_STOP (1<<2) | ||
224 | 223 | ||
225 | struct kvm_s390_local_interrupt { | 224 | struct kvm_s390_local_interrupt { |
226 | spinlock_t lock; | 225 | spinlock_t lock; |
diff --git a/arch/s390/kvm/intercept.c b/arch/s390/kvm/intercept.c index 5ee56e5acc23..5ddbbde6f65c 100644 --- a/arch/s390/kvm/intercept.c +++ b/arch/s390/kvm/intercept.c | |||
@@ -62,12 +62,6 @@ static int handle_stop(struct kvm_vcpu *vcpu) | |||
62 | 62 | ||
63 | trace_kvm_s390_stop_request(vcpu->arch.local_int.action_bits); | 63 | trace_kvm_s390_stop_request(vcpu->arch.local_int.action_bits); |
64 | 64 | ||
65 | if (vcpu->arch.local_int.action_bits & ACTION_RELOADVCPU_ON_STOP) { | ||
66 | vcpu->arch.local_int.action_bits &= ~ACTION_RELOADVCPU_ON_STOP; | ||
67 | rc = SIE_INTERCEPT_RERUNVCPU; | ||
68 | vcpu->run->exit_reason = KVM_EXIT_INTR; | ||
69 | } | ||
70 | |||
71 | if (vcpu->arch.local_int.action_bits & ACTION_STOP_ON_STOP) { | 65 | if (vcpu->arch.local_int.action_bits & ACTION_STOP_ON_STOP) { |
72 | atomic_set_mask(CPUSTAT_STOPPED, | 66 | atomic_set_mask(CPUSTAT_STOPPED, |
73 | &vcpu->arch.sie_block->cpuflags); | 67 | &vcpu->arch.sie_block->cpuflags); |
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 776dafe918db..e3e7ff77ba44 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c | |||
@@ -749,7 +749,6 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
749 | int rc; | 749 | int rc; |
750 | sigset_t sigsaved; | 750 | sigset_t sigsaved; |
751 | 751 | ||
752 | rerun_vcpu: | ||
753 | if (vcpu->sigset_active) | 752 | if (vcpu->sigset_active) |
754 | sigprocmask(SIG_SETMASK, &vcpu->sigset, &sigsaved); | 753 | sigprocmask(SIG_SETMASK, &vcpu->sigset, &sigsaved); |
755 | 754 | ||
@@ -793,9 +792,6 @@ rerun_vcpu: | |||
793 | rc = kvm_handle_sie_intercept(vcpu); | 792 | rc = kvm_handle_sie_intercept(vcpu); |
794 | } while (!signal_pending(current) && !rc); | 793 | } while (!signal_pending(current) && !rc); |
795 | 794 | ||
796 | if (rc == SIE_INTERCEPT_RERUNVCPU) | ||
797 | goto rerun_vcpu; | ||
798 | |||
799 | if (signal_pending(current) && !rc) { | 795 | if (signal_pending(current) && !rc) { |
800 | kvm_run->exit_reason = KVM_EXIT_INTR; | 796 | kvm_run->exit_reason = KVM_EXIT_INTR; |
801 | rc = -EINTR; | 797 | rc = -EINTR; |
diff --git a/arch/s390/kvm/kvm-s390.h b/arch/s390/kvm/kvm-s390.h index dc99f1ca4267..a307a854a8d4 100644 --- a/arch/s390/kvm/kvm-s390.h +++ b/arch/s390/kvm/kvm-s390.h | |||
@@ -28,8 +28,7 @@ typedef int (*intercept_handler_t)(struct kvm_vcpu *vcpu); | |||
28 | extern unsigned long *vfacilities; | 28 | extern unsigned long *vfacilities; |
29 | 29 | ||
30 | /* negativ values are error codes, positive values for internal conditions */ | 30 | /* negativ values are error codes, positive values for internal conditions */ |
31 | #define SIE_INTERCEPT_RERUNVCPU (1<<0) | 31 | #define SIE_INTERCEPT_UCONTROL (1<<0) |
32 | #define SIE_INTERCEPT_UCONTROL (1<<1) | ||
33 | int kvm_handle_sie_intercept(struct kvm_vcpu *vcpu); | 32 | int kvm_handle_sie_intercept(struct kvm_vcpu *vcpu); |
34 | 33 | ||
35 | #define VM_EVENT(d_kvm, d_loglevel, d_string, d_args...)\ | 34 | #define VM_EVENT(d_kvm, d_loglevel, d_string, d_args...)\ |