X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fcga.c;h=0513b8cbd6235dc180794eadd7bd2a62cb5a4c06;hb=4454a172129d12e97793c9c353339b85d3335af4;hp=d79e5777f08472649c07102c98247939a5ac9f0e;hpb=acaadd79c597c8d5180fbfbec79c01fef3dff003;p=palacios.git diff --git a/palacios/src/devices/cga.c b/palacios/src/devices/cga.c index d79e577..0513b8c 100644 --- a/palacios/src/devices/cga.c +++ b/palacios/src/devices/cga.c @@ -1102,7 +1102,7 @@ int v3_cons_get_fb(struct vm_device * frontend_dev, uint8_t * dst, uint_t offset static int cga_free(struct video_internal * video_state) { if (video_state->framebuf_pa) { - PrintError(VM_NONE, VCORE_NONE, "Freeing framebuffer PA %p\n", (void *)(video_state->framebuf_pa)); + PrintDebug(VM_NONE, VCORE_NONE, "Freeing framebuffer PA %p\n", (void *)(video_state->framebuf_pa)); V3_FreePages((void *)(video_state->framebuf_pa), (FRAMEBUF_SIZE / 4096)); } @@ -1252,7 +1252,7 @@ static int cga_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { video_state->dev = dev; - video_state->framebuf_pa = (addr_t)V3_AllocPages(FRAMEBUF_SIZE / 4096); + video_state->framebuf_pa = (addr_t)V3_AllocShadowSafePages(vm,FRAMEBUF_SIZE / 4096); if (!video_state->framebuf_pa) { PrintError(vm, VCORE_NONE, "Cannot allocate frame buffer\n");