Received: from eggs.gnu.org ([2001:4830:134:3::10]:50007) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcSLW-0003mj-FV for qemu-devel@nongnu.org; Wed, 24 Aug 2016 03:11:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcSLP-0006r8-HB for qemu-devel@nongnu.org; Wed, 24 Aug 2016 03:11:32 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:33697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcSLP-0006qo-BS for qemu-devel@nongnu.org; Wed, 24 Aug 2016 03:11:27 -0400 Received: by mail-pa0-f66.google.com with SMTP id vy10so645543pac.0 for ; Wed, 24 Aug 2016 00:11:25 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) From: Joel In-Reply-To: Date: Wed, 24 Aug 2016 00:10:22 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <30A771DF-9BAF-4929-B333-04DF0534D3F6@gmail.com> References: <20160820080744.10344-1-namhyung@kernel.org> <1471947901-3951-1-git-send-email-agnel.joel@gmail.com> Subject: Re: [Qemu-devel] [RFC/PATCHSET 0/3] virtio: Implement virtio pstore device (v3) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Namhyung Kim Cc: "linux-kernel@vger.kernel.org" , qemu-devel , Kees Cook Hi Namhyung, > On Aug 23, 2016, at 8:20 AM, Namhyung Kim wrote: >=20 > Hi Joel, >=20 > On Tue, Aug 23, 2016 at 7:25 PM, Joel Fernandes = wrote: >> From: Namhyung Kim >=20 >>=20 >> Any thoughts on what you think about it? In your approach though, you >> wouldn't need a backing mem-path file which is the size of the guest >> RAM (which could be as big as the mem-path file). I wonder if the >> mem-path file can be created sparse, and/or Qemu has support to >> configure a certain part of guest RAM as file-backed memory and the >> rest of it from Anonymous memory (not backed by mem-path) so that >> the size of the mem-path file can be kept at a minimum. >=20 > The pstore (ramoops) requires the region of the memory is preserved > across reboot. Is it possible when -mem-path is used? I think it=E2=80= =99s I believe the stock qemu won=E2=80=99t persist memory on its own without = a reboot. I found atleast one post where someone was trying to make mem-path persist across a reboot and claimed to succeed: https://lists.gnu.org/archive/html/qemu-devel/2016-04/msg03476.html >=20 > Also my approach can handle streams of data bigger than the pstore > buffer size. Although we can extract the contents of mem-path file > periodically, it might be hard for externel process to know the right > time to extract and there's a possibility of information loss IMHO. >=20 I agree, your approach is better for an emulated environment. Thanks, Joel > Thanks, > Namhyung