KVM: PPC: reserve capability 210 for KVM_CAP_PPC_AIL_MODE_3
authorNicholas Piggin <npiggin@gmail.com>
Tue, 22 Feb 2022 14:06:54 +0000 (09:06 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Feb 2022 14:06:54 +0000 (09:06 -0500)
commit93b71801a8274cd9511557faf04365a5de487197
treed03be12abb4716efe6900a9b0114c59037982657
parent710c476514313c74045c41c0571bb5178fd16e3d
KVM: PPC: reserve capability 210 for KVM_CAP_PPC_AIL_MODE_3

Add KVM_CAP_PPC_AIL_MODE_3 to advertise the capability to set the AIL
resource mode to 3 with the H_SET_MODE hypercall. This capability
differs between processor types and KVM types (PR, HV, Nested HV), and
affects guest-visible behaviour.

QEMU will implement a cap-ail-mode-3 to control this behaviour[1], and
use the KVM CAP if available to determine KVM support[2].

Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/api.rst
include/uapi/linux/kvm.h
tools/include/uapi/linux/kvm.h