megasas: Fixup MSI-X handling
commit7957ee71c7733ca20178a49ba7de2b84bbc53d29
authorHannes Reinecke <hare@suse.de>
Wed, 29 Oct 2014 12:00:16 +0000 (29 13:00 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 Oct 2014 10:29:01 +0000 (31 11:29 +0100)
tree7df6815d4e019f35d00e29a48f55d6446470d0fb
parent6df5718bd3ec56225c44cf96440c723c1b611b87
megasas: Fixup MSI-X handling

MSI-X works slightly different than INTx; the doorbell
registers are not necessarily used as MSI-X interrupts
are directed anyway. So the head pointer on the
reply queue needs to be updated as soon as a frame
is completed, and we can set the doorbell only
when in INTx mode.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/megasas.c
trace-events