<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yiv7365280763"><div id="yui_3_16_0_ym19_1_1505960164300_238704"><div style="color:#000;background-color:#fff;font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px;" id="yui_3_16_0_ym19_1_1505960164300_238703"><div id="yiv7365280763yui_3_16_0_ym19_1_1505960164300_235706">Hi,</div><div id="yiv7365280763yui_3_16_0_ym19_1_1505960164300_235706" dir="ltr">    I'm planning to write a program that control an VM with IGD passthrough. Now the environment is ready: kernel param && driver blacklist ok and the VM start correctly with virt-install plus virsh edit the xml. So it's time to convert that process to a program.</div><div id="yiv7365280763yui_3_16_0_ym19_1_1505960164300_235706" dir="ltr">    What stop me is the "virsh edit" part, which modify the  "address" property of the hostdev to "slot=0x02" (required for IGD).</div><div id="yiv7365280763yui_3_16_0_ym19_1_1505960164300_235706" dir="ltr"><br></div><div id="yiv7365280763yui_3_16_0_ym19_1_1505960164300_235706" dir="ltr">    I'm wondering if there's already some tool that deal with such an VM creation. The virt-manager can't modify the "address" property and virsh-install even doesn't create the it. I think libvirt can achieve that, but that would require a lot more code (to deal with other normal properties, e.g. network/usb/sound).</div><div id="yiv7365280763yui_3_16_0_ym19_1_1505960164300_235706" dir="ltr"><br></div><div id="yiv7365280763yui_3_16_0_ym19_1_1505960164300_235706" dir="ltr">Regards,</div><div id="yiv7365280763yui_3_16_0_ym19_1_1505960164300_235706" dir="ltr">Daimon</div></div></div></div></div></body></html>