search for: virdomaindefpostparseintern

Displaying 3 results from an estimated 3 matches for "virdomaindefpostparseintern".

2018 Apr 26
2
Re: how xml generated
Thanks for your reply what i want to know is that why there are many devices in $domain.xml, actully , i choose nothing in virt-manager? so, Do i need to look at qemuDomainDefineXMLFlags()? hours ago, i thought it's qemuDomainCreateWithFlags. -- Have a good day > -----原始邮件----- > 发件人: Michal Privoznik <mprivozn@redhat.com> > 发送时间: 2018年4月26日 星期四 > 收件人: "李卓瑶"
2018 Apr 26
0
Re: how xml generated
...hen you don't select anything in virt-manager the domain will definitely have a PCI root controller, controller for disk bus (be it sata, scsi, ide, ..), then it'll also have a virtual NIC, some memory/cpu configuration, and so on. In the code, these devices are added once XML is parsed by virDomainDefPostParseInternal(). Each driver can pass this xmlopt structure filled in with callbacks (take a look at virQEMUDriverCreateXMLConf()). So in the end, devices are added only after XML is parsed. However, it is not done all in one place. For instance, controllers are added during device address assignment, other de...
2018 Apr 26
2
Re: how xml generated
...ing in > virt-manager the domain will definitely have a PCI root controller, > controller for disk bus (be it sata, scsi, ide, ..), then it'll also > have a virtual NIC, some memory/cpu configuration, and so on. > > In the code, these devices are added once XML is parsed by > virDomainDefPostParseInternal(). Each driver can pass this xmlopt > structure filled in with callbacks (take a look at > virQEMUDriverCreateXMLConf()). So in the end, devices are added only > after XML is parsed. However, it is not done all in one place. For > instance, controllers are added during device address...