Merge remote-tracking branch 'upstream/master' into Virtual-Sound-Card

This commit is contained in:
SimonFair
2025-05-06 19:22:06 +01:00
134 changed files with 6255 additions and 3140 deletions

View File

@@ -2283,6 +2283,17 @@ class Libvirt {
return $soundcardslist;
}
function domain_get_vm_pciids($domain) {
$hostdevs=$this->domain_get_host_devices_pci($domain);
$vmpcidevs=[];
foreach($hostdevs as $key => $dev) {
$vmpcidevs[$dev['id']] = [
'vendor_id' => ltrim($dev['vendor_id'] ?? "", '0x'),
'device_id' => ltrim($dev['product_id'] ?? "", '0x'),
];
}
return $vmpcidevs;
}
function get_nic_info($domain) {
$macs = $this->get_xpath($domain, "//domain/devices/interface/mac/@address", false);