From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH 2/4 V11] Add functions to check if the host has stopped the vm Date: Tue, 7 Feb 2012 16:56:14 -0200 Message-ID: <20120207185614.GA19800@amt.cnet> References: <1328024132-7687-1-git-send-email-emunson@mgebm.net> <1328024132-7687-3-git-send-email-emunson@mgebm.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com, mingo@redhat.com, hpa@zytor.com, ryanh@linux.vnet.ibm.com, aliguori@us.ibm.com, kvm@vger.kernel.org, linux-arch@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org To: Eric B Munson Return-path: Content-Disposition: inline In-Reply-To: <1328024132-7687-3-git-send-email-emunson@mgebm.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, Jan 31, 2012 at 10:35:30AM -0500, Eric B Munson wrote: > When a host stops or suspends a VM it will set a flag to show this. The > watchdog will use these functions to determine if a softlockup is real, or the > result of a suspended VM. > > Signed-off-by: Eric B Munson > asm-generic changes Acked-by: Arnd Bergmann > Cc: mingo@redhat.com > Cc: hpa@zytor.com > Cc: ryanh@linux.vnet.ibm.com > Cc: aliguori@us.ibm.com > Cc: mtosatti@redhat.com > Cc: kvm@vger.kernel.org > Cc: linux-arch@vger.kernel.org > Cc: x86@kernel.org > Cc: linux-kernel@vger.kernel.org > --- > Changes from V6: > Use __this_cpu_and when clearing the PVCLOCK_GUEST_STOPPED flag > Changes from V5: > Collapse generic stubs into this patch > check_and_clear_guest_stopped() takes no args and uses __get_cpu_var() > Include individual definitions in ia64, s390, and powerpc > > arch/ia64/include/asm/kvm_para.h | 5 +++++ > arch/powerpc/include/asm/kvm_para.h | 5 +++++ > arch/s390/include/asm/kvm_para.h | 5 +++++ > arch/x86/include/asm/kvm_para.h | 8 ++++++++ > arch/x86/kernel/kvmclock.c | 21 +++++++++++++++++++++ > 5 files changed, 44 insertions(+), 0 deletions(-) Where is the check_and_clear_guest_stopped() stub in asm-generic/kvm_para.h? I think it is necessary for other architectures.