abf8af324b
- Include systemd presets in 13.2 and older - bnc#897352 - Enable xencommons/xendomains only during fresh install - disable restart on upgrade because the toolstack is not restartable - adjust seabios, vgabios, stubdom and hvmloader build to reduce build-compare noise xen.build-compare.mini-os.patch xen.build-compare.smbiosdate.patch xen.build-compare.ipxe.patch xen.build-compare.vgabios.patch xen.build-compare.seabios.patch xen.build-compare.man.patch - Update to Xen 4.5.0 RC4 - Remove xend specific if-up scripts Recording bridge slaves is a generic task which should be handled by generic network code - Use systemd features from upstream requires updated systemd-presets-branding package - Update to Xen 4.5.0 RC3 - Set GIT, WGET and FTP to /bin/false - Use new configure features instead of make variables OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=337
32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
Subject: xenpaging/qemu-dm: add command to flush buffer cache.
|
|
|
|
Add support for a xenstore dm command to flush qemu's buffer cache.
|
|
|
|
qemu will just keep mapping pages and not release them, which causes problems
|
|
for the memory pager (since the page is mapped, it won't get paged out). When
|
|
the pager has trouble finding a page to page out, it asks qemu to flush its
|
|
buffer, which releases all the page mappings. This makes it possible to find
|
|
pages to swap out agian.
|
|
|
|
Already-Signed-off-by: Patrick Colp <Patrick.Colp@citrix.com>
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
|
|
---
|
|
tools/qemu-xen-traditional-dir-remote/xenstore.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
Index: xen-4.5.0-testing/tools/qemu-xen-traditional-dir-remote/xenstore.c
|
|
===================================================================
|
|
--- xen-4.5.0-testing.orig/tools/qemu-xen-traditional-dir-remote/xenstore.c
|
|
+++ xen-4.5.0-testing/tools/qemu-xen-traditional-dir-remote/xenstore.c
|
|
@@ -1006,6 +1006,9 @@ static void xenstore_process_dm_command_
|
|
do_pci_add(par);
|
|
free(par);
|
|
#endif
|
|
+ } else if (!strncmp(command, "flush-cache", len)) {
|
|
+ fprintf(logfile, "dm-command: flush caches\n");
|
|
+ qemu_invalidate_map_cache();
|
|
} else {
|
|
fprintf(logfile, "dm-command: unknown command\"%*s\"\n", len, command);
|
|
}
|