From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDhU0-0003KC-Sz for qemu-devel@nongnu.org; Fri, 30 Mar 2012 15:27:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDhTz-0008KZ-6w for qemu-devel@nongnu.org; Fri, 30 Mar 2012 15:27:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDhTy-0008KU-TP for qemu-devel@nongnu.org; Fri, 30 Mar 2012 15:27:35 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2UJRXjE029771 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 30 Mar 2012 15:27:33 -0400 Date: Fri, 30 Mar 2012 22:27:28 +0300 From: Alon Levy Message-ID: <20120330192728.GB11611@garlic.home> References: <1333054606-19847-1-git-send-email-alevy@redhat.com> <4F756A46.50102@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F756A46.50102@redhat.com> Subject: Re: [Qemu-devel] [RFC] qxl: don't panic on phys2virt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org On Fri, Mar 30, 2012 at 10:09:42AM +0200, Gerd Hoffmann wrote: > On 03/29/12 22:56, Alon Levy wrote: > > Issues a qxl_guest_bug from qxl_phys2virt. Everywhere else will fail. > > Nice start (there are more guest-triggerable asserts to be fixed this way). > > > qxl_phys2virt requires an additional argument because all it's possible > > return values are legit (well, I could use the fact it returns a pointer > > so it should be word aligned but I don't want to go there, this is > > totally internal). > > Really? What is bad with returning and checking for NULL? Guest > memslots are backed by guest ram and should never ever resolve to a NULL > pointer in qemu's process address space. phys2virt actually returns an offset, not a real pointer iirc. I'll check it again. > > cheers, > Gerd