summaryrefslogtreecommitdiffstats
path: root/target-s390x
diff options
context:
space:
mode:
authorAurelien Jarno2015-06-15 17:57:02 +0200
committerAlexander Graf2015-06-17 12:40:50 +0200
commita499973ff32bc58f2db7b88ad5597ffdbc2becd7 (patch)
treede17a88168cddb2da128aed5f4bce6daa31564ad /target-s390x
parents390/ioinst: fix endianness in ioinst_schib_valid (diff)
downloadqemu-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.h6
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