aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/kvm_book3s.h
diff options
context:
space:
mode:
authorGravatar Paul Mackerras <paulus@ozlabs.org> 2017-06-22 15:08:42 +1000
committerGravatar Paul Mackerras <paulus@ozlabs.org> 2017-07-01 18:59:01 +1000
commit898b25b202f3504335ae00055d7a2863bd93f2f8 (patch)
tree2346ef73c7b0ef0fb9f7c070f70f34c28defd81b /arch/powerpc/include/asm/kvm_book3s.h
parentKVM: PPC: Book3S HV: Add capability to report possible virtual SMT modes (diff)
downloadlinux-898b25b202f3504335ae00055d7a2863bd93f2f8.tar.gz
linux-898b25b202f3504335ae00055d7a2863bd93f2f8.tar.bz2
linux-898b25b202f3504335ae00055d7a2863bd93f2f8.zip
KVM: PPC: Book3S HV: Simplify dynamic micro-threading code
Since commit b009031f74da ("KVM: PPC: Book3S HV: Take out virtual core piggybacking code", 2016-09-15), we only have at most one vcore per subcore. Previously, the fact that there might be more than one vcore per subcore meant that we had the notion of a "master vcore", which was the vcore that controlled thread 0 of the subcore. We also needed a list per subcore in the core_info struct to record which vcores belonged to each subcore. Now that there can only be one vcore in the subcore, we can replace the list with a simple pointer and get rid of the notion of the master vcore (and in fact treat every vcore as a master vcore). We can also get rid of the subcore_vm[] field in the core_info struct since it is never read. Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_book3s.h')
-rw-r--r--arch/powerpc/include/asm/kvm_book3s.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/kvm_book3s.h b/arch/powerpc/include/asm/kvm_book3s.h
index 2bf35017ffc0..b8d5b8e35244 100644
--- a/arch/powerpc/include/asm/kvm_book3s.h
+++ b/arch/powerpc/include/asm/kvm_book3s.h
@@ -86,7 +86,6 @@ struct kvmppc_vcore {
u16 last_cpu;
u8 vcore_state;
u8 in_guest;
- struct kvmppc_vcore *master_vcore;
struct kvm_vcpu *runnable_threads[MAX_SMT_THREADS];
struct list_head preempt_list;
spinlock_t lock;