]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: PPC: Add capability for paired singles
authorAlexander Graf <agraf@suse.de>
Fri, 19 Feb 2010 10:00:45 +0000 (11:00 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:37:47 +0000 (12:37 +0300)
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>
arch/powerpc/kvm/powerpc.c
include/linux/kvm.h

index 1266ed02b47151f278762cbab44529d5345f1f68..ad2b6275acb724b9648854c19be8cd65a62bc3ed 100644 (file)
@@ -148,6 +148,7 @@ int kvm_dev_ioctl_check_extension(long ext)
 
        switch (ext) {
        case KVM_CAP_PPC_SEGSTATE:
+       case KVM_CAP_PPC_PAIRED_SINGLES:
                r = 1;
                break;
        case KVM_CAP_COALESCED_MMIO:
index 60df9c84ecae2e0606d1ffc3cc8c9ec7d79785d9..360f85e8c4358b913a161353c2a18584255c5373 100644 (file)
@@ -501,6 +501,7 @@ struct kvm_ioeventfd {
 #define KVM_CAP_HYPERV_VAPIC 45
 #define KVM_CAP_HYPERV_SPIN 46
 #define KVM_CAP_PCI_SEGMENT 47
+#define KVM_CAP_PPC_PAIRED_SINGLES 48
 #define KVM_CAP_X86_ROBUST_SINGLESTEP 51
 
 #ifdef KVM_CAP_IRQ_ROUTING