diff options
| author | 2026-03-03 00:33:56 +0000 | |
|---|---|---|
| committer | 2026-03-04 16:08:44 -0800 | |
| commit | 361dbe8173c460a2bf8aee23920f6c2dbdcabb94 (patch) | |
| tree | 21658117f3b73ec05f021074ab7d978bef4cc81b /scripts/Makefile.thinlto | |
| parent | KVM: nSVM: Avoid clearing VMCB_LBR in vmcb12 (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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
