qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Question about vNVDIMM file format
@ 2016-05-16 15:04 Richard W.M. Jones
  2016-05-16 16:53 ` Stefan Hajnoczi
  2016-05-16 17:39 ` Xiao Guangrong
  0 siblings, 2 replies; 8+ messages in thread
From: Richard W.M. Jones @ 2016-05-16 15:04 UTC (permalink / raw)
  To: qemu-devel; +Cc: Xiao Guangrong

I'm playing with ext4 and DAX.

I'm using:

  -object memory-backend-file,id=mem1,share,mem-path=/var/tmp/pmem,size=4G \
  -device nvdimm,memdev=mem1,id=nv1

where /var/tmp/pmem is a 4 GB ext4 filesystem image (no partition
table).  I can mount this in the guest using:

  mount -o dax /dev/pmem0 /mnt

and everything appears to work.

I read in the mailing list that the pmem file has some internal
structure for storing config data, stored in the last 128 KB of the
file.  Is that still the case?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-05-18 17:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-16 15:04 [Qemu-devel] Question about vNVDIMM file format Richard W.M. Jones
2016-05-16 16:53 ` Stefan Hajnoczi
2016-05-16 18:25   ` Richard W.M. Jones
2016-05-18  7:04     ` Xiao Guangrong
2016-05-18  8:11       ` Zhang, Haozhong
2016-05-18 10:50       ` Richard W.M. Jones
2016-05-18 17:36       ` Richard W.M. Jones
2016-05-16 17:39 ` Xiao Guangrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).