Re: [Qemu-block] [PATCH v2 1/5] block/nvme: don't flip CQ phase bits

2019-06-07 Thread Paolo Bonzini
On 06/06/19 23:23, John Snow wrote: > So: This looks right; does this fix a bug that can be observed? Do we > have any regression tests for block/NVMe? I don't think it fixes a bug; by the time the CQ entry is picked up by QEMU, the device is not supposed to touch it anymore. However, the idea

Re: [Qemu-block] [PATCH v2 1/5] block/nvme: don't flip CQ phase bits

2019-06-06 Thread John Snow
On 6/5/19 3:47 AM, Maxim Levitsky wrote: > On Mon, 2019-06-03 at 18:25 -0400, John Snow wrote: >> >> On 4/17/19 3:53 PM, Maxim Levitsky wrote: >>> Phase bits are only set by the hardware to indicate new completions >>> and not by the device driver. >>> >>> Signed-off-by: Maxim Levitsky >>> ---

Re: [Qemu-block] [PATCH v2 1/5] block/nvme: don't flip CQ phase bits

2019-06-05 Thread Maxim Levitsky
On Mon, 2019-06-03 at 18:25 -0400, John Snow wrote: > > On 4/17/19 3:53 PM, Maxim Levitsky wrote: > > Phase bits are only set by the hardware to indicate new completions > > and not by the device driver. > > > > Signed-off-by: Maxim Levitsky > > --- > > block/nvme.c | 2 -- > > 1 file changed,

Re: [Qemu-block] [PATCH v2 1/5] block/nvme: don't flip CQ phase bits

2019-06-03 Thread John Snow
On 4/17/19 3:53 PM, Maxim Levitsky wrote: > Phase bits are only set by the hardware to indicate new completions > and not by the device driver. > > Signed-off-by: Maxim Levitsky > --- > block/nvme.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/block/nvme.c b/block/nvme.c >

[Qemu-block] [PATCH v2 1/5] block/nvme: don't flip CQ phase bits

2019-04-17 Thread Maxim Levitsky
Phase bits are only set by the hardware to indicate new completions and not by the device driver. Signed-off-by: Maxim Levitsky --- block/nvme.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/nvme.c b/block/nvme.c index 0684bbd077..2d208000df 100644 --- a/block/nvme.c +++