diff options
author | Huacai Chen <chenhc@lemote.com> | 2020-05-23 10:56:31 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-06-04 20:48:51 +0300 |
commit | bf10efbb81bf0c7ae6ebac3320b5b40c323463f3 (patch) | |
tree | e03313a07861c26909f9eed03fd144bc2739424c /arch/mips/kvm/vz.c | |
parent | 210b4b9112b699df4c33273bf7b02d9debd2f35e (diff) | |
download | linux-bf10efbb81bf0c7ae6ebac3320b5b40c323463f3.tar.xz |
KVM: MIPS: Add EVENTFD support which is needed by VHOST
Add EVENTFD support for KVM/MIPS, which is needed by VHOST. Tested on
Loongson-3 platform.
Reviewed-by: Aleksandar Markovic <aleksandar.qemu.devel@gmail.com>
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Co-developed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Message-Id: <1590220602-3547-5-git-send-email-chenhc@lemote.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm/vz.c')
-rw-r--r-- | arch/mips/kvm/vz.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kvm/vz.c b/arch/mips/kvm/vz.c index 51f51009a53f..cc7fdbb9c108 100644 --- a/arch/mips/kvm/vz.c +++ b/arch/mips/kvm/vz.c @@ -2927,6 +2927,9 @@ static int kvm_vz_check_extension(struct kvm *kvm, long ext) r = 2; break; #endif + case KVM_CAP_IOEVENTFD: + r = 1; + break; default: r = 0; break; |