diff options
| author | Liam Merwick <liam.merwick@oracle.com> | 2025-06-09 09:11:20 +0000 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-06-20 13:55:12 -0700 |
| commit | 741e595f02fe4386914b7ef656a06f7209480ca9 (patch) | |
| tree | 70cd10953518865a757ca98379353403123e76ef /virt | |
| parent | 28224ef02b56fceee2c161fe2a49a0bb197e44f5 (diff) | |
KVM: Add trace_kvm_vm_set_mem_attributes()
Add a tracing function that, for a guest memory range, displays
the start and end addresses plus the per-page attributes being set.
Signed-off-by: Liam Merwick <liam.merwick@oracle.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com>
Link: https://lore.kernel.org/r/20250609091121.2497429-3-liam.merwick@oracle.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'virt')
| -rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index eec82775c5bf..af69b1e24f40 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -2558,6 +2558,8 @@ static int kvm_vm_set_mem_attributes(struct kvm *kvm, gfn_t start, gfn_t end, entry = attributes ? xa_mk_value(attributes) : NULL; + trace_kvm_vm_set_mem_attributes(start, end, attributes); + mutex_lock(&kvm->slots_lock); /* Nothing to do if the entire range as the desired attributes. */ |