From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPwE0-0004lU-83 for qemu-devel@nongnu.org; Tue, 18 Mar 2014 11:46:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPwDv-00040q-9b for qemu-devel@nongnu.org; Tue, 18 Mar 2014 11:46:44 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:34124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPwDv-00040R-3l for qemu-devel@nongnu.org; Tue, 18 Mar 2014 11:46:39 -0400 Received: by mail-la0-f45.google.com with SMTP id hr17so4866181lab.4 for ; Tue, 18 Mar 2014 08:46:38 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1392073373-3295-1-git-send-email-robherring2@gmail.com> References: <1392073373-3295-1-git-send-email-robherring2@gmail.com> From: Peter Maydell Date: Tue, 18 Mar 2014 15:46:17 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH] ahci: fix sysbus support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: Rob Herring , =?UTF-8?Q?Andreas_F=C3=A4rber?= On 10 February 2014 23:02, Rob Herring wrote: > From: Rob Herring > > Non-PCI AHCI support is broken due to assertion failures when trying > to convert AHCIState to a PCIDevice pointer as AHCIState can have > different container structs. Fix this by using the non-asserting object > cast and checking the returned pointer is not NULL. > > The AddressSpace pointer is also being initialized to NULL and causing > dma_memory_map call to fail. Fix this by initializing to > address_space_memory for sysbus instances. > > Also correct AHCI_VMSTATE to use the correct container SysbusAHCIState > for sysbus instances. > > Signed-off-by: Rob Herring Andreas just confirmed on IRC that the cast syntax you've used is fine, so I'll take this into target-arm.next (since Highbank is the only user of sysbus-ahci). I expect to get this into rc1. Reviewed-by: Peter Maydell thanks -- PMM