mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 20:59:46 +00:00
![]() if the user set a device as hostpci with the 'shorthand' syntax: hostpciX: 00:12 we ignored it on starting and showcmd and continued. Since the user explicitly wanted to passthrough a device, we now check if there is actually a device with that id for explicitly configured devices (00:12.1), we did not check if it exists, but the kvm call failed with a non-obvious error message now we always call 'lspci' from SysFSTools to check if it actually exists, and fail if not. With this, we can drop the workaround for adding '0000' if no domain was given, since lspci does it already for us this fixes #2510, an issue with using mediated devices where the users did not have the domain in the config, since we forgot to add the default domain there the only issue with this patch is that it changes the behaviour of 'showcmd' slightly, as in now, we die if the device was explicitly given, but did not exists (we showed the commandline, now we fail) this also slightly changes the commandline for qemu (adding always the domain), which is not a problem since we cannot live migrate or snapshot such vms, but we have to adapt the tests Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> |
||
---|---|---|
.. | ||
cfg2cmd | ||
ovf_manifests | ||
snapshot-expected | ||
snapshot-input | ||
Makefile | ||
run_config2command_tests.pl | ||
run_ovf_tests.pl | ||
run_pci_addr_checks.pl | ||
run_qemu_img_convert_tests.pl | ||
run_snapshot_tests.pl | ||
snapshot-test.pm | ||
test_get_replicatable_volumes.pl | ||
test.vmdk |