mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
d584f1b9ca
commit
27ce0f3afc
4 changed files with 21 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue