aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-04-20 20:30:06 -0400
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-04-21 08:56:31 -0400
commit6ade8694f471d847500c7cec152cc15171cef5d5 (patch)
tree8883a0c9784b684134928d6371e0258ebae1a3ba
parentdad81a2026841b5e2651aab58a7398c13cc05847 (diff)
kvm: Move srcu_struct fields to end of struct kvm
Parallelizing SRCU callback handling will increase the size of srcu_struct, which will move the kvm structure's kvm_arch field out of reach of powerpc's current assembly code, which will result in the following sort of build error: arch/powerpc/kvm/book3s_hv_rmhandlers.S:617: Error: operand out of range (0x000000000000b328 is not between 0xffffffffffff8000 and 0x0000000000007fff) This commit moves the srcu_struct fields in the kvm structure to follow the kvm_arch field, which will allow powerpc's assembly code to continue to be able to reach the kvm_arch field. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Reported-by: Michael Ellerman <michaele@au1.ibm.com> Reported-by: kbuild test robot <fengguang.wu@intel.com> Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Tested-by: Michael Ellerman <mpe@ellerman.id.au> Acked-by: Paolo Bonzini <pbonzini@redhat.com> [ paulmck: Moved this commit to precede SRCU callback parallelization, and reworded the commit log into future tense, all in the name of bisectability. ]
-rw-r--r--include/linux/kvm_host.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 2c14ad9809da..96c8e29c6442 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -375,8 +375,6 @@ struct kvm {
375 struct mutex slots_lock; 375 struct mutex slots_lock;
376 struct mm_struct *mm; /* userspace tied to this vm */ 376 struct mm_struct *mm; /* userspace tied to this vm */
377 struct kvm_memslots *memslots[KVM_ADDRESS_SPACE_NUM]; 377 struct kvm_memslots *memslots[KVM_ADDRESS_SPACE_NUM];
378 struct srcu_struct srcu;
379 struct srcu_struct irq_srcu;
380 struct kvm_vcpu *vcpus[KVM_MAX_VCPUS]; 378 struct kvm_vcpu *vcpus[KVM_MAX_VCPUS];
381 379
382 /* 380 /*
@@ -429,6 +427,8 @@ struct kvm {
429 struct list_head devices; 427 struct list_head devices;
430 struct dentry *debugfs_dentry; 428 struct dentry *debugfs_dentry;
431 struct kvm_stat_data **debugfs_stat_data; 429 struct kvm_stat_data **debugfs_stat_data;
430 struct srcu_struct srcu;
431 struct srcu_struct irq_srcu;
432}; 432};
433 433
434#define kvm_err(fmt, ...) \ 434#define kvm_err(fmt, ...) \