diff options
| author | Marcel Apfelbaum <marcel@redhat.com> | 2017-02-20 22:43:13 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2017-03-16 01:46:41 +0200 |
| commit | 27ce0f3afc9dd25d21b43bbce505157afd93d111 (patch) | |
| tree | 765cac6b398ed0b05851097e4c958a6a03362a38 /include/hw/pci/pcie.h | |
| parent | d584f1b9ca7452ed8d6cd80f7fccd79d667ae49b (diff) | |
| download | focaccia-qemu-27ce0f3afc9dd25d21b43bbce505157afd93d111.tar.gz focaccia-qemu-27ce0f3afc9dd25d21b43bbce505157afd93d111.zip | |
hw/virtio: fix Power Management Control Register for PCI Express virtio devices
Make Power Management State flag writable to conform with the PCI Express 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>
Diffstat (limited to 'include/hw/pci/pcie.h')
| -rw-r--r-- | include/hw/pci/pcie.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/pci/pcie.h b/include/hw/pci/pcie.h index 11c6247431..3d8f24b007 100644 --- a/include/hw/pci/pcie.h +++ b/include/hw/pci/pcie.h @@ -63,6 +63,8 @@ typedef enum { struct PCIExpressDevice { /* Offset of express capability in config space */ uint8_t exp_cap; + /* Offset of Power Management capability in config space */ + uint8_t pm_cap; /* SLOT */ bool hpev_notified; /* Logical AND of conditions for hot plug event. |