From: "andrzej zaborowski" Subject: Re: [Qemu-devel] Re: [Patch] Segfault with -vnc option Date: Mon, 22 Sep 2008 23:15:04 +0200 Message-ID: References: <20080922171558.GA11353@x61s.gondor.com> <48D7DF10.4030004@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "Jan Niehusmann" , kvm@vger.kernel.org To: qemu-devel@nongnu.org Return-path: Received: from rv-out-0506.google.com ([209.85.198.232]:50559 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753150AbYIVVPF (ORCPT ); Mon, 22 Sep 2008 17:15:05 -0400 Received: by rv-out-0506.google.com with SMTP id k40so1827909rvb.1 for ; Mon, 22 Sep 2008 14:15:04 -0700 (PDT) In-Reply-To: <48D7DF10.4030004@codemonkey.ws> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 2008/9/22 Anthony Liguori : > Jan Niehusmann wrote: >> >> Hi! >> > > Hi Jan, > > Very good catch. My only suggestion would be to move this check into > cirrus_vga.c and vmware_vga.c. Even better would be to introduce a wrapper > around callers of dpy_copy. Yes, I don't think hw/ code should be concerned with what console is active. Logically the dpy_ functions should take the pointer returned from graphic_console_init() as first parameter. Please also check the code is formatted consistently with qemu. I didn't receive Jan's message but the check seems to not be enough because there can be multiple graphical consoles with different sizes - if I'm guessing correctly what this patch tries to fix. Cheers