diff options
author | Alexander Graf <agraf@suse.de> | 2010-02-19 05:00:45 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-04-25 05:37:47 -0400 |
commit | c10207fe86b1761c3ad135eb922fdb41bbde3025 (patch) | |
tree | ce0ae22580dd0869b6a80a2523cf0d31f4f6fef4 | |
parent | 831317b605e7d7ce0bdadb3b0f50560fc13cecbf (diff) |
KVM: PPC: Add capability for paired singles
We need to tell userspace that we can emulate paired single instructions.
So let's add a capability export.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 1 | ||||
-rw-r--r-- | include/linux/kvm.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 1266ed02b471..ad2b6275acb7 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c | |||
@@ -148,6 +148,7 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
148 | 148 | ||
149 | switch (ext) { | 149 | switch (ext) { |
150 | case KVM_CAP_PPC_SEGSTATE: | 150 | case KVM_CAP_PPC_SEGSTATE: |
151 | case KVM_CAP_PPC_PAIRED_SINGLES: | ||
151 | r = 1; | 152 | r = 1; |
152 | break; | 153 | break; |
153 | case KVM_CAP_COALESCED_MMIO: | 154 | case KVM_CAP_COALESCED_MMIO: |
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 60df9c84ecae..360f85e8c435 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -501,6 +501,7 @@ struct kvm_ioeventfd { | |||
501 | #define KVM_CAP_HYPERV_VAPIC 45 | 501 | #define KVM_CAP_HYPERV_VAPIC 45 |
502 | #define KVM_CAP_HYPERV_SPIN 46 | 502 | #define KVM_CAP_HYPERV_SPIN 46 |
503 | #define KVM_CAP_PCI_SEGMENT 47 | 503 | #define KVM_CAP_PCI_SEGMENT 47 |
504 | #define KVM_CAP_PPC_PAIRED_SINGLES 48 | ||
504 | #define KVM_CAP_X86_ROBUST_SINGLESTEP 51 | 505 | #define KVM_CAP_X86_ROBUST_SINGLESTEP 51 |
505 | 506 | ||
506 | #ifdef KVM_CAP_IRQ_ROUTING | 507 | #ifdef KVM_CAP_IRQ_ROUTING |