Re: [PATCH] hw/nvme: fix smart aen

2022-05-11 Thread Klaus Jensen
On May 6 08:36, Klaus Jensen wrote: > From: Klaus Jensen > > Pass the right constant to nvme_smart_event(). The NVME_AER* values hold > the bit position in the SMART byte, not the shifted value that we expect > it to be in nvme_smart_event(). > > Fixes: c62720f137df ("hw/block/nvme: trigger asy

Re: [PATCH] hw/nvme: fix smart aen

2022-05-06 Thread zhenwei pi
On 5/6/22 14:36, Klaus Jensen wrote: From: Klaus Jensen Pass the right constant to nvme_smart_event(). The NVME_AER* values hold the bit position in the SMART byte, not the shifted value that we expect it to be in nvme_smart_event(). Fixes: c62720f137df ("hw/block/nvme: trigger async event dur

[PATCH] hw/nvme: fix smart aen

2022-05-05 Thread Klaus Jensen
From: Klaus Jensen Pass the right constant to nvme_smart_event(). The NVME_AER* values hold the bit position in the SMART byte, not the shifted value that we expect it to be in nvme_smart_event(). Fixes: c62720f137df ("hw/block/nvme: trigger async event during injecting smart warning") Signed-o