qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 02/12] hw/block/nvme: fix 64 bit register hi/lo split writ


From: Minwoo Im
Subject: Re: [PATCH v2 02/12] hw/block/nvme: fix 64 bit register hi/lo split writes
Date: Tue, 19 Jan 2021 11:09:31 +0900
User-agent: Mutt/1.11.4 (2019-03-13)

On 21-01-18 20:53:24, Klaus Jensen wrote:
> On Jan 18 21:59, Minwoo Im wrote:
> > > The spec requires aligned 32 bit accesses (or the size of the register),
> > > so maybe it's about time we actually ignore instead of falling through.
> > 
> > Agreed.
> > 
> 
> On the other hand.
> 
> The spec just allows undefined behavior if the alignment or size
> requirement is violated. So falling through is not wrong.

If so, maybe we just can make this MMIO region support under 4bytes
access with error messaging.  I don't think we should not support them
on purpose because spec says it just results in undefined behaviors
which is just undefined how to handle them.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]