diff options
author | Klaus Jensen <k.jensen@samsung.com> | 2024-02-22 10:29:06 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-02-27 09:37:30 +0100 |
commit | d2b5bb860e6c17442ad95cc275feb07c1665be5c (patch) | |
tree | fd49439eaf395218df4ab12c5db07de78a69ce28 /scripts/qapi/parser.py | |
parent | fa4fa2056da7bab48c32c175c7ffd9a2524fc53f (diff) | |
download | qemu-d2b5bb860e6c17442ad95cc275feb07c1665be5c.zip qemu-d2b5bb860e6c17442ad95cc275feb07c1665be5c.tar.gz qemu-d2b5bb860e6c17442ad95cc275feb07c1665be5c.tar.bz2 |
hw/nvme: fix invalid endian conversion
numcntl is one byte and so is max_vfs. Using cpu_to_le16 on big endian
hosts results in numcntl being set to 0.
Fix by dropping the endian conversion.
Fixes: 99f48ae7ae ("hw/nvme: Add support for Secondary Controller List")
Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Minwoo Im <minwoo.im@samsung.com>
Message-ID: <20240222-fix-sriov-numcntl-v1-1-d60bea5e72d0@samsung.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'scripts/qapi/parser.py')
0 files changed, 0 insertions, 0 deletions