diff options
author | Isaku Yamahata | 2010-11-26 13:01:41 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2010-12-09 11:47:48 +0100 |
commit | b1aeb92666d2fde413c34578b3b42bbfe5f2a506 (patch) | |
tree | f29a9326008c68ca7c1a762f7f3f6e97832bef7e /hw/pci.h | |
parent | virtio-net: stop/start bh when appropriate (diff) | |
download | qemu-b1aeb92666d2fde413c34578b3b42bbfe5f2a506.tar.gz qemu-b1aeb92666d2fde413c34578b3b42bbfe5f2a506.tar.xz qemu-b1aeb92666d2fde413c34578b3b42bbfe5f2a506.zip |
pci: make command SERR bit writable
pcie aer needs SERR bit to be writable, and the PCI spec requires
this as well. For compatibility, introduce compat global property
command_serr_enable and make this bit readonly for a pre 0.14 pc
machine.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.h')
-rw-r--r-- | hw/pci.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -118,6 +118,10 @@ enum { /* multifunction capable device */ #define QEMU_PCI_CAP_MULTIFUNCTION_BITNR 3 QEMU_PCI_CAP_MULTIFUNCTION = (1 << QEMU_PCI_CAP_MULTIFUNCTION_BITNR), + + /* command register SERR bit enabled */ +#define QEMU_PCI_CAP_SERR_BITNR 4 + QEMU_PCI_CAP_SERR = (1 << QEMU_PCI_CAP_SERR_BITNR), }; struct PCIDevice { |