KVM: Clarify capability requirements for KVM_ARM_VCPU_FINALIZE
authorDave Martin <Dave.Martin@arm.com>
Fri, 12 Apr 2019 12:28:05 +0000 (13:28 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 18 Apr 2019 16:14:02 +0000 (17:14 +0100)
commit9df2d660c7f37aed7244ec0b920c0749dbb69167
tree7636369b59ea8097072a7a34e626bfd3a7dc2edb
parent92e68b2b1ba004be55b2094fb8b5c11d0b24d11d
KVM: Clarify capability requirements for KVM_ARM_VCPU_FINALIZE

Userspace is only supposed to use KVM_ARM_VCPU_FINALIZE when there
is some vcpu feature that can actually be finalized.

This means that documenting KVM_ARM_VCPU_FINALIZE as available or
not depending on the capabilities present is not helpful.

This patch amends the documentation to describe availability in
terms of which capability is required for each finalizable feature
instead.

In any case, userspace sees the same error (EINVAL) regardless of
whether the given feature is not present or KVM_ARM_VCPU_FINALIZE
is not implemented at all.

No functional change.

Suggested-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Documentation/virtual/kvm/api.txt