From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Borntraeger Subject: qemu core dump and filtering guest pages Date: Tue, 22 May 2012 23:05:57 +0200 Message-ID: <4FBBFFB5.3010605@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Oleg Nesterov To: Avi Kivity , Marcelo Tosatti , KVM list , Linux Kernel Mailing List Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Folks, today we discussed the situation of a qemu crash (with coredump) and big guests. Quite often the guest pages are not needed but make the core file pretty big. The most appealing proposal that we had was to adopt the core file code in the kernel to have an option for discarding guest pages (e.g. /proc/sys/core_guest). do_corefile would have a callback into the kvm module that could use its memory slot infrastructure to decide if this page should be saved or not. Would you consider such a change be ok? Any better idea? Thanks Christian