Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-14 Thread Aneesh Kumar K.V
Bharat Bhushan r65...@freescale.com writes: We need to search linux pte to get pte attributes for setting TLB in KVM. This patch defines a linux_pte_lookup() function for same. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/pgtable.h | 35

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-14 Thread Aneesh Kumar K.V
Paul Mackerras pau...@samba.org writes: On Wed, Oct 09, 2013 at 12:47:31PM -0500, Scott Wood wrote: On Wed, 2013-10-09 at 03:48 -0500, Bhushan Bharat-R65777 wrote: What lookup_linux_pte_and_update() does:- - find_linux_pte_or_hugepte() - does size and some other trivial checks -

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-14 Thread Aneesh Kumar K.V
Bharat Bhushan r65...@freescale.com writes: We need to search linux pte to get pte attributes for setting TLB in KVM. This patch defines a linux_pte_lookup() function for same. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/pgtable.h | 35

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-14 Thread Aneesh Kumar K.V
Paul Mackerras pau...@samba.org writes: On Wed, Oct 09, 2013 at 12:47:31PM -0500, Scott Wood wrote: On Wed, 2013-10-09 at 03:48 -0500, Bhushan Bharat-R65777 wrote: What lookup_linux_pte_and_update() does:- - find_linux_pte_or_hugepte() - does size and some other trivial checks -

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-10 Thread Paul Mackerras
On Tue, Oct 08, 2013 at 11:33:31AM +0530, Bharat Bhushan wrote: We need to search linux pte to get pte attributes for setting TLB in KVM. This patch defines a linux_pte_lookup() function for same. [snip] + /* wait until _PAGE_BUSY is clear */ + while (1) { + pte =

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-10 Thread Paul Mackerras
On Wed, Oct 09, 2013 at 12:47:31PM -0500, Scott Wood wrote: On Wed, 2013-10-09 at 03:48 -0500, Bhushan Bharat-R65777 wrote: What lookup_linux_pte_and_update() does:- - find_linux_pte_or_hugepte() - does size and some other trivial checks - Then atomically update the pte:- =

RE: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-10 Thread Bhushan Bharat-R65777
] kvm: powerpc: define a linux pte lookup function On Wed, Oct 09, 2013 at 12:47:31PM -0500, Scott Wood wrote: On Wed, 2013-10-09 at 03:48 -0500, Bhushan Bharat-R65777 wrote: What lookup_linux_pte_and_update() does:- - find_linux_pte_or_hugepte() - does size and some other trivial

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-10 Thread Paul Mackerras
- B08248; kvm@vger.kernel.org; kvm-...@vger.kernel.org Subject: Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function On Wed, Oct 09, 2013 at 12:47:31PM -0500, Scott Wood wrote: On Wed, 2013-10-09 at 03:48 -0500, Bhushan Bharat-R65777 wrote: What

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-10 Thread Paul Mackerras
On Tue, Oct 08, 2013 at 11:33:31AM +0530, Bharat Bhushan wrote: We need to search linux pte to get pte attributes for setting TLB in KVM. This patch defines a linux_pte_lookup() function for same. [snip] + /* wait until _PAGE_BUSY is clear */ + while (1) { + pte =

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-10 Thread Paul Mackerras
On Wed, Oct 09, 2013 at 12:47:31PM -0500, Scott Wood wrote: On Wed, 2013-10-09 at 03:48 -0500, Bhushan Bharat-R65777 wrote: What lookup_linux_pte_and_update() does:- - find_linux_pte_or_hugepte() - does size and some other trivial checks - Then atomically update the pte:- =

RE: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-10 Thread Bhushan Bharat-R65777
] kvm: powerpc: define a linux pte lookup function On Wed, Oct 09, 2013 at 12:47:31PM -0500, Scott Wood wrote: On Wed, 2013-10-09 at 03:48 -0500, Bhushan Bharat-R65777 wrote: What lookup_linux_pte_and_update() does:- - find_linux_pte_or_hugepte() - does size and some other trivial

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-10 Thread Paul Mackerras
- B08248; k...@vger.kernel.org; kvm-ppc@vger.kernel.org Subject: Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function On Wed, Oct 09, 2013 at 12:47:31PM -0500, Scott Wood wrote: On Wed, 2013-10-09 at 03:48 -0500, Bhushan Bharat-R65777 wrote: What

RE: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-09 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, October 09, 2013 3:07 AM To: Bhushan Bharat-R65777 Cc: ag...@suse.de; Yoder Stuart-B08248; kvm@vger.kernel.org; kvm- p...@vger.kernel.org; pau...@samba.org; Bhushan Bharat-R65777 Subject: Re: [PATCH 3/4] kvm: powerpc

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-09 Thread Scott Wood
...@samba.org; Bhushan Bharat-R65777 Subject: Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function On Tue, 2013-10-08 at 11:33 +0530, Bharat Bhushan wrote: We need to search linux pte to get pte attributes for setting TLB in KVM. This patch defines a linux_pte_lookup() function

RE: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-09 Thread Bhushan Bharat-R65777
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, October 09, 2013 3:07 AM To: Bhushan Bharat-R65777 Cc: ag...@suse.de; Yoder Stuart-B08248; k...@vger.kernel.org; kvm- p...@vger.kernel.org; pau...@samba.org; Bhushan Bharat-R65777 Subject: Re: [PATCH 3/4] kvm: powerpc

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-09 Thread Scott Wood
...@samba.org; Bhushan Bharat-R65777 Subject: Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function On Tue, 2013-10-08 at 11:33 +0530, Bharat Bhushan wrote: We need to search linux pte to get pte attributes for setting TLB in KVM. This patch defines a linux_pte_lookup() function

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-08 Thread Scott Wood
On Tue, 2013-10-08 at 11:33 +0530, Bharat Bhushan wrote: We need to search linux pte to get pte attributes for setting TLB in KVM. This patch defines a linux_pte_lookup() function for same. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/pgtable.h |

Re: [PATCH 3/4] kvm: powerpc: define a linux pte lookup function

2013-10-08 Thread Scott Wood
On Tue, 2013-10-08 at 11:33 +0530, Bharat Bhushan wrote: We need to search linux pte to get pte attributes for setting TLB in KVM. This patch defines a linux_pte_lookup() function for same. Signed-off-by: Bharat Bhushan bharat.bhus...@freescale.com --- arch/powerpc/include/asm/pgtable.h |