Re: [PATCH v5 00/13] KVM/X86: Introduce a new guest mapping interface

2019-01-31 Thread Paolo Bonzini
On 31/01/19 14:03, Raslan, KarimAllah wrote: > > One option here would be to add 'e820__mapped_raw_any' (or whatever  > other name) and make it identical to the current implementation of  > e820__mapped_any at. Would that be slightly more acceptable? :) Yes, of course it would (for me at least

Re: [PATCH v5 00/13] KVM/X86: Introduce a new guest mapping interface

2019-01-31 Thread Raslan, KarimAllah
On Wed, 2019-01-30 at 18:14 +0100, Paolo Bonzini wrote: > On 25/01/19 19:28, Raslan, KarimAllah wrote: > > > > So the simple way to do it is: > > > > 1- Pass 'mem=' in the kernel command-line to limit the amount of memory > > managed  > >    by the kernel. > > 2- Map this physical memory you

Re: [PATCH v5 00/13] KVM/X86: Introduce a new guest mapping interface

2019-01-30 Thread Paolo Bonzini
On 25/01/19 19:28, Raslan, KarimAllah wrote: > So the simple way to do it is: > > 1- Pass 'mem=' in the kernel command-line to limit the amount of memory > managed  >    by the kernel. > 2- Map this physical memory you want to give to the guest with >       mmap("/dev/mem",

Re: [PATCH v5 00/13] KVM/X86: Introduce a new guest mapping interface

2019-01-25 Thread Raslan, KarimAllah
On Wed, 2019-01-23 at 13:16 -0500, Konrad Rzeszutek Wilk wrote: > On Wed, Jan 09, 2019 at 10:42:00AM +0100, KarimAllah Ahmed wrote: > > > > Guest memory can either be directly managed by the kernel (i.e. have a > > "struct > > page") or they can simply live outside kernel control (i.e. do not

Re: [PATCH v5 00/13] KVM/X86: Introduce a new guest mapping interface

2019-01-23 Thread Konrad Rzeszutek Wilk
On Wed, Jan 09, 2019 at 10:42:00AM +0100, KarimAllah Ahmed wrote: > Guest memory can either be directly managed by the kernel (i.e. have a "struct > page") or they can simply live outside kernel control (i.e. do not have a > "struct page"). KVM mostly support these two modes, except in a few

[PATCH v5 00/13] KVM/X86: Introduce a new guest mapping interface

2019-01-09 Thread KarimAllah Ahmed
Guest memory can either be directly managed by the kernel (i.e. have a "struct page") or they can simply live outside kernel control (i.e. do not have a "struct page"). KVM mostly support these two modes, except in a few places where the code seems to assume that guest memory must have a "struct