From patchwork Thu Dec 17 22:08:08 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Airlie X-Patchwork-Id: 41349 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E2347B6F04 for ; Fri, 18 Dec 2009 09:16:35 +1100 (EST) Received: from localhost ([127.0.0.1]:44869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLOe7-0004uo-Jz for incoming@patchwork.ozlabs.org; Thu, 17 Dec 2009 17:16:31 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLOYU-0001is-37 for qemu-devel@nongnu.org; Thu, 17 Dec 2009 17:10:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLOYP-0001eU-I9 for qemu-devel@nongnu.org; Thu, 17 Dec 2009 17:10:41 -0500 Received: from [199.232.76.173] (port=36357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLOYP-0001eL-Cn for qemu-devel@nongnu.org; Thu, 17 Dec 2009 17:10:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24864) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLOYO-0003lR-RQ for qemu-devel@nongnu.org; Thu, 17 Dec 2009 17:10:37 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nBHMAaK2003006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 17 Dec 2009 17:10:36 -0500 Received: from localhost.localdomain (dhcp-0-222.bne.redhat.com [10.64.0.222]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nBHMAUQD005737 for ; Thu, 17 Dec 2009 17:10:35 -0500 From: Dave Airlie To: qemu-devel@nongnu.org Date: Fri, 18 Dec 2009 08:08:08 +1000 Message-Id: <1261087691-8319-4-git-send-email-airlied@gmail.com> In-Reply-To: <1261087691-8319-3-git-send-email-airlied@gmail.com> References: <1261087691-8319-1-git-send-email-airlied@gmail.com> <1261087691-8319-2-git-send-email-airlied@gmail.com> <1261087691-8319-3-git-send-email-airlied@gmail.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 3/6] Make sure to enable dirty log tracking for VMware VGA X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Anthony Liguori This is needed for VMware VGA to work properly under KVM. Signed-off-by: Anthony Liguori --- hw/vmware_vga.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 07befc8..fcb6808 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -1169,6 +1169,10 @@ static void pci_vmsvga_map_mem(PCIDevice *pci_dev, int region_num, #endif cpu_register_physical_memory(s->vram_base, s->vga.vram_size, iomemtype); + + s->vga.map_addr = addr; + s->vga.map_end = addr + s->vga.vram_size; + vga_dirty_log_start(&s->vga); } static void pci_vmsvga_map_fifo(PCIDevice *pci_dev, int region_num,