RE: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Liu Yu-B13201
-Original Message- From: kvm-ppc-ow...@vger.kernel.org [mailto:kvm-ppc-ow...@vger.kernel.org] On Behalf Of Alexander Graf Sent: Thursday, September 16, 2010 7:44 PM To: Liu Yu-B13201 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Alexander Graf
Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 /* * writing shadow tlb entry to host TLB */ -static inline void __write_host_tlbe(struct tlbe *stlbe) +static inline void __host_tlbe_write(struct tlbe *stlbe) { mtspr(SPRN_MAS1, stlbe-mas1); mtspr(SPRN_MAS2

RE: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Liu Yu-B13201
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, September 17, 2010 7:34 PM To: Liu Yu-B13201 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 On 17.09.2010, at 13:28, Liu Yu

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Alexander Graf
@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 /* * writing shadow tlb entry to host TLB */ -static inline void __write_host_tlbe(struct tlbe *stlbe) +static inline void __host_tlbe_write(struct tlbe *stlbe) { mtspr(SPRN_MAS1, stlbe-mas1); mtspr(SPRN_MAS2

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Alexander Graf
@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 /* * writing shadow tlb entry to host TLB */ -static inline void __write_host_tlbe(struct tlbe *stlbe) +static inline void __host_tlbe_write(struct tlbe *stlbe) { mtspr(SPRN_MAS1, stlbe-mas1

RE: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Liu Yu-B13201
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, September 17, 2010 7:34 PM To: Liu Yu-B13201 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 On 17.09.2010, at 13:28, Liu Yu

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-17 Thread Alexander Graf
...@vger.kernel.org; kvm-ppc@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 /* * writing shadow tlb entry to host TLB */ -static inline void __write_host_tlbe(struct tlbe *stlbe) +static inline void __host_tlbe_write(struct tlbe *stlbe) { mtspr(SPRN_MAS1

RE: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-16 Thread Liu Yu-B13201
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, September 10, 2010 7:24 AM To: Liu Yu-B13201 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 On 08.09.2010, at 11:40, Liu Yu

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-16 Thread Alexander Graf
Liu Yu-B13201 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, September 10, 2010 7:24 AM To: Liu Yu-B13201 Cc: kvm@vger.kernel.org; kvm-...@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

RE: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-16 Thread Liu Yu-B13201
-Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, September 10, 2010 7:24 AM To: Liu Yu-B13201 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0 On 08.09.2010, at 11:40, Liu Yu

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-16 Thread Alexander Graf
Liu Yu-B13201 wrote: -Original Message- From: Alexander Graf [mailto:ag...@suse.de] Sent: Friday, September 10, 2010 7:24 AM To: Liu Yu-B13201 Cc: k...@vger.kernel.org; kvm-ppc@vger.kernel.org Subject: Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-15 Thread Alexander Graf
Liu, ping? On 10.09.2010, at 01:24, Alexander Graf wrote: On 08.09.2010, at 11:40, Liu Yu wrote: Current guest TLB1 is mapped to host TLB1. As host kernel only provides 4K uncontinuous pages, we have to break guest large mapping into 4K shadow mappings. These 4K shadow mappings are

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-15 Thread Alexander Graf
Liu, ping? On 10.09.2010, at 01:24, Alexander Graf wrote: On 08.09.2010, at 11:40, Liu Yu wrote: Current guest TLB1 is mapped to host TLB1. As host kernel only provides 4K uncontinuous pages, we have to break guest large mapping into 4K shadow mappings. These 4K shadow mappings are

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-09 Thread Alexander Graf
On 08.09.2010, at 11:40, Liu Yu wrote: Current guest TLB1 is mapped to host TLB1. As host kernel only provides 4K uncontinuous pages, we have to break guest large mapping into 4K shadow mappings. These 4K shadow mappings are then mapped into host TLB1 on fly. As host TLB1 only has 13 free

Re: [PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-09 Thread Alexander Graf
On 08.09.2010, at 11:40, Liu Yu wrote: Current guest TLB1 is mapped to host TLB1. As host kernel only provides 4K uncontinuous pages, we have to break guest large mapping into 4K shadow mappings. These 4K shadow mappings are then mapped into host TLB1 on fly. As host TLB1 only has 13 free

[PATCH 2/2] kvm/e500v2: mapping guest TLB1 to host TLB0

2010-09-08 Thread Liu Yu
Current guest TLB1 is mapped to host TLB1. As host kernel only provides 4K uncontinuous pages, we have to break guest large mapping into 4K shadow mappings. These 4K shadow mappings are then mapped into host TLB1 on fly. As host TLB1 only has 13 free entries, there's serious tlb miss. Since