]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Expose CLDEMOTE CPU feature to guest VM
authorJingqi Liu <jingqi.liu@intel.com>
Tue, 22 May 2018 09:01:27 +0000 (17:01 +0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Thu, 24 May 2018 18:15:22 +0000 (20:15 +0200)
commitf7eeecbb8f34d173ecb5c5ae6d1fedf16b5a9322
treee31992d3ec44180fdde158e9ae830be8d743ed9e
parentc0d2d1b1a4ad84c49d04b7b77f6e7dd765a58066
KVM: x86: Expose CLDEMOTE CPU feature to guest VM

The CLDEMOTE instruction hints to hardware that the cache line that
contains the linear address should be moved("demoted") from
the cache(s) closest to the processor core to a level more distant
from the processor core. This may accelerate subsequent accesses
to the line by other cores in the same coherence domain,
especially if the line was written by the core that demotes the line.

This patch exposes the cldemote feature to the guest.

The release document ref below link:
https://software.intel.com/sites/default/files/managed/c5/15/\
architecture-instruction-set-extensions-programming-reference.pdf
This patch has a dependency on https://lkml.org/lkml/2018/4/23/928

Signed-off-by: Jingqi Liu <jingqi.liu@intel.com>
Reviewed-by: Wei Wang <wei.w.wang@intel.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/cpuid.c