[RFC 1/4] Add qapi for block error injection

2019-09-19 Thread Tony Asleson
Proof of concept code to dynamically create/delete media errors for block devices using the qapi interface. This is useful for testing the OS and the block and FS layers for error handling. Utilizing this in a VM allows it to be OS agnostic and test the OS at it's lowest levels of hardware intera

Re: [RFC 1/4] Add qapi for block error injection

2019-09-20 Thread Philippe Mathieu-Daudé
Hi Tony, On 9/19/19 9:48 PM, Tony Asleson wrote: > Proof of concept code to dynamically create/delete media errors > for block devices using the qapi interface. This is useful for testing > the OS and the block and FS layers for error handling. Utilizing this > in a VM allows it to be OS agnosti

Re: [RFC 1/4] Add qapi for block error injection

2019-09-20 Thread Tony Asleson
On 9/20/19 4:03 AM, Philippe Mathieu-Daudé wrote: > Hi Tony, Hi Phil > > On 9/19/19 9:48 PM, Tony Asleson wrote: ... >> +void media_error_delete(const char *device_id, uint64_t lba) > > Can you explain the goal of this function? I don't understand it from > the hardware PoV. Or is it a simple c