<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Now I want to add some args about TPM  to domain's XML,so I can start a domain by virt-manager or other virsh command,and then ,I would like to use sVIrt security context to label vTPM and correspondingVM,But I do not know how to get these XML  args in libvirt.</div><div><b>the key problem is that how can i get and recognize these args!!!</b></div><div>related XML content :</div><div><br></div><div><div><qemu:commandline></div><div>    <qemu:arg value='-enable-kvm'/></div><div>    <qemu:arg value='-drive'/></div><div>    <qemu:arg value='file=/root/nvram_2.0-jin.qcow2,if=none,id=nvram0-0-0,format=qcow2'/></div><div>    <qemu:arg value='-device'/></div><div>    <qemu:arg value='tpm-tis,tpmdev=tpm-tpm0,id=tpm0'/></div><div>    <qemu:arg value='-tpmdev'/></div><div>    <qemu:arg value='libtpms,id=tpm-tpm0,nvram=nvram0-0-0,startup=clear'/></div><div>    <qemu:arg value='-bios'/></div><div>    <qemu:arg value='/root/xenSeabios/out/bios.bin'/></div><div>  </qemu:commandline></div></div><div><br></div>
<div><br></div><hr style="WIDTH: 210px; HEIGHT: 1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>zhunxun@gmail.com</div></div></span></div>
</body></html>