diff options
author | Steve Rutherford <srutherford@google.com> | 2015-07-30 02:21:40 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-10-01 09:06:26 -0400 |
commit | 49df6397edfc5a8ba8ca813b51fb9729d8e94b40 (patch) | |
tree | b5cb29a28fff01c9c85c4f02961164532fa241b2 /Documentation/virtual | |
parent | 4ca7dd8ce4b24e18f94eed90e80c6eb80fb48c9a (diff) |
KVM: x86: Split the APIC from the rest of IRQCHIP.
First patch in a series which enables the relocation of the
PIC/IOAPIC to userspace.
Adds capability KVM_CAP_SPLIT_IRQCHIP;
KVM_CAP_SPLIT_IRQCHIP enables the construction of LAPICs without the
rest of the irqchip.
Compile tested for x86.
Signed-off-by: Steve Rutherford <srutherford@google.com>
Suggested-by: Andrew Honig <ahonig@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Documentation/virtual')
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index d9ecceea5a02..43e0816d0de1 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -3627,6 +3627,23 @@ struct { | |||
3627 | 3627 | ||
3628 | KVM handlers should exit to userspace with rc = -EREMOTE. | 3628 | KVM handlers should exit to userspace with rc = -EREMOTE. |
3629 | 3629 | ||
3630 | 7.5 KVM_CAP_SPLIT_IRQCHIP | ||
3631 | |||
3632 | Architectures: x86 | ||
3633 | Parameters: None | ||
3634 | Returns: 0 on success, -1 on error | ||
3635 | |||
3636 | Create a local apic for each processor in the kernel. This can be used | ||
3637 | instead of KVM_CREATE_IRQCHIP if the userspace VMM wishes to emulate the | ||
3638 | IOAPIC and PIC (and also the PIT, even though this has to be enabled | ||
3639 | separately). | ||
3640 | |||
3641 | This supersedes KVM_CREATE_IRQCHIP, creating only local APICs, but no in kernel | ||
3642 | IOAPIC or PIC. This also enables in kernel routing of interrupt requests. | ||
3643 | |||
3644 | Fails if VCPU has already been created, or if the irqchip is already in the | ||
3645 | kernel (i.e. KVM_CREATE_IRQCHIP has already been called). | ||
3646 | |||
3630 | 3647 | ||
3631 | 8. Other capabilities. | 3648 | 8. Other capabilities. |
3632 | ---------------------- | 3649 | ---------------------- |