diff options
| author | David Woodhouse <dwmw@amazon.co.uk> | 2026-08-31 22:26:33 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2026-09-04 17:34:04 +0200 |
| commit | c152f0a08366107a4333b3260a60803c36120bfa (patch) | |
| tree | 5edcc5e460a5aeba468e6218b646493c8c3d826f /scripts/Makefile.thinlto | |
| parent | f16044caeab6248a2b1a2e4de42f5de01c27cd5b (diff) | |
KVM: x86/xen: Introduce kvm_xen_has_64bit_shinfo() macro
Add a kvm_xen_has_64bit_shinfo() helper macro to replace the repeated
pattern of 'IS_ENABLED(CONFIG_64BIT) && kvm->arch.xen.long_mode'
throughout the Xen emulation code. The macro uses READ_ONCE() to
ensure a consistent snapshot of the flag, which can be changed by
another vCPU at any time.
This is the KVM equivalent of Xen's !has_32bit_shinfo().
Assisted-by: Kiro:claude-opus-4.6-1m
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
Link: https://patch.msgid.link/20260831213632.81023-3-dwmw2@infradead.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
