From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTr9n-0001E9-0B for qemu-devel@nongnu.org; Thu, 01 Nov 2012 05:33:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTr9l-0005mu-1R for qemu-devel@nongnu.org; Thu, 01 Nov 2012 05:33:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTr9k-0005mZ-P1 for qemu-devel@nongnu.org; Thu, 01 Nov 2012 05:33:44 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qA19XhZ0028699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 1 Nov 2012 05:33:43 -0400 Message-ID: <509241F5.8070605@redhat.com> Date: Thu, 01 Nov 2012 10:33:41 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1351168048-29190-1-git-send-email-alevy@redhat.com> In-Reply-To: <1351168048-29190-1-git-send-email-alevy@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] hw/qxl: vaildate surface->data List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alon Levy Cc: qemu-devel@nongnu.org On 10/25/12 14:27, Alon Levy wrote: > Signed-off-by: Alon Levy Looks sane at a quick glance. But: how far we wanna take this? Add checks to qxl for each and every assert() guests can trigger in spice-server? So we end up sanity-checking everything twice long-term? I think instead we'll need a way for spice-server to report back errors to qxl. So spice-server would just notify qxl and go on (or stop processing until reset) instead of aborting. qxl in turn will notify the guest. [ The alternative would be to basically move server/red_parse_qxl.c into the qemu codebase. I don't think we want that because that would make a bunch of data structures which are spice-server internal today (for good reasons) a libspice-server ABI+API. ] cheers, Gerd