>> +        /* Advance to next frame boundary if start was not frame-
>> aligned */
>> +        start = (start & ~(entry.len - 1)) + entry.len;
> 
> Could that be QEMU_ALIGN_UP()?

Oh, good idea.  I think

start = QEMU_ALIGN_UP(start + 1, entry.len);

would work to ensure we always move up.

I'll test it out.

Thanks,
Matt



Reply via email to