diff options
author | Aurelien Jarno | 2015-06-15 17:57:02 +0200 |
---|---|---|
committer | Alexander Graf | 2015-06-17 12:40:50 +0200 |
commit | a499973ff32bc58f2db7b88ad5597ffdbc2becd7 (patch) | |
tree | de17a88168cddb2da128aed5f4bce6daa31564ad /target-s390x | |
parent | s390/ioinst: fix endianness in ioinst_schib_valid (diff) | |
download | qemu-a499973ff32bc58f2db7b88ad5597ffdbc2becd7.tar.gz qemu-a499973ff32bc58f2db7b88ad5597ffdbc2becd7.tar.xz qemu-a499973ff32bc58f2db7b88ad5597ffdbc2becd7.zip |
virtio-ccw: disable ioevent bit when ioeventfds are not enabled
This remove the corresponding error messages in TCG mode, and allow to
simplify the s390_assign_subch_ioeventfd() function.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-s390x')
-rw-r--r-- | target-s390x/cpu.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index d63eb51186..c20ef05136 100644 --- a/target-s390x/cpu.h +++ b/target-s390x/cpu.h @@ -1215,11 +1215,7 @@ static inline int s390_assign_subch_ioeventfd(EventNotifier *notifier, uint32_t sch_id, int vq, bool assign) { - if (kvm_enabled()) { - return kvm_s390_assign_subch_ioeventfd(notifier, sch_id, vq, assign); - } else { - return -ENOSYS; - } + return kvm_s390_assign_subch_ioeventfd(notifier, sch_id, vq, assign); } #ifdef CONFIG_KVM |