diff options
author | Paul Mackerras <paulus@samba.org> | 2011-06-28 20:19:50 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-07-12 06:16:51 -0400 |
commit | df6909e5d52f67be01862c5cb453e509aee661f1 (patch) | |
tree | aab39c039a693e5381f922df4125aa7b72be681c /arch/powerpc/kvm/powerpc.c | |
parent | f9e0554deca54a42fb2cf7f68c05a4a37461c205 (diff) |
KVM: PPC: Move guest enter/exit down into subarch-specific code
Instead of doing the kvm_guest_enter/exit() and local_irq_dis/enable()
calls in powerpc.c, this moves them down into the subarch-specific
book3s_pr.c and booke.c. This eliminates an extra local_irq_enable()
call in book3s_pr.c, and will be needed for when we do SMT4 guest
support in the book3s hypervisor mode code.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/powerpc.c')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 0c80e159c138..026036efcde0 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -500,11 +500,7 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) | |||
500 | 500 | ||
501 | kvmppc_core_deliver_interrupts(vcpu); | 501 | kvmppc_core_deliver_interrupts(vcpu); |
502 | 502 | ||
503 | local_irq_disable(); | 503 | r = kvmppc_vcpu_run(run, vcpu); |
504 | kvm_guest_enter(); | ||
505 | r = __kvmppc_vcpu_run(run, vcpu); | ||
506 | kvm_guest_exit(); | ||
507 | local_irq_enable(); | ||
508 | 504 | ||
509 | if (vcpu->sigset_active) | 505 | if (vcpu->sigset_active) |
510 | sigprocmask(SIG_SETMASK, &sigsaved, NULL); | 506 | sigprocmask(SIG_SETMASK, &sigsaved, NULL); |