From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPr3N-0003T6-6X for qemu-devel@nongnu.org; Wed, 20 Jul 2016 08:56:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPr3K-0004SY-3l for qemu-devel@nongnu.org; Wed, 20 Jul 2016 08:56:43 -0400 Received: from mail-vk0-x244.google.com ([2607:f8b0:400c:c05::244]:32868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPr3J-0004SP-Vx for qemu-devel@nongnu.org; Wed, 20 Jul 2016 08:56:42 -0400 Received: by mail-vk0-x244.google.com with SMTP id s189so4137910vkh.0 for ; Wed, 20 Jul 2016 05:56:39 -0700 (PDT) MIME-Version: 1.0 Sender: namhyung@gmail.com In-Reply-To: <20160719134303.GA20047@danjae.aot.lge.com> References: <1468816661-6345-1-git-send-email-namhyung@kernel.org> <1468816661-6345-2-git-send-email-namhyung@kernel.org> <20160718055037.GA8051@danjae.aot.lge.com> <20160719134303.GA20047@danjae.aot.lge.com> From: Namhyung Kim Date: Wed, 20 Jul 2016 21:56:19 +0900 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 1/3] virtio: Basic implementation of virtio pstore driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kees Cook Cc: LKML , Paolo Bonzini , Radim Kr??m???? , "Michael S. Tsirkin" , Anthony Liguori , Anton Vorontsov , Colin Cross , Tony Luck , Steven Rostedt , Ingo Molnar , Minchan Kim , KVM , qemu-devel , "virtualization@lists.linux-foundation.org" On Tue, Jul 19, 2016 at 10:43 PM, Namhyung Kim wrote: > The other one is the file management on the host side. I am thinking > of a simple way that the log file is splitted when it exceeds the half > of the allowed max size. It would be configurable and might allow > unlimited logs if user requests it explicitly (if qemu guys say ok).. On a second thought, I think that size of log file should not exceed the pstore buffer size in order to be read back later. When total size of log files becomes larger then the limit, the oldest file of same type can be deleted. This way looks simpler to manage IMHO. Also I think the pstore id should be managed by host device rather than guest driver to handle splitted files properly. Thanks, Namhyung