From: Nadav Har'El Subject: Re: [PATCH] KVM: VMX: Fix delayed load of shared MSRs Date: Tue, 6 Mar 2012 15:28:47 +0200 Message-ID: <20120306132847.GA7859@fermat.math.technion.ac.il> References: <1331036448-23205-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, Marcelo Tosatti To: Avi Kivity Return-path: Received: from mailgw12.technion.ac.il ([132.68.225.12]:29652 "EHLO mailgw12.technion.ac.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965104Ab2CFN2x (ORCPT ); Tue, 6 Mar 2012 08:28:53 -0500 Content-Disposition: inline In-Reply-To: <1331036448-23205-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Mar 06, 2012, Avi Kivity wrote about "[PATCH] KVM: VMX: Fix delayed load of shared MSRs": > Shared MSRs (MSR_*STAR and related) are stored in both vmx->guest_msrs > and in the CPU registers, but vmx_set_msr() only updated memory. Prior > to 46199f33c2953, this didn't matter, since we called vmx_load_host_state(), > which scheduled a vmx_save_host_state(), which re-synchronized the CPU > state, but now we don't, so the CPU state will not be synchronized until > the next exit to host userspace. This mostly affects nested vmx workloads, > which play with these MSRs a lot. Thanks. I checked this patch, and indeed it solves the bug with nested VMX. -- Nadav Har'El | Tuesday, Mar 6 2012, nyh@math.technion.ac.il |----------------------------------------- Phone +972-523-790466, ICQ 13349191 |I think therefore I am. My computer http://nadav.harel.org.il |thinks for me, therefore I am not.