diff options
author | Florian Freudiger <25648113+FlorianFreudiger@users.noreply.github.com> | 2023-08-08 11:57:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 10:57:00 +0100 |
commit | 89f1e5c5f069c9161b3df25e8a34e88c62a56f9e (patch) | |
tree | 263a835abbe84c795ec1e9439769e65014d80566 | |
parent | 8872c36d5047e464952d8aa7f3f12633357d758d (diff) | |
download | libvfio-user-89f1e5c5f069c9161b3df25e8a34e88c62a56f9e.zip libvfio-user-89f1e5c5f069c9161b3df25e8a34e88c62a56f9e.tar.gz libvfio-user-89f1e5c5f069c9161b3df25e8a34e88c62a56f9e.tar.bz2 |
Fix MSI-X capability write logging opposite status (#759)
Signed-off-by: Florian Freudiger <25648113+FlorianFreudiger@users.noreply.github.com>
-rw-r--r-- | lib/pci_caps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pci_caps.c b/lib/pci_caps.c index 73e2645..39acec8 100644 --- a/lib/pci_caps.c +++ b/lib/pci_caps.c @@ -181,19 +181,19 @@ cap_write_msix(vfu_ctx_t *vfu_ctx, struct pci_cap *cap, char *buf, */ if (msix->mxc.fm != new_msix.mxc.fm) { - if (new_msix.mxc.fm) { + msix->mxc.fm = new_msix.mxc.fm; + if (msix->mxc.fm) { vfu_log(vfu_ctx, LOG_DEBUG, "all MSI-X vectors masked"); } else { vfu_log(vfu_ctx, LOG_DEBUG, "vector's mask bit determines whether vector is masked"); } - msix->mxc.fm = new_msix.mxc.fm; } if (msix->mxc.mxe != new_msix.mxc.mxe) { + msix->mxc.mxe = new_msix.mxc.mxe; vfu_log(vfu_ctx, LOG_DEBUG, "%s MSI-X", msix->mxc.mxe ? "enable" : "disable"); - msix->mxc.mxe = new_msix.mxc.mxe; } return count; |