qxl: move ram size init to new function