From: Anthony Liguori Subject: Re: [Patch] Segfault with -vnc option Date: Mon, 22 Sep 2008 13:08:16 -0500 Message-ID: <48D7DF10.4030004@codemonkey.ws> References: <20080922171558.GA11353@x61s.gondor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org To: Jan Niehusmann Return-path: Received: from nf-out-0910.google.com ([64.233.182.184]:64123 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751573AbYIVSJQ (ORCPT ); Mon, 22 Sep 2008 14:09:16 -0400 Received: by nf-out-0910.google.com with SMTP id d3so553155nfc.21 for ; Mon, 22 Sep 2008 11:09:14 -0700 (PDT) In-Reply-To: <20080922171558.GA11353@x61s.gondor.com> Sender: kvm-owner@vger.kernel.org List-ID: 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. Regards, Anthony Liguori > Signed-off-by: Jan Niehusmann > > --- qemu/vnc.c.orig 2008-09-22 18:38:08.000000000 +0200 > +++ qemu/vnc.c 2008-09-22 18:39:13.000000000 +0200 > @@ -457,6 +457,9 @@ > int pitch = ds->linesize; > VncState *vs = ds->opaque; > > + /* Skip copy when on text console */ > + if(!is_graphic_console()) return; > + > vnc_update_client(vs); > > if (dst_y > src_y) { > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >