Skip to content
Commit f61d82c2 authored by Gonglei's avatar Gonglei Committed by Gerd Hoffmann
Browse files

cirrus_vga: adding sanity check for vram size



when configure a invalid vram size for cirrus card, such as less
2 MB, which will crash qemu. Follow the real hardware, the cirrus
card has 4 MB video memory. Also for backward compatibility, accept
8 MB and 16 MB vram size.

Signed-off-by: default avatarGonglei <arei.gonglei@huawei.com>
Reviewed-by: default avatarAndreas Färber <afaerber@suse.de>
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 9e99c5fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment