proxy: Pass through nvme retvals properly

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2022-03-02 20:05:46 +09:00
parent 191cb157fb
commit bb7c7dd0ce

View file

@ -498,17 +498,16 @@ int proxy_process(ProxyRequest *request, ProxyReply *reply)
break;
case P_NVME_INIT:
if (!nvme_init())
reply->retval = -1;
reply->retval = nvme_init();
break;
case P_NVME_SHUTDOWN:
nvme_shutdown();
break;
case P_NVME_READ:
nvme_read(request->args[0], request->args[1], (void *)request->args[2]);
reply->retval = nvme_read(request->args[0], request->args[1], (void *)request->args[2]);
break;
case P_NVME_FLUSH:
nvme_flush(request->args[0]);
reply->retval = nvme_flush(request->args[0]);
break;
case P_MCC_HV_UNMAP_CARVEOUTS: