]> git.ipfire.org Git - thirdparty/linux.git/commit
xen/balloon: improve accuracy of initial balloon target for dom0
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 28 Jan 2026 11:05:09 +0000 (12:05 +0100)
committerJuergen Gross <jgross@suse.com>
Mon, 2 Feb 2026 06:31:22 +0000 (07:31 +0100)
commitb13cd24c15d74f6dfcddf0d53ae6efb58d3f0461
tree04fb953eaf8fa90543fc27e0613c717747b26f54
parent0949c646d64697428ff6257d52efa5093566868d
xen/balloon: improve accuracy of initial balloon target for dom0

The dom0 balloon target set by the toolstack is the value returned by
XENMEM_current_reservation.  Do the same in the kernel balloon driver and
set the current allocation to the value returned by
XENMEM_current_reservation.  On my test system this causes the kernel
balloon driver target to exactly match the value set by the toolstack in
xenstore.

Note this approach can be used by both PV and PVH dom0s, as the toolstack
always uses XENMEM_current_reservation to set the initial target regardless
of the dom0 type.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20260128110510.46425-3-roger.pau@citrix.com>
drivers/xen/balloon.c