]> git.proxmox.com Git - mirror_qemu.git/commit
pci: mark ROMs read-only
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jan 2017 19:34:28 +0000 (21:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Feb 2017 01:37:17 +0000 (03:37 +0200)
commitec42813028d9ede3f9f73b8c943b00ff235ba0c1
treed0a836e804255ae0cb63f8c091a642bcc092304d
parented63ec0d22ccdce3b2222d9a514423b7fbba3a0d
pci: mark ROMs read-only

Looks like we didn't mark PCI ROMs as RO allowing
mischief such as guests writing there.
Further, e.g. vhost gets confused trying to allocate
enough space to log writes there. Fix it up.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Marcel Apfelbaum <marcel@redhat.com>
Tested-by: Laurent Vivier <lvivier@redhat.com>
hw/pci/pci.c