Re: [Qemu-devel] [PATCH] pci: mark ROMs read-only

2017-01-24 Thread Laurent Vivier
On 19/01/2017 22:00, Michael S. Tsirkin wrote: > 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 > --- > hw/pci/p

Re: [Qemu-devel] [PATCH] pci: mark ROMs read-only

2017-01-23 Thread Marcel Apfelbaum
On 01/19/2017 11:00 PM, Michael S. Tsirkin wrote: 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 --- hw/pci/pci.c | 2 +-

[Qemu-devel] [PATCH] pci: mark ROMs read-only

2017-01-19 Thread Michael S. Tsirkin
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 --- hw/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif