mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 09:19:41 +00:00
tests: cfg2cmd: fix mdev tests
This will fail with the new checks for mdev when we don't have the correct config, as a device that has mediated devices, should have 'mdev' set in the mapping config Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Reviewed-by: Christoph Heiss <c.heiss@proxmox.com> Reviewed-by: Fiona Ebner <f.ebner@proxmox.com> Tested-by: Christoph Heiss <c.heiss@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5b0f9cc848
commit
b204fad0b4
@ -108,6 +108,7 @@ my $pci_map_config = {
|
|||||||
ids => {
|
ids => {
|
||||||
someGpu => {
|
someGpu => {
|
||||||
type => 'pci',
|
type => 'pci',
|
||||||
|
mdev => 1,
|
||||||
map => [
|
map => [
|
||||||
'node=localhost,path=0000:01:00.4,id=10de:2231,iommugroup=1',
|
'node=localhost,path=0000:01:00.4,id=10de:2231,iommugroup=1',
|
||||||
'node=localhost,path=0000:01:00.5,id=10de:2231,iommugroup=1',
|
'node=localhost,path=0000:01:00.5,id=10de:2231,iommugroup=1',
|
||||||
@ -330,7 +331,6 @@ $pve_common_sysfstools->mock(
|
|||||||
} elsif ($path =~ m/^0000:07:10/) {
|
} elsif ($path =~ m/^0000:07:10/) {
|
||||||
return {
|
return {
|
||||||
iommugroup => 2,
|
iommugroup => 2,
|
||||||
mdev => 0,
|
|
||||||
vendor => "0x8086",
|
vendor => "0x8086",
|
||||||
device => "0x1520",
|
device => "0x1520",
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user