From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:42201 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754648AbcEZQg1 (ORCPT ); Thu, 26 May 2016 12:36:27 -0400 Date: Thu, 26 May 2016 09:36:26 -0700 From: Greg KH To: Paolo Bonzini Cc: stable@vger.kernel.org, rkrcmar@redhat.com Subject: Re: [PATCH] KVM: x86: mask CPUID(0xD,0x1).EAX against host value Message-ID: <20160526163626.GB13099@kroah.com> References: <1464263046-40005-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1464263046-40005-1-git-send-email-pbonzini@redhat.com> Sender: stable-owner@vger.kernel.org List-ID: On Thu, May 26, 2016 at 01:44:06PM +0200, Paolo Bonzini wrote: > commit 316314cae15fb0e3869b76b468f59a0c83ac3d4e upstream. > > This ensures that the guest doesn't see XSAVE extensions > (e.g. xgetbv1 or xsavec) that the host lacks. > > Cc: stable@vger.kernel.org > Reviewed-by: Radim Krčmář > Signed-off-by: Paolo Bonzini > > Conflicts: > arch/x86/kvm/cpuid.c Why is this here? > > [4.5 does have CPUID_D_1_EAX, but earlier kernels don't, so use > the numeric value. This is consistent with other occurrences > of cpuid_mask in arch/x86/kvm/cpuid.c - Paolo] What stable tree(s) do you want this applied to? thanks, greg k-h