diff options
| author | Avi Kivity <avi@redhat.com> | 2011-08-29 09:27:08 -0400 |
|---|---|---|
| committer | Avi Kivity <avi@redhat.com> | 2011-09-25 12:52:18 -0400 |
| commit | 364426871ca33752a6e8fcfccec4d89e2eaf06f7 (patch) | |
| tree | 97406a68a873a256051f0edc91989a2cf78e3854 /Documentation/virtual | |
| parent | 58fbbf26eb01cf6d92cf18da8d14b3a4af9c4b47 (diff) | |
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')
| -rw-r--r-- | Documentation/virtual/kvm/api.txt | 13 |
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 | |||
| 200 | single-threaded guest vcpus, it should make all vcpu ids be a multiple | 200 | single-threaded guest vcpus, it should make all vcpu ids be a multiple |
| 201 | of the number of vcpus per vcore. | 201 | of the number of vcpus per vcore. |
| 202 | 202 | ||
| 203 | On powerpc using book3s_hv mode, the vcpus are mapped onto virtual | ||
| 204 | threads in one or more virtual CPU cores. (This is because the | ||
| 205 | hardware requires all the hardware threads in a CPU core to be in the | ||
| 206 | same partition.) The KVM_CAP_PPC_SMT capability indicates the number | ||
| 207 | of vcpus per virtual core (vcore). The vcore id is obtained by | ||
| 208 | dividing the vcpu id by the number of vcpus per vcore. The vcpus in a | ||
| 209 | given vcore will always be in the same physical core as each other | ||
| 210 | (though that might be a different physical core from time to time). | ||
| 211 | Userspace can control the threading (SMT) mode of the guest by its | ||
| 212 | allocation of vcpu ids. For example, if userspace wants | ||
| 213 | single-threaded guest vcpus, it should make all vcpu ids be a multiple | ||
| 214 | of the number of vcpus per vcore. | ||
| 215 | |||
| 203 | 4.8 KVM_GET_DIRTY_LOG (vm ioctl) | 216 | 4.8 KVM_GET_DIRTY_LOG (vm ioctl) |
| 204 | 217 | ||
| 205 | Capability: basic | 218 | Capability: basic |
