diff options
author | 2024-06-17 18:10:18 +0000 | |
---|---|---|
committer | 2024-06-19 08:42:39 +0000 | |
commit | 3dc14eefa504d2fbe8e75113c7bb164a20bc39b0 (patch) | |
tree | 59658da1bad39235e151f5387d382cef87209eb4 | |
parent | KVM: arm64: nv: Fix RESx behaviour of disabled FGTs with negative polarity (diff) | |
download | linux-rng-3dc14eefa504d2fbe8e75113c7bb164a20bc39b0.tar.xz linux-rng-3dc14eefa504d2fbe8e75113c7bb164a20bc39b0.zip |
KVM: arm64: nv: Use GFP_KERNEL_ACCOUNT for sysreg_masks allocation
Of course, userspace is in the driver's seat for struct kvm and
associated allocations. Make sure the sysreg_masks allocation
participates in kmem accounting.
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240617181018.2054332-1-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
-rw-r--r-- | arch/arm64/kvm/nested.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/nested.c b/arch/arm64/kvm/nested.c index 0acb60273482..913018e4cdae 100644 --- a/arch/arm64/kvm/nested.c +++ b/arch/arm64/kvm/nested.c @@ -198,7 +198,7 @@ int kvm_init_nv_sysregs(struct kvm *kvm) goto out; kvm->arch.sysreg_masks = kzalloc(sizeof(*(kvm->arch.sysreg_masks)), - GFP_KERNEL); + GFP_KERNEL_ACCOUNT); if (!kvm->arch.sysreg_masks) { ret = -ENOMEM; goto out; |