diff options
author | Avi Kivity <avi@redhat.com> | 2008-12-08 11:29:29 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:55:46 -0500 |
commit | ca9edaee1aea34ebd9adb48910aba0b3d64b1b22 (patch) | |
tree | 283e686f8215354fbc5f73dc3366f72c35eca1db /arch | |
parent | 1a811b6167089bcdb84284f2dc9fd0b4d0f1899d (diff) |
KVM: Consolidate userspace memory capability reporting into common code
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/kvm/kvm-ia64.c | 1 | ||||
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 3 | ||||
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 2 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
4 files changed, 0 insertions, 7 deletions
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c index b4d24e2cce40..d2eb9691d61d 100644 --- a/arch/ia64/kvm/kvm-ia64.c +++ b/arch/ia64/kvm/kvm-ia64.c | |||
@@ -180,7 +180,6 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
180 | 180 | ||
181 | switch (ext) { | 181 | switch (ext) { |
182 | case KVM_CAP_IRQCHIP: | 182 | case KVM_CAP_IRQCHIP: |
183 | case KVM_CAP_USER_MEMORY: | ||
184 | case KVM_CAP_MP_STATE: | 183 | case KVM_CAP_MP_STATE: |
185 | 184 | ||
186 | r = 1; | 185 | r = 1; |
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 1deda37cb771..2822c8ccfaaf 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -137,9 +137,6 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
137 | int r; | 137 | int r; |
138 | 138 | ||
139 | switch (ext) { | 139 | switch (ext) { |
140 | case KVM_CAP_USER_MEMORY: | ||
141 | r = 1; | ||
142 | break; | ||
143 | case KVM_CAP_COALESCED_MMIO: | 140 | case KVM_CAP_COALESCED_MMIO: |
144 | r = KVM_COALESCED_MMIO_PAGE_OFFSET; | 141 | r = KVM_COALESCED_MMIO_PAGE_OFFSET; |
145 | break; | 142 | break; |
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index 76f05ddaef10..be8497186b96 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c | |||
@@ -113,8 +113,6 @@ long kvm_arch_dev_ioctl(struct file *filp, | |||
113 | int kvm_dev_ioctl_check_extension(long ext) | 113 | int kvm_dev_ioctl_check_extension(long ext) |
114 | { | 114 | { |
115 | switch (ext) { | 115 | switch (ext) { |
116 | case KVM_CAP_USER_MEMORY: | ||
117 | return 1; | ||
118 | default: | 116 | default: |
119 | return 0; | 117 | return 0; |
120 | } | 118 | } |
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index ba102879de33..10302d3bd415 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -964,7 +964,6 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
964 | case KVM_CAP_IRQCHIP: | 964 | case KVM_CAP_IRQCHIP: |
965 | case KVM_CAP_HLT: | 965 | case KVM_CAP_HLT: |
966 | case KVM_CAP_MMU_SHADOW_CACHE_CONTROL: | 966 | case KVM_CAP_MMU_SHADOW_CACHE_CONTROL: |
967 | case KVM_CAP_USER_MEMORY: | ||
968 | case KVM_CAP_SET_TSS_ADDR: | 967 | case KVM_CAP_SET_TSS_ADDR: |
969 | case KVM_CAP_EXT_CPUID: | 968 | case KVM_CAP_EXT_CPUID: |
970 | case KVM_CAP_CLOCKSOURCE: | 969 | case KVM_CAP_CLOCKSOURCE: |