From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Alexander Graf <agraf@suse.de>
Cc: kvm-ppc@vger.kernel.org, David Gibson <dwg@au1.ibm.com>,
"kvm@vger.kernel.org list" <kvm@vger.kernel.org>
Subject: Re: [PATCH] kvm/book3s: Make kernel emulated H_PUT_TCE available for "PR" KVM
Date: Wed, 14 Mar 2012 07:09:43 +1100 [thread overview]
Message-ID: <1331669383.3105.106.camel@pasglop> (raw)
In-Reply-To: <DB20BCB3-1D79-47A9-B71E-A9FA932F67B1@suse.de>
On Tue, 2012-03-13 at 14:47 +0100, Alexander Graf wrote:
> > +++ b/arch/powerpc/include/asm/kvm_host.h
> > @@ -183,10 +183,14 @@ struct kvm_arch {
> > unsigned long lpcr;
> > unsigned long rmor;
> > struct kvmppc_rma_info *rma;
> > - struct list_head spapr_tce_tables;
> > unsigned short last_vcpu[NR_CPUS];
> > struct kvmppc_vcore *vcores[KVM_MAX_VCORES];
> > + struct list_head spapr_tce_tables;
> > #endif /* CONFIG_KVM_BOOK3S_64_HV */
> > +
> > +#ifdef CONFIG_KVM_BOOK3S_64_PR
> > + struct list_head spapr_tce_tables;
> > +#endif /* CONFIG_KVM_BOOK3S_64_PR */
>
> Please move the definition to an #ifdef on CONFIG_KVM_BOOK3S_64. That way we get rid of the duplication here.
I did that initially but that doesn't work when it's a module, as
CONFIG_KVM_BOOK3S_64 is "m" in Kconfig and thus not defined as such
but CONFIG_KVM_BOOK3S_64_MODULE is)
Maybe we should change the way our Kconfig is organized but I din't
feel like doing so yesterday :-)
> Could you please enable rename support in git format-patch? This way it's
> really hard to see what you changed between the 2 files - if anything.
I thought I had, I'll dbl check. There was no code change, just moves,
the original file only had the one small function in it and I moved
over the rest from book3s_hv.c
> > -#ifdef CONFIG_KVM_BOOK3S_64_HV
> > +#if defined(CONFIG_KVM_BOOK3S_64_PR) || defined(CONFIG_KVM_BOOK3S_64_HV)
>
> CONFIG_KVM_BOOK3S_64
Breaks modules.
> Otherwise a nice patch - thanks a lot for tackling this :). Also, please always CC kvm@vger in
> addition to kvm-ppc@vger, so Avi can't complain that he didn't see the patch earlier ;).
Heh ok.
Cheers,
Ben.
next prev parent reply other threads:[~2012-03-13 20:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1331606985.3105.93.camel@pasglop>
2012-03-13 13:47 ` [PATCH] kvm/book3s: Make kernel emulated H_PUT_TCE available for "PR" KVM Alexander Graf
2012-03-13 20:09 ` Benjamin Herrenschmidt [this message]
2012-03-13 20:19 ` Alexander Graf
2012-05-02 21:53 [PATCH v2] " Benjamin Herrenschmidt
2012-05-02 22:32 ` [PATCH] " Alexander Graf
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=1331669383.3105.106.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=agraf@suse.de \
--cc=dwg@au1.ibm.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.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