this will fail with the new checks for mdev when we don't have the
correct config.

namely a device that has mediated devices, should have 'mdev' set in the
mapping config

Reviewed-by: Christoph Heiss <c.he...@proxmox.com>
Reviewed-by: Fiona Ebner <f.eb...@proxmox.com>
Signed-off-by: Dominik Csapak <d.csa...@proxmox.com>
---
 test/run_config2command_tests.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/run_config2command_tests.pl b/test/run_config2command_tests.pl
index 7e3d10e6..e2e762ba 100755
--- a/test/run_config2command_tests.pl
+++ b/test/run_config2command_tests.pl
@@ -108,6 +108,7 @@ my $pci_map_config = {
     ids => {
        someGpu => {
            type => 'pci',
+           mdev => 1,
            map => [
                'node=localhost,path=0000:01:00.4,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/) {
            return {
                iommugroup => 2,
-               mdev => 0,
                vendor => "0x8086",
                device => "0x1520",
            };
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to