As far as I know, QEMU only reports errors on invalid commands. If you want to test your error handlers with different types of errors, you'll have to find another way.
If your driver is modular enough, you can add an interposer between it and the HBA I/O and inject fake errors that way.
You can run your driver under a debugger and use the debugger to overwrite the drive's actual response with an error response.
You can try your driver with a broken hard drive. It probably won't test all of your error handlers, but I'm sure it'll be fun.
|