From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amit Shah Subject: Re: [PATCH 1/1] kvmclock: fix guest stop notification Date: Mon, 8 Oct 2012 16:10:22 +0530 Message-ID: <20121008104022.GB25290@amit.redhat.com> References: <20120920124641.GA15092@amt.cnet> <20120930230516.GA3923@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm list , Raghavendra K T , qemu list , Eric B Munson , Paolo Bonzini , Laszlo Ersek , Andreas =?iso-8859-1?Q?F=E4rber?= To: Marcelo Tosatti Return-path: Content-Disposition: inline In-Reply-To: <20120930230516.GA3923@amt.cnet> 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 (Sun) 30 Sep 2012 [20:05:16], Marcelo Tosatti wrote: > On Thu, Sep 20, 2012 at 09:46:41AM -0300, Marcelo Tosatti wrote: > > On Thu, Sep 20, 2012 at 01:55:20PM +0530, Amit Shah wrote: > > > Commit f349c12c0434e29c79ecde89029320c4002f7253 added the guest stop > > > notification, but it did it in a way that the stop notification would > > > never reach the kernel. The kvm_vm_state_changed() function gets a > > > value of 0 for the 'running' parameter when the VM is stopped, making > > > all the code added previously dead code. > > > > > > This patch reworks the code so that it's called when 'running' is 0, > > > which indicates the VM was stopped. ... > NACK, guest should be notified when the VM is starting, not > when stopping. Ah, right. Amit