Skip to content

Commit 69e5a7d

Browse files
committed
KVM: x86/xen: Bury xen_hvm_config behind CONFIG_KVM_XEN=y
Now that all references to kvm_vcpu_arch.xen_hvm_config are wrapped with CONFIG_KVM_XEN #ifdefs, bury the field itself behind CONFIG_KVM_XEN=y. No functional change intended. Reviewed-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org> Link: https://lore.kernel.org/r/20250215011437.1203084-5-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent a5d7700 commit 69e5a7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/include/asm/kvm_host.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,8 +1410,6 @@ struct kvm_arch {
14101410
struct delayed_work kvmclock_update_work;
14111411
struct delayed_work kvmclock_sync_work;
14121412

1413-
struct kvm_xen_hvm_config xen_hvm_config;
1414-
14151413
/* reads protected by irq_srcu, writes by irq_lock */
14161414
struct hlist_head mask_notifier_list;
14171415

@@ -1421,6 +1419,7 @@ struct kvm_arch {
14211419

14221420
#ifdef CONFIG_KVM_XEN
14231421
struct kvm_xen xen;
1422+
struct kvm_xen_hvm_config xen_hvm_config;
14241423
#endif
14251424

14261425
bool backwards_tsc_observed;

0 commit comments

Comments
 (0)