All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hollis Blanchard <hollisb@us.ibm.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: [kvm-ppc-devel] [PATCH] Fix signal handing line KVM PowerPC
Date: Tue, 05 Feb 2008 02:00:30 +0000	[thread overview]
Message-ID: <1202176830.31520.54.camel@basalt> (raw)
In-Reply-To: <1201902484.15106.9.camel@thinkpad.austin.ibm.com>

On Fri, 2008-02-01 at 15:48 -0600, Jerone Young wrote:
> 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;
>  }

Applied, thanks. Please watch your whitespace in the future though
(including in your mailer :).

-- 
Hollis Blanchard
IBM Linux Technology Center



-------------------------------------------------------------------------
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

  reply	other threads:[~2008-02-05  2:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-01 21:48 [kvm-ppc-devel] [PATCH] Fix signal handing line KVM PowerPC Jerone Young
2008-02-05  2:00 ` Hollis Blanchard [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1202176830.31520.54.camel@basalt \
    --to=hollisb@us.ibm.com \
    --cc=kvm-ppc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.