megasas: Rework frame queueing algorithm
commit6df5718bd3ec56225c44cf96440c723c1b611b87
authorHannes Reinecke <hare@suse.de>
Wed, 29 Oct 2014 12:00:15 +0000 (29 13:00 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 Oct 2014 10:29:01 +0000 (31 11:29 +0100)
tree1aea529349773a4d24d6fb65c09e1f7897d11ce4
parentaaf2a859b6758ad9b3a6fa242b0453bd7d8b7615
megasas: Rework frame queueing algorithm

Windows requires the frames to be unmapped, otherwise we run
into a race condition where the updated frame data is not
visible to the guest.
With that we can simplify the queue algorithm and use a bitmap
for tracking free frames.

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