From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeLss-0007bF-3p for qemu-devel@nongnu.org; Tue, 12 Jun 2012 03:51:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeLsk-0001Yf-M0 for qemu-devel@nongnu.org; Tue, 12 Jun 2012 03:51:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeLsk-0001X8-Cz for qemu-devel@nongnu.org; Tue, 12 Jun 2012 03:51:18 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5C7pGfK015092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 12 Jun 2012 03:51:16 -0400 From: Gerd Hoffmann Date: Tue, 12 Jun 2012 09:51:07 +0200 Message-Id: <1339487474-8481-4-git-send-email-kraxel@redhat.com> In-Reply-To: <1339487474-8481-1-git-send-email-kraxel@redhat.com> References: <1339487474-8481-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 03/10] qxl: stop dirty loging when not in vga mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alon Levy , Gerd Hoffmann From: Alon Levy Tested with linux guest. Not sure how to check actual performance affect of this. Checked with the previously send traceevent that the kvm ioctl to start/stop dirty logging is being called. (KVM_SET_USER_MEMORY_REGION). Signed-off-by: Alon Levy Signed-off-by: Gerd Hoffmann --- hw/qxl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 8777ba9..5a7be60 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -932,6 +932,7 @@ static void qxl_enter_vga_mode(PCIQXLDevice *d) qemu_spice_create_host_primary(&d->ssd); d->mode = QXL_MODE_VGA; memset(&d->ssd.dirty, 0, sizeof(d->ssd.dirty)); + vga_dirty_log_start(&d->vga); } static void qxl_exit_vga_mode(PCIQXLDevice *d) @@ -940,6 +941,7 @@ static void qxl_exit_vga_mode(PCIQXLDevice *d) return; } trace_qxl_exit_vga_mode(d->id); + vga_dirty_log_stop(&d->vga); qxl_destroy_primary(d, QXL_SYNC); } -- 1.7.1