From bc14dfb0bd7a390ab77723b7a8b69f31509bc5a4 Mon Sep 17 00:00:00 2001 From: "yuhong.tao@intel.com" Date: Fri, 8 May 2020 14:47:27 +0000 Subject: [PATCH] DM: cleanup devicemodel monitor handle pause/continue msg request The 'pause/continue' acrnctl cmd is never used and their action are not defined for ACRN VMs. Devicemodel minitor doesn't need to handle these 2 msg, should be removed. Tracked-On: #4790 Signed-off-by: Tao Yuhong Reviewed-by: Jason Chen CJ Reviewed-by: Yan, Like --- devicemodel/core/monitor.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/devicemodel/core/monitor.c b/devicemodel/core/monitor.c index fdc4e9550..5ce505041 100644 --- a/devicemodel/core/monitor.c +++ b/devicemodel/core/monitor.c @@ -338,8 +338,6 @@ static void name(struct mngr_msg *msg, int client_fd, void *param) \ } DEFINE_HANDLER(handle_suspend, suspend); -DEFINE_HANDLER(handle_pause, pause); -DEFINE_HANDLER(handle_continue, unpause); static void handle_stop(struct mngr_msg *msg, int client_fd, void *param) { @@ -489,8 +487,6 @@ int monitor_init(struct vmctx *ctx) ret += mngr_add_handler(monitor_fd, DM_STOP, handle_stop, NULL); ret += mngr_add_handler(monitor_fd, DM_SUSPEND, handle_suspend, NULL); ret += mngr_add_handler(monitor_fd, DM_RESUME, handle_resume, NULL); - ret += mngr_add_handler(monitor_fd, DM_PAUSE, handle_pause, NULL); - ret += mngr_add_handler(monitor_fd, DM_CONTINUE, handle_continue, NULL); ret += mngr_add_handler(monitor_fd, DM_QUERY, handle_query, NULL); ret += mngr_add_handler(monitor_fd, DM_BLKRESCAN, handle_blkrescan, NULL);