From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH] deal with interrupt shadow state for emulated instruction Date: Sat, 11 Apr 2009 14:15:50 -0700 Message-ID: <49E10886.8010101@zytor.com> References: <1239226966-8205-1-git-send-email-glommer@redhat.com> <49E0C767.8060603@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Glauber Costa , kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Avi Kivity Return-path: 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 In-Reply-To: <49E0C767.8060603@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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.