Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: Alexander Graf <agraf@suse.de>
Cc: Bharat Bhushan <r65777@freescale.com>, <kvm-ppc@vger.kernel.org>,
	<kvm@vger.kernel.org>,
	Bharat Bhushan <Bharat.Bhushan@freescale.com>
Subject: Re: [PATCH 1/2] kvm/powerpc: rename kvm_hypercall() to epapr_hypercall()
Date: Wed, 2 Oct 2013 12:42:52 -0500	[thread overview]
Message-ID: <1380735772.12932.24.camel@snotra.buserror.net> (raw)
In-Reply-To: <24087AF3-C8BB-4D5C-8A61-9E2AAA13511B@suse.de>

On Wed, 2013-10-02 at 19:17 +0200, Alexander Graf wrote:
> On 02.10.2013, at 19:04, Scott Wood wrote:
> 
> > On Wed, 2013-10-02 at 18:53 +0200, Alexander Graf wrote:
> >> On 02.10.2013, at 18:40, Scott Wood wrote:
> >> 
> >>> On Wed, 2013-10-02 at 16:19 +0200, Alexander Graf wrote:
> >>>> Won't this break when CONFIG_EPAPR_PARAVIRT=n? We wouldn't have epapr_hcalls.S compiled into the code base then and the bl above would reference an unknown function.
> >>> 
> >>> KVM_GUEST selects EPAPR_PARAVIRT.
> >> 
> >> But you can not select KVM_GUEST and still call these inline functions, no?
> > 
> > No.
> > 
> >> Like kvm_arch_para_features().
> > 
> > Where does that get called without KVM_GUEST?
> > 
> > How would that work currently, with the call to kvm_hypercall() in
> > arch/powerpc/kernel/kvm.c (which calls epapr_hypercall, BTW)?
> 
> It wouldn't ever get called because kvm_hypercall() ends up always returning EV_UNIMPLEMENTED when #ifndef CONFIG_KVM_GUEST.

OK, so the objection is to removing that stub?  Where would we actually
want to call this without knowing that KVM_GUEST or EPAPR_PARAVIRT are
enabled?

-SCott




  reply	other threads:[~2013-10-02 17:43 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-23  5:23 [PATCH 0/2] kvm/powerpc: hypercall related cleanup Bharat Bhushan
2013-09-23  5:23 ` [PATCH 1/2] kvm/powerpc: rename kvm_hypercall() to epapr_hypercall() Bharat Bhushan
2013-09-23 22:45   ` Scott Wood
2013-09-23 22:57     ` Scott Wood
2013-10-02 14:19   ` Alexander Graf
2013-10-02 16:40     ` Scott Wood
2013-10-02 16:53       ` Alexander Graf
2013-10-02 17:04         ` Scott Wood
2013-10-02 17:17           ` Alexander Graf
2013-10-02 17:42             ` Scott Wood [this message]
2013-10-02 17:46               ` Alexander Graf
2013-10-02 17:49                 ` Scott Wood
2013-10-02 17:54                   ` Alexander Graf
2013-10-02 18:33                     ` Scott Wood
2013-10-04  4:26                       ` Bhushan Bharat-R65777
2013-10-04 11:16                         ` Alexander Graf
2013-10-07 15:15                           ` Bhushan Bharat-R65777
2013-10-07 15:20                             ` Alexander Graf
2013-10-07 15:43                               ` Bhushan Bharat-R65777
2013-10-07 15:46                                 ` Alexander Graf
2013-10-07 16:04                                   ` Bhushan Bharat-R65777
2013-10-07 16:12                                     ` Alexander Graf
2013-10-07 16:15                                       ` Bhushan Bharat-R65777
2013-09-23  5:23 ` [PATCH 2/2] kvm/powerpc: move kvm_hypercall0() and friends to epapr_hypercall0() Bharat Bhushan

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=1380735772.12932.24.camel@snotra.buserror.net \
    --to=scottwood@freescale.com \
    --cc=Bharat.Bhushan@freescale.com \
    --cc=agraf@suse.de \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=r65777@freescale.com \
    /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