> 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).

The easiest way would be to port the respective code from Andrea's 
transparent hugetlb patchkit. It already does break down huge pages
as needed. You just have to be careful to not touch (/copy) the corrupted
subpage.

-Andi

-- 
a...@linux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to