]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: ppc: improve trap emulation
authorHollis Blanchard <hollisb@us.ibm.com>
Wed, 5 Nov 2008 15:36:24 +0000 (09:36 -0600)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:52:24 +0000 (16:52 +0200)
commit1c04258f1f47bf248c21d3bae1f66d2e01826bcb
treef37ca0b9eaec03193608447bf5107e6149fe62a8
parent1a4ed1bf6ef981d602f6565fd43db9c4be5c91d2
KVM: ppc: improve trap emulation

set ESR[PTR] when emulating a guest trap. This allows Linux guests to
properly handle WARN_ON() (i.e. detect that it's a non-fatal trap).

Also remove debugging printk in trap emulation.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/emulate.c