On 11/10/2010 10:38 AM, Huang Ying wrote:
> > If we get a full address (rather than just a frame number) then we can > identify the 4k page and send an mce just for that frame? We need host kernel to break down the 2M huge page into 4k pages. Then send SIGBUS to QEMU with the poisoned 4k page. Because host kernel will poison the whole 2M virtual address space otherwise, and other 4k pages inside the 2M page can not used accessed in guest (will trigger SIGBUS and SRAR MCE).
We could do that by using mmap(MAP_FIXED) or mremap(). It's probably not worth it just for testing, but it has a real use, no?
Note we may need to stop the guest while we copy memory. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html