From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxNzg-0002hd-84 for qemu-devel@nongnu.org; Fri, 03 Aug 2012 15:57:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxNzf-0003fT-Gy for qemu-devel@nongnu.org; Fri, 03 Aug 2012 15:57:08 -0400 Date: Fri, 3 Aug 2012 15:57:02 -0400 From: Jason Baron Message-Id: Subject: [Qemu-devel] [PATCH v2] ahci: fix cdrom read corruption List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: agraf@suse.de Cc: kwolf@redhat.com, aliguori@us.ibm.com, qemu-devel@nongnu.org, armbru@redhat.com, qemu-stable@nongnu.org, alex.williamson@redhat.com, avi@redhat.com, pbonzini@redhat.com, afaerber@suse.de Hi, While testing q35 I found data corruption on reads from the cdrom on the ahci controller. The first patch addresses this issue. I also noticed that there is a memory leak in the ahci code, which is addressed in the second patch. Thanks, -Jason v2: fprintf -> DPRINTF (so can't be triggered by guest) 0 sglist fields Jason Baron (2): ahci: Fix ahci cdrom read corruptions for reads > 128k ahci: Fix sglist memleak in ahci_dma_rw_buf() dma-helpers.c | 1 + hw/ide/ahci.c | 44 +++++++++++++++++++++++++++++++++++++------- hw/ide/internal.h | 1 + 3 files changed, 39 insertions(+), 7 deletions(-)