KVM: Add config to support ple or cpu relax optimzation
authorRaghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
Wed, 18 Jul 2012 13:37:32 +0000 (19:07 +0530)
committerAvi Kivity <avi@redhat.com>
Mon, 23 Jul 2012 10:00:53 +0000 (13:00 +0300)
Suggested-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com> # on s390x
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/s390/kvm/Kconfig
arch/x86/kvm/Kconfig
virt/kvm/Kconfig

index 78eb984..a6e2677 100644 (file)
@@ -21,6 +21,7 @@ config KVM
        depends on HAVE_KVM && EXPERIMENTAL
        select PREEMPT_NOTIFIERS
        select ANON_INODES
+       select HAVE_KVM_CPU_RELAX_INTERCEPT
        ---help---
          Support hosting paravirtualized guest machines using the SIE
          virtualization capability on the mainframe. This should work
index a28f338..45c044f 100644 (file)
@@ -37,6 +37,7 @@ config KVM
        select TASK_DELAY_ACCT
        select PERF_EVENTS
        select HAVE_KVM_MSI
+       select HAVE_KVM_CPU_RELAX_INTERCEPT
        ---help---
          Support hosting fully virtualized guest machines using hardware
          virtualization extensions.  You will need a fairly recent
index 28694f4..d01b24b 100644 (file)
@@ -21,3 +21,6 @@ config KVM_ASYNC_PF
 
 config HAVE_KVM_MSI
        bool
+
+config HAVE_KVM_CPU_RELAX_INTERCEPT
+       bool