Patch "KVM: x86: Hide IA32_PLATFORM_DCA_CAP[31:0] from the guest" has been added to the 5.15-stable tree

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

 



This is a note to let you know that I've just added the patch titled

    KVM: x86: Hide IA32_PLATFORM_DCA_CAP[31:0] from the guest

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kvm-x86-hide-ia32_platform_dca_cap-31-0-from-the-gue.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit dbf925bd27d56b04db6d95b9cc3da413cd06c766
Author: Jim Mattson <jmattson@xxxxxxxxxx>
Date:   Thu Sep 22 16:18:54 2022 -0700

    KVM: x86: Hide IA32_PLATFORM_DCA_CAP[31:0] from the guest
    
    [ Upstream commit aae2e72229cdb21f90df2dbe4244c977e5d3265b ]
    
    The only thing reported by CPUID.9 is the value of
    IA32_PLATFORM_DCA_CAP[31:0] in EAX. This MSR doesn't even exist in the
    guest, since CPUID.1:ECX.DCA[bit 18] is clear in the guest.
    
    Clear CPUID.9 in KVM_GET_SUPPORTED_CPUID.
    
    Fixes: 24c82e576b78 ("KVM: Sanitize cpuid")
    Signed-off-by: Jim Mattson <jmattson@xxxxxxxxxx>
    Message-Id: <20220922231854.249383-1-jmattson@xxxxxxxxxx>
    Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index b17c9b00669e..d85a0808a446 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -718,8 +718,6 @@ static inline int __do_cpuid_func(struct kvm_cpuid_array *array, u32 function)
 			entry->edx = 0;
 		}
 		break;
-	case 9:
-		break;
 	case 0xa: { /* Architectural Performance Monitoring */
 		struct x86_pmu_capability cap;
 		union cpuid10_eax eax;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux