From: Hollis Blanchard Date: Thu, 11 Dec 2008 21:01:46 +0000 Subject: Re: [PATCH 03/11] Use arch.pid as shadow pid for E500 Message-Id: <1229029306.26586.32.camel@localhost.localdomain> List-Id: References: <1228986705-9213-4-git-send-email-yu.liu@freescale.com> In-Reply-To: <1228986705-9213-4-git-send-email-yu.liu@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org On Thu, 2008-12-11 at 17:11 +0800, Liu Yu wrote: > Signed-off-by: Liu Yu > --- > arch/powerpc/kernel/asm-offsets.c | 8 +++++++- > 1 files changed, 7 insertions(+), 1 deletions(-) > > diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c > index 544a27f..79fe94c 100644 > --- a/arch/powerpc/kernel/asm-offsets.c > +++ b/arch/powerpc/kernel/asm-offsets.c > @@ -355,6 +355,13 @@ int main(void) > DEFINE(PTE_SIZE, sizeof(pte_t)); > > #ifdef CONFIG_KVM > +#ifdef CONFIG_44x > + DEFINE(VCPU_SHADOW_PID, offsetof(struct kvm_vcpu, arch.shadow_pid)); > +#endif > +#ifdef CONFIG_FSL_BOOKE > + DEFINE(VCPU_SHADOW_PID, offsetof(struct kvm_vcpu, arch.pid)); > +#endif > + > DEFINE(VCPU_HOST_STACK, offsetof(struct kvm_vcpu, arch.host_stack)); > DEFINE(VCPU_HOST_PID, offsetof(struct kvm_vcpu, arch.host_pid)); > DEFINE(VCPU_GPRS, offsetof(struct kvm_vcpu, arch.gpr)); > @@ -368,7 +375,6 @@ int main(void) > DEFINE(VCPU_SPRG5, offsetof(struct kvm_vcpu, arch.sprg5)); > DEFINE(VCPU_SPRG6, offsetof(struct kvm_vcpu, arch.sprg6)); > DEFINE(VCPU_SPRG7, offsetof(struct kvm_vcpu, arch.sprg7)); > - DEFINE(VCPU_SHADOW_PID, offsetof(struct kvm_vcpu, arch.shadow_pid)); > > DEFINE(VCPU_LAST_INST, offsetof(struct kvm_vcpu, arch.last_inst)); > DEFINE(VCPU_FAULT_DEAR, offsetof(struct kvm_vcpu, arch.fault_dear)); I can commit this, but we got a significant performance boost from implementing the shadow_pid scheme. Do you think implementing that would be difficult? -- Hollis Blanchard IBM Linux Technology Center