projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cab7a1e
)
KVM: s390: Advertise KVM_CAP_USER_MEMORY
author
Carsten Otte
<cotte@de.ibm.com>
Fri, 25 Jul 2008 13:49:13 +0000
(15:49 +0200)
committer
Avi Kivity
<avi@qumranet.com>
Sun, 27 Jul 2008 08:35:40 +0000
(11:35 +0300)
KVM_CAP_USER_MEMORY is used by s390, therefore, we should advertise it.
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/s390/kvm/kvm-s390.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/s390/kvm/kvm-s390.c
b/arch/s390/kvm/kvm-s390.c
index 1782cbcd2829545270d897cd4f911d95f54d0fa7..fcd41795b550f602fb08fc7502fb5f9faf63a86d 100644
(file)
--- a/
arch/s390/kvm/kvm-s390.c
+++ b/
arch/s390/kvm/kvm-s390.c
@@
-112,7
+112,12
@@
long kvm_arch_dev_ioctl(struct file *filp,
int kvm_dev_ioctl_check_extension(long ext)
{
- return 0;
+ switch (ext) {
+ case KVM_CAP_USER_MEMORY:
+ return 1;
+ default:
+ return 0;
+ }
}
/* Section: vm related */