From a17d559db407e4678dff8e4369d5d787595eb598 Mon Sep 17 00:00:00 2001 From: Shuo Liu Date: Thu, 11 Oct 2018 11:18:48 +0800 Subject: [PATCH] dm: remove unnecessary ioreq status changing from DM We will mark ioreq as COMPLETE in VHM via IC_NOTIFY_REQUEST_FINISH ioctl. vm_notify_request_done can do it. So remove this one. Tracked-On: #1821 Signed-off-by: Shuo Liu Acked-by: Eddie Dong --- devicemodel/core/main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/devicemodel/core/main.c b/devicemodel/core/main.c index 9af09b30b..515b43b89 100644 --- a/devicemodel/core/main.c +++ b/devicemodel/core/main.c @@ -412,7 +412,6 @@ handle_vmexit(struct vmctx *ctx, struct vhm_request *vhm_req, int vcpu) } (*handler[exitcode])(ctx, vhm_req, &vcpu); - atomic_store(&vhm_req->processed, REQ_STATE_COMPLETE); /* We cannot notify the VHM/hypervisor on the request completion at this * point if the UOS is in suspend or system reset mode, as the VM is