From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] kvm/x86: check KVM_REQ_TLB_FLUSH with irqs disabled Date: Mon, 16 Mar 2009 20:32:42 +0200 Message-ID: <49BE9B4A.5040106@redhat.com> References: <1237208625-2657-1-git-send-email-joerg.roedel@amd.com> <49BE5054.6040707@redhat.com> <20090316183000.GC3783@amt.cnet> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Marcelo Tosatti Return-path: Received: from mx2.redhat.com ([66.187.237.31]:47763 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760804AbZCPScu (ORCPT ); Mon, 16 Mar 2009 14:32:50 -0400 In-Reply-To: <20090316183000.GC3783@amt.cnet> Sender: kvm-owner@vger.kernel.org List-ID: Marcelo Tosatti wrote: > BTW, I've wondered if the local_irq_enable in svm_vcpu_run is safe: > > clgi(); > > local_irq_enable(); > > There is no way that an interrupt can be handled there without an exit, > right? > clgi trumps sti, so all interrupts will be deferred until the guest is entered (which will cause an immediate vmexit). -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.