Re: [PATCH] Ignore SRAO MCE if another MCE is being processed

2010-04-28 Thread Huang Ying
On Thu, 2010-04-29 at 00:33 +0800, Avi Kivity wrote: > On 04/28/2010 09:08 AM, Huang Ying wrote: > > > > There is some test script and document for this in: > > > > git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git > > > > test script is in "kvm" directory, testing document is kvm/README > >

Re: [PATCH] Ignore SRAO MCE if another MCE is being processed

2010-04-28 Thread Avi Kivity
On 04/28/2010 09:08 AM, Huang Ying wrote: There is some test script and document for this in: git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git test script is in "kvm" directory, testing document is kvm/README This is a good candidate for kvm-autotest. We'll get little user cove

Re: [PATCH] Ignore SRAO MCE if another MCE is being processed

2010-04-28 Thread Marcelo Tosatti
On Tue, Apr 27, 2010 at 03:10:49PM +0800, Huang Ying wrote: > In common cases, guest SRAO MCE will cause corresponding poisoned page > be un-mapped in host and SIGBUS be sent to QEMU-KVM, then QEMU-KVM > will relay the MCE to guest OS. > > But it is possible that the poisoned page is accessed in g

Re: [PATCH] Ignore SRAO MCE if another MCE is being processed

2010-04-27 Thread Huang Ying
On Wed, 2010-04-28 at 00:12 +0800, Marcelo Tosatti wrote: > On Tue, Apr 27, 2010 at 03:10:49PM +0800, Huang Ying wrote: > > In common cases, guest SRAO MCE will cause corresponding poisoned page > > be un-mapped in host and SIGBUS be sent to QEMU-KVM, then QEMU-KVM > > will relay the MCE to guest O

Re: [PATCH] Ignore SRAO MCE if another MCE is being processed

2010-04-27 Thread Marcelo Tosatti
On Tue, Apr 27, 2010 at 03:10:49PM +0800, Huang Ying wrote: > In common cases, guest SRAO MCE will cause corresponding poisoned page > be un-mapped in host and SIGBUS be sent to QEMU-KVM, then QEMU-KVM > will relay the MCE to guest OS. > > But it is possible that the poisoned page is accessed in g

[PATCH] Ignore SRAO MCE if another MCE is being processed

2010-04-27 Thread Huang Ying
In common cases, guest SRAO MCE will cause corresponding poisoned page be un-mapped in host and SIGBUS be sent to QEMU-KVM, then QEMU-KVM will relay the MCE to guest OS. But it is possible that the poisoned page is accessed in guest after un-mapped in host and before MCE is relayed to guest OS. So