]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86: Introducing kvm_x86_ops VM init/destroy hooks
authorSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Wed, 4 May 2016 19:09:42 +0000 (14:09 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 11 Aug 2018 00:44:37 +0000 (20:44 -0400)
commit3b3811c583b91ae19be9ba21bb28e01a2b584b30
tree9db18f29a039ac02f67f2ee60610d001cb76f701
parentb89fa9ef34bd313e786ffca20819cf1f1e8a9104
KVM: x86: Introducing kvm_x86_ops VM init/destroy hooks

Adding function pointers in struct kvm_x86_ops for processor-specific
layer to provide hooks for when KVM initialize and destroy VM.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Orabug: 28220674
CVE: CVE-2018-3646

(cherry picked from commit 03543133cea646406307870823343912c1ef0a3a)

Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Conflicts:
arch/x86/kvm/x86.c
Contextual: different content
The commit was necessary for 47009da5 "x86/KVM: Warn user if KVM
is loaded SMT and L1TF CPU bug being present"
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c