qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel]  About vNVDIMM question in TCG
@ 2016-11-20 17:58 Lin Ma
  2016-11-21  2:55 ` Haozhong Zhang
  0 siblings, 1 reply; 3+ messages in thread
From: Lin Ma @ 2016-11-20 17:58 UTC (permalink / raw)
  To: guangrong.xiao; +Cc: qemu-devel

Hi Guangrong,
 
I'm interested in vNVDIMM on qemu. I'd like to give it a try on my laptop.
Because I dont have skylake server hardware, So I want to expose cpu flags
clflushopt, clwb and pcommit to guest for NVDIMM drivers on TCG.
 
I saw clflushopt and clwb feature flags in cpuinfo of guest, but no pcommit.
Could you please tell me is there anyhing wrong in my qemu CLI or anything
I misunderstand?
 
qemu-system-x86_64 \
-cpu Skylake-Client,+pcommit,+clflushopt,+clwb \
-machine pc-i440fx-2.8,nvdimm=on,accel=tcg \
-m 4G,maxmem=... \
-object memory-backend-file,... \
-device nvdimm,... \
 
BTW, In kvm mode, Even if I used '-cpu qemu64' without flags pcommit,
clflushopt and clwb, The block device /dev/pmem0 is still there and can 
be used successfully. Does it make sense? Doesn't nvdimm kernel driver
need pcommit, clflushopt and clwb to work?
 
Thanks,
Lin

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

* Re: [Qemu-devel] About vNVDIMM question in TCG
  2016-11-20 17:58 [Qemu-devel] About vNVDIMM question in TCG Lin Ma
@ 2016-11-21  2:55 ` Haozhong Zhang
  2016-11-21  7:06   ` [Qemu-devel] 答复: " Lin Ma
  0 siblings, 1 reply; 3+ messages in thread
From: Haozhong Zhang @ 2016-11-21  2:55 UTC (permalink / raw)
  To: Lin Ma; +Cc: guangrong.xiao, qemu-devel

On 11/20/16 10:58 -0700, Lin Ma wrote:
>Hi Guangrong,
>
>I'm interested in vNVDIMM on qemu. I'd like to give it a try on my laptop.
>Because I dont have skylake server hardware, So I want to expose cpu flags
>clflushopt, clwb and pcommit to guest for NVDIMM drivers on TCG.
>
>I saw clflushopt and clwb feature flags in cpuinfo of guest, but no pcommit.
>Could you please tell me is there anyhing wrong in my qemu CLI or anything
>I misunderstand?

pcommit had been deprecated (see KVM commit
dfa169bbee00671288df25f8ef8a2f6e13fe2581), so it's correct to not have
it in guest.

>
>qemu-system-x86_64 \
>-cpu Skylake-Client,+pcommit,+clflushopt,+clwb \
>-machine pc-i440fx-2.8,nvdimm=on,accel=tcg \
>-m 4G,maxmem=... \
>-object memory-backend-file,... \
>-device nvdimm,... \
>
>BTW, In kvm mode, Even if I used '-cpu qemu64' without flags pcommit,
>clflushopt and clwb, The block device /dev/pmem0 is still there and can
>be used successfully. Does it make sense? Doesn't nvdimm kernel driver
>need pcommit, clflushopt and clwb to work?
>

If my memory is correct, Linux NVDIMM driver will fallback to clflush
when neither clflushopt nor clwb is available.

Haozhong

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

* [Qemu-devel] 答复: Re:  About vNVDIMM question in TCG
  2016-11-21  2:55 ` Haozhong Zhang
@ 2016-11-21  7:06   ` Lin Ma
  0 siblings, 0 replies; 3+ messages in thread
From: Lin Ma @ 2016-11-21  7:06 UTC (permalink / raw)
  To: Haozhong Zhang; +Cc: guangrong.xiao, qemu-devel

You've been very helpful, haozhong, Thanks for your comments, I appreciate.

>>> Haozhong Zhang <haozhong.zhang@intel.com> 2016/11/21 星期一 上午 10:55 >>>
On 11/20/16 10:58 -0700, Lin Ma wrote:
>Hi Guangrong,
>
>I'm interested in vNVDIMM on qemu. I'd like to give it a try on my laptop.
>Because I dont have skylake server hardware, So I want to expose cpu flags
>clflushopt, clwb and pcommit to guest for NVDIMM drivers on TCG.
>
>I saw clflushopt and clwb feature flags in cpuinfo of guest, but no pcommit.
>Could you please tell me is there anyhing wrong in my qemu CLI or anything
>I misunderstand?

pcommit had been deprecated (see KVM commit
dfa169bbee00671288df25f8ef8a2f6e13fe2581), so it's correct to not have
it in guest.

>
>qemu-system-x86_64 \
>-cpu Skylake-Client,+pcommit,+clflushopt,+clwb \
>-machine pc-i440fx-2.8,nvdimm=on,accel=tcg \
>-m 4G,maxmem=... \
>-object memory-backend-file,... \
>-device nvdimm,... \
>
>BTW, In kvm mode, Even if I used '-cpu qemu64' without flags pcommit,
>clflushopt and clwb, The block device /dev/pmem0 is still there and can
>be used successfully. Does it make sense? Doesn't nvdimm kernel driver
>need pcommit, clflushopt and clwb to work?
>

If my memory is correct, Linux NVDIMM driver will fallback to clflush
when neither clflushopt nor clwb is available.

Haozhong

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

end of thread, other threads:[~2016-11-21  7:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-20 17:58 [Qemu-devel] About vNVDIMM question in TCG Lin Ma
2016-11-21  2:55 ` Haozhong Zhang
2016-11-21  7:06   ` [Qemu-devel] 答复: " Lin Ma

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).