]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/i386: Export RFDS bit to guests
authorPawan Gupta <pawan.kumar.gupta@linux.intel.com>
Wed, 13 Mar 2024 14:53:23 +0000 (07:53 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Apr 2024 15:35:25 +0000 (17:35 +0200)
commit41bdd9812863c150284a9339a048ed88c40f4df7
tree34e2dea40ed21d067339d84213d832452091000f
parent6e82d3b6220777667968a04c87e1667f164ebe88
target/i386: Export RFDS bit to guests

Register File Data Sampling (RFDS) is a CPU side-channel vulnerability
that may expose stale register value. CPUs that set RFDS_NO bit in MSR
IA32_ARCH_CAPABILITIES indicate that they are not vulnerable to RFDS.
Similarly, RFDS_CLEAR indicates that CPU is affected by RFDS, and has
the microcode to help mitigate RFDS.

Make RFDS_CLEAR and RFDS_NO bits available to guests.

Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Message-ID: <9a38877857392b5c2deae7e7db1b170d15510314.1710341348.git.pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c