Re: [PATCH] KVM: PPC: Book3S PR: Do not always inject facility unavailable exceptions

2017-04-03 Thread Paul Mackerras
On Mon, Apr 03, 2017 at 01:28:34PM +0200, Thomas Huth wrote: > KVM should not inject a facility unavailable exception into the guest > when it tries to execute a mtspr/mfspr instruction for an SPR that > is unavailable, and the vCPU is *not* running in PRoblem state. > > It's right that we inject

[PATCH] KVM: PPC: Book3S PR: Do not always inject facility unavailable exceptions

2017-04-03 Thread Thomas Huth
KVM should not inject a facility unavailable exception into the guest when it tries to execute a mtspr/mfspr instruction for an SPR that is unavailable, and the vCPU is *not* running in PRoblem state. It's right that we inject an exception when the vCPU is in PR mode, since chapter "6.2.10 Facilit