diff options
Diffstat (limited to 'target-s390x/cpu.h')
-rw-r--r-- | target-s390x/cpu.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index 031f94dc40..a71abaeef7 100644 --- a/target-s390x/cpu.h +++ b/target-s390x/cpu.h @@ -1190,4 +1190,18 @@ static inline int s390_assign_subch_ioeventfd(EventNotifier *notifier, } } +#ifdef CONFIG_KVM +static inline bool vregs_needed(void *opaque) +{ + if (kvm_enabled()) { + return kvm_check_extension(kvm_state, KVM_CAP_S390_VECTOR_REGISTERS); + } + return 0; +} +#else +static inline bool vregs_needed(void *opaque) +{ + return 0; +} +#endif #endif |