From: Hollis Blanchard <hollisb@us.ibm.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: [PATCH 1/3] kvmppc: Some refactor for merging e500
Date: Wed, 03 Dec 2008 23:49:35 +0000 [thread overview]
Message-ID: <1228348175.10084.90.camel@localhost.localdomain> (raw)
In-Reply-To: <1228296514-27330-2-git-send-email-yu.liu@freescale.com>
[-- Attachment #1: Type: text/plain, Size: 2466 bytes --]
On Wed, 2008-12-03 at 17:28 +0800, Liu Yu wrote:
> Signed-off-by: Liu Yu <yu.liu@freescale.com>
>
> ---
> arch/powerpc/include/asm/kvm_44x.h | 9 +++++
> arch/powerpc/include/asm/kvm_host.h | 7 ----
> arch/powerpc/include/asm/kvm_ppc.h | 5 +--
> arch/powerpc/kvm/44x.c | 22 +++++++++++++-
> arch/powerpc/kvm/44x_tlb.c | 29 +++++------------
> arch/powerpc/kvm/44x_tlb.h | 19 +++++++++--
> arch/powerpc/kvm/booke.c | 49 +++++++++----------------------
> arch/powerpc/kvm/booke.h | 8 +++++
> arch/powerpc/kvm/booke_interrupts.S | 56 ++++------------------------------
> arch/powerpc/kvm/booke_interrupts.h | 54 +++++++++++++++++++++++++++++++++
> 10 files changed, 139 insertions(+), 119 deletions(-)
> create mode 100644 arch/powerpc/kvm/booke_interrupts.h
This patch already doesn't apply. (I know it's awkward that I don't have
a published git tree, and I'm sorry about that.) Aside from that, the
patch is also a lot to review at once. Splitting it into smaller
logically separate patches would ease both problems.
For example, I see at least the following patches here:
* moving struct kvmppc_44x_tlbe
* kvmppc_booke_init() changes
* LOAD/SAVE_PID
* moving #include "44x_tlb.h"
* kvmppc_mmu_map() -> kvmppc_core_mmu_map()
* LOAD_GUEST_TLB -- this one is obsolete, so if it were a separate
patch, we could just drop it and the rest would still apply
Some of these I disagree with, so we need to be able to discuss them
individually. Here are some of my comments right now:
I'm torn about the "map" changes because I wanted that function to be
generic (e.g. could apply for hash MMUs too), but it already wasn't very
generic, so we can refactor later as needed.
It looks like Linux (the host) never touches PID1 or PID2 after boot. In
that case, we don't need to save/restore them in our exit handlers.
I'm not sure the kvmppc_booke_init() refactoring is worth it. Can
kvmppc_e500_init() just memcpy the extra interrupt handlers itself?
There are only a few.
I really have to run, but what do you think about the attached patches?
I'll provide proper descriptions later but wanted to get these out for
you tonight. (You can apply with git-am or extract with mseries[1].)
By the way, don't forget to add a Signed-off-by line.
[1] http://oss.oracle.com/~mason/mseries/
--
Hollis Blanchard
IBM Linux Technology Center
[-- Attachment #2: kvmppc.mbox --]
[-- Type: application/mbox, Size: 17774 bytes --]
next prev parent reply other threads:[~2008-12-03 23:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-03 9:28 [PATCH 1/3] kvmppc: Some refactor for merging e500 Liu Yu
2008-12-03 23:49 ` Hollis Blanchard [this message]
2008-12-03 23:52 ` Hollis Blanchard
2008-12-05 10:56 ` Liu Yu
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=1228348175.10084.90.camel@localhost.localdomain \
--to=hollisb@us.ibm.com \
--cc=kvm-ppc@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.