On 2026-09-05T00:02:22+02:00, Jesper Wendel Devantier <[email protected]> wrote: > On 2026-08-19T17:24:09+02:00, Daniel Gomez <[email protected]> wrote: > ```c > static inline uint64_t nvme_mdts_max_iovs(uint8_t mdts) > { > return mdts >= 64 ? UINT64_MAX : (1ULL << mdts) + 1; > } > ``` > > Then the check becomes > ```c > if ((params->cmb_size_mb || n->pmr.dev) && > (!params->mdts || nvme_mdts_max_iovs(params->mdts) > IOV_MAX)) { > error_setg(errp, "mdts=%u is incompatible with CMB/PMR", params->mdts); > return false; > } > ``` > > ?
Looks good. I'll apply it together with the commit 1 message update and send a new series. Thanks!
