diff options
author | Paul Mackerras <paulus@samba.org> | 2014-06-01 21:03:00 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-07-28 09:22:18 -0400 |
commit | ae2113a4f1a6cd5a3cd3d75f394547922758e9ac (patch) | |
tree | 59a1dbf6369d853d0ad76c62a0333c47bb8992d0 /Documentation/virtual | |
parent | 699a0ea0823d32030b0666b28ff8633960f7ffa7 (diff) |
KVM: PPC: Book3S: Allow only implemented hcalls to be enabled or disabled
This adds code to check that when the KVM_CAP_PPC_ENABLE_HCALL
capability is used to enable or disable in-kernel handling of an
hcall, that the hcall is actually implemented by the kernel.
If not an EINVAL error is returned.
This also checks the default-enabled list of hcalls and prints a
warning if any hcall there is not actually implemented.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'Documentation/virtual')
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 5c54d196f4c8..69553183ef0f 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -3039,3 +3039,7 @@ not to attempt to handle the hcall, but will always exit to userspace | |||
3039 | to handle it. Note that it may not make sense to enable some and | 3039 | to handle it. Note that it may not make sense to enable some and |
3040 | disable others of a group of related hcalls, but KVM does not prevent | 3040 | disable others of a group of related hcalls, but KVM does not prevent |
3041 | userspace from doing that. | 3041 | userspace from doing that. |
3042 | |||
3043 | If the hcall number specified is not one that has an in-kernel | ||
3044 | implementation, the KVM_ENABLE_CAP ioctl will fail with an EINVAL | ||
3045 | error. | ||