Re: [RFC PATCH 2/4] kvm: Add host side support for free memory hints

2019-02-11 Thread Michael S. Tsirkin
On Mon, Feb 11, 2019 at 10:30:10AM -0800, Alexander Duyck wrote: > On Mon, 2019-02-11 at 12:48 -0500, Michael S. Tsirkin wrote: > > On Mon, Feb 11, 2019 at 09:41:19AM -0800, Dave Hansen wrote: > > > On 2/9/19 4:44 PM, Michael S. Tsirkin wrote: > > > > So the policy should not leak into host/guest i

Re: [RFC PATCH 2/4] kvm: Add host side support for free memory hints

2019-02-11 Thread Alexander Duyck
On Mon, 2019-02-11 at 12:48 -0500, Michael S. Tsirkin wrote: > On Mon, Feb 11, 2019 at 09:41:19AM -0800, Dave Hansen wrote: > > On 2/9/19 4:44 PM, Michael S. Tsirkin wrote: > > > So the policy should not leak into host/guest interface. > > > Instead it is better to just keep the pages pinned and >

Re: [RFC PATCH 2/4] kvm: Add host side support for free memory hints

2019-02-11 Thread Michael S. Tsirkin
On Mon, Feb 11, 2019 at 09:41:19AM -0800, Dave Hansen wrote: > On 2/9/19 4:44 PM, Michael S. Tsirkin wrote: > > So the policy should not leak into host/guest interface. > > Instead it is better to just keep the pages pinned and > > ignore the hint for now. > > It does seems a bit silly to have gue

Re: [RFC PATCH 2/4] kvm: Add host side support for free memory hints

2019-02-11 Thread Dave Hansen
On 2/9/19 4:44 PM, Michael S. Tsirkin wrote: > So the policy should not leak into host/guest interface. > Instead it is better to just keep the pages pinned and > ignore the hint for now. It does seems a bit silly to have guests forever hinting about freed memory when the host never has a hope of

Re: [RFC PATCH 2/4] kvm: Add host side support for free memory hints

2019-02-11 Thread Michael S. Tsirkin
On Mon, Feb 11, 2019 at 09:34:25AM -0800, Alexander Duyck wrote: > On Sat, 2019-02-09 at 19:44 -0500, Michael S. Tsirkin wrote: > > On Mon, Feb 04, 2019 at 10:15:46AM -0800, Alexander Duyck wrote: > > > From: Alexander Duyck > > > > > > Add the host side of the KVM memory hinting support. With th

Re: [RFC PATCH 2/4] kvm: Add host side support for free memory hints

2019-02-11 Thread Alexander Duyck
On Sat, 2019-02-09 at 19:44 -0500, Michael S. Tsirkin wrote: > On Mon, Feb 04, 2019 at 10:15:46AM -0800, Alexander Duyck wrote: > > From: Alexander Duyck > > > > Add the host side of the KVM memory hinting support. With this we expose a > > feature bit indicating that the host will pass the messa

Re: [RFC PATCH 2/4] kvm: Add host side support for free memory hints

2019-02-09 Thread Michael S. Tsirkin
On Mon, Feb 04, 2019 at 10:15:46AM -0800, Alexander Duyck wrote: > From: Alexander Duyck > > Add the host side of the KVM memory hinting support. With this we expose a > feature bit indicating that the host will pass the messages along to the > new madvise function. > > This functionality is mut