diff options
author | John Levon <john.levon@nutanix.com> | 2021-04-23 17:51:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 17:51:10 +0100 |
commit | 13e3f8d38bc23c2a95654c46addea84ca6de365a (patch) | |
tree | 302018fdfde5724854b8a0ad7efe6805ff933c6c /test | |
parent | f8e47df6b874fb8a5f06089512820e3e8c8a6c4a (diff) | |
download | libvfio-user-13e3f8d38bc23c2a95654c46addea84ca6de365a.zip libvfio-user-13e3f8d38bc23c2a95654c46addea84ca6de365a.tar.gz libvfio-user-13e3f8d38bc23c2a95654c46addea84ca6de365a.tar.bz2 |
correct PM capability definition (#452)
the static size assert for the PMCS register was checking the wrong struct;
however, the struct was nonetheless 4 bytes long, due to uint bitfields. This
accidentally meant the containing struct pmcap was the correct size (the
alignment attribute makes no difference).
After fixing struct pmcs, we'll include the additional two bytes defined in the
PCI PM specification, Section 3.2. These are "optional", but as elsewhere, we'll
require them when adding the capability.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions