Re: [Qemu-devel] [PATCH-for-4.1 v2 3/3] virtio-balloon: reset pbp on device resets

2019-07-17 Thread David Gibson
On Wed, Jul 17, 2019 at 12:35:50PM +0200, David Hildenbrand wrote: > When a guest reboots (ordinary reboots, but also via kexec), it will > happily reuse any system memory, including previously inflated memory. > > We could have tracking data for a pbp (PartiallyBalloonedPage). It could > happen t

Re: [Qemu-devel] [PATCH-for-4.1 v2 3/3] virtio-balloon: reset pbp on device resets

2019-07-17 Thread David Hildenbrand
On 17.07.19 13:29, Michael S. Tsirkin wrote: > On Wed, Jul 17, 2019 at 01:06:29PM +0200, David Hildenbrand wrote: >> On 17.07.19 12:48, Michael S. Tsirkin wrote: >>> On Wed, Jul 17, 2019 at 12:35:50PM +0200, David Hildenbrand wrote: When a guest reboots (ordinary reboots, but also via kexec),

Re: [Qemu-devel] [PATCH-for-4.1 v2 3/3] virtio-balloon: reset pbp on device resets

2019-07-17 Thread Michael S. Tsirkin
On Wed, Jul 17, 2019 at 01:06:29PM +0200, David Hildenbrand wrote: > On 17.07.19 12:48, Michael S. Tsirkin wrote: > > On Wed, Jul 17, 2019 at 12:35:50PM +0200, David Hildenbrand wrote: > >> When a guest reboots (ordinary reboots, but also via kexec), it will > >> happily reuse any system memory, in

Re: [Qemu-devel] [PATCH-for-4.1 v2 3/3] virtio-balloon: reset pbp on device resets

2019-07-17 Thread David Hildenbrand
On 17.07.19 12:48, Michael S. Tsirkin wrote: > On Wed, Jul 17, 2019 at 12:35:50PM +0200, David Hildenbrand wrote: >> When a guest reboots (ordinary reboots, but also via kexec), it will >> happily reuse any system memory, including previously inflated memory. >> >> We could have tracking data for a

Re: [Qemu-devel] [PATCH-for-4.1 v2 3/3] virtio-balloon: reset pbp on device resets

2019-07-17 Thread Michael S. Tsirkin
On Wed, Jul 17, 2019 at 12:35:50PM +0200, David Hildenbrand wrote: > When a guest reboots (ordinary reboots, but also via kexec), it will > happily reuse any system memory, including previously inflated memory. > > We could have tracking data for a pbp (PartiallyBalloonedPage). It could > happen t

[Qemu-devel] [PATCH-for-4.1 v2 3/3] virtio-balloon: reset pbp on device resets

2019-07-17 Thread David Hildenbrand
When a guest reboots (ordinary reboots, but also via kexec), it will happily reuse any system memory, including previously inflated memory. We could have tracking data for a pbp (PartiallyBalloonedPage). It could happen that a new inflation request from the guest will result in a discard of such a