Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Tamas K Lengyel
> The method I found to work is getting the maximum_gpfn from the guest > and then calling populate_physmap with ++max_gpfn. The only problem > then is that I don't see a way to "unpopulate" the page from the > domain and free the corresponding mfn while the domain is running. Is > that currently

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Tamas K Lengyel
On Mon, Jun 19, 2017 at 9:34 AM, Julien Grall wrote: > > > On 19/06/17 15:57, Tamas K Lengyel wrote: >> >> On Mon, Jun 19, 2017 at 8:52 AM, Julien Grall >> wrote: >>> >>> >>> >>> On 19/06/17 15:39, Tamas K Lengyel wrote: On Mon, Jun 19,

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Julien Grall
On 19/06/17 15:57, Tamas K Lengyel wrote: On Mon, Jun 19, 2017 at 8:52 AM, Julien Grall wrote: On 19/06/17 15:39, Tamas K Lengyel wrote: On Mon, Jun 19, 2017 at 3:09 AM, Julien Grall wrote: Hi, On 19/06/17 09:15, Jan Beulich wrote: On

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Tamas K Lengyel
On Mon, Jun 19, 2017 at 8:52 AM, Julien Grall wrote: > > > On 19/06/17 15:39, Tamas K Lengyel wrote: >> >> On Mon, Jun 19, 2017 at 3:09 AM, Julien Grall >> wrote: >>> >>> Hi, >>> >>> >>> On 19/06/17 09:15, Jan Beulich wrote: >>> >>> >>> On

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Tamas K Lengyel
On Mon, Jun 19, 2017 at 8:54 AM, George Dunlap wrote: > On 19/06/17 15:48, Tamas K Lengyel wrote: >> On Mon, Jun 19, 2017 at 3:11 AM, George Dunlap >> wrote: >>> On 19/06/17 09:15, Jan Beulich wrote: >>> On 18.06.17 at 21:19,

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread George Dunlap
On 19/06/17 15:48, Tamas K Lengyel wrote: > On Mon, Jun 19, 2017 at 3:11 AM, George Dunlap > wrote: >> On 19/06/17 09:15, Jan Beulich wrote: >> On 18.06.17 at 21:19, wrote: On Tue, Apr 4, 2017 at 1:04 PM, Andrew Cooper

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Julien Grall
On 19/06/17 15:39, Tamas K Lengyel wrote: On Mon, Jun 19, 2017 at 3:09 AM, Julien Grall wrote: Hi, On 19/06/17 09:15, Jan Beulich wrote: On 18.06.17 at 21:19, wrote: On Tue, Apr 4, 2017 at 1:04 PM, Andrew Cooper

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Tamas K Lengyel
On Mon, Jun 19, 2017 at 3:11 AM, George Dunlap wrote: > On 19/06/17 09:15, Jan Beulich wrote: > On 18.06.17 at 21:19, wrote: >>> On Tue, Apr 4, 2017 at 1:04 PM, Andrew Cooper >>> wrote: On 04/04/17 14:14,

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Tamas K Lengyel
On Mon, Jun 19, 2017 at 3:09 AM, Julien Grall wrote: > Hi, > > > On 19/06/17 09:15, Jan Beulich wrote: > > On 18.06.17 at 21:19, wrote: >>> >>> On Tue, Apr 4, 2017 at 1:04 PM, Andrew Cooper >>> wrote:

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Jan Beulich
>>> On 19.06.17 at 11:11, wrote: > On 19/06/17 09:15, Jan Beulich wrote: > On 18.06.17 at 21:19, wrote: >>> On Tue, Apr 4, 2017 at 1:04 PM, Andrew Cooper >>> wrote: On 04/04/17 14:14, Jan Beulich wrote:

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread George Dunlap
On 19/06/17 09:15, Jan Beulich wrote: On 18.06.17 at 21:19, wrote: >> On Tue, Apr 4, 2017 at 1:04 PM, Andrew Cooper >> wrote: >>> On 04/04/17 14:14, Jan Beulich wrote: We shouldn't hand MFN info back from increase-reservation for

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Julien Grall
Hi, On 19/06/17 09:15, Jan Beulich wrote: On 18.06.17 at 21:19, wrote: On Tue, Apr 4, 2017 at 1:04 PM, Andrew Cooper wrote: On 04/04/17 14:14, Jan Beulich wrote: We shouldn't hand MFN info back from increase-reservation for translated

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-19 Thread Jan Beulich
>>> On 18.06.17 at 21:19, wrote: > On Tue, Apr 4, 2017 at 1:04 PM, Andrew Cooper > wrote: >> On 04/04/17 14:14, Jan Beulich wrote: >>> We shouldn't hand MFN info back from increase-reservation for >>> translated domains, just like we don't

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-06-18 Thread Tamas K Lengyel
On Tue, Apr 4, 2017 at 1:04 PM, Andrew Cooper wrote: > On 04/04/17 14:14, Jan Beulich wrote: >> We shouldn't hand MFN info back from increase-reservation for >> translated domains, just like we don't for populate-physmap and >> memory-exchange. For full symmetry also

Re: [Xen-devel] [PATCH 2/2] memory: don't hand MFN info to translated guests

2017-04-04 Thread Andrew Cooper
On 04/04/17 14:14, Jan Beulich wrote: > We shouldn't hand MFN info back from increase-reservation for > translated domains, just like we don't for populate-physmap and > memory-exchange. For full symmetry also check for a NULL guest handle > in populate_physmap() (but note this makes no sense in >