diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2014-12-15 07:06:40 -0500 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-12-15 07:06:40 -0500 |
| commit | 333bce5aac9e8cb7f6b27e0122a224d17be4dd5d (patch) | |
| tree | 7a171a51d9a999f90dd6f17f2b7dd0997dbc1a38 /Documentation/virtual | |
| parent | ab646f54f4fd1a8b9671b8707f0739fdd28ce2b1 (diff) | |
| parent | 05971120fca43e0357789a14b3386bb56eef2201 (diff) | |
Merge tag 'kvm-arm-for-3.19-take2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
Second round of changes for KVM for arm/arm64 for v3.19; fixes reboot
problems, clarifies VCPU init, and fixes a regression concerning the
VGIC init flow.
Conflicts:
arch/ia64/kvm/kvm-ia64.c [deleted in HEAD and modified in kvmarm]
Diffstat (limited to 'Documentation/virtual')
| -rw-r--r-- | Documentation/virtual/kvm/api.txt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 80bfe59fc992..0007fef4ed81 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
| @@ -2478,9 +2478,15 @@ return ENOEXEC for that vcpu. | |||
| 2478 | Note that because some registers reflect machine topology, all vcpus | 2478 | Note that because some registers reflect machine topology, all vcpus |
| 2479 | should be created before this ioctl is invoked. | 2479 | should be created before this ioctl is invoked. |
| 2480 | 2480 | ||
| 2481 | Userspace can call this function multiple times for a given vcpu, including | ||
| 2482 | after the vcpu has been run. This will reset the vcpu to its initial | ||
| 2483 | state. All calls to this function after the initial call must use the same | ||
| 2484 | target and same set of feature flags, otherwise EINVAL will be returned. | ||
| 2485 | |||
| 2481 | Possible features: | 2486 | Possible features: |
| 2482 | - KVM_ARM_VCPU_POWER_OFF: Starts the CPU in a power-off state. | 2487 | - KVM_ARM_VCPU_POWER_OFF: Starts the CPU in a power-off state. |
| 2483 | Depends on KVM_CAP_ARM_PSCI. | 2488 | Depends on KVM_CAP_ARM_PSCI. If not set, the CPU will be powered on |
| 2489 | and execute guest code when KVM_RUN is called. | ||
| 2484 | - KVM_ARM_VCPU_EL1_32BIT: Starts the CPU in a 32bit mode. | 2490 | - KVM_ARM_VCPU_EL1_32BIT: Starts the CPU in a 32bit mode. |
| 2485 | Depends on KVM_CAP_ARM_EL1_32BIT (arm64 only). | 2491 | Depends on KVM_CAP_ARM_EL1_32BIT (arm64 only). |
| 2486 | - KVM_ARM_VCPU_PSCI_0_2: Emulate PSCI v0.2 for the CPU. | 2492 | - KVM_ARM_VCPU_PSCI_0_2: Emulate PSCI v0.2 for the CPU. |
| @@ -2976,6 +2982,15 @@ HVC instruction based PSCI call from the vcpu. The 'type' field describes | |||
| 2976 | the system-level event type. The 'flags' field describes architecture | 2982 | the system-level event type. The 'flags' field describes architecture |
| 2977 | specific flags for the system-level event. | 2983 | specific flags for the system-level event. |
| 2978 | 2984 | ||
| 2985 | Valid values for 'type' are: | ||
| 2986 | KVM_SYSTEM_EVENT_SHUTDOWN -- the guest has requested a shutdown of the | ||
| 2987 | VM. Userspace is not obliged to honour this, and if it does honour | ||
| 2988 | this does not need to destroy the VM synchronously (ie it may call | ||
| 2989 | KVM_RUN again before shutdown finally occurs). | ||
| 2990 | KVM_SYSTEM_EVENT_RESET -- the guest has requested a reset of the VM. | ||
| 2991 | As with SHUTDOWN, userspace can choose to ignore the request, or | ||
| 2992 | to schedule the reset to occur in the future and may call KVM_RUN again. | ||
| 2993 | |||
| 2979 | /* Fix the size of the union. */ | 2994 | /* Fix the size of the union. */ |
| 2980 | char padding[256]; | 2995 | char padding[256]; |
| 2981 | }; | 2996 | }; |
