public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: ppc: fix Kconfig constraints
@ 2008-11-07 19:10 Hollis Blanchard
  2008-11-07 19:15 ` Hollis Blanchard
  0 siblings, 1 reply; 5+ messages in thread
From: Hollis Blanchard @ 2008-11-07 19:10 UTC (permalink / raw)
  To: avi-H+wXaHxf7aLQT0dZR+AlfA
  Cc: kvm-ppc-u79uwXL29TY76Z2rM5mHXA, kvm-u79uwXL29TY76Z2rM5mHXA

Make sure that CONFIG_KVM cannot be selected without processor support
(currently, 440 is the only processor implementation available).

Signed-off-by: Hollis Blanchard <hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig
--- a/arch/powerpc/kvm/Kconfig
+++ b/arch/powerpc/kvm/Kconfig
@@ -15,24 +15,23 @@ if VIRTUALIZATION
 if VIRTUALIZATION
 
 config KVM
-	bool "Kernel-based Virtual Machine (KVM) support"
-	depends on EXPERIMENTAL
+	bool
 	select PREEMPT_NOTIFIERS
 	select ANON_INODES
+	default n
+
+config KVM_440
+	bool "KVM support for PowerPC 440 processors"
+	depends on EXPERIMENTAL && 44x
+	select KVM
 	---help---
-	  Support hosting virtualized guest machines. You will also
-	  need to select one or more of the processor modules below.
+	  Support running unmodified 440 guest kernels in virtual machines on
+	  440 host processors.
 
 	  This module provides access to the hardware capabilities through
 	  a character device node named /dev/kvm.
 
 	  If unsure, say N.
-
-config KVM_440
-	bool "KVM support for PowerPC 440 processors"
-	depends on KVM && 44x
-	---help---
-	  KVM can run unmodified 440 guest kernels on 440 host processors.
 
 config KVM_TRACE
 	bool "KVM trace support"
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] kvm: ppc: fix Kconfig constraints
  2008-11-07 19:10 [PATCH] kvm: ppc: fix Kconfig constraints Hollis Blanchard
@ 2008-11-07 19:15 ` Hollis Blanchard
  2008-11-09 10:05   ` Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: Hollis Blanchard @ 2008-11-07 19:15 UTC (permalink / raw)
  To: avi; +Cc: kvm-ppc, kvm

On Fri, 2008-11-07 at 13:10 -0600, Hollis Blanchard wrote:
> Make sure that CONFIG_KVM cannot be selected without processor support
> (currently, 440 is the only processor implementation available).
> 
> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
> 
> diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig
> --- a/arch/powerpc/kvm/Kconfig
> +++ b/arch/powerpc/kvm/Kconfig
> @@ -15,24 +15,23 @@ if VIRTUALIZATION
>  if VIRTUALIZATION
> 
>  config KVM
> -	bool "Kernel-based Virtual Machine (KVM) support"
> -	depends on EXPERIMENTAL
> +	bool
>  	select PREEMPT_NOTIFIERS
>  	select ANON_INODES
> +	default n

The "default n" isn't needed. Updated patch below.

kvm: ppc: fix Kconfig constraints

Make sure that CONFIG_KVM cannot be selected without processor support
(currently, 440 is the only processor implementation available).

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig
--- a/arch/powerpc/kvm/Kconfig
+++ b/arch/powerpc/kvm/Kconfig
@@ -15,24 +15,22 @@ if VIRTUALIZATION
 if VIRTUALIZATION
 
 config KVM
-	bool "Kernel-based Virtual Machine (KVM) support"
-	depends on EXPERIMENTAL
+	bool
 	select PREEMPT_NOTIFIERS
 	select ANON_INODES
+
+config KVM_440
+	bool "KVM support for PowerPC 440 processors"
+	depends on EXPERIMENTAL && 44x
+	select KVM
 	---help---
-	  Support hosting virtualized guest machines. You will also
-	  need to select one or more of the processor modules below.
+	  Support running unmodified 440 guest kernels in virtual machines on
+	  440 host processors.
 
 	  This module provides access to the hardware capabilities through
 	  a character device node named /dev/kvm.
 
 	  If unsure, say N.
-
-config KVM_440
-	bool "KVM support for PowerPC 440 processors"
-	depends on KVM && 44x
-	---help---
-	  KVM can run unmodified 440 guest kernels on 440 host processors.
 
 config KVM_TRACE
 	bool "KVM trace support"


-- 
Hollis Blanchard
IBM Linux Technology Center


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] kvm: ppc: fix Kconfig constraints
  2008-11-07 19:15 ` Hollis Blanchard
@ 2008-11-09 10:05   ` Avi Kivity
       [not found]     ` <4916B5CE.1080605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Avi Kivity @ 2008-11-09 10:05 UTC (permalink / raw)
  To: Hollis Blanchard; +Cc: kvm-ppc, kvm, Sam Ravnborg

Hollis Blanchard wrote:
> kvm: ppc: fix Kconfig constraints
>
> Make sure that CONFIG_KVM cannot be selected without processor support
> (currently, 440 is the only processor implementation available).
>
> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
>
> diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig
> --- a/arch/powerpc/kvm/Kconfig
> +++ b/arch/powerpc/kvm/Kconfig
> @@ -15,24 +15,22 @@ if VIRTUALIZATION
>  if VIRTUALIZATION
>  
>  config KVM
> -	bool "Kernel-based Virtual Machine (KVM) support"
> -	depends on EXPERIMENTAL
> +	bool
>  	select PREEMPT_NOTIFIERS
>  	select ANON_INODES
> +
> +config KVM_440
> +	bool "KVM support for PowerPC 440 processors"
> +	depends on EXPERIMENTAL && 44x
> +	select KVM
>   

I have a vague memory that 'select' will not propagate (what's the word? 
transitive?) - -that is, the 'select KVM' will enable KVM but will not 
cause ANON_INODES and PREEMPT_NOTIFIERS to be set.

Can you check this out?

(copying Sam for a definitive statement)

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] kvm: ppc: fix Kconfig constraints
       [not found]     ` <4916B5CE.1080605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2008-11-09 15:43       ` Sam Ravnborg
  2008-11-09 15:48         ` Avi Kivity
  0 siblings, 1 reply; 5+ messages in thread
From: Sam Ravnborg @ 2008-11-09 15:43 UTC (permalink / raw)
  To: Avi Kivity
  Cc: Hollis Blanchard, kvm-ppc-u79uwXL29TY76Z2rM5mHXA,
	kvm-u79uwXL29TY76Z2rM5mHXA

On Sun, Nov 09, 2008 at 12:05:02PM +0200, Avi Kivity wrote:
> Hollis Blanchard wrote:
> >kvm: ppc: fix Kconfig constraints
> >
> >Make sure that CONFIG_KVM cannot be selected without processor support
> >(currently, 440 is the only processor implementation available).
> >
> >Signed-off-by: Hollis Blanchard <hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> >
> >diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig
> >--- a/arch/powerpc/kvm/Kconfig
> >+++ b/arch/powerpc/kvm/Kconfig
> >@@ -15,24 +15,22 @@ if VIRTUALIZATION
> > if VIRTUALIZATION
> > 
> > config KVM
> >-	bool "Kernel-based Virtual Machine (KVM) support"
> >-	depends on EXPERIMENTAL
> >+	bool
> > 	select PREEMPT_NOTIFIERS
> > 	select ANON_INODES
> >+
> >+config KVM_440
> >+	bool "KVM support for PowerPC 440 processors"
> >+	depends on EXPERIMENTAL && 44x
> >+	select KVM
> >  
> 
> I have a vague memory that 'select' will not propagate (what's the word? 
> transitive?) - -that is, the 'select KVM' will enable KVM but will not 
> cause ANON_INODES and PREEMPT_NOTIFIERS to be set.
I'm glad to say your memory in this case is wrong.

Select works recursively so the usage above is OK.

If KVM had a dependency such as EXPERIMENTAL then
select would enable KVM no matter the value of EXPERIMENTAL.

	Sam
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] kvm: ppc: fix Kconfig constraints
  2008-11-09 15:43       ` Sam Ravnborg
@ 2008-11-09 15:48         ` Avi Kivity
  0 siblings, 0 replies; 5+ messages in thread
From: Avi Kivity @ 2008-11-09 15:48 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Hollis Blanchard, kvm-ppc, kvm

Sam Ravnborg wrote:

 

>> I have a vague memory that 'select' will not propagate (what's the word? 
>> transitive?) - -that is, the 'select KVM' will enable KVM but will not 
>> cause ANON_INODES and PREEMPT_NOTIFIERS to be set.
>>     
> I'm glad to say your memory in this case is wrong.
>
>   

Me, too.

> Select works recursively so the usage above is OK.
>
> If KVM had a dependency such as EXPERIMENTAL then
> select would enable KVM no matter the value of EXPERIMENTAL.
>   

Right, I misremembered this property.  Thanks for the clarification.

Hollis, I'll apply your patch.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-09 15:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-07 19:10 [PATCH] kvm: ppc: fix Kconfig constraints Hollis Blanchard
2008-11-07 19:15 ` Hollis Blanchard
2008-11-09 10:05   ` Avi Kivity
     [not found]     ` <4916B5CE.1080605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-11-09 15:43       ` Sam Ravnborg
2008-11-09 15:48         ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox