Commit ffb2596
committed
Inflight I/O: Fix the memory layout of queue region header
As defined in the vhost-user protocol[1], the last field of queue region
header should be a zero-sized array. However, current implementation uses
u64, which will cause a wrong inflight I/O memfd memory layout. So, let's
just remove the desc fileds to fix it.
[1]
https://qemu-project.gitlab.io/qemu/interop/vhost-user.html#inflight-i-o-tracking
Signed-off-by: Jiachen Zhang <[email protected]>1 parent 38fae60 commit ffb2596
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
877 | 877 | | |
878 | 878 | | |
879 | 879 | | |
880 | | - | |
881 | | - | |
882 | 880 | | |
883 | 881 | | |
884 | 882 | | |
| |||
890 | 888 | | |
891 | 889 | | |
892 | 890 | | |
893 | | - | |
894 | 891 | | |
895 | 892 | | |
896 | 893 | | |
| |||
951 | 948 | | |
952 | 949 | | |
953 | 950 | | |
954 | | - | |
955 | | - | |
956 | 951 | | |
957 | 952 | | |
958 | 953 | | |
| |||
969 | 964 | | |
970 | 965 | | |
971 | 966 | | |
972 | | - | |
973 | 967 | | |
974 | 968 | | |
975 | 969 | | |
| |||
0 commit comments