Re: [PATCH] KVM: x86: mask CPUID(0xD,0x1).EAX against host value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 26/05/2016 18:36, Greg KH wrote:
> 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@xxxxxxxxxxxxxxx
>> Reviewed-by: Radim Krčmář <rkrcmar@xxxxxxxxxx>
>> Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
>>
>> Conflicts:
>> 	arch/x86/kvm/cpuid.c
> 
> Why is this here?

It's why the patch couldn't be lifted straight from Linus's tree.  "git
cherry-pick" places it here.  Granted, this time it doesn't add much
information since the patch touched one file only.

>>
>> [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?

All where it applies.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]