KVM: s390: improve debug feature usage
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 20 Jul 2015 13:04:48 +0000 (15:04 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 29 Jul 2015 09:02:35 +0000 (11:02 +0200)
We do not use the exception logger, so the 2nd area is unused.
Just have one area that is bigger (32 pages).
At the same time we can limit the debug feature size to 7
longs, as the largest user has 3 parameters + string + boiler
plate (vCPU, PSW mask, PSW addr)

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
arch/s390/kvm/kvm-s390.c

index b623267d60cc6bb44fc6febb26cfcee8355ab817..4c1b5cbea1a6a40707bff4bfbae7b3c36d529b4a 100644 (file)
@@ -1057,7 +1057,7 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
 
        sprintf(debug_name, "kvm-%u", current->pid);
 
-       kvm->arch.dbf = debug_register(debug_name, 8, 2, 8 * sizeof(long));
+       kvm->arch.dbf = debug_register(debug_name, 32, 1, 7 * sizeof(long));
        if (!kvm->arch.dbf)
                goto out_err;