Re: [PATCH 2/2] KVM, Fix QEMU-KVM is killed by guest SRAO MCE

From: Avi Kivity
Date: Wed Apr 28 2010 - 05:48:22 EST


On 04/28/2010 05:56 AM, Huang Ying wrote:

Just want to use the side effect of copy_from_user, SIGBUS will be sent
to current process because the page touched is marked as poisoned. That
is, failure is expected, so the return value is not checked.

What if the failure doesn't happen? Say, someone mmap()ed over the page.
Sorry, not get your idea clearly. hva is re-mmap()ed? We just read the
hva, not write, so I think it should be OK here.


We don't generate a signal in this case. Does the code continue to work correctly (not sure what correctly is in this case... should probably just continue).

There's also the possibility of -EFAULT.

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/