summaryrefslogtreecommitdiffstats
path: root/Documentation/virtual/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-08-29 15:27:08 +0200
committerAvi Kivity <avi@redhat.com>2011-09-25 18:52:18 +0200
commit364426871ca33752a6e8fcfccec4d89e2eaf06f7 (patch)
tree97406a68a873a256051f0edc91989a2cf78e3854 /Documentation/virtual/kvm
parentKVM: APIC: avoid instruction emulation for EOI writes (diff)
downloadlinux-364426871ca33752a6e8fcfccec4d89e2eaf06f7.tar.xz
linux-364426871ca33752a6e8fcfccec4d89e2eaf06f7.zip
KVM: Restore missing powerpc API docs
Commit 371fefd6 lost a doc hunk somehow, restore it. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'Documentation/virtual/kvm')
-rw-r--r--Documentation/virtual/kvm/api.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index 75cd8fba0cde..2d510b6a649a 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -200,6 +200,19 @@ allocation of vcpu ids. For example, if userspace wants
single-threaded guest vcpus, it should make all vcpu ids be a multiple
of the number of vcpus per vcore.
+On powerpc using book3s_hv mode, the vcpus are mapped onto virtual
+threads in one or more virtual CPU cores. (This is because the
+hardware requires all the hardware threads in a CPU core to be in the
+same partition.) The KVM_CAP_PPC_SMT capability indicates the number
+of vcpus per virtual core (vcore). The vcore id is obtained by
+dividing the vcpu id by the number of vcpus per vcore. The vcpus in a
+given vcore will always be in the same physical core as each other
+(though that might be a different physical core from time to time).
+Userspace can control the threading (SMT) mode of the guest by its
+allocation of vcpu ids. For example, if userspace wants
+single-threaded guest vcpus, it should make all vcpu ids be a multiple
+of the number of vcpus per vcore.
+
4.8 KVM_GET_DIRTY_LOG (vm ioctl)
Capability: basic