X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fcga.c;h=1d23a205c7c150c7443cff20cd1935e6e9a5217d;hb=799ace973c21ddecaaf7df1ce416f2dafbed9445;hp=d79e5777f08472649c07102c98247939a5ac9f0e;hpb=acaadd79c597c8d5180fbfbec79c01fef3dff003;p=palacios.git diff --git a/palacios/src/devices/cga.c b/palacios/src/devices/cga.c index d79e577..1d23a20 100644 --- a/palacios/src/devices/cga.c +++ b/palacios/src/devices/cga.c @@ -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");