diff options
Diffstat (limited to 'Documentation/virtual')
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 930126698a0f..310fe508d9cd 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -1930,6 +1930,42 @@ The "pte_enc" field provides a value that can OR'ed into the hash | |||
1930 | PTE's RPN field (ie, it needs to be shifted left by 12 to OR it | 1930 | PTE's RPN field (ie, it needs to be shifted left by 12 to OR it |
1931 | into the hash PTE second double word). | 1931 | into the hash PTE second double word). |
1932 | 1932 | ||
1933 | |||
1934 | 4.75 KVM_PPC_ALLOCATE_HTAB | ||
1935 | |||
1936 | Capability: KVM_CAP_PPC_ALLOC_HTAB | ||
1937 | Architectures: powerpc | ||
1938 | Type: vm ioctl | ||
1939 | Parameters: Pointer to u32 containing hash table order (in/out) | ||
1940 | Returns: 0 on success, -1 on error | ||
1941 | |||
1942 | This requests the host kernel to allocate an MMU hash table for a | ||
1943 | guest using the PAPR paravirtualization interface. This only does | ||
1944 | anything if the kernel is configured to use the Book 3S HV style of | ||
1945 | virtualization. Otherwise the capability doesn't exist and the ioctl | ||
1946 | returns an ENOTTY error. The rest of this description assumes Book 3S | ||
1947 | HV. | ||
1948 | |||
1949 | There must be no vcpus running when this ioctl is called; if there | ||
1950 | are, it will do nothing and return an EBUSY error. | ||
1951 | |||
1952 | The parameter is a pointer to a 32-bit unsigned integer variable | ||
1953 | containing the order (log base 2) of the desired size of the hash | ||
1954 | table, which must be between 18 and 46. On successful return from the | ||
1955 | ioctl, it will have been updated with the order of the hash table that | ||
1956 | was allocated. | ||
1957 | |||
1958 | If no hash table has been allocated when any vcpu is asked to run | ||
1959 | (with the KVM_RUN ioctl), the host kernel will allocate a | ||
1960 | default-sized hash table (16 MB). | ||
1961 | |||
1962 | If this ioctl is called when a hash table has already been allocated, | ||
1963 | the kernel will clear out the existing hash table (zero all HPTEs) and | ||
1964 | return the hash table order in the parameter. (If the guest is using | ||
1965 | the virtualized real-mode area (VRMA) facility, the kernel will | ||
1966 | re-create the VMRA HPTEs on the next KVM_RUN of any vcpu.) | ||
1967 | |||
1968 | |||
1933 | 5. The kvm_run structure | 1969 | 5. The kvm_run structure |
1934 | ------------------------ | 1970 | ------------------------ |
1935 | 1971 | ||