From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgdRf-0004tb-Me for qemu-devel@nongnu.org; Tue, 12 Jul 2011 09:56:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgdRa-0008Kn-Iy for qemu-devel@nongnu.org; Tue, 12 Jul 2011 09:56:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgdRZ-0008KC-Nd for qemu-devel@nongnu.org; Tue, 12 Jul 2011 09:56:09 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6CDu8mP026972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 12 Jul 2011 09:56:08 -0400 From: Alon Levy Date: Tue, 12 Jul 2011 16:55:24 +0300 Message-Id: <1310478932-25370-12-git-send-email-alevy@redhat.com> In-Reply-To: <1310478932-25370-1-git-send-email-alevy@redhat.com> References: <1310478932-25370-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCHv3] qxl: QXL_IO_UPDATE_AREA: pass ram->update_area directly to update_area List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kraxel@redhat.com --- hw/qxl.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 17b5b39..6094b38 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -136,7 +136,6 @@ void qxl_guest_bug(PCIQXLDevice *qxl, const char *msg, ...) } } - void qxl_spice_update_area(PCIQXLDevice *qxl, uint32_t surface_id, struct QXLRect *area, struct QXLRect *dirty_rects, uint32_t num_dirty_rects, uint32_t clear_dirty_region) @@ -1081,12 +1080,9 @@ static void ioport_write(void *opaque, uint32_t addr, uint32_t val) switch (io_port) { case QXL_IO_UPDATE_AREA: - { - QXLRect update = d->ram->update_area; qxl_spice_update_area(d, d->ram->update_surface, - &update, NULL, 0, 0); + &d->ram->update_area, NULL, 0, 1); break; - } case QXL_IO_NOTIFY_CMD: qemu_spice_wakeup(&d->ssd); break; -- 1.7.6