Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-26 Thread Alexander Graf
On 23.11.2012, at 22:42, Paul Mackerras wrote: On Fri, Nov 23, 2012 at 03:13:09PM +0100, Alexander Graf wrote: On 22.11.2012, at 10:25, Paul Mackerras wrote: + /* Do they have an SLB shadow buffer registered? */ + slb = vcpu-arch.slb_shadow.pinned_addr; + if (!slb) +

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-26 Thread Paul Mackerras
On Mon, Nov 26, 2012 at 02:15:16PM +0100, Alexander Graf wrote: On 23.11.2012, at 22:42, Paul Mackerras wrote: On Fri, Nov 23, 2012 at 03:13:09PM +0100, Alexander Graf wrote: On 22.11.2012, at 10:25, Paul Mackerras wrote: + /* Do they have an SLB shadow buffer registered? */ +

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-26 Thread Alexander Graf
On 26.11.2012, at 22:33, Paul Mackerras wrote: On Mon, Nov 26, 2012 at 02:15:16PM +0100, Alexander Graf wrote: On 23.11.2012, at 22:42, Paul Mackerras wrote: On Fri, Nov 23, 2012 at 03:13:09PM +0100, Alexander Graf wrote: On 22.11.2012, at 10:25, Paul Mackerras wrote: + /* Do they

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-26 Thread Alexander Graf
On 26.11.2012, at 22:55, Alexander Graf wrote: On 26.11.2012, at 22:33, Paul Mackerras wrote: On Mon, Nov 26, 2012 at 02:15:16PM +0100, Alexander Graf wrote: On 23.11.2012, at 22:42, Paul Mackerras wrote: On Fri, Nov 23, 2012 at 03:13:09PM +0100, Alexander Graf wrote: On

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-26 Thread Paul Mackerras
On Mon, Nov 26, 2012 at 11:03:48PM +0100, Alexander Graf wrote: On 26.11.2012, at 22:55, Alexander Graf wrote: On 26.11.2012, at 22:33, Paul Mackerras wrote: On Mon, Nov 26, 2012 at 02:15:16PM +0100, Alexander Graf wrote: On 23.11.2012, at 22:42, Paul Mackerras wrote: On

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-26 Thread Alexander Graf
On 23.11.2012, at 22:42, Paul Mackerras wrote: On Fri, Nov 23, 2012 at 03:13:09PM +0100, Alexander Graf wrote: On 22.11.2012, at 10:25, Paul Mackerras wrote: + /* Do they have an SLB shadow buffer registered? */ + slb = vcpu-arch.slb_shadow.pinned_addr; + if (!slb) +

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-26 Thread Paul Mackerras
On Mon, Nov 26, 2012 at 02:15:16PM +0100, Alexander Graf wrote: On 23.11.2012, at 22:42, Paul Mackerras wrote: On Fri, Nov 23, 2012 at 03:13:09PM +0100, Alexander Graf wrote: On 22.11.2012, at 10:25, Paul Mackerras wrote: + /* Do they have an SLB shadow buffer registered? */ +

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-26 Thread Alexander Graf
On 26.11.2012, at 22:33, Paul Mackerras wrote: On Mon, Nov 26, 2012 at 02:15:16PM +0100, Alexander Graf wrote: On 23.11.2012, at 22:42, Paul Mackerras wrote: On Fri, Nov 23, 2012 at 03:13:09PM +0100, Alexander Graf wrote: On 22.11.2012, at 10:25, Paul Mackerras wrote: + /* Do they

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-26 Thread Alexander Graf
On 26.11.2012, at 22:55, Alexander Graf wrote: On 26.11.2012, at 22:33, Paul Mackerras wrote: On Mon, Nov 26, 2012 at 02:15:16PM +0100, Alexander Graf wrote: On 23.11.2012, at 22:42, Paul Mackerras wrote: On Fri, Nov 23, 2012 at 03:13:09PM +0100, Alexander Graf wrote: On

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-26 Thread Paul Mackerras
On Mon, Nov 26, 2012 at 11:03:48PM +0100, Alexander Graf wrote: On 26.11.2012, at 22:55, Alexander Graf wrote: On 26.11.2012, at 22:33, Paul Mackerras wrote: On Mon, Nov 26, 2012 at 02:15:16PM +0100, Alexander Graf wrote: On 23.11.2012, at 22:42, Paul Mackerras wrote: On

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-23 Thread Alexander Graf
On 22.11.2012, at 10:25, Paul Mackerras wrote: Currently, if a machine check interrupt happens while we are in the guest, we exit the guest and call the host's machine check handler, which tends to cause the host to panic. Some machine checks can be triggered by the guest; for example, if

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-23 Thread Paul Mackerras
On Fri, Nov 23, 2012 at 03:13:09PM +0100, Alexander Graf wrote: On 22.11.2012, at 10:25, Paul Mackerras wrote: + /* Do they have an SLB shadow buffer registered? */ + slb = vcpu-arch.slb_shadow.pinned_addr; + if (!slb) + return; Mind to explain this case? What

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-23 Thread Alexander Graf
On 22.11.2012, at 10:25, Paul Mackerras wrote: Currently, if a machine check interrupt happens while we are in the guest, we exit the guest and call the host's machine check handler, which tends to cause the host to panic. Some machine checks can be triggered by the guest; for example, if

Re: [PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-23 Thread Paul Mackerras
On Fri, Nov 23, 2012 at 03:13:09PM +0100, Alexander Graf wrote: On 22.11.2012, at 10:25, Paul Mackerras wrote: + /* Do they have an SLB shadow buffer registered? */ + slb = vcpu-arch.slb_shadow.pinned_addr; + if (!slb) + return; Mind to explain this case? What

[PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-22 Thread Paul Mackerras
Currently, if a machine check interrupt happens while we are in the guest, we exit the guest and call the host's machine check handler, which tends to cause the host to panic. Some machine checks can be triggered by the guest; for example, if the guest creates two entries in the SLB that map the

[PATCH 1/5] KVM: PPC: Book3S HV: Handle guest-caused machine checks on POWER7 without panicking

2012-11-22 Thread Paul Mackerras
Currently, if a machine check interrupt happens while we are in the guest, we exit the guest and call the host's machine check handler, which tends to cause the host to panic. Some machine checks can be triggered by the guest; for example, if the guest creates two entries in the SLB that map the