From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH 9/9] KVM: x86: smsw emulation is incorrect in 64-bit mode Date: Thu, 05 Jun 2014 08:04:22 -0700 Message-ID: <539086F6.8000004@zytor.com> References: <1401723251-8034-1-git-send-email-namit@cs.technion.ac.il> <1401723251-8034-10-git-send-email-namit@cs.technion.ac.il> <53908467.8030100@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Nadav Amit , gleb@kernel.org, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Nadav Amit , Paolo Bonzini Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 06/05/2014 08:02 AM, Nadav Amit wrote: >> I'm sorry, I'm missing the place where 64-bit mode is taken into account? > It is not, since on 32-bit mode the high-order 16 bits of a register destination are undefined. > If I recall correctly, in this case the high-order 16-bits on native system actually reflect the high-order 16-bits of CR0. This sounds like something that really should be verified experimentally. The above claim seems... odd. -hpa