Lines Matching refs:vbdf
201 def add_virtual_device(self, kind, vbdf=None, options=""): argument
205 if vbdf is None:
206 vbdf = self._vbdf_allocator.get_virtual_bdf()
208 self._vbdf_allocator.remove_virtual_bdf(vbdf)
219 vbdf = self._vbdf_allocator.get_virtual_bdf(device_etree, options)
224 if vbdf != 2:
244 def get_slot_by_vbdf(vbdf): argument
245 if vbdf is not None:
246 return int((vbdf.split(":")[1].split(".")[0]), 16)
292 script.add_virtual_device("lpc", vbdf="1:0")
298 script.add_virtual_device("hostbridge", vbdf="0:0")
304 vbdf = eval_xpath(ivshmem, f".//VBDF/text()")
305 slot = get_slot_by_vbdf(vbdf)
312 vbdf = eval_xpath(ivshmem, f".//VBDF/text()")
313 slot = get_slot_by_vbdf(vbdf)
324 vbdf = eval_xpath(conn, f"./endpoint[vm_name/text() = '{vm_name}']/vbdf/text()")
325 slot = get_slot_by_vbdf(vbdf)