From patchwork Wed May 12 06:14:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerhard Wiesinger X-Patchwork-Id: 98918 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4C6JYew027199 for ; Wed, 12 May 2010 06:19:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753358Ab0ELGTI (ORCPT ); Wed, 12 May 2010 02:19:08 -0400 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:41080 "EHLO wiesinger.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753343Ab0ELGTF (ORCPT ); Wed, 12 May 2010 02:19:05 -0400 Received: from bbs.intern (localhost [127.0.0.1]) by wiesinger.com (8.14.4/8.14.4) with ESMTP id o4C6ED2H028518; Wed, 12 May 2010 08:14:13 +0200 Received: from localhost (gerhard@localhost) by bbs.intern (8.14.4/8.14.4/Submit) with ESMTP id o4C6ECON028513; Wed, 12 May 2010 08:14:12 +0200 Date: Wed, 12 May 2010 08:14:12 +0200 (CEST) From: Gerhard Wiesinger To: Avi Kivity cc: Jamie Lokier , qemu-devel@nongnu.org, kvm@vger.kernel.org Subject: Re: [Qemu-devel] Re: QEMU-KVM and video performance In-Reply-To: <4BE7B6A9.8060007@redhat.com> Message-ID: References: <4BCEBE5C.4020404@redhat.com> <20100421183357.GK27575@shareable.org> <4BCF6699.2060201@redhat.com> <4BCFF4B5.7010302@redhat.com> <4BE7B6A9.8060007@redhat.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 X-MailScanner-Information-wiesinger-com: Please contact the ISP for more information X-wiesinger-com-MailScanner-ID: o4C6ED2H028518 X-MailScanner-wiesinger-com: Found to be clean X-MailScanner-SpamCheck-wiesinger-com: not spam, SpamAssassin (not cached, score=-4.399, required 4.5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-MailScanner-From: lists@wiesinger.com Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 12 May 2010 06:19:34 +0000 (UTC) diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 571044f..68c6083 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -2581,6 +2581,7 @@ static void map_linear_vram(CirrusVGAState *s) cpu_register_physical_memory(isa_mem_base + 0xa8000, 0x8000, (s->vga.vram_offset + s->cirrus_bank_base[1]) | IO_MEM_RAM); + printf("Cirrus VGA: lfb_vram_mapped=1\n"); s->vga.lfb_vram_mapped = 1; } else { diff --git a/hw/vga.c b/hw/vga.c index a5e2387..cb8a209 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -1612,15 +1612,19 @@ static void mark_dirty(target_phys_addr_t start, target_phys_addr_t len) void vga_dirty_log_start(VGACommonState *s) { + printf("vga_dirty_log_start\n"); if (kvm_enabled() && s->map_addr) if (!s1) { + printf("vga_dirty_log_start_mapping_map_addr, start=0x%08X, len=0x%08X\n", s->map_addr, s->map_end - s->map_addr); kvm_log_start(s->map_addr, s->map_end - s->map_addr); mark_dirty(s->map_addr, s->map_end - s->map_addr); s1 = 1; } if (kvm_enabled() && s->lfb_vram_mapped) { if (!s2) { + printf("vga_dirty_log_start_mapping_lfb_vram_mapped, start=0x%08X, len=0x%08X\n", (unsigned int)(isa_mem_base + 0xa0000), 0x8000); kvm_log_start(isa_mem_base + 0xa0000, 0x8000); + printf("vga_dirty_log_start_mapping_lfb_vram_mapped, start=0x%08X, len=0x%08X\n", (unsigned int)(isa_mem_base + 0xa8000), 0x8000); kvm_log_start(isa_mem_base + 0xa8000, 0x8000); mark_dirty(isa_mem_base + 0xa0000, 0x10000); } @@ -1630,6 +1634,7 @@ void vga_dirty_log_start(VGACommonState *s) #ifdef CONFIG_BOCHS_VBE if (kvm_enabled() && s->vbe_mapped) { if (!s3) { + printf("vga_dirty_log_start_mapping_lfb_vram_mapped, start=0x%08X, len=0x%08X\n", VBE_DISPI_LFB_PHYSICAL_ADDRESS, s->vram_size); kvm_log_start(VBE_DISPI_LFB_PHYSICAL_ADDRESS, s->vram_size); } s3 = 1; @@ -1965,6 +1970,7 @@ void vga_common_reset(VGACommonState *s) s->map_addr = 0; s->map_end = 0; s->lfb_vram_mapped = 0; +// s->lfb_vram_mapped = 1; s->bios_offset = 0; s->bios_size = 0; s->sr_index = 0;