KVM: s390: Add memcg accounting to KVM allocations
[linux-2.6-microblaze.git] / arch / s390 / kvm / priv.c
index cd74989..9928f78 100644 (file)
@@ -879,7 +879,7 @@ static int handle_stsi(struct kvm_vcpu *vcpu)
        switch (fc) {
        case 1: /* same handling for 1 and 2 */
        case 2:
-               mem = get_zeroed_page(GFP_KERNEL);
+               mem = get_zeroed_page(GFP_KERNEL_ACCOUNT);
                if (!mem)
                        goto out_no_data;
                if (stsi((void *) mem, fc, sel1, sel2))
@@ -888,7 +888,7 @@ static int handle_stsi(struct kvm_vcpu *vcpu)
        case 3:
                if (sel1 != 2 || sel2 != 2)
                        goto out_no_data;
-               mem = get_zeroed_page(GFP_KERNEL);
+               mem = get_zeroed_page(GFP_KERNEL_ACCOUNT);
                if (!mem)
                        goto out_no_data;
                handle_stsi_3_2_2(vcpu, (void *) mem);