Re: [PATCH] vdpa: allow a 32 bit vq alignment

2020-04-10 Thread Jason Wang
Cc Ling Shan. On 2020/4/10 上午4:28, Michael S. Tsirkin wrote: get_vq_align returns u16 now, but that's not enough for systems/devices with 64K pages. All callers assign it to a u32 variable anyway, so let's just change the return value type to u32. Cc: "Zhu, Lingshan" Reported-by: Arnd

Re: [PATCH] vdpa: allow a 32 bit vq alignment

2020-04-09 Thread Jason Wang
On 2020/4/10 上午4:28, Michael S. Tsirkin wrote: get_vq_align returns u16 now, but that's not enough for systems/devices with 64K pages. All callers assign it to a u32 variable anyway, so let's just change the return value type to u32. Cc: "Zhu, Lingshan" Reported-by: Arnd Bergmann

[PATCH] vdpa: allow a 32 bit vq alignment

2020-04-09 Thread Michael S. Tsirkin
get_vq_align returns u16 now, but that's not enough for systems/devices with 64K pages. All callers assign it to a u32 variable anyway, so let's just change the return value type to u32. Cc: "Zhu, Lingshan" Reported-by: Arnd Bergmann Signed-off-by: Michael S. Tsirkin ---