Re: [Qemu-devel] [RFC 07/10] ide/ahci: Reorder error cases in handle_cmd

2014-09-13 Thread Paolo Bonzini
Il 13/09/2014 06:34, John Snow ha scritto: > Error checking in ahci's handle_cmd is re-ordered so that we > initialize as few things as possible before we've done our > sanity checking. This simplifies returning from this call > in case of an error. > > A check to make sure the DMA memory map succ

[Qemu-devel] [RFC 07/10] ide/ahci: Reorder error cases in handle_cmd

2014-09-12 Thread John Snow
Error checking in ahci's handle_cmd is re-ordered so that we initialize as few things as possible before we've done our sanity checking. This simplifies returning from this call in case of an error. A check to make sure the DMA memory map succeeds with the correct size is also added, and the debug