All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dexuan Cui <decui-0li6OtcxBFHby3iVrkZq2A@public.gmane.org>
To: "qi.fuli-LMvhtfratI1BDgjK7y7TUQ@public.gmane.org"
	<qi.fuli-LMvhtfratI1BDgjK7y7TUQ@public.gmane.org>,
	Dave Jiang <dave.jiang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Vishal Verma
	<vishal.l.verma-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Dan Williams
	<dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	"linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org"
	<linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org>,
	Michael Kelley <mikelley-0li6OtcxBFHby3iVrkZq2A@public.gmane.org>,
	Johannes Thumshirn <jthumshirn-l3A5Bk7waGM@public.gmane.org>
Subject: RE: [ndctl PATCH v2 4/4] ndctl, monitor: support NVDIMM_FAMILY_HYPERV
Date: Mon, 25 Feb 2019 05:16:26 +0000	[thread overview]
Message-ID: <PU1P153MB01698955EB8939DDAD7A31D8BF7A0@PU1P153MB0169.APCP153.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <OSAPR01MB4993163079F35EEF06DFBB44F77A0-OxqQCv4d1nTzcNm8D4NKs3colHNk5qUtvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>

> From: qi.fuli-LMvhtfratI1BDgjK7y7TUQ@public.gmane.org <qi.fuli-LMvhtfratI1BDgjK7y7TUQ@public.gmane.org>
> Sent: Sunday, February 24, 2019 8:48 PM
> To: Dexuan Cui <decui-0li6OtcxBFHby3iVrkZq2A@public.gmane.org>; Dave Jiang <dave.jiang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>;
> Vishal Verma <vishal.l.verma-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>; Dan Williams
> <dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>; linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org; Michael Kelley
> <mikelley-0li6OtcxBFHby3iVrkZq2A@public.gmane.org>; Johannes Thumshirn <jthumshirn-l3A5Bk7waGM@public.gmane.org>
> Subject: RE: [ndctl PATCH v2 4/4] ndctl, monitor: support
> NVDIMM_FAMILY_HYPERV
> 
> >
> > Hi Qi,
> > Generally speaking, I agree with you, but here the fact is that we can only
> monitor this
> > one single event "dimm-health-state" for Hyper-V Virtual NVDIMM, and the
> other
> > events are meaningless for Hyper-V Virtual NVDIMM, as they're not
> supported by
> > Hyper-V Virtual NVDIMM.
> >
> > So, if the user specifies more events than just "dimm-health-state", or the
> user doesn't
> > specify "dimm-health-state", it's reasonable to force monitor.event_flags to
> equal to
> > ND_EVENT_HEALTH_STATE, and I explicitly print a warning.
> >
> > The line "monitor.event_flags = ND_EVENT_HEALTH_STATE" only runs in a
> Linux VM
> > running on Hyper-V. It can't adversely affect bare metal cases. In a Linux VM
> on
> > Hyper-V, all the NVDIMMs appearing in the VM are Hyper-V Virtual
> NVDIMMs.
> >
> > A physical NVDIMM can't be directly passed through to a VM and the
> hypervisors (e.g.,
> > Xen, KVM, Hyper-V, Qemu, etc.) have to virtualize it to make it available to a
> VM. In a
> > VM, the NVDIMM_FAMILY is NVDIMM_FAMILY_HYPERV only when the VM
> runs on
> > Hyper-V.
> >
> > So I think we should be good. :-)
> >
> > Thanks,
> > -- Dexuan
> 
> Hi Dexuan,
> 
> Thanks for your explanation.
> I think at least we should document it into man page, so that the users could
> know that their options may be modified by monitor.

Good suggestion! After the patch receives more comments and/or after it's 
accepted, I'll add a new patch for the man page:
Documentation/ndctl/ndctl-monitor.txt.

> Though I have a little concern about that there may be other events for
> Hyper-V Virtual NVDIMM can be monitored in future...
>  Qi

As far as I know, that's unlikely, at least in the foreseeable future. :-)

The VM is supposed to see a virtual NVDIMM, for which the hypervisor only
emulates the minimal necessary info, based on the physical NVDIMM's state.

Thanks,
--Dexuan

  parent reply	other threads:[~2019-02-25  5:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-20  5:11 [ndctl PATCH v2 4/4] ndctl, monitor: support NVDIMM_FAMILY_HYPERV Dexuan Cui
2019-02-21  8:40 ` qi.fuli
     [not found]   ` <OSBPR01MB50009900A5FE2E8588AA6367F77E0-zhdMvvdcU0ZckHoPmfvix3colHNk5qUtvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-02-21 18:30     ` Dexuan Cui
2019-02-25  4:48       ` qi.fuli
     [not found]         ` <OSAPR01MB4993163079F35EEF06DFBB44F77A0-OxqQCv4d1nTzcNm8D4NKs3colHNk5qUtvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2019-02-25  5:16           ` Dexuan Cui [this message]
2019-03-21  1:54 ` Verma, Vishal L
     [not found]   ` <9876fd8a491e339f2f41a47e2195d354bf0d5fb2.camel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2019-03-22  2:08     ` Dexuan Cui
2019-03-22  3:31       ` Dan Williams
     [not found]       ` <PU1P153MB0169CA436F52268DD2BEF745BF430-7hHSCQUTt08p9lVGRpUb+2HfQuWdHs3hiGd9ebBGJoev3QGu/rdwKA@public.gmane.org>
2019-03-22  4:05         ` Dexuan Cui
2019-03-22  4:13           ` Dan Williams
     [not found]             ` <CAPcyv4hVZLW2OSMZ9NqqsQWMg7vxyS9J1ekDZW8G44cmD9_YCw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-22  5:09               ` Dexuan Cui
2019-03-22  5:36                 ` Dan Williams
     [not found]                   ` <CAPcyv4hM_DTcMJdWhWbtPFfVH_V-kYxXSSCg=MQZLoxVka=Mng-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-22  6:03                     ` Dexuan Cui
2019-03-22  6:11                       ` Dan Williams
     [not found]                         ` <CAPcyv4h4tAydacTbmZRKy7hmTqWTM22r6hD+Ucm_f3H2tQUm3g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-22 17:55                           ` Dexuan Cui
2019-03-22 18:03                             ` Dan Williams
     [not found]                               ` <CAPcyv4gMexBmWduqR8G=1H3gKkxbqfBADOLG595nVRipAxVukA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-03-22 18:09                                 ` Dexuan Cui
2019-03-22 18:28                             ` Verma, Vishal L
     [not found]                               ` <837eed30b0da59f91e5114aad97e919068a077e8.camel-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2019-03-23  4:24                                 ` Dexuan Cui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PU1P153MB01698955EB8939DDAD7A31D8BF7A0@PU1P153MB0169.APCP153.PROD.OUTLOOK.COM \
    --to=decui-0li6otcxbfhby3ivrkzq2a@public.gmane.org \
    --cc=dan.j.williams-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=dave.jiang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=jthumshirn-l3A5Bk7waGM@public.gmane.org \
    --cc=linux-nvdimm-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org \
    --cc=mikelley-0li6OtcxBFHby3iVrkZq2A@public.gmane.org \
    --cc=qi.fuli-LMvhtfratI1BDgjK7y7TUQ@public.gmane.org \
    --cc=vishal.l.verma-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.