This patch makes HVM's VTd page table dynamic just like what PV guest does, so that avoid the overhead of maintaining page table until a PCI device is truly assigned to the HVM guest. Signed-Off-By: Zhai, Edwin Wei, This patch also remove some duplicated codes on your side, and is safe in theory. You can have a check. Thanks, -- best rgds, edwin