From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMCec-0006cA-0b for qemu-devel@nongnu.org; Thu, 11 Oct 2012 02:53:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TMCeb-000598-31 for qemu-devel@nongnu.org; Thu, 11 Oct 2012 02:53:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TMCea-000593-Qn for qemu-devel@nongnu.org; Thu, 11 Oct 2012 02:53:57 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q9B6rtI8028491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 11 Oct 2012 02:53:55 -0400 Message-ID: <50766D01.2030509@redhat.com> Date: Thu, 11 Oct 2012 08:53:53 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1349885925-24216-1-git-send-email-alevy@redhat.com> In-Reply-To: <1349885925-24216-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: warn on sync io usage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alon Levy Cc: qemu-devel@nongnu.org Hi, > +static void sync_io_warning(PCIQXLDevice *qxl, uint32_t io_port) > +{ > + fprintf(stderr, "qxl-%d: WARNING: sync io used, see (RHBZ 747011)", > + qxl->id); > + fprintf(stderr, "qxl-%d: WARNING: virt-viewer/remote-viewer can hang\n", > + qxl->id); > + if (qxl->revision < 3) { > + fprintf(stderr, "qxl-%d: WARNING: revision >= 3 should be used\n", > + qxl->id); > + } > +} The message should also include hints how to fix that. For the revision this probably means to update the machine type from pc-0.12 (which sets rev=2 via compat properties) to something newer. Telling the user what to do about it is tricky though as there seems to be no simple GUI way to do that, at least not in virt-manager. In the other hand if the user manages to find the message in /var/log/libvirt/qemu/${guest}.log he might be experienced enough to just "virsh edit ${guest}". For the sync I/O it's easy, just say something like "Update qxl drivers in the guest." BTW: You can print multi-line messages this way ... fprintf(stderr, "long line one\n" "long line two\n", args, here); ... which I find more readable in the source code. Do we wanna have a "suggest to update guest drivers for device $foo" qmp message for management? Or has ovirt/rhev better ways (guest agent?) to deal with that? cheers, Gerd