
On 2022/1/13 19:56, Laibin Qiu wrote:
From: Jim Mattson <jmattson@google.com>
mainline inclusion from mainline-v5.4-rc5 commit 41cd02c6f7f6e66e7abf02a4379e355a7db89f78 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4MKP4 CVE: NA
--------------------------------
When the RDPID instruction is supported on the host, enumerate it in KVM_GET_SUPPORTED_CPUID.
Signed-off-by: Jim Mattson <jmattson@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> (cherry picked from commit 41cd02c6f7f6e66e7abf02a4379e355a7db89f78)
K2CI-Arch: All Cc: kylinos-next Signed-off-by: Jackie Liu <liuyun01@kylinos.cn> #openEuler_contributor Signed-off-by: Laibin Qiu <qiulaibin@huawei.com>
FYI that there's a series [1] which fixed RDPID emulation on AMD architecture and carried various Fixes: 41cd02c6f7f6 tags. I haven't read further and it'd be good if you can have a look. [1] https://lore.kernel.org/kvm/20210504171734.1434054-1-seanjc@google.com