I am trying to prevent write from DomU for particular sector of hardisk which is passed through QEMU device.
I am putting an error condition in ide.c using API ide_handle_write_error(s, -ret, BM_STATUS_ERROR) called from ide_write_dma_cb, however DomU is still going ahead and writing to those sectors.
Is there a way to prevent DomU from writing to certain sector of hard disk as well as propagate those error back to DomU saying, "Write error" or some message so that user is notified of error writing to certain sectors of disk.
Regards
Shakil
-----------