<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">On 2/16/22, 2:25 AM, "Michal Prívozník" <mprivozn@redhat.com> wrote:<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > @@ -7920,7 +7925,9 @@ Example: usage of the memory devices<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> >     1.2.14` Provide ``nvdimm`` model that adds a Non-Volatile DIMM module.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> >     :since:`Since 3.2.0` Provide ``virtio-pmem`` model to add a paravirtualized<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> >     persistent memory device. :since:`Since 7.1.0` Provide ``virtio-mem`` model<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > -   to add paravirtualized memory device. :since:`Since 7.9.0`<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > +   to add paravirtualized memory device. :since:`Since 7.9.0` Provide<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > +   ``sgx-epc`` model to add a SGX enclave page cache (EPC) memory to the guest.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > +   :since:`Since 8.0.0`<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> >  <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> Since 8.1.0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Sure, I will update this.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > diff --git a/tests/qemuxml2xmloutdata/sgx-epc.x86_64-latest.xml b/tests/qemuxml2xmloutdata/sgx-epc.x86_64-latest.xml<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > new file mode 100644<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > index 0000000000..1f2a9c418f<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > --- /dev/null<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > +++ b/tests/qemuxml2xmloutdata/sgx-epc.x86_64-latest.xml<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > @@ -0,0 +1,52 @@<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> > +<domain type='qemu'><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> Effectively, what we want to test here is that XML can be parsed and<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> formatted back. In this case we don't really care whether devices are<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> automatically inserted. Having said that, this output XML can be just a<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">> symlink to the original XML.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Sorry, I might not fully understand this parse and re-formant test case<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">details. The re-formatted XML contains some tags don’t exist in original<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">XML, for example, the virtio memballoon device,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    <memballoon model='virtio'><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">    </memballoon><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">This test case will fail if symlink to the original XML. Could you share how<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">to resolve it? Really appreciated.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Lin.<br>
<br>
<o:p></o:p></span></p>
</div>
</body>
</html>