[libvirt] [PATCH] docs: remove duplicate example usegae of nvdimm

Luyao Zhong posted 1 patch 5 years, 10 months ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1547621901-4302-1-git-send-email-luyao.zhong@intel.com
docs/formatdomain.html.in | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
[libvirt] [PATCH] docs: remove duplicate example usegae of nvdimm
Posted by Luyao Zhong 5 years, 10 months ago
original:
<devices>
  <memory model='nvdimm'>
  ...
  </memory>
  <memory model='nvdimm'>
  ...
  </memory>
</devices>

merge two examples above into one:
<devices>
  <memory model='nvdimm'>
  ...
  </memory>
</devices>

Signed-off-by: Luyao Zhong <luyao.zhong@intel.com>
---
 docs/formatdomain.html.in | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 7f07bb7..3641e3b 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -8323,19 +8323,6 @@ qemu-kvm -net nic,model=? /dev/null
     &lt;source&gt;
       &lt;path&gt;/tmp/nvdimm&lt;/path&gt;
       &lt;alignsize unit='KiB'&gt;2048&lt;/alignsize&gt;
-    &lt;/source&gt;
-    &lt;target&gt;
-      &lt;size unit='KiB'&gt;524288&lt;/size&gt;
-      &lt;node&gt;1&lt;/node&gt;
-      &lt;label&gt;
-        &lt;size unit='KiB'&gt;128&lt;/size&gt;
-      &lt;/label&gt;
-      &lt;readonly/&gt;
-    &lt;/target&gt;
-  &lt;/memory&gt;
-  &lt;memory model='nvdimm'&gt;
-    &lt;source&gt;
-      &lt;path&gt;/dev/dax0.0&lt;/path&gt;
       &lt;pmem/&gt;
     &lt;/source&gt;
     &lt;target&gt;
@@ -8344,6 +8331,7 @@ qemu-kvm -net nic,model=? /dev/null
       &lt;label&gt;
         &lt;size unit='KiB'&gt;128&lt;/size&gt;
       &lt;/label&gt;
+      &lt;readonly/&gt;
     &lt;/target&gt;
   &lt;/memory&gt;
 &lt;/devices&gt;
-- 
2.7.4

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH] docs: remove duplicate example usegae of nvdimm
Posted by Peter Krempa 5 years, 10 months ago
On Wed, Jan 16, 2019 at 14:58:21 +0800, Luyao Zhong wrote:
> original:
> <devices>
>   <memory model='nvdimm'>
>   ...
>   </memory>
>   <memory model='nvdimm'>
>   ...
>   </memory>
> </devices>
> 
> merge two examples above into one:
> <devices>
>   <memory model='nvdimm'>
>   ...
>   </memory>
> </devices>
> 
> Signed-off-by: Luyao Zhong <luyao.zhong@intel.com>

What's the benefit of the above change? We have multiple instances where
we show different configurations so I don't see a need to squash
every option together.
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH] docs: remove duplicate example usegae of nvdimm
Posted by Luyao Zhong 5 years, 10 months ago

On 2019/1/16 下午4:16, Peter Krempa wrote:
> On Wed, Jan 16, 2019 at 14:58:21 +0800, Luyao Zhong wrote:
>> original:
>> <devices>
>>    <memory model='nvdimm'>
>>    ...
>>    </memory>
>>    <memory model='nvdimm'>
>>    ...
>>    </memory>
>> </devices>
>>
>> merge two examples above into one:
>> <devices>
>>    <memory model='nvdimm'>
>>    ...
>>    </memory>
>> </devices>
>>
>> Signed-off-by: Luyao Zhong <luyao.zhong@intel.com>
> 
> What's the benefit of the above change? We have multiple instances where
> we show different configurations so I don't see a need to squash
> every option together.
> 
Thank you for your reply.

I modify this because the two different instances may mislead people to 
think these are two mutually exclusive way to configure NVDIMM. Besides, 
one example is enough to show all configurations and the description 
bellow give the details.

Actually I thought it is a bug, because there was only one instance. I 
added several options for the NVDIMM before but don't know why the one 
instance was divided into two. :)

Thanks,
Luyao

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list