Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759466AbZDKVQ3 (ORCPT ); Sat, 11 Apr 2009 17:16:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753255AbZDKVQT (ORCPT ); Sat, 11 Apr 2009 17:16:19 -0400 Received: from terminus.zytor.com ([198.137.202.10]:43981 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752724AbZDKVQS (ORCPT ); Sat, 11 Apr 2009 17:16:18 -0400 Message-ID: <49E10886.8010101@zytor.com> Date: Sat, 11 Apr 2009 14:15:50 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Avi Kivity CC: Glauber Costa , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] deal with interrupt shadow state for emulated instruction References: <1239226966-8205-1-git-send-email-glommer@redhat.com> <49E0C767.8060603@redhat.com> In-Reply-To: <49E0C767.8060603@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 940 Lines: 28 Avi Kivity wrote: >> >> - rip = kvm_rip_read(vcpu); >> - rip += vmcs_read32(VM_EXIT_INSTRUCTION_LEN); >> - kvm_rip_write(vcpu, rip); >> + if (!(interruptibility & interruptibility_mask)) >> + vmcs_write32(GUEST_INTERRUPTIBILITY_INFO, >> + interruptibility | interruptibility_mask); >> + vcpu->arch.interrupt_window_open = 0; >> > > Setting both _MOV_SS and _STI is wierd; can't happen on real hardware. > Not at architecturally visible boundaries, for sure. It can be an implementation artifact internally to an instruction, though. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/