linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: Nicholas Piggin <npiggin@gmail.com>, linuxppc-dev@lists.ozlabs.org
Cc: kvm-ppc@vger.kernel.org, Nicholas Piggin <npiggin@gmail.com>
Subject: Re: KVM: PPC: Book3S HV: Handle host system reset in guest mode
Date: Wed,  8 Nov 2017 10:30:24 +1100 (AEDT)	[thread overview]
Message-ID: <3yWlz51TSQz9ryT@ozlabs.org> (raw)
In-Reply-To: <20171105123355.3014-1-npiggin@gmail.com>

On Sun, 2017-11-05 at 12:33:55 UTC, Nicholas Piggin wrote:
> If the host takes a system reset interrupt while a guest is running,
> the CPU must exit the guest before processing the host exception
> handler.
> 
> After this patch, taking a sysrq+x with a CPU running in a guest
> gives a trace like this:
> 
>    cpu 0x27: Vector: 100 (System Reset) at [c000000fdf5776f0]
>        pc: c008000010158b80: kvmppc_run_core+0x16b8/0x1ad0 [kvm_hv]
>        lr: c008000010158b80: kvmppc_run_core+0x16b8/0x1ad0 [kvm_hv]
>        sp: c000000fdf577850
>       msr: 9000000002803033
>      current = 0xc000000fdf4b1e00
>      paca    = 0xc00000000fd4d680	 softe: 3	 irq_happened: 0x01
>        pid   = 6608, comm = qemu-system-ppc
>    Linux version 4.14.0-rc7-01489-g47e1893a404a-dirty #26 SMP
>    [c000000fdf577a00] c008000010159dd4 kvmppc_vcpu_run_hv+0x3dc/0x12d0 [kvm_hv]
>    [c000000fdf577b30] c0080000100a537c kvmppc_vcpu_run+0x44/0x60 [kvm]
>    [c000000fdf577b60] c0080000100a1ae0 kvm_arch_vcpu_ioctl_run+0x118/0x310 [kvm]
>    [c000000fdf577c00] c008000010093e98 kvm_vcpu_ioctl+0x530/0x7c0 [kvm]
>    [c000000fdf577d50] c000000000357bf8 do_vfs_ioctl+0xd8/0x8c0
>    [c000000fdf577df0] c000000000358448 SyS_ioctl+0x68/0x100
>    [c000000fdf577e30] c00000000000b220 system_call+0x58/0x6c
>    --- Exception: c01 (System Call) at 00007fff76868df0
>    SP (7fff7069baf0) is in userspace
> 
> Fixes: e36d0a2ed5 ("powerpc/powernv: Implement NMI IPI with OPAL_SIGNAL_SYSTEM_RESET")
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/6de6638b35daa0dfb7daefd78d5501

cheers

      reply	other threads:[~2017-11-07 23:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-05 12:33 [PATCH] KVM: PPC: Book3S HV: Handle host system reset in guest mode Nicholas Piggin
2017-11-07 23:30 ` Michael Ellerman [this message]

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=3yWlz51TSQz9ryT@ozlabs.org \
    --to=patch-notifications@ellerman.id.au \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=npiggin@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).