[PATCH 1/2] qemu: mach-vexpress: Fix the video ram of the vexpress emulated board with the dirty log attribution.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Haibin Wang <wanghaibin.wang@xxxxxxxxxx>

For VNC feature support, the framebuffer(video ram) need refresh the server window in virtue of the
ability that the KVM can log the framebufffer dirty pages.
So, while regist the video ram memslot, init the video ram with  the dirty log attribution.

Signed-off-by: Haibin Wang <wanghaibin.wang@xxxxxxxxxx>
---
 hw/arm/vexpress.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/arm/vexpress.c b/hw/arm/vexpress.c
index aed218f..fa16c8d 100644
--- a/hw/arm/vexpress.c
+++ b/hw/arm/vexpress.c
@@ -646,6 +646,7 @@ static void vexpress_common_init(VEDBoardInfo *daughterboard,
     memory_region_init_ram(vram, NULL, "vexpress.vram", vram_size,
                            &error_abort);
     vmstate_register_ram_global(vram);
+    memory_region_set_log(vram, true, DIRTY_MEMORY_VGA);
     memory_region_add_subregion(sysmem, map[VE_VIDEORAM], vram);
 
     /* 0x4e000000 LAN9118 Ethernet */
-- 
1.7.1


_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm




[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux