Skip to content

Commit

Permalink
KVM: s390: improve debug feature usage
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Cornelia Huck <[email protected]>
  • Loading branch information
borntraeger committed Jul 29, 2015
1 parent f2d2eb9 commit 1cb9cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/s390/kvm/kvm-s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1cb9cf7

Please sign in to comment.