From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: KVM: x86: remove WARN_ON from get_kernel_ns() Date: Fri, 11 Apr 2014 20:06:34 -0400 Message-ID: <5348838A.5060609@redhat.com> References: <20140410211912.GA30474@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: Marcelo Tosatti , kvm-devel Return-path: Received: from mail-yh0-f48.google.com ([209.85.213.48]:34521 "EHLO mail-yh0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752291AbaDLANF (ORCPT ); Fri, 11 Apr 2014 20:13:05 -0400 Received: by mail-yh0-f48.google.com with SMTP id z6so6041092yhz.35 for ; Fri, 11 Apr 2014 17:13:03 -0700 (PDT) In-Reply-To: <20140410211912.GA30474@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: Il 10/04/2014 17:19, Marcelo Tosatti ha scritto: > > Function and callers can be preempted. > > https://bugzilla.kernel.org/show_bug.cgi?id=73721 > > Signed-off-by: Marcelo Tosatti > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index 2b85784..ee0c3b5 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -1109,7 +1109,6 @@ static inline u64 get_kernel_ns(void) > { > struct timespec ts; > > - WARN_ON(preemptible()); > ktime_get_ts(&ts); > monotonic_to_bootbased(&ts); > return timespec_to_ns(&ts); > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Reviewed-by: Paolo Bonzini