From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH] Use WARN_ON_ONCE for missing X86_FEATURE_NRIPS Date: Mon, 5 Oct 2015 19:15:37 +0200 Message-ID: <20151005171537.GD12506@8bytes.org> References: <560D1C6E.2060803@suse.com> <560D278F.10801@redhat.com> <20151005095022.GX3036@8bytes.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paolo Bonzini , kvm@vger.kernel.org, Dirk =?iso-8859-1?Q?M=FCller?= To: Bandan Das Return-path: Received: from 8bytes.org ([81.169.241.247]:57309 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751819AbbJERPj (ORCPT ); Mon, 5 Oct 2015 13:15:39 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Oct 05, 2015 at 12:54:43PM -0400, Bandan Das wrote: > Joerg Roedel writes: > The problems is that the next_rip field could be stale. If the processor supports > next_rip, then it will clear it out on the next entry. If it doesn't, > an old value just sits there (no matter who wrote it) and the problem > happens when skip_emulated_instruction advances the rip with an incorrect > value. So the right fix would be to just set the guests next_rip to 0 when we emulate vmrun, just like real hardware does, no? Joerg