OSDN Git Service

KVM: x86: expose MOVDIR64B CPU feature into VM.
authorLiu Jingqi <jingqi.liu@intel.com>
Tue, 6 Nov 2018 05:55:28 +0000 (13:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Feb 2019 21:48:26 +0000 (22:48 +0100)
commitc029b5deb0b5d7e5090317b835f21c5d93999db7
tree58ec45c46f0dd536b2315a20186f6079a6b3a209
parent74f2370bb64f5c1c418f115e338f20f11b75f954
KVM: x86: expose MOVDIR64B CPU feature into VM.

MOVDIR64B moves 64-bytes as direct-store with 64-bytes write atomicity.
Direct store is implemented by using write combining (WC) for writing
data directly into memory without caching the data.

Availability of the MOVDIR64B instruction is indicated by the presence
of the CPUID feature flag MOVDIR64B (CPUID.0x07.0x0:ECX[bit 28]).

This patch exposes the movdir64b 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

Signed-off-by: Liu Jingqi <jingqi.liu@intel.com>
Cc: Xu Tao <tao3.xu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c