]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
KVM: Consolidate userspace memory capability reporting into common code
authorAvi Kivity <avi@redhat.com>
Mon, 8 Dec 2008 16:29:29 +0000 (18:29 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:46 +0000 (16:55 +0200)
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/kvm/kvm-ia64.c
arch/powerpc/kvm/powerpc.c
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c
virt/kvm/kvm_main.c

index b4d24e2cce407ad43caca7296d6ccca1e485c77e..d2eb9691d61d5860f8706982a0e68128fb32c239 100644 (file)
@@ -180,7 +180,6 @@ int kvm_dev_ioctl_check_extension(long ext)
 
        switch (ext) {
        case KVM_CAP_IRQCHIP:
-       case KVM_CAP_USER_MEMORY:
        case KVM_CAP_MP_STATE:
 
                r = 1;
index 1deda37cb771abb3006a072a76414dc365ee2a58..2822c8ccfaaf3ae036d6ce8da0fc16b4cf7c12a7 100644 (file)
@@ -137,9 +137,6 @@ int kvm_dev_ioctl_check_extension(long ext)
        int r;
 
        switch (ext) {
-       case KVM_CAP_USER_MEMORY:
-               r = 1;
-               break;
        case KVM_CAP_COALESCED_MMIO:
                r = KVM_COALESCED_MMIO_PAGE_OFFSET;
                break;
index 76f05ddaef10fbfe5a3c17d4e337f4a05e07ea78..be8497186b96d86472f1ae692c9c74e7c88515f4 100644 (file)
@@ -113,8 +113,6 @@ long kvm_arch_dev_ioctl(struct file *filp,
 int kvm_dev_ioctl_check_extension(long ext)
 {
        switch (ext) {
-       case KVM_CAP_USER_MEMORY:
-               return 1;
        default:
                return 0;
        }
index ba102879de33b72986a6a60a8d3f40896ab148c6..10302d3bd4157d0068b9beebdae6823bc1f96f41 100644 (file)
@@ -964,7 +964,6 @@ int kvm_dev_ioctl_check_extension(long ext)
        case KVM_CAP_IRQCHIP:
        case KVM_CAP_HLT:
        case KVM_CAP_MMU_SHADOW_CACHE_CONTROL:
-       case KVM_CAP_USER_MEMORY:
        case KVM_CAP_SET_TSS_ADDR:
        case KVM_CAP_EXT_CPUID:
        case KVM_CAP_CLOCKSOURCE:
index e066eb125e55eeea796a542b8f147b6bf84250b5..eb70ca6c7145590c1aa14edfad3379eb23dd6684 100644 (file)
@@ -1908,6 +1908,7 @@ static int kvm_dev_ioctl_create_vm(void)
 static long kvm_dev_ioctl_check_extension_generic(long arg)
 {
        switch (arg) {
+       case KVM_CAP_USER_MEMORY:
        case KVM_CAP_DESTROY_MEMORY_REGION_WORKS:
                return 1;
        default: