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