From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH v2 9/9] examples/l3fwd-power: fix not stop and close device Date: Fri, 30 Dec 2016 14:44:38 +0800 Message-ID: <20161230064438.GL21789@yliu-dev.sh.intel.com> References: <1482996643-113253-1-git-send-email-jianfeng.tan@intel.com> <1482996643-113253-10-git-send-email-jianfeng.tan@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, stephen@networkplumber.org To: Jianfeng Tan Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id DBD6E282 for ; Fri, 30 Dec 2016 07:42:53 +0100 (CET) Content-Disposition: inline In-Reply-To: <1482996643-113253-10-git-send-email-jianfeng.tan@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Dec 29, 2016 at 07:30:43AM +0000, Jianfeng Tan wrote: > As it gets killed, in SIGINT signal handler, device is not stopped > and closed. In virtio's case, vector assignment in the KVM is not > deassigned. What wrong could happen then? > This patch will invoke dev_stop() and dev_close() in signal handler. I will just say, it may workaround the bug you encountered, particulary, for this example only. If some people want to use the virtio interrupt somewhere at another app, he also has to do similar thing. Is there a more clean way to handle such case in the driver? --yliu