public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org>
To: Avi Kivity <avi-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Hollis Blanchard
	<hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>,
	kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] kvm: ppc: fix Kconfig constraints
Date: Sun, 9 Nov 2008 16:43:14 +0100	[thread overview]
Message-ID: <20081109154314.GA21374@uranus.ravnborg.org> (raw)
In-Reply-To: <4916B5CE.1080605-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

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

  parent reply	other threads:[~2008-11-09 15:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2008-11-09 15:48         ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081109154314.GA21374@uranus.ravnborg.org \
    --to=sam-uyr5n9q2vtjg9huczpvpmw@public.gmane.org \
    --cc=avi-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
    --cc=kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox