[PATCH 2/2] KVM: PPC: Book3S HV: Better handling of exceptions that happen in real mode

2013-10-04 Thread Paul Mackerras
When an interrupt or exception happens in the guest that comes to the host, the CPU goes to hypervisor real mode (MMU off) to handle the exception but doesn't change the MMU context. After saving a few registers, we then clear the in guest flag. If, for any reason, we get an exception in the

Re: [PATCH 2/2] KVM: PPC: Book3S HV: Better handling of exceptions that happen in real mode

2013-10-04 Thread Alexander Graf
On 04.10.2013, at 13:45, Paul Mackerras wrote: When an interrupt or exception happens in the guest that comes to the host, the CPU goes to hypervisor real mode (MMU off) to handle the exception but doesn't change the MMU context. After saving a few registers, we then clear the in guest

Re: [PATCH 2/2] KVM: PPC: Book3S HV: Better handling of exceptions that happen in real mode

2013-10-04 Thread Paul Mackerras
On Fri, Oct 04, 2013 at 01:59:25PM +0200, Alexander Graf wrote: On 04.10.2013, at 13:45, Paul Mackerras wrote: When an interrupt or exception happens in the guest that comes to the host, the CPU goes to hypervisor real mode (MMU off) to handle the exception but doesn't change the MMU

Re: [PATCH 2/2] KVM: PPC: Book3S HV: Better handling of exceptions that happen in real mode

2013-10-04 Thread Alexander Graf
On 04.10.2013, at 14:33, Paul Mackerras wrote: On Fri, Oct 04, 2013 at 01:59:25PM +0200, Alexander Graf wrote: On 04.10.2013, at 13:45, Paul Mackerras wrote: When an interrupt or exception happens in the guest that comes to the host, the CPU goes to hypervisor real mode (MMU off) to

Re: [PATCH 2/2] KVM: PPC: Book3S HV: Better handling of exceptions that happen in real mode

2013-10-04 Thread Paul Mackerras
On Fri, Oct 04, 2013 at 02:56:31PM +0200, Alexander Graf wrote: On 04.10.2013, at 14:33, Paul Mackerras wrote: On Fri, Oct 04, 2013 at 01:59:25PM +0200, Alexander Graf wrote: On 04.10.2013, at 13:45, Paul Mackerras wrote: When an interrupt or exception happens in the guest that