hw/display/qxl: Set pci rom address aligned with page size
commitce7015d9e8669e2a45aba7a95fe6ef8a8f55bfe0
authormaobibo <maobibo@loongson.cn>
Tue, 18 May 2021 12:20:48 +0000 (18 20:20 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 27 May 2021 09:55:59 +0000 (27 11:55 +0200)
tree6b8bc24dbd752de79442a7f235bddb27339b6c7a
parent3ea32d1355d446057c17458238db2749c52ee8f0
hw/display/qxl: Set pci rom address aligned with page size

On some MIPS system, page size is 16K, and qxl vga device can
be used for VM in kvm mode. Qxl pci rom size is set 8K fixed,
smaller than 16K page size on host system, it fails to be
added into memslots in kvm mode where memory_size and GPA
are required to align with page size.

This patch fixes this issue.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Message-Id: <1621340448-31617-1-git-send-email-maobibo@loongson.cn>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/qxl.c