Kernel KVM-PPC virtualization development
 help / color / mirror / Atom feed
* [kvm-ppc-devel] [PATCH] Fix signal handing line KVM PowerPC
@ 2008-02-01 21:48 Jerone Young
  2008-02-05  2:00 ` Hollis Blanchard
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jerone Young @ 2008-02-01 21:48 UTC (permalink / raw)
  To: kvm-ppc

Code was missing for our kernel code to properly handle signals, by
setting the signal mask and saving off our current one, then restoring
it at the end. This code does what x86 does and now keyboard input
works.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>


diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -685,6 +688,10 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_v
 int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run)
 {
        int r;
+       sigset_t sigsaved;
+
+       if (vcpu->sigset_active)
+               sigprocmask(SIG_SETMASK, &vcpu->sigset, &sigsaved);
 
        if (vcpu->mmio_needed) {
                if (!vcpu->mmio_is_write)
@@ -702,6 +709,10 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_v
 
        r = __kvmppc_vcpu_run(run, vcpu);
        local_irq_enable(); /* XXX */
+
+         
+       if (vcpu->sigset_active)
+               sigprocmask(SIG_SETMASK, &sigsaved, NULL);
 
        return r;
 }



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-ppc-devel mailing list
kvm-ppc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-13  5:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-01 21:48 [kvm-ppc-devel] [PATCH] Fix signal handing line KVM PowerPC Jerone Young
2008-02-05  2:00 ` Hollis Blanchard
2008-02-06 19:30 ` Hollis Blanchard
2008-02-08  9:42 ` Christian Ehrhardt
2008-02-11  0:59 ` Hollis Blanchard
2008-02-13  5:13 ` Hollis Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox