[PATCH 0/6] Get rid of mandatory huge page defines

2013-10-02 Thread Christoffer Dall
The current KVM code relies on a number of definitions to exist for each architecture: KVM_HPAGE_GFN_SHIFT KVM_NR_HPAGE_SIZES KVM_PAGES_PER_HPAGE However, these defines are only used in the gfn_to_index function, which is only used in the x86 code. This series moves the gfn_to_index functio

Re: [PATCH 0/6] Get rid of mandatory huge page defines

2013-10-12 Thread Christoffer Dall
On Wed, Oct 02, 2013 at 02:22:27PM -0700, Christoffer Dall wrote: > The current KVM code relies on a number of definitions to exist for each > architecture: > KVM_HPAGE_GFN_SHIFT > KVM_NR_HPAGE_SIZES > KVM_PAGES_PER_HPAGE > > However, these defines are only used in the gfn_to_index function,

Re: [PATCH 0/6] Get rid of mandatory huge page defines

2013-10-13 Thread Gleb Natapov
On Sat, Oct 12, 2013 at 10:36:36AM -0700, Christoffer Dall wrote: > On Wed, Oct 02, 2013 at 02:22:27PM -0700, Christoffer Dall wrote: > > The current KVM code relies on a number of definitions to exist for each > > architecture: > > KVM_HPAGE_GFN_SHIFT > > KVM_NR_HPAGE_SIZES > > KVM_PAGES_PER

Re: [PATCH 0/6] Get rid of mandatory huge page defines

2013-10-13 Thread Christoffer Dall
On Sun, Oct 13, 2013 at 12:31:29PM +0300, Gleb Natapov wrote: > On Sat, Oct 12, 2013 at 10:36:36AM -0700, Christoffer Dall wrote: > > On Wed, Oct 02, 2013 at 02:22:27PM -0700, Christoffer Dall wrote: > > > The current KVM code relies on a number of definitions to exist for each > > > architecture:

Re: [PATCH 0/6] Get rid of mandatory huge page defines

2013-10-13 Thread Gleb Natapov
On Sun, Oct 13, 2013 at 06:41:22PM +0100, Christoffer Dall wrote: > On Sun, Oct 13, 2013 at 12:31:29PM +0300, Gleb Natapov wrote: > > On Sat, Oct 12, 2013 at 10:36:36AM -0700, Christoffer Dall wrote: > > > On Wed, Oct 02, 2013 at 02:22:27PM -0700, Christoffer Dall wrote: > > > > The current KVM cod

Re: [PATCH 0/6] Get rid of mandatory huge page defines

2013-10-13 Thread Christoffer Dall
On Sun, Oct 13, 2013 at 08:49:28PM +0300, Gleb Natapov wrote: > On Sun, Oct 13, 2013 at 06:41:22PM +0100, Christoffer Dall wrote: > > On Sun, Oct 13, 2013 at 12:31:29PM +0300, Gleb Natapov wrote: > > > On Sat, Oct 12, 2013 at 10:36:36AM -0700, Christoffer Dall wrote: > > > > On Wed, Oct 02, 2013 at

Re: [PATCH 0/6] Get rid of mandatory huge page defines

2013-10-14 Thread Gleb Natapov
On Sun, Oct 13, 2013 at 08:29:43PM +0100, Christoffer Dall wrote: > On Sun, Oct 13, 2013 at 08:49:28PM +0300, Gleb Natapov wrote: > > On Sun, Oct 13, 2013 at 06:41:22PM +0100, Christoffer Dall wrote: > > > On Sun, Oct 13, 2013 at 12:31:29PM +0300, Gleb Natapov wrote: > > > > On Sat, Oct 12, 2013 at