From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 2/2] kvm: exit to userspace with reason KVM_EXIT_VCPU_DEAD Date: Sun, 27 Nov 2011 12:36:55 +0200 Message-ID: <4ED212C7.1080901@redhat.com> References: <1322188529-11609-1-git-send-email-kernelfans@gmail.com> <1322361735-21428-1-git-send-email-kernelfans@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: aliguori@us.ibm.com, kvm@vger.kernel.org, qemu-devel@nongnu.org, linux-kernel@vger.kernel.org, ryanh@us.ibm.com, jan.kiszka@web.de To: Liu Ping Fan Return-path: In-Reply-To: <1322361735-21428-1-git-send-email-kernelfans@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org On 11/27/2011 04:42 AM, Liu Ping Fan wrote: > From: Liu Ping Fan > > The vcpu can be safely released when > --1.guest tells us that the vcpu is not needed any longer. > --2.vcpu hits the last instruction _halt_ > > If both of the conditions are satisfied, kvm exits to userspace > with the reason vcpu dead. So the user thread can exit safely. > > Seems to be completely unnecessary. If you want to exit from the vcpu thread, send it a signal. -- error compiling committee.c: too many arguments to function From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754753Ab1K0KhF (ORCPT ); Sun, 27 Nov 2011 05:37:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43410 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752950Ab1K0KhD (ORCPT ); Sun, 27 Nov 2011 05:37:03 -0500 Message-ID: <4ED212C7.1080901@redhat.com> Date: Sun, 27 Nov 2011 12:36:55 +0200 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: Liu Ping Fan CC: kvm@vger.kernel.org, qemu-devel@nongnu.org, linux-kernel@vger.kernel.org, aliguori@us.ibm.com, jan.kiszka@web.de, ryanh@us.ibm.com Subject: Re: [PATCH 2/2] kvm: exit to userspace with reason KVM_EXIT_VCPU_DEAD References: <1322188529-11609-1-git-send-email-kernelfans@gmail.com> <1322361735-21428-1-git-send-email-kernelfans@gmail.com> In-Reply-To: <1322361735-21428-1-git-send-email-kernelfans@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/27/2011 04:42 AM, Liu Ping Fan wrote: > From: Liu Ping Fan > > The vcpu can be safely released when > --1.guest tells us that the vcpu is not needed any longer. > --2.vcpu hits the last instruction _halt_ > > If both of the conditions are satisfied, kvm exits to userspace > with the reason vcpu dead. So the user thread can exit safely. > > Seems to be completely unnecessary. If you want to exit from the vcpu thread, send it a signal. -- error compiling committee.c: too many arguments to function From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUc6Y-0006gh-AX for qemu-devel@nongnu.org; Sun, 27 Nov 2011 05:37:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RUc6X-0004Gz-5C for qemu-devel@nongnu.org; Sun, 27 Nov 2011 05:37:02 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RUc6W-0004Gs-Ri for qemu-devel@nongnu.org; Sun, 27 Nov 2011 05:37:01 -0500 Message-ID: <4ED212C7.1080901@redhat.com> Date: Sun, 27 Nov 2011 12:36:55 +0200 From: Avi Kivity MIME-Version: 1.0 References: <1322188529-11609-1-git-send-email-kernelfans@gmail.com> <1322361735-21428-1-git-send-email-kernelfans@gmail.com> In-Reply-To: <1322361735-21428-1-git-send-email-kernelfans@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/2] kvm: exit to userspace with reason KVM_EXIT_VCPU_DEAD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Ping Fan Cc: aliguori@us.ibm.com, kvm@vger.kernel.org, qemu-devel@nongnu.org, linux-kernel@vger.kernel.org, ryanh@us.ibm.com, jan.kiszka@web.de On 11/27/2011 04:42 AM, Liu Ping Fan wrote: > From: Liu Ping Fan > > The vcpu can be safely released when > --1.guest tells us that the vcpu is not needed any longer. > --2.vcpu hits the last instruction _halt_ > > If both of the conditions are satisfied, kvm exits to userspace > with the reason vcpu dead. So the user thread can exit safely. > > Seems to be completely unnecessary. If you want to exit from the vcpu thread, send it a signal. -- error compiling committee.c: too many arguments to function