linux-stable/drivers/xen
Juergen Gross 33fa919df6 xen/balloon: fix ballooned page accounting without hotplug enabled
[ Upstream commit c673ec61ad ]

When CONFIG_XEN_BALLOON_MEMORY_HOTPLUG is not defined
reserve_additional_memory() will set balloon_stats.target_pages to a
wrong value in case there are still some ballooned pages allocated via
alloc_xenballooned_pages().

This will result in balloon_process() no longer be triggered when
ballooned pages are freed in batches.

Reported-by: Nicholas Tsirakis <niko.tsirakis@gmail.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-09 10:19:51 +01:00
..
events xen/events: remove unlikely() from WARN() condition 2019-09-26 10:10:17 -07:00
xen-pciback
xenbus xen/xenbus: fix self-deadlock after killing user process 2019-10-02 16:40:11 -04:00
xenfs
acpi.c
arm-device.c
balloon.c xen/balloon: fix ballooned page accounting without hotplug enabled 2020-01-09 10:19:51 +01:00
biomerge.c
cpu_hotplug.c
dbgp.c
efi.c xen/efi: have a common runtime setup function 2019-10-02 10:31:07 -04:00
evtchn.c
features.c
gntalloc.c
gntdev-common.h
gntdev-dmabuf.c
gntdev-dmabuf.h
gntdev.c xen: Stop abusing DT of_dma_configure API 2019-10-10 11:43:35 -04:00
grant-table.c xen/grant-table: remove unnecessary printing 2019-10-10 10:41:30 -04:00
Kconfig xen/gntdev: Use select for DMA_SHARED_BUFFER 2019-12-31 16:45:01 +01:00
Makefile
manage.c
mcelog.c
mem-reservation.c
pci.c xen/pci: reserve MCFG areas earlier 2019-09-12 15:02:55 -04:00
pcpu.c
platform-pci.c
preempt.c
privcmd-buf.c
privcmd.c
privcmd.h
pvcalls-back.c net: add {READ|WRITE}_ONCE() annotations on ->rskq_accept_head 2019-10-09 21:34:31 -07:00
pvcalls-front.c
pvcalls-front.h
swiotlb-xen.c xen: features for 5.4-rc1 2019-09-26 11:22:14 -07:00
sys-hypervisor.c
time.c
xen-acpi-cpuhotplug.c
xen-acpi-memhotplug.c
xen-acpi-pad.c
xen-acpi-processor.c
xen-balloon.c
xen-front-pgdir-shbuf.c
xen-scsiback.c
xen-stub.c
xlate_mmu.c