diff options
| author | Yosry Ahmed <yosry@kernel.org> | 2026-03-03 00:33:56 +0000 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-03-04 16:08:44 -0800 |
| commit | 361dbe8173c460a2bf8aee23920f6c2dbdcabb94 (patch) | |
| tree | 21658117f3b73ec05f021074ab7d978bef4cc81b /tools/perf/scripts/python | |
| parent | b53ab5167a81537777ac780bbd93d32613aa3bda (diff) | |
KVM: SVM: Switch svm_copy_lbrs() to a macro
In preparation for using svm_copy_lbrs() with 'struct vmcb_save_area'
without a containing 'struct vmcb', and later even 'struct
vmcb_save_area_cached', make it a macro.
Macros are generally not preferred compared to functions, mainly due to
type-safety. However, in this case it seems like having a simple macro
copying a few fields is better than copy-pasting the same 5 lines of
code in different places.
Cc: stable@vger.kernel.org
Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260303003421.2185681-3-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
