hw/virtio: fix error enabling flags in Device Control register
commitc2cabb34220d63f93e4a0162a26535cbd1f30243
authorMarcel Apfelbaum <marcel@redhat.com>
Mon, 20 Feb 2017 20:43:11 +0000 (20 22:43 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 15 Mar 2017 23:46:40 +0000 (16 01:46 +0200)
tree9b7d1f2d6b754a060998857172d11c4d58f3f207
parentf03d8ea330d69f3a98093dfa2633635dff355f90
hw/virtio: fix error enabling flags in Device Control register

When the virtio devices are PCI Express, make error-enabling flags
writable to respect the PCIe spec.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
dtc
hw/virtio/virtio-pci.c
hw/virtio/virtio-pci.h
include/hw/compat.h