xemu/hw/nvme
Dmitry Tikhov 1e64facc01 hw/nvme: fix narrowing conversion
Since nlbas is of type int, it does not work with large namespace size
values, e.g., 9 TB size of file backing namespace and 8 byte metadata
with 4096 bytes lbasz gives negative nlbas value, which is later
promoted to negative int64_t type value and results in negative
ns->moff which breaks namespace

Signed-off-by: Dmitry Tikhov <ddtikhov@gmail.com>
Reviewed-by: Klaus Jensen <k.jensen@samsung.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
2022-06-03 21:48:24 +02:00
..
ctrl.c hw/nvme: 64-bit pi support 2022-03-03 09:30:21 +01:00
dif.c hw/nvme: 64-bit pi support 2022-03-03 09:30:21 +01:00
dif.h hw/nvme: 64-bit pi support 2022-03-03 09:30:21 +01:00
Kconfig hw/nvme: move nvme emulation out of hw/block 2021-05-17 09:19:00 +02:00
meson.build hw/nvme: move nvme emulation out of hw/block 2021-05-17 09:19:00 +02:00
ns.c hw/nvme: fix narrowing conversion 2022-06-03 21:48:24 +02:00
nvme.h Clean up header guards that don't match their file name 2022-05-11 16:49:06 +02:00
subsys.c hw/nvme: reattach subsystem namespaces on hotplug 2021-11-19 07:31:34 +01:00
trace-events hw/nvme: 64-bit pi support 2022-03-03 09:30:21 +01:00
trace.h hw/nvme: move nvme emulation out of hw/block 2021-05-17 09:19:00 +02:00