Re: [PATCH 1/3] virtio: Basic implementation of virtio pstore driver

From: Namhyung Kim
Date: Wed Jul 20 2016 - 08:56:53 EST


On Tue, Jul 19, 2016 at 10:43 PM, Namhyung Kim <namhyung@xxxxxxxxxx> 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