Re: [PATCH v12 09/10] hw/nvme: add reservation protocal command

2024-09-13 Thread Stefan Hajnoczi
On Thu, Sep 12, 2024 at 07:19:16PM +0800, Changqi Lu wrote: > +static int nvme_read_reservation_cb(NvmeReadReservation *reservation) > +{ > +int rc; > +NvmeReservationStatus *nvme_status; > +NvmeRequest *req = reservation->req; > +NvmeCtrl *n = req->sq->ctrl; > +NvmeResvKeys *ke

[PATCH v12 09/10] hw/nvme: add reservation protocal command

2024-09-12 Thread Changqi Lu
Add reservation acquire, reservation register, reservation release and reservation report commands in the nvme device layer. By introducing these commands, this enables the nvme device to perform reservation-related tasks, including querying keys, querying reservation status, registering reservati