diff options
author | Marc Zyngier <[email protected]> | 2018-06-17 10:16:21 +0100 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2018-06-21 17:17:50 +0100 |
commit | 7ddfd3e0df29106c728dda2a6bd6591ee43a4e3c (patch) | |
tree | 881292b233bf620c55ae432583778e59a18f4591 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 47a91b7232fa25abc7e0b7fc1c69ae4f81061594 (diff) |
KVM: Enforce error in ioctl for compat tasks when !KVM_COMPAT
The current behaviour of the compat ioctls is a bit odd.
We provide a compat_ioctl method when KVM_COMPAT is set, and NULL
otherwise. But NULL means that the normal, non-compat ioctl should
be used directly for compat tasks, and there is no way to actually
prevent a compat task from issueing KVM ioctls.
This patch changes this behaviour, by always registering a compat_ioctl
method, even if KVM_COMPAT is not selected. In that case, the callback
will always return -EINVAL.
Fixes: de8e5d744051568c8aad ("KVM: Disable compat ioctl for s390")
Reported-by: Mark Rutland <[email protected]>
Acked-by: Christian Borntraeger <[email protected]>
Acked-by: Radim Krčmář <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions